Mathematical-Reasoning ยท Unit 28 ยท Video 1 ยท Interactive Practice

Sorting a Set: The Classes of an Equivalence Relation

IKey Formulas

FormulaMeaning
R[y]={xโˆˆAโˆฃxRy}R[y] = \{ x \in A \mid x \mathrel{R} y \}everything related to yy: read it off the arrows into yy
xโˆˆR[y]โ€…โ€ŠโŸบโ€…โ€ŠxRyโ€…โ€ŠโŸบโ€…โ€Š(x,y)โˆˆRx \in R[y] \iff x \mathrel{R} y \iff (x, y) \in Rthe membership test; xx on the left, yy on the right
reflexive ++ symmetric ++ transitivean equivalence relation: any two sets R[y]R[y] are equal or disjoint

Key Insight: For the equivalence relation RR on A={1,2,3,4,5}A = \{1, 2, 3, 4, 5\} the five sets are only two, {1,2,5}\{1, 2, 5\} and {3,4}\{3, 4\}; for SS they are five different sets, and some overlap without being equal.

IIReading R[y]R[y] off the Arrows

R[y]R[y] collects the starting points of the arrows that end at yy, the loop at yy included.

IIIEqual, Disjoint, or Overlapping?

Column yy of the pair grid is the set R[y]R[y]; the right grid compares every two of these sets.

๐Ÿ’ก Challenge: starting from RR, remove as few pairs as possible so that two of the sets overlap without being equal.

IVQuiz Questions

Problem 1 ยท Build One Set

Let A={1,2,3,4}A = \{1, 2, 3, 4\} and let T={(1,1),(2,2),(3,3),(4,4),(1,3),(3,1),(2,4),(4,2)}T = \{(1,1), (2,2), (3,3), (4,4), (1,3), (3,1), (2,4), (4,2)\}. Find T[3]={xโˆˆAโˆฃxT3}T[3] = \{ x \in A \mid x \mathrel{T} 3 \}.

โœ… Correct! The pairs with 33 in second place are (1,3)(1, 3) and (3,3)(3, 3), so T[3]={1,3}T[3] = \{1, 3\}.
โŒ Not quite. The loop (3,3)(3, 3) puts 33 in T[3]T[3], but (1,3)โˆˆT(1, 3) \in T puts 11 there too.
โŒ Not quite. {2,4}\{2, 4\} is T[2]T[2] and T[4]T[4]; neither 22 nor 44 is related to 33.
โŒ Not quite. Keep only the xx with (x,3)โˆˆT(x, 3) \in T.
Show solution

By definition xโˆˆT[3]x \in T[3] exactly when (x,3)โˆˆT(x, 3) \in T. Scanning the list for pairs whose second entry is 33 gives (3,3)(3, 3) and (1,3)(1, 3) and nothing else. So

T[3]={1,3}.T[3] = \{1, 3\}.

(In the same way T[1]={1,3}T[1] = \{1, 3\} and T[2]=T[4]={2,4}T[2] = T[4] = \{2, 4\}: two different sets, which are disjoint.)

Problem 2 ยท The Order Matters

Let B={1,2,3}B = \{1, 2, 3\} and let U={(1,2),(1,3),(2,2)}U = \{(1,2), (1,3), (2,2)\}. Find U[1]={xโˆˆBโˆฃxU1}U[1] = \{ x \in B \mid x \mathrel{U} 1 \}.

โœ… Correct! No pair in UU has 11 in second place, so nothing is related to 11.
โŒ That reads the arrows the wrong way. 1U21 \mathrel{U} 2 and 1U31 \mathrel{U} 3 are arrows out of 11; U[1]U[1] needs arrows into 11.
โŒ Not quite. UU is not reflexive: (1,1)โˆ‰U(1, 1) \notin U, so 1โˆ‰U[1]1 \notin U[1].
โŒ Not quite. Look for pairs of the form (x,1)(x, 1).
Show solution

xโˆˆU[1]x \in U[1] exactly when (x,1)โˆˆU(x, 1) \in U. The second entries of the pairs in UU are 22, 33 and 22; none is 11. Hence U[1]=โˆ…U[1] = \emptyset.

The pairs (1,2)(1, 2) and (1,3)(1, 3) say 1U21 \mathrel{U} 2 and 1U31 \mathrel{U} 3: they put 11 into U[2]U[2] and U[3]U[3], not anything into U[1]U[1]. Indeed U[2]={1,2}U[2] = \{1, 2\} and U[3]={1}U[3] = \{1\}.

Problem 3 ยท Neither Equal nor Disjoint

For the relation SS of the video, S[1]=โˆ…S[1] = \emptyset, S[2]={1,2}S[2] = \{1, 2\}, S[3]={2,3,4}S[3] = \{2, 3, 4\}, S[4]={1,3,4}S[4] = \{1, 3, 4\} and S[5]={5}S[5] = \{5\}. Which pair of sets is neither equal nor disjoint?

โœ… Correct! S[2]โˆฉS[4]={1}โ‰ โˆ…S[2] \cap S[4] = \{1\} \ne \emptyset, yet S[2]โ‰ S[4]S[2] \ne S[4].
โŒ Not quite. S[5]={5}S[5] = \{5\} shares no element with S[2]S[2], S[3]S[3] or S[4]S[4]: those pairs are disjoint.
โŒ Not quite. The empty set meets nothing, so S[1]โˆฉS[4]=โˆ…S[1] \cap S[4] = \emptyset: disjoint.
โŒ Not quite. Compute each intersection.
Show solution

Compute the intersections:

  • S[2]โˆฉS[4]={1,2}โˆฉ{1,3,4}={1}S[2] \cap S[4] = \{1, 2\} \cap \{1, 3, 4\} = \{1\}, and {1,2}โ‰ {1,3,4}\{1, 2\} \ne \{1, 3, 4\}: neither equal nor disjoint.
  • S[2]โˆฉS[5]=โˆ…S[2] \cap S[5] = \emptyset and S[3]โˆฉS[5]=โˆ…S[3] \cap S[5] = \emptyset: disjoint.
  • S[1]โˆฉS[4]=โˆ…โˆฉS[4]=โˆ…S[1] \cap S[4] = \emptyset \cap S[4] = \emptyset: disjoint.

So the answer is S[2]S[2] and S[4]S[4]. (The pairs S[2],S[3]S[2], S[3] and S[3],S[4]S[3], S[4] overlap in the same way.)

Problem 4 ยท How Many Different Sets?

On A={1,2,3,4,5,6}A = \{1, 2, 3, 4, 5, 6\} define xEyx \mathrel{E} y when x+yx + y is even. EE is an equivalence relation. How many different sets are there among E[1],E[2],โ€ฆ,E[6]E[1], E[2], \ldots, E[6]?

โœ… Correct! x+yx + y is even exactly when xx and yy have the same parity, giving {1,3,5}\{1, 3, 5\} and {2,4,6}\{2, 4, 6\}.
โŒ Not quite. 1+2=31 + 2 = 3 is odd, so (1,2)โˆ‰E(1, 2) \notin E and the sets cannot all be the same.
โŒ Not quite. Six elements give six names, but different names can give the same set: E[1]=E[3]E[1] = E[3].
โŒ Not quite. When is x+yx + y even?
Show solution

x+yx + y is even exactly when xx and yy are both odd or both even. So

E[1]=E[3]=E[5]={1,3,5},E[2]=E[4]=E[6]={2,4,6}.E[1] = E[3] = E[5] = \{1, 3, 5\}, \qquad E[2] = E[4] = E[6] = \{2, 4, 6\}.

There are 22 different sets, and they are disjoint, as the sets of an equivalence relation must be.

Solved: 0 / 4