What Is an Equivalence Relation?
An equivalence relation is a relation that is reflexive, symmetric, and transitive. Equivalence relations partition a set into groups where elements in the same group are considered "equivalent."
Properties:
Reflexive: aRa for all a
Symmetric: aRb โ bRa
Transitive: aRb and bRc โ aRc
Examples
Equality (=) on numbers:
Reflexive: a = a โ
Symmetric: a = b โ b = a โ
Transitive: a = b and b = c โ a = c โ
Congruence modulo n (a โก b mod n):
Reflexive: a โก a mod n โ
Symmetric: a โก b mod n โ b โก a mod n โ
Transitive: a โก b mod n and b โก c mod n โ a โก c mod n โ
Same birthday relation:
Two people are related if they share the same birthday.
Equivalence Classes
An equivalence class [a] is the set of all elements equivalent to a:
[a] = {x โ A | xRa}
Example: Congruence mod 3 on {0, 1, 2, 3, 4, 5}
[0] = {0, 3}
[1] = {1, 4}
[2] = {2, 5}
The equivalence classes form a partition of the set.