Definition
A relation R on a set A is an equivalence relation if it is:
- Reflexive: ∀a∈A:aRa
- Symmetric: ∀a,b∈A:aRb→bRa
- Transitive: ∀a,b,c∈A:(aRb∧bRc)→aRc
Equivalence Classes
For an equivalence relation R on A, the equivalence class of a∈A is:
[a]=[a]R={b∈A∣aRb}
All elements equivalent to a form its equivalence class.
Properties
- Every element belongs to exactly one equivalence class
- [a]=[b] if and only if aRb
- [a]∩[b]=∅ or [a]=[b]
Partitions
A partition of a set A is a collection of non-empty subsets {A1,A2,…} such that:
- Ai∩Aj=∅ for i=j (pairwise disjoint)
- ⋃iAi=A (cover all of A)
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 A by R is the set of all equivalence classes:
A/R={[a]∣a∈A}
Examples
Equality
The simplest equivalence relation: aRb⟺a=b
Each equivalence class is a singleton: [a]={a}
Congruence Modulo n
For integers and positive integer n:
a≡b(modn)⟺n∣(a−b)
Verification:
- Reflexive: a−a=0=n⋅0, so n∣0 ✓
- Symmetric: If n∣(a−b), then n∣(−(a−b))=(b−a) ✓
- Transitive: If n∣(a−b) and n∣(b−c), then n∣((a−b)+(b−c))=(a−c) ✓
Equivalence Classes (mod 3):
[0]={…,−6,−3,0,3,6,…}
[1]={…,−5,−2,1,4,7,…}
[2]={…,−4,−1,2,5,8,…}
Quotient set: Z/≡n={[0],[1],…,[n−1]}=Zn
Same Parity
aRb⟺a and b are both even or both odd
Two equivalence classes: even integers and odd integers
Same Length (for strings)
sRt⟺∣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 n elements equals the Bell number Bn.
| n | Bn |
|---|
| 0 | 1 |
| 1 | 1 |
| 2 | 2 |
| 3 | 5 |
| 4 | 15 |
| 5 | 52 |
Equivalence Relations and Functions
Kernel of a Function
For function f:A→B, the kernel is:
ker(f)={(a1,a2)∈A×A∣f(a1)=f(a2)}
The kernel is always an equivalence relation.
Example: For f(x)=x2 on R:
ker(f)={(a,b)∣a2=b2}={(a,b)∣a=b or a=−b}
Equivalence classes: [a]={a,−a}
Canonical Map
The canonical map π:A→A/R sends each element to its class:
π(a)=[a]
This is always surjective.
Operations on Equivalence Classes
For congruence mod n, we can define:
[a]+[b]=[a+b]
[a]⋅[b]=[a⋅b]
These are well-defined because:
- If a≡a′(modn) and b≡b′(modn)
- Then a+b≡a′+b′(modn) and ab≡a′b′(modn)
This gives Zn the structure of a ring.