22 - Equivalence classes and partitions

!Screenshot 2023-10-30 at 10.03.06 AM.png

  1. No equivalence class is empty
  2. Every element of A is in some equivalence class
  3. Any two classes are either disjoint or equal

Partition

!Screenshot 2023-10-30 at 10.07.48 AM.png

Let A =

The following is a partition of A:

P = {{1}, {2}, {3, 4, 5}}

!Screenshot 2023-10-30 at 10.10.39 AM.png

!Screenshot 2023-10-30 at 10.15.42 AM.png

!Screenshot 2023-10-30 at 10.17.47 AM.png
Transversal - EXAM QUESTION?

In class practice

Define a relation on by (a, b)



HW 22

Ben Finch

E 22.1
One part:

Two Parts:

  1. {{1, 2},{3, 4}}
  2. {{1},{2, 3, 4}}
  3. {{1, 2, 4},{3}}
  4. {{1, 3, 4},{2}}
  5. {{1, 4}{2, 3}}
  6. {{2, 3}, {1, 4}}
  7. {{1, 3}, {2, 4}}

Three Parts:

  1. {{1}, {2}, {3, 4}}
  2. {{1, 2}, {3}, {4}}
  3. {{1}, {2, 3}, {4}}
  4. {{1, 3}, {2}, {4}}
  5. {{1, 4}, {2}, {3}}
  6. {{1}, {2, 4}, {3}}

Four parts:

E 22.2
a) No. Given that the sizes of the equivalence classes for a,b, and c are different, none of these elements can be related by .

b) There are four equivalence. Since 9/10 elements are represented by [a], [b], [c], there must be one missing, call it d. So the final equivalence class is [d].

E 22.3
a) [(3, 4)] = {(c,d)R2:25=c2+d2}
!375

b) [(a,b)] = {(c,d)R2:a2+b2=c2+d2}
c)
Proof.

Let K be the set [0,)×{0}.

Consider any (a,b)R2. Define the point p=(a2+b2,0). Clearly, pK. We know that (a,b)p since

a2+b2=a2+b22+02.

Therefore, each equivalence class under has at least one representative in K.

Next, we aim to show that this representative is unique. Assume there exist two distinct points p1=(r1,0) and p2=(r2,0) in K such that (a,b)p1 and (a,b)p2. Then, we have

a2+b2=r12=r22.

Since r1,r20, we must have r1=r2, contradicting the assumption that p1 and p2 are distinct. Hence, each equivalence class under has at most one representative in K.

Therefore, the set [0,)×{0} is a transversal of .

E 22.4
Let W be the set of all words in the English language. Define a relation on W by αβ if α and β have the same first letter.

a)
Reflexive.
Let αW. Then α starts with the same letter as α. Thus is reflexive.

Symmetric.
Let α,βW. Assume αβ. Then α,β start with the same letter. Thus β and α start with the same letter. So is symmetric.

Transitive
Let α,β,γW. Assume αβ and βγ. Then α,β start with the same letter and β,γ start with the same letter. Therefore α,γ start with the same letter. So is transitive.

Since is reflexive, symmetric, and transitive, is an equivalence relation.

b)

  1. "cannot"
  2. "continue"
  3. "creating"
  4. "crafty"
  5. "calculations"
  6. "cookie"

c) 26, one for each letter in the alphabet.

d)

E 22.5
Let A be a set with n elements. Define a relation ∼ on P(A) by XY if |X|=|Y|, for any X,YP(A).

a)
Reflexive. Let XP(A). Then |X|=|X|. So is reflexive.

Symmetric. Let X,YP(A). Assume XY, so |X|=|Y|. Then |Y|=|X|. So is symmetric.

Transitive. Let X,Y,ZP(A). Assume XY and YZ. Then |X|=|Y| and |Y|=|Z|. So |X|=|Z|. So is transitive.

Since is reflexive, symmetric, and transitive, is an equivalence relation.

b) The equivalence classes of consist of all elements (sets) in P(A) that have the same length. For example, [2] is the set containing all combinations (sets) of any two elements in A.

c) There are n equivalence classes.

d) A transversal of would be the set containing exactly one element from each equivalence class. So it would include exactly one set with length 1, one set with length 2, ..., and one set with length n.

e) Let [a] be an equivalence class of . Then by property of power sets, there are (na) elements in [a].

E 22.6
Let A={1,2,...,10}. For each iA, define

Si ={XP(A) : i is the least element of X}

Let P={,S1,...,S10}

a)
Proof.
We aim to show:

  1. No set in P is empty.
  2. The sets in P are disjoint.
  3. The union of the sets in P is P(A).

No set in P is empty:
{} is clearly non-empty as it contains the empty set. For Si, if i exists in A then the set {i} belongs to Si because i is the least element of {i}. Therefore, Si is non-empty for each i.

The sets in P are disjoint:
Assume there are sets Si and Sj such that ij and their intersection is non-empty. Let X be an element in this intersection. By definition of Si and Sj, i and j would both be the least elements of X, which is a contradiction. Thus, Si and Sj cannot have any common elements and are therefore disjoint. {} is also disjoint with any Si.

The union of the sets in P is P(A):
Let X be an element in P(A). If X=, then X belongs to {}. If X, then X has a least element i. Therefore, X belongs to Si. Thus, every set in P(A) belongs to some set in P, which means the union of the sets in P is P(A).

Thus P is a partition of P(A).

b) There are 11, one for each element in A, plus the empty set.

c) T={,{1},{2},,{10}}

d) [{8,9,10}]={{8},{8,9},{8,10},{8,9,10}}

e) 28=256

E 22.7
12
Assume that xy. By symmetry we have yx. Then by definition of equivalence classes (21.11), y,x[x] and x,y[y]. Thus the intersection of [x] and [y] contains at minimum x and y and therefore is nonempty.

23
Assume that x and y intersect nontrivially. Let z be some element such that z[x] and z[y]. Thus xz and yz. By the transitive property, xy. This implies that every element in [y] is related to x, or [y][x].

By a similar argument, since, by symmetry we have yx, every element in [x] is related to y, and hence, every element in [x] belongs to [y]. This means [x][y].

Putting these two statements together, we get x=y.

31
Assume that [x]=[y].
Certainly! Let's prove that (3 \implies 1):

This means every element in [x] is also in [y] and vice-versa. We know x[x] by definition of an equivalence class. Since [x]=[y], we also have x[y].

Now, by definition of equivalence classes, if x[y], then xy.

E 22.8
Proof.

Assume that [a]=a¯ for all aA. We aim to prove that for any a,bA, we have ab iff ba


Assume ab for some a,bA. By the definition of equivalence classes, this means b[a]. Then ba¯. By the definition of equivalence under , this means ab. Thus, we have shown that if ab, then ab.


Assume ab for some a,bA. By the definition of equivalence classes, this means ba¯. Then b[a]. By the definition of equivalence under , this means ab. Thus, we have shown that if ab, then ab.

Since we have shown both directions, we conclude that ab if and only if ab for all a,bA. Therefore, the two equivalence relations and are the same.

Hence, if two equivalence classes are the same, then the relations are the same.