Docsity

Equivalence Relations - Lecture Notes | MAD 2104, Study notes of Discrete Mathematics

Partial preview of the text

Download Equivalence Relations - Lecture Notes | MAD 2104 and more Study notes Discrete Mathematics in PDF only on Docsity!

§14.EQUIVALENCE RELATIONS

An important type of rela/on on a set A is given next.

DEFINITION. A rela/on R on a set A is called an equivalence rela/on if

it sa/sfies simultaneously these three proper/es:

  1. R is reflexive , that is, aRa for every a ∈ A
  2. R is symmetric , that is, whenever aRb we have bRa
  3. R is transi.ve , that is, whenever aRb and bRc, we have aRc.

Let us see some examples: a) In A=Z define aRb if a divides b. This R is reflexive and transi/ve, but is not symmetric (2 divides 4 but 4 does not divide 2). Hence it is not an equivalence rela/on. b) In A = N define aRb if a < b. This R is not reflexive, is not symmetric but is transi/ve. Hence it is not an equivalence rela/on. c) In A = 2X^ define BRC if B ⊆ C. This R is reflexive and transi/ve. But is not symmetric. Hence it is not an equivalence rela/on. d) In A=Z define aRb if |b−a| < 2. In other words, two integers will be related by R if and only if they are at most 1 unit apart. This R is reflexive and symmetric, but is not transi/ve. Hence it is not an equivalence rela/on.

h) Let A be the set of squares in the xy‐plane. Two squares will be related by R if they have a common side. This R is reflexive and symmetric. However, it is not transi/ve (why?) Hence it is not an equivalence rela/on. R reflexive means that for every a in A the pair (a, a) is in the rela/on. Refer to the defini/on of equivalence rela/on to rephrase it in terms of pairs: R symmetric means that whenever the pair (a, b) is in the rela/on, so is the pair (b, a) R transi/ve means that whenever the pairs (a, b) and (b, c) are in the rela/on, so is the pair (a, c)

Another prac/cal representaGon emerges when we use connectors: indicate with a path from a to b that aRb. In this visualiza/on, As the course progresses we will make use of a fundamental equivalence rela/on on the set of integers. Here is its defini/on. R reflexive means that for every a in A we have a loop from a to a R symmetric means that whenever there is a path from a to b, there is also a path from b to a. R transi/ve means that whenever there is a path from a to b, and also a path from b to c, then there is a path from a to c.

For instance, we have 17 ≡ 9 (mod 4) because 17 − 9 = 8, a mul/ple of 4. Likewise, 13 ≡ −11 (mod 4) because 13 − (−11) = 24, a mul/ple of 4.

THEOREM. The congruence mod n is an equivalence rela/on on Z.

Proof. We leave the first two properGes as an exercise. Let us show here that the rela/on is transi/ve. So assume aRb and bRc. This translates into, a ≡ b (mod n) and b ≡ c (mod n). We need to show that aRc, that is, a ≡ c (mod n).

We have a statement of the form “if A, then B”,where A means a ≡ b (mod n) and b ≡ c (mod n) and B means a ≡ c (mod n). Unravel A: a ≡ b (mod n) means a − b = ns, for some integer s b ≡ c (mod n) means b − c = nt, for some integer t Unravel B : a ≡ c (mod n) means a − c = nw, for some integer w.

Observe that since R is symmetric, we could have wriien it as well as [a] = {x ∈ A; aRx}. In words, the equivalence class of a is the set of elements with “same airibute as a” under the given rela/on R.

EXAMPLES.

a) In N define xRy if the sum of their digits coincide. This is an equivalence rela/on. (Verify this. ) Let us find the class of 2, that is, [2]. We have [2] = {x; the digits of x are one 2 and 0’s, or two 1’s and 0’s}. This can be wriien simply as [2] = {10k^ + 10j; with k, j ≥ 0}. ( Exercise! ) As an illustra/on, we have 10010 = 10^4 + 10^1 ; 2 = 10^0 + 10^0 and 2000 = 10^3 +

b) Let A be the set of subsets of {3, 4, 5}. On A declare two sets related if they have the same size. This is an equivalence rela/on ( Exercise !). The class of the set {3, 5} is made up of {3, 5}, {3, 4} and {4, 5}. c) Take a ≡ b (mod 2) on Z. The class of 1 is [1] = {x; x is odd} and [2] = {y; y is even}. Observe that the class of 3 coincides with [1] because mR3 if and only if m ≡ 3 (mod 2) (by defini/on of congruence) and since 3 is odd, m must be so. d) Take a ≡ b (mod 3) on Z. We therefore have [0] ={3k; with k ∈ Z }, [1] = {1 + 3k; with k ∈ Z }, [2]={2 +3k; with k ∈ Z }. There are no more classes, since they start repea/ng. To be precise, [0]=[3]=[6] etc;[1]=[4]=[7]= etc; [2]=[5]=[8] = etc.

For [a] ⊆ [b] we pick x ∈ [a] so xRa. Since bRa, then aRb (symmetry). Hence we have xRa and aRb. Therefore, xRb(transi/ve) and so x ∈ [b]. We have proved that [a] ⊆ [b] For [b] ⊆ [a], pick any y ∈ [b], so yRb. Since bRa, then yRa (transi/ve). Thus, y ∈ [a]. We have proved that [b] ⊆ [a]. In conclusion, [a]=[b]. ⇐ Obvious. In fact since R is reflexive, bRb, so b ∈ [b]. By hypothesis, [a]=[b] so b ∈ [a], as desired. The proposi/on has been proved completely.

PROPOSITION. Let R be an equivalence rela/on on a set A. Then, any

two different equivalence classes are disjoint. Proof. Observe that the statement claims that two classes are either equal or they are disjoint.

Suppose for sake of a contradic/on that two classes [a] and [b] are dis/nct but are not disjoint. Hence, we can pick an element z ∈ [a] ∩ [b]. Therefore, zRa and also zRb. Thus, aRz and zRb. Since R is transi/ve we have aRb. By the previous proposi/on, [a] = [b], a contradic/on. We have already at our disposal to present the following

THEOREM. If R is an equivalence rela/on on a set A then the

equivalence classes sa/sfy the following three condi/ons: a) they are non empty b) they are pairwise disjoint c) their union is the set A.

In example d) we dealt with A = Z and congruence mod 3. We found three equivalence classes: [0], [1] and [2] (Review our computa/ons, which showed that there were no more classes!). We see that they are non empty and they are pairwise disjoint. Our theorem thus states that the dis/nct classes associated to a given equivalence rela/on “par//on” ( or “fragment”) the set A into blocks that are disjoint and that when put together reconstruct the original set A. Of course, even if A is kept fixed we can define different equivalence rela/ons on it. Each rela/on will par//on A in a different way, as we saw above in the examples c) and d). Let us see that their union is Z. Take any integer z. Reduce it mod 3. Therefore, z = 3q + r, with r = 0, 1 or 2. In the first case, z = 3q, so z ∈ [0]. In the second case, z = 3q +1, so z ∈ [1] and finally, if r = 2, z = 3q + 2 and so z ∈ [2]. We have verified that the union of the three equivalence classes is Z, as asserted in our theorem.

In our next sec/on we will discuss more deeply the no/on of par//on.

IMPORTANT. See the addiGonal illustraGons given in SecGon 14,

Syllabus. Terminology is important, so please be precise when using it. No/ce the difference between equivalence rela/on, equivalence class, equivalent (or related) elements. Observe that “this element is reflexive” makes no sense: “the rela/on is reflexive” does. Likewise, “a is reflexive with a” is a non‐ sense: “a is related to a” is the proper statement. Please review the defini/ons with extra care.