7.2 Workshop 2 (Reading)

7.2.1 Preparatory Exercises (45 mins)

Task 7.11.

Read the following proofs.

  1. 1.

    Are there are sections which are unclear or unconvincing to you?

  2. 2.

    Identify the structure of the proofs. Highlight each line where a definition is used.

  3. 3.

    What is similar about the two proofs? What is different? Can you find a general template for showing a relation is an equivalence relation?

Theorem.

Let mm\in\mathbb{N}. Congruence modulo mm on the set \mathbb{Z} is an equivalence relation.

Proof.

To show that congruence modulo mm is an equivalence relation, we need to show it is reflexive, symmetric and transitive.

First we show that a=bmodma=b\mod m is reflexive. Take any integer xx\in\mathbb{Z}, and observe that m|0m|0, so m|(xx)m|(x-x) for any mm. By definition of congruence modulo mm, we have x=xmodmx=x\mod m. This shows x=xmodmx=x\mod m for every xx\in\mathbb{Z}, so a=bmodma=b\mod m is reflexive.

Next, we will show that a=bmodma=b\mod m is symmetric. For this, we must show that for all x,yx,y\in\mathbb{Z}, the condition x=ymodmx=y\mod m implies that y=xmodmy=x\mod m. We use a direct proof. Suppose x=ymodmx=y\mod m. Thus m|(xy)m|(x-y) by definition of congruence modulo mm. Then xy=max-y=ma for some aa\in\mathbb{Z} by definition of divisibility. Multiplying both sides by 1-1 gives yx=m(a)y-x=m(-a). Therefore m|(yx)m|(y-x), and this means y=xmodmy=x\mod m. We’ve shown that x=ymodmx=y\mod m implies that y=xmodmy=x\mod m, and this means a=bmodma=b\mod m is symmetric.

Finally we will show that a=bmodma=b\mod m is transitive. For this we must show that if x=ymodmx=y\mod m and y=zmodmy=z\mod m, then x=zmodmx=z\mod m. Again, we use direct proof. Suppose x=ymodmx=y\mod m and y=zmodmy=z\mod m. This means m|(xy)m|(x-y) and m|(yz)m|(y-z). Therefore there are integers aa and bb for which xy=max-y=ma and yz=mby-z=mb. Therefore, we obtain (xy)+(yz)=xz=ma+mb(x-y)+(y-z)=x-z=ma+mb. Consequently, xz=m(a+b)x-z=m(a+b) with a+ba+b\in\mathbb{Z}, and so m|(xz)m|(x-z). Hence x=zmodmx=z\mod m. This completes the proof that congruence modulo mm is transitive.

We have shown that congruence modulo mm is reflexive, symmetric and transitive, and hence an equivalence relation.

Theorem.

Let XX be the set of all sets and \sim be a relation on XX such that ABA\sim B if and only if there exists a bijective function f:ABf:A\to B where A,BXA,B\in X. Then \sim is an equivalence relation.

Proof.

Recall that a bijective function is both surjective and injective.

  • To show \sim is reflexive, consider the identity function idA:AAid_{A}:A\to A where idA(a)=aid_{A}(a)=a for all aAa\in A. This is a bijective function. Indeed, idA(a)=idA(b)id_{A}(a)=id_{A}(b) implies a=ba=b for all a,bAa,b\in A immediately from the definition of idAid_{A} so this function is injective. It is also surjective since y=idA(y)y=id_{A}(y) for all yAy\in A.

  • For \sim to be symmetric, recall that bijective functions are invertible. Therefore, if ABA\sim B, then there exists a bijection f:ABf:A\to B. As this is a bijection, there exists f1:BAf^{-1}:B\to A which is also a bijection meaning BAB\sim A so \sim is symmetric.

  • For transitivity, recall that the composition of bijective functions is a bijection by Proposition 6.47 so if ABA\sim B and BCB\sim C, then there exist bijections f:ABf:A\to B and g:BCg:B\to C. Consider gf:ACg\circ f:A\to C. As both ff and gg are bijections, then gfg\circ f is also a bijection so ACA\sim C.

We have shown that \sim is reflexive, symmetric and transitive meaning it is an equivalence relation.

7.2.2 B4 Reading Workshop Supplementary Material

For Task B4.2.1:

Definition.

Let \sim be a relation on a set XX. We call \sim cyclic if, for every a,b,cXa,b,c\in X such that aba\sim b and bcb\sim c, we have cac\sim a.

Proposition.

Let \sim be a relation over a set XX.

\sim is an equivalence relation if and only if \sim is reflexive and cyclic.

Proof.

Let \sim be a relation over a set XX.

We first assume that \sim is an equivalence relation and aim to show that it is reflexive and cyclic.

Since \sim is an equivalence relation, we know that \sim is reflexive, symmetric, and transitive. Consequently, \sim is reflexive, so we just need to show that \sim is cyclic.

To prove that \sim is cyclic, let a,b,cXa,b,c\in X where aba\sim b and bcb\sim c. We need to show that cac\sim a. As aba\sim b and bcb\sim c and since \sim is transitive, aca\sim c. Then, since \sim is symmetric, we see that cac\sim a, which is what we needed to prove.

Hence, if \sim is an equivalence relation, it is reflexive and cyclic.

On the other hand, assuming \sim is reflexive and cyclic, we can prove that \sim is an equivalence relation. We need to show that \sim is reflexive, symmetric, and transitive. Since we already know by assumption that \sim is reflexive, we just need to show that \sim is symmetric and transitive.

First, we prove that \sim is symmetric. To do so, consider any arbitrary a,bXa,b\in X where aba\sim b holds. Since \sim is reflexive, we know that aaa\sim a. Therefore, by cyclicity, since aaa\sim a and aba\sim b, we learn that bab\sim a meaning \sim is symmetric.

Finally, we prove that \sim is transitive. Let a,ba,b, and cc be any elements of XX where aba\sim b and bcb\sim c. We need to prove that aca\sim c. Since \sim is cyclic, from aba\sim b and bcb\sim c we see that cac\sim a. We’ve already proven \sim is symmetric so we also have aca\sim c and so \sim is transitive.

Hence, if \sim is reflexive and cyclic then it is reflexive, symmetric and transitive, and so (by definition) \sim is an equivalence relation.

Overall, we have shown that \sim is cyclic and reflexive if and only if it is an equivalence relation.

For Task B4.2.2:

Claim.

The relation \sim on

F={(p,q):p,q,q0},F=\left\{(p,q):p,q\in\mathbb{Z},q\neq 0\right\},

defined by (a,b)(c,d)ad=bc(a,b)\sim(c,d)\iff ad=bc for all (a,b),(c,d)F(a,b),(c,d)\in F is an equivalence relation.

Proof.

We first show that \sim is reflexive i.e. …for every xFx\in F. So suppose xFx\in F. Then there exist a,ba,b\in\mathbb{Z} with b0b\neq 0 such that …. Then …since a,ba,b\in\mathbb{Z}. So …and thus, \sim is reflexive.

Next we show that \sim is symmetric. So we need to prove that …for every x,yFx,y\in F. So suppose x,yFx,y\in F such that …. Then there exist …where b,d0b,d\neq 0 such that x=(a,b)x=(a,b) and y=(c,d)y=(c,d). Since …, we have (a,b)(c,d)(a,b)\sim(c,d) and thus …. This means that …. Therefore …and thus yxy\sim x, which proves that \sim is symmetric.

Finally, to show that \sim is transitive, we need to prove that …for all x,y,zFx,y,z\in F. So suppose that x,y,zFx,y,z\in F such that …. Then there exist a,b,c,d,e,fa,b,c,d,e,f\in\mathbb{Z} where …such that x=(a,b)x=(a,b), y=(c,d)y=(c,d) and z=(e,f)z=(e,f). Since xyx\sim y and yzy\sim z, we have …. This means that …. Thus, …, since f0f\neq 0. Hence,

\ldots

since d0d\neq 0. Thus, (a,b)(e,f)(a,b)\sim(e,f) which means that …. Hence, \sim is transitive.

Having shown that \sim is …, we’ve therefore shown \sim is an equivalence relation on FF.

For Task B4.2.3:

Theorem.

Let XX be a non-empty set and let \sim be an equivalence relation on the set XX. Then, for all x,yXx,y\in X:

  1. (a)

    x[x]x\in[x].

  2. (b)

    xyx\sim y if and only if [x]=[y][x]=[y].

  3. (c)

    Either [x]=[y][x]=[y] or [x][y]=∅︀[x]\cap[y]=\emptyset.

Proof.

(The lines of this proof are numbered to aid your discussion.)

  1. (a)
    1. 1.

      Let xXx\in X. As \sim is an equivalence relation on XX, then by reflexivity, we necessarily have that xxx\sim x. Therefore x[x]x\in[x] by the definition of an equivalence class.

  2. (b)
    1. 1.

      We first show that if xyx\sim y, then [x]=[y][x]=[y]. We are therefore showing that two sets are equal so we need to show that [x][y][x]\subseteq[y] and vice versa.

    2. 2.

      Let a[x]a\in[x]. Then xax\sim a by the definition of an equivalence class. By assumption xyx\sim y and, by the transitivity and symmetry of \sim, we therefore have yay\sim a so a[y]a\in[y]. Therefore [x][y][x]\subseteq[y]

    3. 3.

      Similarly, if b[y]b\in[y], then yby\sim b and, by transitivity with xyx\sim y, xbx\sim b so b[x]b\in[x] and [y][x][y]\subseteq[x].

    4. 4.

      We have then shown that if xyx\sim y, then [x]=[y][x]=[y]. On the other hand, we assume [x]=[y][x]=[y] and show that xyx\sim y.

    5. 5.

      By (a), we have that x[x]x\in[x] so, as [x]=[y][x]=[y], we have that x[y]x\in[y]. By definition, this means xyx\sim y.

    6. 6.

      This completes the proof for (b).

  3. (c)
    1. 1.

      Consider the set [x][y][x]\cap[y].

    2. 2.

      Case 1: [x][y][x]\cap[y] is non-empty.

    3. 3.

      This means there is an element aXa\in X such that a[x]a\in[x] and a[y]a\in[y]. As a[x]a\in[x], then xax\sim a so, by (b), [x]=[a][x]=[a]. Similarly, [y]=[a][y]=[a]. Hence, [x]=[y][x]=[y].

    4. 4.

      Case 2: [x][y][x]\cap[y] is empty.

    5. 5.
    6. 6.

      As the intersection must be either empty or non-empty, we have covered all possible cases and hence, we must have either [x]=[y][x]=[y] or [x][y]=∅︀[x]\cap[y]=\emptyset.

7.2.3 Workshop Tasks

Task 7.12 (Warm Up (10 mins)).

Take a look at your proofs from the Reading Preparatory exercises.

  1. 1.

    Were there any parts of the proofs that you found unconvincing or difficult to understand? Can you work as a group to resolve these issues?

  2. 2.

    Share the general template for a proof that a relation is an equivalence relation with the rest of your group. How does it compare to the other general proof templates we’ve already seen? Are there any parts of your proof template that can change position within the proof?

  3. 3.

    Read the following argument. What is wrong with it?

    “Let XX be some set and suppose \sim is a symmetric and transitive relation on XX. We claim that \sim is reflexive.

    Suppose that a,bXa,b\in X. If aba\sim b, then bab\sim a by symmetry. But if aba\sim b and bab\sim a then by transitivity, aaa\sim a so \sim is reflexive.”

EXTENSION: Is it true that every symmetric and transitive relation is also reflexive? If yes, prove it. If no, find a counterexample.

Task 7.13 (15 mins).

(B4.2.1) In your supplementary material for this workshop, you’ve been given a definition, proposition and proof for this task, split into two subproofs, one for each direction of the statement.

  1. 1.

    Read the definition of a cyclic relation, draw a diagram to represent it and find one example and one non-example. How is it different to a transitive relation?

  2. 2.

    Read the proposition and proof. Are there any parts of the proof that your group does not fully understand or is not convinced by? Can you identify the standard proof structure of each subproof? If we change the order of these subproofs, is the overall proof still correct?

  3. 3.

    Is it true that \sim is an equivalence relation if and only if \sim is cyclic? Work through the original proof and see what changes need to be made. Can it be tweaked to prove this new statement? If you think the statement is false, find a counterexample for it.

  4. 4.

    EXTENSION: Is the proposition true if we replace “reflexive” with “symmetric” or “transitive”? Prove your claims.

Definition.

Let \sim be a relation on a set XX. We call \sim cyclic if, for every a,b,cXa,b,c\in X such that aba\sim b and bcb\sim c, we have cac\sim a.

Proposition.

Let \sim be a relation over a set XX.

\sim is an equivalence relation if and only if \sim is reflexive and cyclic.

Proof.

Let \sim be a relation over a set XX.

We first assume that \sim is an equivalence relation and aim to show that it is reflexive and cyclic.

Since \sim is an equivalence relation, we know that \sim is reflexive, symmetric, and transitive. Consequently, \sim is reflexive, so we just need to show that \sim is cyclic.

To prove that \sim is cyclic, let a,b,cXa,b,c\in X where aba\sim b and bcb\sim c. We need to show that cac\sim a. As aba\sim b and bcb\sim c and since \sim is transitive, aca\sim c. Then, since \sim is symmetric, we see that cac\sim a, which is what we needed to prove.

Hence, if \sim is an equivalence relation, it is reflexive and cyclic.

On the other hand, assuming \sim is reflexive and cyclic, we can prove that \sim is an equivalence relation. We need to show that \sim is reflexive, symmetric, and transitive. Since we already know by assumption that \sim is reflexive, we just need to show that \sim is symmetric and transitive.

First, we prove that \sim is symmetric. To do so, consider any arbitrary a,bXa,b\in X where aba\sim b holds. Since \sim is reflexive, we know that aaa\sim a. Therefore, by cyclicity, since aaa\sim a and aba\sim b, we learn that bab\sim a meaning \sim is symmetric.

Finally, we prove that \sim is transitive. Let a,ba,b, and cc be any elements of XX where aba\sim b and bcb\sim c. We need to prove that aca\sim c. Since \sim is cyclic, from aba\sim b and bcb\sim c we see that cac\sim a. We’ve already proven \sim is symmetric so we also have aca\sim c and so \sim is transitive.

Overall, we have shown that \sim is cyclic and reflexive if and only if it is an equivalence relation.

Task 7.14 (15 mins).

(B4.2.2)

Consider the set

F={(p,q):p,q,q0},F=\left\{(p,q):p,q\in\mathbb{Z},q\neq 0\right\},

and let \sim be the relation defined on FF such that (a,b)(c,d)ad=bc(a,b)\sim(c,d)\iff ad=bc for all (a,b),(c,d)F(a,b),(c,d)\in F.

  1. 1.

    Find three elements of FF that are related under \sim and another element that is not related to your original three elements.

  2. 2.

    Prove that \sim is an equivalence relation on FF by filling in the gaps in the proof you’ve been given for this task in the supplementary material.

  3. 3.

    What are the equivalence classes for this relation \sim? How are these connected to the set \mathbb{Q} of rational numbers?

EXTENSION: What are the equivalence classes for the equivalence relation defined in the second theorem of the Reading Preparatory tasks?

Claim.

The relation \sim on

F={(p,q):p,q,q0},F=\left\{(p,q):p,q\in\mathbb{Z},q\neq 0\right\},

defined by (a,b)(c,d)ad=bc(a,b)\sim(c,d)\iff ad=bc for all (a,b),(c,d)F(a,b),(c,d)\in F is an equivalence relation.

Proof.

We first show that \sim is reflexive i.e. …for every xFx\in F. So suppose xFx\in F. Then there exist a,ba,b\in\mathbb{Z} with b0b\neq 0 such that …. Then …since a,ba,b\in\mathbb{Z}. So …and thus, \sim is reflexive.

Next we show that \sim is symmetric. So we need to prove that …for every x,yFx,y\in F. So suppose x,yFx,y\in F such that …. Then there exist …where b,d0b,d\neq 0 such that x=(a,b)x=(a,b) and y=(c,d)y=(c,d). Since …, we have (a,b)(c,d)(a,b)\sim(c,d) and thus …. This means that …. Therefore …and thus yxy\sim x, which proves that \sim is symmetric.

Finally, to show that \sim is transitive, we need to prove that …for all x,y,zFx,y,z\in F. So suppose that x,y,zFx,y,z\in F such that …. Then there exist a,b,c,d,e,fa,b,c,d,e,f\in\mathbb{Z} where …such that x=(a,b)x=(a,b), y=(c,d)y=(c,d) and z=(e,f)z=(e,f). Since xyx\sim y and yzy\sim z, we have …. This means that …. Thus, …, since f0f\neq 0. Hence,

\ldots

since d0d\neq 0. Thus, (a,b)(e,f)(a,b)\sim(e,f) which means that …. Hence, \sim is transitive.

Having shown that \sim is …, we’ve therefore shown \sim is an equivalence relation on FF.

Task 7.15 (15 mins).

(B4.2.3)

Read the theorem and proof that you were given in the supplementary material for this task.

  1. 1.

    Are there any parts of the proof you don’t understand or are unconvinced by? Discuss them in your groups.

  2. 2.

    Identify the assumptions and conclusion in the statement of part (a).

  3. 3.

    In the proof of part (b), why do we need both symmetry and transitivity in line 2 but only transitivity in line 3?

  4. 4.

    In the proof of part (c), line 5 is blank. Complete line 5.

  5. 5.

    This theorem requires \sim to be an equivalence relation. Where does it use the three properties of an equivalence relation in the proof?

  6. 6.

    EXTENSION: What conclusions can we still make if:

    1. (i)

      \sim is not symmetric?

    2. (ii)

      \sim is not transitive?

    3. (iii)

      \sim is not reflexive?

Theorem.

Let XX be a non-empty set and let \sim be an equivalence relation on the set XX. Then, for all x,yXx,y\in X:

  1. (a)

    x[x]x\in[x].

  2. (b)

    xyx\sim y if and only if [x]=[y][x]=[y].

  3. (c)

    Either [x]=[y][x]=[y] or [x][y]=∅︀[x]\cap[y]=\emptyset.

Proof.

(The lines of this proof are numbered to aid your discussion.)

  1. (a)
    1. 1.

      Let xXx\in X. As \sim is an equivalence relation on XX, then by reflexivity, we necessarily have that xxx\sim x. Therefore x[x]x\in[x] by the definition of an equivalence class.

  2. (b)
    1. 1.

      We first show that if xyx\sim y, then [x]=[y][x]=[y]. We are therefore showing that two sets are equal so we need to show that [x][y][x]\subseteq[y] and vice versa.

    2. 2.

      Let a[x]a\in[x]. Then xax\sim a by the definition of an equivalence class. By assumption xyx\sim y and, by the transitivity and symmetry of \sim, we therefore have yay\sim a so a[y]a\in[y]. Therefore [x][y][x]\subseteq[y]

    3. 3.

      Similarly, if b[y]b\in[y], then yby\sim b and, by transitivity with xyx\sim y, xbx\sim b so b[x]b\in[x] and [y][x][y]\subseteq[x].

    4. 4.

      We have then shown that if xyx\sim y, then [x]=[y][x]=[y]. On the other hand, we assume [x]=[y][x]=[y] and show that xyx\sim y.

    5. 5.

      By (a), we have that x[x]x\in[x] so, as [x]=[y][x]=[y], we have that x[y]x\in[y]. By definition, this means xyx\sim y.

    6. 6.

      This completes the proof for (b).

  3. (c)
    1. 1.

      Consider the set [x][y][x]\cap[y].

    2. 2.

      Case 1: [x][y][x]\cap[y] is non-empty.

    3. 3.

      This means there is an element aXa\in X such that a[x]a\in[x] and a[y]a\in[y]. As a[x]a\in[x], then xax\sim a so, by (b), [x]=[a][x]=[a]. Similarly, [y]=[a][y]=[a]. Hence, [x]=[y][x]=[y].

    4. 4.

      Case 2: [x][y][x]\cap[y] is empty.

    5. 5.
    6. 6.

      As the intersection must be either empty or non-empty, we have covered all possible cases and hence, we must have either [x]=[y][x]=[y] or [x][y]=∅︀[x]\cap[y]=\emptyset.

Task 7.16 (EXTENSION).

For the following sets and their partitions, identify the equivalence relations induced by these partitions.

  1. 1.

    For set XX, consider the partition {{x}:xX}\{\{x\}:x\in X\}.

  2. 2.

    For \mathbb{Z}, consider its partition {O,E}\{O,E\} where OO and EE denote the sets of odd and even numbers respectively.

  3. 3.

    Consider the set A={1,2,3,4,5,6}A=\{1,2,3,4,5,6\} partitioned into the subsets {1,4},{3},{2,5,6}\{1,4\},\{3\},\{2,5,6\}.

Try and prove that the relation induced by a partition 𝒫\mathcal{P} on a non-empty set XX is an equivalence relation.