Set TheoryTopic #12 of 40

Equivalence Relations

Equivalence classes, partitions, quotient sets, and modular arithmetic as an equivalence relation.

Definition

A relation RR on a set AA is an equivalence relation if it is:

  1. Reflexive: aA:aRa\forall a \in A: aRa
  2. Symmetric: a,bA:aRbbRa\forall a, b \in A: aRb \rightarrow bRa
  3. Transitive: a,b,cA:(aRbbRc)aRc\forall a, b, c \in A: (aRb \land bRc) \rightarrow aRc

Equivalence Classes

For an equivalence relation RR on AA, the equivalence class of aAa \in A is: [a]=[a]R={bAaRb}[a] = [a]_R = \{b \in A \mid aRb\}

All elements equivalent to aa form its equivalence class.

Properties

  • Every element belongs to exactly one equivalence class
  • [a]=[b][a] = [b] if and only if aRbaRb
  • [a][b]=[a] \cap [b] = \emptyset or [a]=[b][a] = [b]

Partitions

A partition of a set AA is a collection of non-empty subsets {A1,A2,}\{A_1, A_2, \ldots\} such that:

  1. AiAj=A_i \cap A_j = \emptyset for iji \neq j (pairwise disjoint)
  2. iAi=A\bigcup_i A_i = A (cover all of AA)

Fundamental Theorem

Theorem: The equivalence classes of an equivalence relation form a partition. Conversely, every partition defines an equivalence relation.

Quotient Set

The quotient set of AA by RR is the set of all equivalence classes: A/R={[a]aA}A/R = \{[a] \mid a \in A\}

Examples

Equality

The simplest equivalence relation: aRb    a=baRb \iff a = b

Each equivalence class is a singleton: [a]={a}[a] = \{a\}

Congruence Modulo n

For integers and positive integer nn: ab(modn)    n(ab)a \equiv b \pmod{n} \iff n \mid (a - b)

Verification:

  • Reflexive: aa=0=n0a - a = 0 = n \cdot 0, so n0n \mid 0
  • Symmetric: If n(ab)n \mid (a-b), then n((ab))=(ba)n \mid (-(a-b)) = (b-a)
  • Transitive: If n(ab)n \mid (a-b) and n(bc)n \mid (b-c), then n((ab)+(bc))=(ac)n \mid ((a-b)+(b-c)) = (a-c)

Equivalence Classes (mod 3): [0]={,6,3,0,3,6,}[0] = \{\ldots, -6, -3, 0, 3, 6, \ldots\} [1]={,5,2,1,4,7,}[1] = \{\ldots, -5, -2, 1, 4, 7, \ldots\} [2]={,4,1,2,5,8,}[2] = \{\ldots, -4, -1, 2, 5, 8, \ldots\}

Quotient set: Z/n={[0],[1],,[n1]}=Zn\mathbb{Z}/\equiv_n = \{[0], [1], \ldots, [n-1]\} = \mathbb{Z}_n

Same Parity

aRb    aaRb \iff a and bb are both even or both odd

Two equivalence classes: even integers and odd integers

Same Length (for strings)

sRt    s=tsRt \iff |s| = |t|

Equivalence classes: all strings of length 0, length 1, length 2, etc.

Counting Equivalence Relations

The number of equivalence relations on a set of nn elements equals the Bell number BnB_n.

nnBnB_n
01
11
22
35
415
552

Equivalence Relations and Functions

Kernel of a Function

For function f:ABf: A \to B, the kernel is: ker(f)={(a1,a2)A×Af(a1)=f(a2)}\ker(f) = \{(a_1, a_2) \in A \times A \mid f(a_1) = f(a_2)\}

The kernel is always an equivalence relation.

Example: For f(x)=x2f(x) = x^2 on R\mathbb{R}: ker(f)={(a,b)a2=b2}={(a,b)a=b or a=b}\ker(f) = \{(a, b) \mid a^2 = b^2\} = \{(a, b) \mid a = b \text{ or } a = -b\}

Equivalence classes: [a]={a,a}[a] = \{a, -a\}

Canonical Map

The canonical map π:AA/R\pi: A \to A/R sends each element to its class: π(a)=[a]\pi(a) = [a]

This is always surjective.

Operations on Equivalence Classes

For congruence mod nn, we can define: [a]+[b]=[a+b][a] + [b] = [a + b] [a][b]=[ab][a] \cdot [b] = [a \cdot b]

These are well-defined because:

  • If aa(modn)a \equiv a' \pmod{n} and bb(modn)b \equiv b' \pmod{n}
  • Then a+ba+b(modn)a + b \equiv a' + b' \pmod{n} and abab(modn)ab \equiv a'b' \pmod{n}

This gives Zn\mathbb{Z}_n the structure of a ring.