Relations: Transition To Higher Mathematics
Relations: Transition To Higher Mathematics
MAT231
Fall 2014
1 Relations
2 Properties of Relations
3 Equivalence Relations
5 Partial Orders
6 Hasse Diagrams
Relations may or may not have meaning associated with them. Two
numbers are related by R if they are equal. We see that x S y if x and y
have the same parity.
L = {(1, 2), (1, 3), (1, 4), (1, 5), (1, 6), (2, 3), (2, 4), (2, 5), (2, 6),
(3, 4), (3, 5), (3, 6), (4, 5), (4, 6), (5, 6)}.
Note that usually we use the symbol < as the name for L.
D = {(1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), (2, 2), (2, 4), (2, 6),
(3, 3), (3, 6), (4, 4), (5, 5), (6, 6)}
The symbol | is usually used to denote this relation (as we have, somewhat
recursively, in our definition of D).
1 4 1 4
6 5 6 5
Proposition
The relation | on the set Z is reflexive.
Proof.
Suppose x ∈ Z. Since x = 1 · x we know that x|x. Thus, the relation | is
reflexive on Z.
Proposition
The relation | on the set Z is transitive.
Proof.
Suppose x, y , z ∈ Z and x|y and y |z. Integers a and b must exist such
that y = ax and z = by . But then z = b(ax) = (ab)x and so x|z. Thus, |
is transitive on the integers.
x
The graph of a symmetric relation will not have an edge from x to y
unless there is also an edge from y to x.
x y
Consider the following relations on the set {1, 2, 3, 4}. Determine which
ones are reflexive, symmetric, antisymmetric or transitive.
R1 = {(1, 1), (1, 2), (2, 1), (2, 2), (3, 4), (4, 1), (4, 4)}
R2 = {(1, 1), (1, 2), (2, 1)}
R3 = {(1, 1), (1, 2), (1, 4), (2, 1), (2, 2), (3, 3), (4, 1), (4, 4)}
R4 = {(2, 1), (3, 1), (3, 2), (4, 1), (4, 2), (4, 3)}
R5 =
{(1, 1), (1, 2), (1, 3), (1, 4), (2, 2), (2, 3), (2, 4), (3, 3), (3, 4), (4, 4)}
R6 = {(3, 4)}
1 2
4 3
1 2
4 3
1 2
4 3
1 2
4 3
R3 = {(1, 1), (1, 2), (1, 4), (2, 1), (2, 2), (3, 3), (4, 1), (4, 4)}
R3 = {(1, 1), (1, 2), (1, 4), (2, 1), (2, 2), (3, 3), (4, 1), (4, 4)}
1 2
4 3
R3 = {(1, 1), (1, 2), (1, 4), (2, 1), (2, 2), (3, 3), (4, 1), (4, 4)}
1 2
4 3
Reflexive.
Symmetric.
Not antisymmetric.
Not transitive; (4, 1), (1, 2) ∈ R3 but (4, 2) ∈
/ R3 .
R4 = {(2, 1), (3, 1), (3, 2), (4, 1), (4, 2), (4, 3)}
R4 = {(2, 1), (3, 1), (3, 2), (4, 1), (4, 2), (4, 3)}
1 2
4 3
R4 = {(2, 1), (3, 1), (3, 2), (4, 1), (4, 2), (4, 3)}
1 2
4 3
Not reflexive.
Not symmetric.
Antisymmetric; no symmetric pairs.
Transitive.
1 2
4 3
1 2
4 3
Reflexive.
Not symmetric.
Antisymmetric; no symmetric pairs.
Transitive.
1 2
4 3
Reflexive.
Not symmetric.
Antisymmetric; no symmetric pairs.
Transitive.
1 2
4 3
1 2
4 3
Not reflexive.
Not symmetric.
Antisymmetric.
Transitive.
1 2
4 3
Not reflexive.
Not symmetric.
Antisymmetric.
Transitive.
This is transitive since there are now “double hops” in the graph without a
short cut edge
Definition
A relation R on a set A is an equivalence relation if it is reflexive,
symmetric and transitive.
Some examples:
Suppose R = {(a, b) : a and b were born in the same month} and is
defined on the set of people in this room. Then
[1] = {1, 2}, [2] = {1, 2}, [3] = {3, 4}, [4] = {3, 4}
Theorem
Let R be an equivalence relation on A. The following statements are
equivalent.
1 aR b
2 [a] = [b]
3 [a] ∩ [b] 6= ∅
Proof.
1 ⇒ 2: a R b ⇒ [a] = [b].
[a] = {c ∈ A : (a, c) ∈ R}
= {c ∈ A : (c, a) ∈ R} R is symmetric
= {c ∈ A : (c, b) ∈ R} a R b and R is transitive
= {c ∈ A : (b, c) ∈ R} R is symmetric
= [b]
Proof.
(Continued)
2 ⇒ 3: [a] = [b] ⇒ [a] ∩ [b] 6= ∅.
Let a, b ∈ A such that [a] = [b]. Then, since a ∈ [a] we
know that a ∈ [b]. This means a ∈ [a] ∩ [b] so [a] ∩ [b] 6= ∅.
3 ⇒ 1: [a] ∩ [b] 6= ∅ ⇒ a R b.
Let c ∈ [a] ∩ [b], which is possible since we know this set is
nonempty. Therefore c ∈ [a] and c ∈ [b] so c R a and c R b.
Since R is symmetric we know a R c and since R is transitive
we can conclude that a R b.
Proposition
Let n ∈ N. The relation ≡ (mod n) on the set Z is reflexive, symmetric,
and transitive, i.e., it is an equivalence relation.
Proof.
To see that ≡ (mod n) is reflexive, suppose a ∈ Z and note that
n|(a − a) since n|0. Therefore a ≡ a (mod n).
To show ≡ (mod n) is symmetric, suppose a ≡ b (mod n) for some
a, b ∈ Z. Then n|(a − b) so a − b = kn for some k ∈ Z. However, this
means that b − a = (−k)n so n|(b − a) and therefore b ≡ a (mod n).
(Continued next slide)
Proof.
(Continued)
Finally, to show ≡ (mod n) is transitive, suppose a ≡ b (mod n) and
b ≡ c (mod n) for some a, b, c ∈ Z. Then
so
a = b + jn and b = c + kn
for some j, k ∈ Z. From this we see that
a = (c + kn) + jn = c + (j + k)n
On the one hand, the sum of numbers from [2] and [4] was a number from
[1] while on the other hand the product of numbers from [2] and [4] was a
number from [3].
Let’s try two pairs from another set of equivalence classes, say [2] and [3].
Once again, it seems that when we add a number from [2] to a number
from [3] we obtain a number from [0]. Similarly, when we multiply a
number from [2] by a number from [3] we find the product is from [1].
These examples suggest that we can define addition and multiplication for
Z5 as
[a] + [b] = [a + b]
[a] · [b] = [a · b]
Notice that [a] and [b] are sets, not numbers. Notice also that by this
definition addition and multiplication are closed on Z5 .
+ [0] [1] [2] [3] [4] · [0] [1] [2] [3] [4]
[0] [0] [1] [2] [3] [4] [0] [0] [0] [0] [0] [0]
[1] [1] [2] [3] [4] [0] [1] [0] [1] [2] [3] [4]
[2] [2] [3] [4] [0] [1] [2] [0] [2] [4] [1] [3]
[3] [3] [4] [0] [1] [2] [3] [0] [3] [1] [4] [2]
[4] [4] [0] [1] [2] [3] [4] [0] [4] [3] [2] [1]
Notice the patterns in each of the tables. In particular, notice that while
the order changes, every row and every column contain all five values [0],
[1], [2], [3], and [4].
For example
It is important to note that [a] and [b] are sets and not numbers. As long
as
[a] = [a0 ] and [b] = [b 0 ]
we should find that [a] + [b] will equal [a0 ] + [b 0 ] regardless of which
particular a0 and b 0 are used.
The relations we’ve seen so far have been relations on a set. We can also
have relations between sets.
Definition
A relation from a set A to a set B is a subset R ⊆ A × B.
Definition
The elements a and b of a poset (S, ) are called comparable if either
a b or b a. When a and b are elements of S such that neither a b
or b a, a and b are called incomparable.
Consider (Z, |). The numbers 3 and 6 are comparable since 3|6 is true.
The numbers 3 and 5 are not comparable since neither 3|5 nor 5|3 is true.
Definition
If (S, ) is a poset and every two elements of S are comparable, then
(S, ) is called a totally ordered set and is called a total order.
For example, (Z, ≤) is a totally ordered set while (Z, |) is not totally
ordered.
Original graph Partial orders are Partial orders are If we always draw
reflexive so we can transitive so we arrows up, we can
omit loop edges can omit “short omit arrowheads.
cut” edges This is called a
Hasse Diagram.
3 3 3 3
2 2 2 2
1 1 1 1
Exercise: Construct the Hasse Diagram for ({2, 5, 8, 10, 20}, |).
Exercise: Construct the Hasse Diagram for ({2, 5, 8, 10, 20}, |).
20
8 10
2 5
Exercise: Construct the Hasse Diagram for ({2, 5, 8, 10, 20}, |).
8 10
2 5
Exercise: Construct the Hasse Diagram for ({2, 5, 8, 10, 20}, |).
8 10
2 5
Exercise: Construct the Hasse Diagram for ({2, 5, 8, 10, 20}, |).
If there is a single
maximal element it is 8 10
the greatest element.
If there is more than one
maximal element then
there is no greatest 2 5
element.
Exercise: Construct the Hasse Diagram for ({2, 5, 8, 10, 20}, |).
Definition
Let A be a subset of S from a poset (S, R). The upper bounds of A are
the elements that are “above” every element in A in a Hasse diagram.
This means that that every upper bound can be obtained by tracing up
from each element in A.
The lower bounds of A are defined in a similar way; they are “below” all
elements in A in a Hasse diagram.
The least upper bound of A is the “lowest” of the upper bounds of A and
the greatest lower bound of A is the “highest” of the lower bounds of A.
j
If A = {a, b, c} the upper bounds of
h A are {e, g , h, j} and the least upper
bound is e. The lower bounds of A
f g are {a} so the greatest lower bound
is a.