Equivalence Relations

Congruence modulo nn as an equivalence relation: the three axioms — reflexive, symmetric, transitive — are brute-force verified on every element, pair, and triple of U={0,…,3n−1}U = \{0, \dots, 3n-1\}, and the classes [r]={r,r+n,r+2n}[r] = \{r, r+n, r+2n\} visibly partition the set as nn slides.

a∼b  ⟺  n∣(a−b)a \sim b \iff n \mid (a - b)
[r]={r,r+n,r+2n}[r] = \{r, r + n, r + 2n\}
z∈[x]∩[y]  ⟹  [x]=[y]z \in [x] \cap [y] \implies [x] = [y]

Examples & Exercises

Prove completely that the relation a∼b  ⟺  n∣(a−b)a \sim b \iff n \mid (a - b) on the integers Z\mathbb{Z} is an equivalence relation — pull each of the three conditions, reflexive, symmetric, transitive, down to the arithmetic of divisibility.

a∼b    ⟺    a≡b(modn)a \sim b \;\iff\; a \equiv b \pmod n
n∣(a−b),  n∣(b−c)  ⇒  n∣(a−c)=(a−b)+(b−c)n \mid (a-b),\; n \mid (b-c) \;\Rightarrow\; n \mid (a-c) = (a-b) + (b-c)
n=4n = 4: UU is the 1212 numbers 00 through 1111, and the classes are [0]={0,4,8}[0] = \{0, 4, 8\}, [1]={1,5,9}[1] = \{1, 5, 9\}, [2]={2,6,10}[2] = \{2, 6, 10\}, [3]={3,7,11}[3] = \{3, 7, 11\}. Examples: 7∼37 \sim 3 (7−3=47 - 3 = 4), but 7∼47 \sim 4 is false (7−4=37 - 4 = 3 is not divisible by 44).
Show proof
  1. Reflexive: for every integer aa, a−a=0a - a = 0 and n∣0n \mid 0, so a∼aa \sim a. In the scene at n=4n = 4, all 1212 elements of UU are related to themselves.
  2. Symmetric: suppose a∼ba \sim b. Then n∣(a−b)n \mid (a - b), so a−b=nka - b = nk for some integer kk, and therefore b−a=−nk=n(−k)b - a = -nk = n(-k), giving n∣(b−a)n \mid (b - a), i.e. b∼ab \sim a. In the scene this is checked for all 122=14412^2 = 144 ordered pairs of UU.
  3. Transitive: suppose a∼ba \sim b and b∼cb \sim c. There are integers k,mk, m with a−b=nka - b = nk and b−c=nmb - c = nm; adding gives a−c=(a−b)+(b−c)=nk+nm=n(k+m)a - c = (a - b) + (b - c) = nk + nm = n(k + m), so n∣(a−c)n \mid (a - c), i.e. a∼ca \sim c. In the scene all 123=172812^3 = 1728 triples check out. The three conditions hold, so congruence is an equivalence relation.

Prove the partition theorem completely: for an equivalence relation ∼\sim on a set SS, (i) every xx belongs to its own equivalence class [x][x], and (ii) if [x][x] and [y][y] share even one element then [x]=[y][x] = [y]. Deduce that distinct classes are disjoint and that the classes together cover SS.

[x]={y∈S:y∼x}[x] = \{y \in S : y \sim x\}
z∈[x]∩[y]  ⇒  [x]=[y]z \in [x] \cap [y] \;\Rightarrow\; [x] = [y]
n=4n = 4: the four classes [0]={0,4,8}[0] = \{0, 4, 8\}, [1]={1,5,9}[1] = \{1, 5, 9\}, [2]={2,6,10}[2] = \{2, 6, 10\}, [3]={3,7,11}[3] = \{3, 7, 11\} are pairwise disjoint and their union is all of UU — the partition theorem in a finite example.
Show proof
  1. (i) By reflexivity x∼xx \sim x, hence x∈[x]x \in [x]. So no class is empty, and every element lies in at least one class — the classes cover SS.
  2. Setup for (ii): suppose some z∈[x]∩[y]z \in [x] \cap [y] exists. By definition z∼xz \sim x and z∼yz \sim y. Symmetry turns z∼xz \sim x into x∼zx \sim z, and transitivity with z∼yz \sim y then gives x∼yx \sim y.
  3. Now show [x]⊆[y][x] \subseteq [y]. If w∈[x]w \in [x] then w∼xw \sim x; from the setup, x∼yx \sim y, so symmetry gives y∼xy \sim x and transitivity from w∼xw \sim x yields w∼yw \sim y, i.e. w∈[y]w \in [y]. Swapping the roles gives [y]⊆[x][y] \subseteq [x], hence [x]=[y][x] = [y].
  4. Conclusion: if two classes overlap at all, they are equal. Hence distinct classes are disjoint, and by (i) their union is SS — an equivalence relation partitions its set into equivalence classes. In the scene at n=4n = 4, the four classes split the 1212 elements of UU into exactly 33 each.

Define a relation on R\mathbb{R} by x∼y  ⟺  x−y∈Qx \sim y \iff x - y \in \mathbb{Q}. (a) Prove it is an equivalence relation, (b) determine the shape of its equivalence classes ([x]=x+Q[x] = x + \mathbb{Q}), and (c) explain why collecting one representative from each class of this partition is exactly the Vitali-set construction.

x∼y  ⟺  x−y∈Qx \sim y \iff x - y \in \mathbb{Q}
[x]=x+Q={x+q:q∈Q}[x] = x + \mathbb{Q} = \{x + q : q \in \mathbb{Q}\}
n=2n = 2: the finite prototype — the two classes [0]={0,2,4}[0] = \{0, 2, 4\} and [1]={1,3,5}[1] = \{1, 3, 5\} partition U={0,…,5}U = \{0, \dots, 5\}. This problem's relation swaps "same remainder" for "same rational difference".
Show proof
  1. (a) Reflexive: x−x=0∈Qx - x = 0 \in \mathbb{Q}, so x∼xx \sim x. Symmetric: if x−y∈Qx - y \in \mathbb{Q} then y−x=−(x−y)∈Qy - x = -(x - y) \in \mathbb{Q}, so y∼xy \sim x (rationals stay rational under negation). Transitive: if x−y∈Qx - y \in \mathbb{Q} and y−z∈Qy - z \in \mathbb{Q} then x−z=(x−y)+(y−z)∈Qx - z = (x - y) + (y - z) \in \mathbb{Q}, so x∼zx \sim z (sums of rationals are rational). This is the same skeleton as the congruence proof in problem 1, with "divisibility" replaced by "membership in Q\mathbb{Q}".
  2. (b) [x]={y∈R:y−x∈Q}[x] = \{y \in \mathbb{R} : y - x \in \mathbb{Q}\}; writing y=x+(y−x)y = x + (y - x) shows this set is exactly x+Q={x+q:q∈Q}x + \mathbb{Q} = \{x + q : q \in \mathbb{Q}\} — a shifted copy of the rationals, translated by xx. Reals a rational distance apart are identified, and by the partition theorem (problem 2) these shifted copies tile R\mathbb{R} without overlap.
  3. (c) Choosing exactly one representative from each class x+Qx + \mathbb{Q} and collecting them produces a Vitali set. But there are uncountably many classes and none has a "natural" representative, so this choice requires the axiom of choice — no rule can make the picks; the axiom only guarantees existence. In the integration chapter's vitali scene, this very set is shown not to be Lebesgue measurable: countably many measurable rational translates cannot reassemble into a bounded interval.

1. Foundations of Proof