Binary Relations Part II
|
|
- Tabitha Ryan
- 6 years ago
- Views:
Transcription
1 Binary Relations Part II
2 Outline for Today Finish from Last Time Pt. 3 of our proof that ~ is an equivalence relation Properties of Equivalence Relations What s so special about those three rules? Strict Orders A diferent type of mathematical structure Hasse Diagrams How to visualize rankings
3 Finish from Last Time
4 a A. ara a A. b A. (arb bra) a A. b A. c A. (arb brc arc)
5 a~b if a+b is even Lemma 1: The binary relation ~ is refexive. Proof: Consider an arbitrary a Z. We need to prove that a~a. From the defnition of the ~ relation, this means that we need to prove that a+a is even. To see this, notice that a+a = 2a, so the sum a+a can be written as 2k for some integer k (namely, a), so a+a is even. Therefore, a~a holds, as required.
6 a~b if a+b is even Lemma 2: The binary relation ~ is symmetric. Proof: Consider any integers a and b where a~b. We need to show that b~a. Since a~b, we know that a+b is even. Because a+b = b+a, this means that b+a is even. Since b+a is even, we know that b~a, as required.
7 New Stuf!
8 a~b if a+b is even Lemma 3: The binary relation ~ is transitive. Proof: Consider arbitrary integers a, b and c where a~b and b~c. We need to prove that a~c, meaning that we need to show that a+c is even. Which Since a~b Which of and b~c, of the the following we following works know that works best a~b best as and as the b~c the are even. introduction This means there introduction to are integers to this this proof? k and proof? m where a+b = 2k A. A. and Pick Pick b+c an an arbitrary arbitrary = 2m. Notice a and and b that from from A where where a~b. a~b. We ll We ll prove prove b~a. b~a. B. B. Consider Consider any any a, a, b, b, c (a+b) c A where + where a~b, (b+c) a~b, b~c, = 2k b~c, and + 2m. and a~c. a~c. C. C. Choose Choose an an a, a, b, b, c c A. A. We We will will prove prove a~b, a~b, b~c, b~c, and and a~c. a~c. D. D. Rearranging, Take Take any any a, a, b, b, c we c A see where where thata~b a~b and and b~c; b~c; we ll we ll prove prove a~c. a~c. so a+c + 2b = 2k + 2m, a+c = 2k + 2m 2b = 2(k+m b). Answer Answer at at PollEv.com/cs103 PollEv.com/cs103 or or So there text text is CS103 CS103 an integer to to r, once once namely to to join, join, k+m b, then then A, A, B, B, such C, C, or or D. that D. a+c = 2r. Thus a+c is even, so a~c, as required.
9 a~b if a+b is even Lemma 3: The binary relation ~ is transitive. Proof: Consider arbitrary integers a, b and c where a~b and b~c. We need to prove that a~c, meaning that we need to show that a+c is even. Since a~b and b~c, we know that a~b and b~c are even. This means there are integers k and m where a+b = 2k and b+c = 2m. Notice that (a+b) + (b+c) = 2k + 2m. Rearranging, a we see that a Z. Z. b b Z. Z. c c Z. Z. (a (a ~ b b ~ c a ~ c) c) a+c + 2b = 2k + 2m, so What What is is the the formal formal defnition defnition of of transitivity? transitivity? Therefore, Therefore, we'll we'll choose choose arbitrary arbitrary integers integers a, a, b, b, and and c where where a ~ a+c b and = and 2k b + ~ c, 2m c, then then prove 2b = prove that 2(k+m b). that a ~ c. c. So there is an integer r, namely k+m b, such that a+c = 2r. Thus a+c is even, so a~c, as required.
10 a~b if a+b is even Lemma 3: The binary relation ~ is transitive. Proof: Consider arbitrary integers a, b and c where a~b and b~c. We need to prove that a~c, meaning that we need to show that a+c is even. Since a~b and b~c, we know that a+b and b+c are even. This means there are integers k and m where a+b = 2k and b+c = 2m. Notice that Rearranging, we see that so (a+b) + (b+c) = 2k + 2m. a+c + 2b = 2k + 2m, a+c = 2k + 2m 2b = 2(k+m b). So there is an integer r, namely k+m b, such that a+c = 2r. Thus a+c is even, so a~c, as required.
11 First-Order Logic and Proofs First-order logic is an excellent tool for giving formal defnitions to key terms. While frst-order logic guides the structure of proofs, it is exceedingly rare to see frst-order logic in written proofs. Follow the example of these proofs: Use the FOL defnitions to determine what to assume and what to prove. Write the proof in plain English using the conventions we set up in the frst week of the class. Please, please, please, please, please internalize the contents of this slide!
12 a A. ara a A. b A. (arb bra) a A. b A. c A. (arb brc arc)
13 Properties of Equivalence Relations
14 xry if x and y have the same shape
15 xty if x and y have the same color
16 Equivalence Classes Given an equivalence relation R over a set A, for any x A, the equivalence class of x is the set [x] R = { y A xry } Intuitively, the set [x]r contains all elements of A that are related to x by relation R.
17 [ ] R [ ] R [ ] R xry if x and y have the same shape
18 The Fundamental Theorem of Equivalence Relations: Let R be an equivalence relation over a set A. Then every element a A belongs to exactly one equivalence class of R.
19 How d We Get Here? We discovered equivalence relations by thinking about partitions of a set of elements. We saw that if we had a binary relation that tells us whether two elements are in the same group, it had to be refexive, symmetric, and transitive. The FToER says that, in some sense, these rules precisely capture what it means to be a partition. Question: What s so special about these three rules?
20 a A. b A. c A. (arb brc cra)
21 A binary binary relation relation with with this this property property is is called called cyclic. cyclic. a A. b A. c A. (arb brc cra)
22 Let Let R be be the the relation relation depicted depicted here. here. How How many many of of the the following following claims claims are are true? true? R is is refexive. refexive. R is is symmetric. symmetric. R is is transitive. transitive. R is is an an equivalence equivalence relation. relation. Answer Answer at at PollEv.com/cs103 PollEv.com/cs103 or or text text CS103 CS103 to to once once to to join, join, then then 0, 0, 1, 1, 2, 2, 3, 3, or or a A. b A. c A. (arb brc cra)
23 Theorem: A binary relation R over a set A is an equivalence relation if and only if it is refexive and cyclic.
24 Lemma 1: If R is an equivalence relation over a set A, then R is refexive and cyclic. Lemma 2: If R is a binary relation over a set A that is refexive and cyclic, then R is an equivalence relation.
25 Lemma 1: If R is an equivalence relation over a set A, then R is refexive and cyclic. What We re Assuming What We Need To Show R is an equivalence relation. R is refexive. R is cyclic. R is refexive. R is symmetric. R is transitive.
26 Lemma 1: If R is an equivalence relation over a set A, then R is refexive and cyclic. What We re Assuming What We Need To Show R is an equivalence relation. R is refexive. R is symmetric. R is refexive. R is cyclic. If arb and brc, then cra. R is transitive.
27 Lemma 1: If R is an equivalence relation over a set A, then R is refexive and cyclic. What We re Assuming What We Need To Show R is an equivalence relation. If arb and brc, then cra. R is refexive. R is symmetric. R is transitive. a b c
28 Lemma 1: If R is an equivalence relation over a set A, then R is refexive and cyclic. What We re Assuming What We Need To Show R is an equivalence relation. If arb and brc, then cra. R is refexive. R is symmetric. R is transitive. a b c
29 Lemma 1: If R is an equivalence relation over a set A, then R is refexive and cyclic. Proof: Let R be an arbitrary equivalence relation over some set A. We need to prove that R is refexive and cyclic. Since R is an equivalence relation, we know that R is refexive, symmetric, and transitive. Consequently, we already know that R is refexive, so we only need to show that R is cyclic. To prove that R is cyclic, consider any arbitrary a, b, c A where arb and brc. We need to prove that cra holds. Since R is transitive, from arb and brc we see that arc. Then, since R is symmetric, from arc we see that cra, which is what we needed to prove.
30 Lemma 1: If R is an equivalence relation over a set A, then R is refexive and cyclic. Proof: Let R be an arbitrary equivalence relation over some set A. We need to prove that R is refexive and cyclic. Since R is an equivalence relation, we know that R is refexive, symmetric, Notice and transitive. Consequently, we Notice how how the the frst frst few few sentences sentences of of this this already know that R proof is refexive, so we only need to show proof mirror mirror the the structure structure of of what what needs needs that R is cyclic. to to be be proved. proved. We re We re just just following following the the To prove that R is cyclic, templates templates consider from from the any the frst frst arbitrary week week of of a, class! class! b, c A where arb and brc. We need to prove that cra holds. Since R is transitive, from arb and brc we see that arc. Then, since R is symmetric, from arc we see that cra, which is what we needed to prove.
31 Notice Notice how how this this setup setup mirrors mirrors the the frst-order frst-order Lemma 1: If R is an equivalence defnition relation over a set A, then R defnition of of cyclicity: cyclicity: is refexive and cyclic. Proof: Let a a R be A. A. an b b arbitrary A. A. c c equivalence A. A. (arb (arb relation brc brc over cra) cra) some set A. We need to prove that R is refexive and cyclic. When When writing writing proofs proofs about about terms terms with with frst-order frst-order Since R is an defnitions, equivalence relation, we know that R is defnitions, it s it s critical critical to to call call back back to to those those refexive, symmetric, and defnitions! transitive. Consequently, we defnitions! already know that R is refexive, so we only need to show that R is cyclic. To prove that R is cyclic, consider any arbitrary a, b, c A where arb and brc. We need to prove that cra holds. Since R is transitive, from arb and brc we see that arc. Then, since R is symmetric, from arc we see that cra, which is what we needed to prove.
32 Although Although this this proof proof is is deeply deeply informed informed by by the the frst-order frst-order defnitions, defnitions, notice notice that that there there is is no no frst-order frst-order logic logic notation notation anywhere anywhere in in the the proof. proof. That s That s normal normal it s it s actually actually Lemma 1: If R is an equivalence relation over a set A, then R quite quite rare rare to to see see frst-order frst-order logic logic in in written written proofs. proofs. is refexive and cyclic. Proof: Let R be an arbitrary equivalence relation over some set A. We need to prove that R is refexive and cyclic. Since R is an equivalence relation, we know that R is refexive, symmetric, and transitive. Consequently, we already know that R is refexive, so we only need to show that R is cyclic. To prove that R is cyclic, consider any arbitrary a, b, c A where arb and brc. We need to prove that cra holds. Since R is transitive, from arb and brc we see that arc. Then, since R is symmetric, from arc we see that cra, which is what we needed to prove.
33 Lemma 1: If R is an equivalence relation over a set A, then R is refexive and cyclic. Proof: Let R be an arbitrary equivalence relation over some set A. We need to prove that R is refexive and cyclic. Since R is an equivalence relation, we know that R is refexive, symmetric, and transitive. Consequently, we already know that R is refexive, so we only need to show that R is cyclic. To prove that R is cyclic, consider any arbitrary a, b, c A where arb and brc. We need to prove that cra holds. Since R is transitive, from arb and brc we see that arc. Then, since R is symmetric, from arc we see that cra, which is what we needed to prove.
34 Lemma 2: If R is a binary relation over a set A that is refexive and cyclic, then R is an equivalence relation. What We re Assuming What We Need To Show R is refexive. R is an equivalence relation. R is cyclic. R is refexive. R is symmetric. R is transitive.
35 Lemma 2: If R is a binary relation over a set A that is refexive and cyclic, then R is an equivalence relation. What We re Assuming What We Need To Show R is refexive. R is cyclic. R is an equivalence relation. R is refexive. R is symmetric. R is transitive.
36 Lemma 2: If R is a binary relation over a set A that is refexive and cyclic, then R is an equivalence relation. What We re Assuming What We Need To Show R is refexive. R is symmetric. x A. xrx If arb, then bra. R is cyclic. xry yrz zrx a b
37 Lemma 2: If R is a binary relation over a set A that is refexive and cyclic, then R is an equivalence relation. What We re Assuming What We Need To Show R is refexive. R is symmetric. x A. xrx If arb, then bra. R is cyclic. y x z xry yrz zrx a b
38 Lemma 2: If R is a binary relation over a set A that is refexive and cyclic, then R is an equivalence relation. What We re Assuming What We Need To Show R is refexive. R is transitive. x A. xrx If arb and brc, R is cyclic. xry yrz zrx then arc. a b c
39 Lemma 2: If R is a binary relation over a set A that is refexive and cyclic, then R is an equivalence relation. What We re Assuming What We Need To Show R is refexive. R is transitive. x A. xrx If arb and brc, R is cyclic. then arc. xry yrz zrx a b c
40 Lemma 2: If R is a binary relation over a set A that is refexive and cyclic, then R is an equivalence relation. What We re Assuming What We Need To Show R is refexive. R is transitive. x A. xrx If arb and brc, R is cyclic. xry yrz zrx R is symmetric xry yrx then arc. a b c
41 Lemma 2: If R is a binary relation over a set A that is cyclic and refexive, then R is an equivalence relation. Proof: Let R be an arbitrary binary relation over a set A that is cyclic and refexive. We need to prove that R is an equivalence relation. To do so, we need to show that R is refexive, symmetric, and transitive. Since we already know by assumption that R is refexive, we just need to show that R is symmetric and transitive. First, we'll prove that R is symmetric. To do so, pick any arbitrary a, b A where arb holds. We need to prove that bra is true. Since R is refexive, we know that ara holds. Therefore, by cyclicity, since ara and arb, we learn that bra, as required. Next, we'll prove that R is transitive. Let a, b, and c be any elements of A where arb and brc. We need to prove that arc. Since R is cyclic, from arb and brc we see that cra. Earlier, we showed that R is symmetric. Therefore, from cra we see that arc is true, as required.
42 Lemma Notice 2: If R is a binary relation over a set A that is cyclic Notice how how this this setup setup mirrors mirrors the the frst-order frst-order defnition defnition and refexive, then R is an equivalence relation. of of symmetry: symmetry: Proof: Let R be an arbitrary binary relation over a set A that is cyclic and refexive. a a A. A. b b We need A. A. (arb (arb to prove bra) bra) that R is an equivalence relation. To do so, we need to show that R is refexive, When When symmetric, writing writing proofs proofs and about about transitive. terms terms with with Since frst-order frst-order we already know defnitions, defnitions, by assumption it s it s critical critical that to to R call call is refexive, back back to to those those we defnitions! defnitions! just need to show that R is symmetric and transitive. First, we'll prove that R is symmetric. To do so, pick any arbitrary a, b A where arb holds. We need to prove that bra is true. Since R is refexive, we know that ara holds. Therefore, by cyclicity, since ara and arb, we learn that bra, as required. Next, we'll prove that R is transitive. Let a, b, and c be any elements of A where arb and brc. We need to prove that arc. Since R is cyclic, from arb and brc we see that cra. Earlier, we showed that R is symmetric. Therefore, from cra we see that arc is true, as required.
43 Lemma 2: If R is a binary relation over a set A that is cyclic and refexive, then R is an equivalence relation. Proof: Let R be an arbitrary binary relation over a set A that is cyclic and refexive. We need to prove that R is an equivalence relation. To do so, we need to show that R is refexive, Notice Notice symmetric, how how this this setup setup and mirrors transitive. mirrors the the frst-order frst-order Since we defnition defnition already know by assumption that of of R transitivity: transitivity: is refexive, we just need to show that R is symmetric and transitive. a First, we'll a A. prove A. b b that A. A. R c is symmetric. A. A. (arb (arb To brc brc do so, arc) pick arc) any arbitrary a, b A where arb holds. We need to prove that When bra is true. When writing Since writing proofs R is proofs about refexive, about terms we terms with know with frst-order frst-order that ara holds. defnitions, Therefore, defnitions, it s by cyclicity, it s critical critical to since to call ara call back back to and to those arb, those defnitions! we defnitions! learn that bra, as required. Next, we'll prove that R is transitive. Let a, b, and c be any elements of A where arb and brc. We need to prove that arc. Since R is cyclic, from arb and brc we see that cra. Earlier, we showed that R is symmetric. Therefore, from cra we see that arc is true, as required.
44 Lemma 2: If R is a binary relation over a set A that is cyclic and refexive, then R is an equivalence relation. Proof: Let R be an arbitrary binary relation over a set A that is cyclic and refexive. We need to prove that R is an equivalence relation. To do so, we need to show that R is refexive, symmetric, and transitive. Since we already know by assumption that R is refexive, we just need to show that R is symmetric and transitive. First, we'll prove that R is symmetric. To do so, pick any arbitrary a, b A where arb holds. We need to prove that bra is true. Since R is refexive, we know that ara holds. Therefore, by cyclicity, since ara and arb, we learn that bra, as required. Next, we'll prove that R is transitive. Let a, b, and c be any elements of A where arb and brc. We need to prove that arc. Since R is cyclic, from arb and brc we see that cra. Earlier, we showed that R is symmetric. Therefore, from cra we see that arc is true, as required.
45 Refning Your Proofwriting When writing proofs about terms with formal defnitions, you must call back to those defnitions. Use the frst-order defnition to see what you ll assume and what you ll need to prove. When writing proofs about terms with formal defnitions, you must not include any frst-order logic in your proofs. Although you won t use any FOL notation in your proofs, your proof implicitly calls back to the FOL defnitions. You ll get a lot of practice with this on Problem Set Three. If you have any questions about how to do this properly, please feel free to ask on Piazza or stop by ofice hours!
46 Prerequisite Structures
47 Theory The CS Core CS106B CS103 Programming Abstractions Mathematical Foundations of Computing Systems CS107 Computer Organization and Systems CS109 Intro to Probability for Computer Scientists CS110 CS161 Principles of Computer Systems Design and Analysis of Algorithms
48
49 Pancakes Everyone's got a pancake recipe. This one comes from Food Wishes ( Ingredients 1 1/2 cups all-purpose four 3 1/2 tsp baking powder 1 tsp salt 1 tbsp sugar 1 1/4 cup milk 1 egg 3 tbsp butter, melted Directions 1. Sift the dry ingredients together. 2. Stir in the butter, egg, and milk. Whisk together to form the batter. 3. Heat a large pan or griddle on medium-high heat. Add some oil. 4. Make pancakes one at a time using 1/4 cup batter each. They're ready to fip when the centers of the pancakes start to bubble.
50 Measure Flour Measure Sugar Measure Baking Pwdr Measure Salt Heat Griddle Beat Egg Combine Dry Ingredients Melt Butter Measure Milk Oil Griddle Add Wet Ingredients Make Pancakes Serve Pancakes
51
52 Relations and Prerequisites Let's imagine that we have a prerequisite structure with no circular dependencies. We can think about a binary relation R where arb means a must happen before b What properties of R could we deduce just from this?
53 a a a b b c a c a b b a
54 a A. ara a A. b A. c A. (arb brc arc) a A. b A. (arb bra)
55 Irrefexivity Some relations never hold from any element to itself. As an example, x x for any x. Relations of this sort are called irrefexive. Formally speaking, a binary relation R over a set A is irrefexive if the following frst-order logic statement is true about R: a A. ar a ( No element is related to itself. )
56 Irrefexivity Visualized a A. ar a ( No element is related to itself. )
57 Let Let R be be the the relation relation depicted depicted here. here. How How many many of of the the following following claims claims are are true? true? R is is refexive. refexive. R is is not not refexive. refexive. R is is irrefexive. irrefexive. R is is not not irrefexive. irrefexive. Answer Answer at at PollEv.com/cs103 PollEv.com/cs103 or or text text CS103 CS103 to to once once to to join, join, then then 0, 0, 1, 1, 2, 2, 3, 3, or or 4. 4.
58 Is Is this this relation relation refexive? refexive? Nope! a A. ara ( Every element is related to itself. )
59 Is Is this this relation relation irrefexive? irrefexive? Nope! a A. ar a ( No element is related to itself. )
60 Refexivity and Irrefexivity Refexivity and irrefexivity are not opposites! Here's the defnition of refexivity: a A. ara What is the negation of the above statement? a A. ar a What is the defnition of irrefexivity? a A. ar a
61 a A. ara Transitivity a A. b A. (arb bra)
62 Asymmetry In some relations, the relative order of the objects can never be reversed. As an example, if x y, then y x. These relations are called asymmetric. Formally: a binary relation R over a set A is called asymmetric if the following frst-order logic statement is true about R: a A. b A. (arb br a) ( If a relates to b, then b does not relate to a. )
63 Asymmetry Visualized a A. b A. (arb br a) ( If a relates to b, then b does not relate to a. )
64 Question to Ponder: Are symmetry and asymmetry opposites of one another?
65 Strict Orders A strict order is a relation that is irrefexive, asymmetric and transitive. Some examples: x y. a can run faster than b. A B (that is, A B and A B). Strict orders are useful for representing prerequisite structures and have applications in complexity theory (measuring notions of relative hardness) and algorithms (searching and sorting).
66 Drawing Strict Orders
67 Gold Silver Bronze
68 (46, 37, 38) (26, 18, 26) (19, 18, 19) (27, 23, 17) (12, 8, 21) (10, 18, 14) (17, 10, 15) (g₁, s₁, b₁) R (g₂, s₂, b₂) if g₁ g₂ s₁ s₂ b₁ b₂
69 (46, 37, 38) (26, 18, 26) (19, 18, 19) (27, 23, 17) (12, 8, 21) (10, 18, 14) (17, 10, 15) (g₁, s₁, b₁) R (g₂, s₂, b₂) if g₁ g₂ s₁ s₂ b₁ b₂
70 (46, 37, 38) (26, 18, 26) (19, 18, 19) (27, 23, 17) (12, 8, 21) (10, 18, 14) (17, 10, 15) (g₁, s₁, b₁) R (g₂, s₂, b₂) if g₁ g₂ s₁ s₂ b₁ b₂
71 More Medals (46, 37, 38) (26, 18, 26) (19, 18, 19) (27, 23, 17) (12, 8, 21) (17, 10, 15) (10, 18, 14) Fewer Medals (g₁, s₁, b₁) R (g₂, s₂, b₂) if g₁ g₂ s₁ s₂ b₁ b₂
72 Hasse Diagrams A Hasse diagram is a graphical representation of a strict order. Elements are drawn from bottom-to-top. No self loops are drawn, and none are needed! By irrefexivity we know they shouldn t be there. Higher elements are bigger than lower elements: by asymmetry, the edges can only go in one direction. No redundant edges: by transitivity, we can infer the missing edges.
73 (46, 37, 38) 379 (27, 23, 17) 221 (26, 18, 26) 210 (19, 18, 19) 168 (17, 10, 15) 130 (10, 18, 14) 118 (12, 8, 21) 105 (g₁, s₁, b₁) T (g₂, s₂, b₂) if 5g₁ + 3s₁ + b₁ 5g₂ + 3s₂ + b₂
74 (46, 37, 38) 121 (26, 18, 26) 72 (27, 23, 17) 67 (19, 18, 19) 56 (17, 10, 15) 42 (10, 18, 14) 42 (g₁, s₁, b₁) U (g₂, s₂, b₂) (12, 8, 21) 41 if g₁ + s₁ + b₁ g₂ + s₂ + b₂
75 xry if x must be eaten before y Hasse Artichokes
76 The Meta Strict Order Strict Order Equivalence Relation Asymmetry Transitivity Refexivity Symmetry Irrefexivity Question Question to to ponder: ponder: why why is is this this line line here? here? arb if a is less specifc than b
77 Next Time Functions How do we model transformations in a mathematical sense? Domains and Codomains Type theory meets mathematics! Injections, Surjections, and Bijections Three special classes of functions.
Binary Relations Part Two
Binary Relations Part Two Outline for Today Recap from Last Time Where are we, again? A Fundamental Theorem What do equivalence relations do? Strict Orders Representing prerequisites. Hasse Diagrams Drawing
More informationRelations and Functions
Relations and Functions Recap from Last Time Reflexivity Some relations always hold from any element to itself. Examples: x = x for any x. A A for any set A. x ₖ x for any x. Relations of this sort are
More informationOutline for Today. Binary Relations. Equivalence Relations. Partial Orders. Quick Midterm Review
Binary Relations Outline for Today Binary Relations Studying connections between objects from a different perspective. Equivalence Relations Relations that break objects into groups. Partial Orders Relations
More informationGuide to Proofs on Discrete Structures
CS103 Handout 17 Spring 2018 Guide to Proofs on Discrete Structures In Problem Set One, you got practice with the art of proofwriting in general (as applied to numbers, sets, puzzles, etc.) Problem Set
More informationReading 11 : Relations and Functions
CS/Math 240: Introduction to Discrete Mathematics Fall 2015 Reading 11 : Relations and Functions Instructor: Beck Hasti and Gautam Prakriya In reading 3, we described a correspondence between predicates
More informationDiscrete Structures Proofwriting Checklist
CS103 Winter 2019 Discrete Structures Proofwriting Checklist Cynthia Lee Keith Schwarz Now that we re transitioning to writing proofs about discrete structures like binary relations, functions, and graphs,
More informationEconomics 204 Summer/Fall 2017 Lecture 1 Monday July 17, 2017
Economics 04 Summer/Fall 07 Lecture Monday July 7, 07 Section.. Methods of Proof We begin by looking at the notion of proof. What is a proof? Proof has a formal definition in mathematical logic, and a
More informationSeminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)
http://math.sun.ac.za/amsc/sam Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics 2009-2010 Lecture notes in progress (27 March 2010) Contents 2009 Semester I: Elements 5 1. Cartesian product
More informationOrder Relations and Functions
Order Relations and Functions Problem Session Tonight 7:00PM 7:50PM 380-380X Optional, but highly recommended! x is larger than y x is tastier than y x is faster than y x is a subset of y x divides y x
More informationIn mathematics there are endless ways that two entities can be related
CHAPTER 16 Relations In mathematics there are endless ways that two entities can be related to each other. Consider the following mathematical statements. 5 < 10 5 5 6 = 30 5 5 80 7 > 4 x y 8 3 a b ( mod
More informationRelations, Functions, and Sequences
MCS-236: Graph Theory Handout #A3 San Skulrattanakulchai Gustavus Adolphus College Sep 13, 2010 Relations, Functions, and Sequences Relations An ordered pair can be constructed from any two mathematical
More informationThe main limitation of the concept of a. function
Relations The main limitation of the concept of a A function, by definition, assigns one output to each input. This means that a function cannot model relationships between sets where some objects on each
More informationSection Summary. Relations and Functions Properties of Relations. Combining Relations
Chapter 9 Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations Closures of Relations (not currently included
More informationChapter VI. Relations. Assumptions are the termites of relationships. Henry Winkler
Chapter VI Relations Assumptions are the termites of relationships. Henry Winkler Studying relationships between objects can yield important information about the objects themselves. In the real numbers,
More informationChapter 6. Relations. 6.1 Relations
Chapter 6 Relations Mathematical relations are an extremely general framework for specifying relationships between pairs of objects. This chapter surveys the types of relations that can be constructed
More informationMathematical Logic Part Three
Mathematical Logic Part hree riday our Square! oday at 4:15PM, Outside Gates Announcements Problem Set 3 due right now. Problem Set 4 goes out today. Checkpoint due Monday, October 22. Remainder due riday,
More informationMathematical Logic Part One
Mathematical Logic Part One Question: How do we formalize the defnitions and reasoning we use in our proofs? Where We're Going Propositional Logic (Today) Basic logical connectives. Truth tables. Logical
More informationChapter 3. Cartesian Products and Relations. 3.1 Cartesian Products
Chapter 3 Cartesian Products and Relations The material in this chapter is the first real encounter with abstraction. Relations are very general thing they are a special type of subset. After introducing
More informationLecture 4.3: Closures and Equivalence Relations
Lecture 4.3: Closures and CS 250, Discrete Structures, Fall 2015 Nitesh Saxena Adopted from previous lectures by Cinda Heeren Course Admin Mid-Term 2 Exam Solution will be posted soon Should have the results
More informationSets and Motivation for Boolean algebra
SET THEORY Basic concepts Notations Subset Algebra of sets The power set Ordered pairs and Cartesian product Relations on sets Types of relations and their properties Relational matrix and the graph of
More informationSolutions to In Class Problems Week 4, Mon.
Massachusetts Institute of Technology 6.042J/18.062J, Fall 05: Mathematics for Computer Science September 26 Prof. Albert R. Meyer and Prof. Ronitt Rubinfeld revised September 26, 2005, 1050 minutes Solutions
More informationLecture 4: Constructing the Integers, Rationals and Reals
Math/CS 20: Intro. to Math Professor: Padraic Bartlett Lecture 4: Constructing the Integers, Rationals and Reals Week 5 UCSB 204 The Integers Normally, using the natural numbers, you can easily define
More informationMath 31 Lesson Plan. Day 5: Intro to Groups. Elizabeth Gillaspy. September 28, 2011
Math 31 Lesson Plan Day 5: Intro to Groups Elizabeth Gillaspy September 28, 2011 Supplies needed: Sign in sheet Goals for students: Students will: Improve the clarity of their proof-writing. Gain confidence
More informationWeek 4-5: Binary Relations
1 Binary Relations Week 4-5: Binary Relations The concept of relation is common in daily life and seems intuitively clear. For instance, let X be the set of all living human females and Y the set of all
More information14 Equivalence Relations
14 Equivalence Relations Tom Lewis Fall Term 2010 Tom Lewis () 14 Equivalence Relations Fall Term 2010 1 / 10 Outline 1 The definition 2 Congruence modulo n 3 Has-the-same-size-as 4 Equivalence classes
More informationPractice Second Midterm Exam I
CS103 Handout 33 Fall 2018 November 2, 2018 Practice Second Midterm Exam I This exam is closed-book and closed-computer. You may have a double-sided, 8.5 11 sheet of notes with you when you take this exam.
More informationLecture 3: the classification of equivalence relations and the definition of a topological space
Lecture 3: the classification of equivalence relations and the definition of a topological space Saul Glasman September 12, 2016 If there s a bijection f : X Y, we ll often say that X and Y are in bijection,
More informationMATH 433 Applied Algebra Lecture 14: Functions. Relations.
MATH 433 Applied Algebra Lecture 14: Functions. Relations. Cartesian product Definition. The Cartesian product X Y of two sets X and Y is the set of all ordered pairs (x,y) such that x X and y Y. The Cartesian
More informationMA554 Assessment 1 Cosets and Lagrange s theorem
MA554 Assessment 1 Cosets and Lagrange s theorem These are notes on cosets and Lagrange s theorem; they go over some material from the lectures again, and they have some new material it is all examinable,
More informationAutomata and Languages
Automata and Languages Prof. Mohamed Hamada Software Engineering Lab. The University of Aizu Japan Mathematical Background Mathematical Background Sets Relations Functions Graphs Proof techniques Sets
More information9 RELATIONS. 9.1 Reflexive, symmetric and transitive relations. MATH Foundations of Pure Mathematics
MATH10111 - Foundations of Pure Mathematics 9 RELATIONS 9.1 Reflexive, symmetric and transitive relations Let A be a set with A. A relation R on A is a subset of A A. For convenience, for x, y A, write
More informationCosets and Lagrange s theorem
Cosets and Lagrange s theorem These are notes on cosets and Lagrange s theorem some of which may already have been lecturer. There are some questions for you included in the text. You should write the
More informationPractice Second Midterm Exam III
CS103 Handout 35 Fall 2018 November 2, 2018 Practice Second Midterm Exam III This exam is closed-book and closed-computer. You may have a double-sided, 8.5 11 sheet of notes with you when you take this
More informationCSC Discrete Math I, Spring Relations
CSC 125 - Discrete Math I, Spring 2017 Relations Binary Relations Definition: A binary relation R from a set A to a set B is a subset of A B Note that a relation is more general than a function Example:
More informationRED. Name: Instructor: Pace Nielsen Math 290 Section 1: Winter 2014 Final Exam
RED Name: Instructor: Pace Nielsen Math 290 Section 1: Winter 2014 Final Exam Note that the first 10 questions are true-false. Mark A for true, B for false. Questions 11 through 20 are multiple choice
More informationFoundations of algebra
Foundations of algebra Equivalence relations - suggested problems - solutions P1: There are several relations that you are familiar with: Relations on R (or any of its subsets): Equality. Symbol: x = y.
More information3 Chemical Properties
CHAPTER 7 3 Chemical Properties SECTION The Properties of Matter BEFORE YOU READ After you read this section, you should be able to answer these questions: What are chemical properties of matter? What
More information2. Two binary operations (addition, denoted + and multiplication, denoted
Chapter 2 The Structure of R The purpose of this chapter is to explain to the reader why the set of real numbers is so special. By the end of this chapter, the reader should understand the difference between
More informationRED. Fall 2016 Student Submitted Sample Questions
RED Fall 2016 Student Submitted Sample Questions Name: Last Update: November 22, 2016 The questions are divided into three sections: True-false, Multiple Choice, and Written Answer. I will add questions
More informationReview Problems for Midterm Exam II MTH 299 Spring n(n + 1) 2. = 1. So assume there is some k 1 for which
Review Problems for Midterm Exam II MTH 99 Spring 014 1. Use induction to prove that for all n N. 1 + 3 + + + n(n + 1) = n(n + 1)(n + ) Solution: This statement is obviously true for n = 1 since 1()(3)
More informationWhat is proof? Lesson 1
What is proof? Lesson The topic for this Math Explorer Club is mathematical proof. In this post we will go over what was covered in the first session. The word proof is a normal English word that you might
More informationMixtures and Solutions: The Sugar in the Tea by Emily Sohn and Joseph Brennan
Readers Mixtures and Solutions: The Sugar in the Tea by Emily Sohn and Joseph Brennan Science Objective This book introduces children to some basics of chemistry as they explore the atoms and molecules
More informationGuide to Proofs on Sets
CS103 Winter 2019 Guide to Proofs on Sets Cynthia Lee Keith Schwarz I would argue that if you have a single guiding principle for how to mathematically reason about sets, it would be this one: All sets
More informationPOL502: Foundations. Kosuke Imai Department of Politics, Princeton University. October 10, 2005
POL502: Foundations Kosuke Imai Department of Politics, Princeton University October 10, 2005 Our first task is to develop the foundations that are necessary for the materials covered in this course. 1
More informationMath 2534 Solution to Test 3A Spring 2010
Math 2534 Solution to Test 3A Spring 2010 Problem 1: (10pts) Prove that R is a transitive relation on Z when given that mrpiff m pmod d (ie. d ( m p) ) Solution: The relation R is transitive, if arb and
More informationRelations and Equivalence Relations
Relations and Equivalence Relations In this section, we shall introduce a formal definition for the notion of a relation on a set. This is something we often take for granted in elementary algebra courses,
More informationRelations, Functions & Binary Operations
Relations, Functions & Binary Operations Important Terms, Definitions & Formulae 0 TYPES OF INTERVLS a) Open interval: If a and b be two real numbers such that a b then, the set of all the real numbers
More informationDefinition: A binary relation R from a set A to a set B is a subset R A B. Example:
Chapter 9 1 Binary Relations Definition: A binary relation R from a set A to a set B is a subset R A B. Example: Let A = {0,1,2} and B = {a,b} {(0, a), (0, b), (1,a), (2, b)} is a relation from A to B.
More informationElements and Chemical Bonds
CAPTER 11 LESSN 2 Elements and Chemical Bonds Compounds, Chemical Formulas, and Covalent Bonds Key Concepts ow do elements differ from the compounds they form? What are some common properties of a covalent
More informationModern Algebra Prof. Manindra Agrawal Department of Computer Science and Engineering Indian Institute of Technology, Kanpur
Modern Algebra Prof. Manindra Agrawal Department of Computer Science and Engineering Indian Institute of Technology, Kanpur Lecture 02 Groups: Subgroups and homomorphism (Refer Slide Time: 00:13) We looked
More information1.4 Equivalence Relations and Partitions
24 CHAPTER 1. REVIEW 1.4 Equivalence Relations and Partitions 1.4.1 Equivalence Relations Definition 1.4.1 (Relation) A binary relation or a relation on a set S is a set R of ordered pairs. This is a very
More information5. Which word describes the tone of
Name: Date: WEEK 36 1 Read the text and then answer the questions. What do you have in common with a pencil, a star, and a bird? The answer is matter. Everything in the universe, including the planets,
More informationFundamental Algorithms
Fundamental Algorithms Chapter 1: Introduction Jan Křetínský Winter 2016/17 Chapter 1: Introduction, Winter 2016/17 1 Part I Overview Chapter 1: Introduction, Winter 2016/17 2 Organization Extent: 2 SWS
More informationFundamental Algorithms
Fundamental Algorithms Chapter 1: Introduction Michael Bader Winter 2011/12 Chapter 1: Introduction, Winter 2011/12 1 Part I Overview Chapter 1: Introduction, Winter 2011/12 2 Organizational Stuff 2 SWS
More informationLESSON RELATIONS & FUNCTION THEORY
2 Definitions LESSON RELATIONS & FUNCTION THEORY Ordered Pair Ordered pair of elements taken from any two sets P and Q is a pair of elements written in small brackets and grouped together in a particular
More informationQUASI-PREFERENCE: CHOICE ON PARTIALLY ORDERED SETS. Contents
QUASI-PREFERENCE: CHOICE ON PARTIALLY ORDERED SETS ZEFENG CHEN Abstract. A preference relation is a total order on a finite set and a quasipreference relation is a partial order. This paper first introduces
More informationCS103 Handout 08 Spring 2012 April 20, 2012 Problem Set 3
CS103 Handout 08 Spring 2012 April 20, 2012 Problem Set 3 This third problem set explores graphs, relations, functions, cardinalities, and the pigeonhole principle. This should be a great way to get a
More information1 st Semester Exam Study Guide 1.) Which of the following is NOT a compound? Explain why. a. H2O b. O2
1 st Semester Exam Study Guide 1.) Which of the following is NOT a compound? Explain why. a. H2O b. O2 2.) A chemist has discovered what she thinks is a new molecule. In order for it to be a molecule,
More information1 / 9. Due Friday, May 11 th at 2:30PM. There is no checkpoint problem. CS103 Handout 30 Spring 2018 May 4, 2018 Problem Set 5
1 / 9 CS103 Handout 30 Spring 2018 May 4, 2018 Problem Set 5 This problem set the last one purely on discrete mathematics is designed as a cumulative review of the topics we ve covered so far and a proving
More informationRelations. P. Danziger. We may represent a relation by a diagram in which a line is drawn between two elements if they are related.
- 10 Relations P. Danziger 1 Relations (10.1) Definition 1 1. A relation from a set A to a set B is a subset R of A B. 2. Given (x, y) R we say that x is related to y and write xry. 3. If (x, y) R we say
More informationCOMP 182 Algorithmic Thinking. Relations. Luay Nakhleh Computer Science Rice University
COMP 182 Algorithmic Thinking Relations Luay Nakhleh Computer Science Rice University Chapter 9, Section 1-6 Reading Material When we defined the Sorting Problem, we stated that to sort the list, the elements
More informationì<(sk$m)=bdidjf< +^-Ä-U-Ä-U
Genre Comprehension Skill Text Features Science Content Nonfiction Cause and Effect Captions Labels Glossary Changes in Matter Scott Foresman Science 3.11 ì
More informationmeans is a subset of. So we say A B for sets A and B if x A we have x B holds. BY CONTRAST, a S means that a is a member of S.
1 Notation For those unfamiliar, we have := means equal by definition, N := {0, 1,... } or {1, 2,... } depending on context. (i.e. N is the set or collection of counting numbers.) In addition, means for
More informationComplexity Theory Part Two
Complexity Theory Part Two Recap from Last Time The Cobham-Edmonds Thesis A language L can be decided eficiently if there is a TM that decides it in polynomial time. Equivalently, L can be decided eficiently
More informationDiscrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009
Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009 Our main goal is here is to do counting using functions. For that, we
More informationGenerating Permutations and Combinations
Generating Permutations and Combinations March 0, 005 Generating Permutations We have learned that there are n! permutations of {,,, n} It is important in many instances to generate a list of such permutations
More informationRelations Graphical View
Introduction Relations Computer Science & Engineering 235: Discrete Mathematics Christopher M. Bourke cbourke@cse.unl.edu Recall that a relation between elements of two sets is a subset of their Cartesian
More information2 Lecture 2: Logical statements and proof by contradiction Lecture 10: More on Permutations, Group Homomorphisms 31
Contents 1 Lecture 1: Introduction 2 2 Lecture 2: Logical statements and proof by contradiction 7 3 Lecture 3: Induction and Well-Ordering Principle 11 4 Lecture 4: Definition of a Group and examples 15
More informationWeek 4-5: Generating Permutations and Combinations
Week 4-5: Generating Permutations and Combinations February 27, 2017 1 Generating Permutations We have learned that there are n! permutations of {1, 2,...,n}. It is important in many instances to generate
More informationNOTES ON FINITE FIELDS
NOTES ON FINITE FIELDS AARON LANDESMAN CONTENTS 1. Introduction to finite fields 2 2. Definition and constructions of fields 3 2.1. The definition of a field 3 2.2. Constructing field extensions by adjoining
More informationTOPOLOGICAL ASPECTS OF YAO S ROUGH SET
Chapter 5 TOPOLOGICAL ASPECTS OF YAO S ROUGH SET In this chapter, we introduce the concept of transmissing right neighborhood via transmissing expression of a relation R on domain U, and then we study
More informationChapter 2 - Relations
Chapter 2 - Relations Chapter 2: Relations We could use up two Eternities in learning all that is to be learned about our own world and the thousands of nations that have arisen and flourished and vanished
More informationLecture Notes 1 Basic Concepts of Mathematics MATH 352
Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Ivan Avramidi New Mexico Institute of Mining and Technology Socorro, NM 87801 June 3, 2004 Author: Ivan Avramidi; File: absmath.tex; Date: June 11,
More informationMath 300: Final Exam Practice Solutions
Math 300: Final Exam Practice Solutions 1 Let A be the set of all real numbers which are zeros of polynomials with integer coefficients: A := {α R there exists p(x) = a n x n + + a 1 x + a 0 with all a
More informationWeek 4-5: Binary Relations
1 Binary Relations Week 4-5: Binary Relations The concept of relation is common in daily life and seems intuitively clear. For instance, let X be the set of all living human females and Y the set of all
More informationLecture 3: Sizes of Infinity
Math/CS 20: Intro. to Math Professor: Padraic Bartlett Lecture 3: Sizes of Infinity Week 2 UCSB 204 Sizes of Infinity On one hand, we know that the real numbers contain more elements than the rational
More information1 Continuity and Limits of Functions
Week 4 Summary This week, we will move on from our discussion of sequences and series to functions. Even though sequences and functions seem to be very different things, they very similar. In fact, we
More informationChapter 7. Functions and onto. 7.1 Functions
Chapter 7 Functions and onto This chapter covers functions, including function composition and what it means for a function to be onto. In the process, we ll see what happens when two dissimilar quantifiers
More informationNotes on Abstract Interpretation
Notes on Abstract Interpretation Alexandru Sălcianu salcianu@mit.edu November 2001 1 Introduction This paper summarizes our view of the abstract interpretation field. It is based on the original abstract
More information3. R = = on Z. R, S, A, T.
6 Relations Let R be a relation on a set A, i.e., a subset of AxA. Notation: xry iff (x, y) R AxA. Recall: A relation need not be a function. Example: The relation R 1 = {(x, y) RxR x 2 + y 2 = 1} is not
More informationSelected problems from past exams
Discrete Structures CS2800 Prelim 1 s Selected problems from past exams 1. True/false. For each of the following statements, indicate whether the statement is true or false. Give a one or two sentence
More informationQUESTION BANK II PUC SCIENCE
QUESTION BANK II PUC SCIENCE I. Very Short answer questions. (x9=9). Define Symmetric relation. Ans: A relation R on the set A is said to be symmetric if for all a, b, A, ar b Implies bra. i.e. (a, b)
More informationChemical reactions are processes in which the atoms of one or more substances are rearranged to form different chemical compounds.
Chapter 11 Chemical Reactions Notes Chemical Reactions: Chemical reactions are processes in which the atoms of one or more substances are rearranged to form different chemical compounds. How to tell if
More information2/22/2019 NEW UNIT! Chemical Interactions. Atomic Basics #19
NEW UNIT! Chemical Interactions Atomic Basics #19 1 Vocabulary: Matter: Anything that has mass and takes up space. Atom: the smallest particle of matter. Element: A pure substance made up of only one type
More informationNotes. Relations. Introduction. Notes. Relations. Notes. Definition. Example. Slides by Christopher M. Bourke Instructor: Berthe Y.
Relations Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry Spring 2006 Computer Science & Engineering 235 Introduction to Discrete Mathematics Sections 7.1, 7.3 7.5 of Rosen cse235@cse.unl.edu
More information3. Watch video All About Solids, Liquids, & Gases. Watch first eight minutes.
Structure and Transformation of Matter Original (2008) Lesson Plan I can classify matter into different categories. I can describe the differences between solid, liquid, and gas. Lesson 1: Search for Matter
More informationMatter, mass, and volume are related.
Suppose you had all of the parts needed to make an at home aquarium: a tank, water, rocks, plants, and some fish. To put the aquarium together, you would need to arrange the rocks and plants in the tank.
More informationMath 38: Graph Theory Spring 2004 Dartmouth College. On Writing Proofs. 1 Introduction. 2 Finding A Solution
Math 38: Graph Theory Spring 2004 Dartmouth College 1 Introduction On Writing Proofs What constitutes a well-written proof? A simple but rather vague answer is that a well-written proof is both clear and
More informationTwo-Color Counters. KEY TERM additive inverses
Two-Color Counters Adding Integers, Part II 3 WARM UP Use a number line to determine each sum. Then write a sentence to describe the movement you used on the number line to compute the sum of the two integers.
More informationFoundations of Mathematics
Foundations of Mathematics Andrew Monnot 1 Construction of the Language Loop We must yield to a cyclic approach in the foundations of mathematics. In this respect we begin with some assumptions of language
More informationThe Gauss-Jordan Elimination Algorithm
The Gauss-Jordan Elimination Algorithm Solving Systems of Real Linear Equations A. Havens Department of Mathematics University of Massachusetts, Amherst January 24, 2018 Outline 1 Definitions Echelon Forms
More informationVector Spaces. 9.1 Opening Remarks. Week Solvable or not solvable, that s the question. View at edx. Consider the picture
Week9 Vector Spaces 9. Opening Remarks 9.. Solvable or not solvable, that s the question Consider the picture (,) (,) p(χ) = γ + γ χ + γ χ (, ) depicting three points in R and a quadratic polynomial (polynomial
More informationThe Inductive Proof Template
CS103 Handout 24 Winter 2016 February 5, 2016 Guide to Inductive Proofs Induction gives a new way to prove results about natural numbers and discrete structures like games, puzzles, and graphs. All of
More informationToday is Tuesday, May (!) 1 st, 2018
In This Lesson: Stoichiometry (Lesson 4 of 4) Today is Tuesday, May (!) 1 st, 2018 Stuff You Need: Calculator Periodic Table Pre-Class: How does an airbag work? In solving a problem of this sort, the grand
More informationFoundations of Mathematics MATH 220 FALL 2017 Lecture Notes
Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes These notes form a brief summary of what has been covered during the lectures. All the definitions must be memorized and understood. Statements
More informationRelations --- Binary Relations. Debdeep Mukhopadhyay IIT Madras
Relations --- Binary Relations Debdeep Mukhopadhyay IIT Madras What is a relation? The mathematical concept of relation is based on the common notion of relationships among objects: One box is heavier
More informationMetric spaces and metrizability
1 Motivation Metric spaces and metrizability By this point in the course, this section should not need much in the way of motivation. From the very beginning, we have talked about R n usual and how relatively
More information5 th Grade Lesson Plan: Matter and Chemical Reactions
5 th Grade Lesson Plan: Matter and Chemical Reactions Objective: Teach students that matter is neither created nor destroyed during a chemical reaction, rather, it is transformed. Identify evidence that
More informationCSC236 Week 3. Larry Zhang
CSC236 Week 3 Larry Zhang 1 Announcements Problem Set 1 due this Friday Make sure to read Submission Instructions on the course web page. Search for Teammates on Piazza Educational memes: http://www.cs.toronto.edu/~ylzhang/csc236/memes.html
More information2. Prime and Maximal Ideals
18 Andreas Gathmann 2. Prime and Maximal Ideals There are two special kinds of ideals that are of particular importance, both algebraically and geometrically: the so-called prime and maximal ideals. Let
More information