binary relations
Equivalence Relations
You should know: relations
Overview
An equivalence relation on a set is a binary relation that is reflexive, symmetric, and transitive — capturing the everyday notion of 'being essentially the same' with respect to some criterion. Classic examples include equality itself, congruence modulo n on the integers, and 'has the same shape as' among triangles. The defining feature of an equivalence relation is that it partitions its underlying set into disjoint equivalence classes, and conversely every partition of a set arises from some equivalence relation — the two notions are exactly interchangeable.
Intuition
Think of sorting a big pile of objects into bins so that two objects go in the same bin exactly when they're 'equivalent' by whatever rule you're using — same remainder mod 5, same color, same birthday month. Reflexivity says every object belongs in its own bin's category; symmetry says the sorting rule doesn't care about order (if x matches y, y matches x); transitivity says the bins don't overlap or chain into each other — once you're in a bin, everyone in that bin is mutually equivalent. The bins themselves are the equivalence classes, and collectively they partition the whole pile with no object left out and no object in two bins.
Formal Definition
A relation ~ on a set A is an equivalence relation if it satisfies all three properties:
Worked Examples
Reflexive: a − a = 0, and 4 | 0.
Symmetric: if 4 | (a−b) then a−b = 4k, so b−a = -4k, also a multiple of 4.
Transitive: if 4 | (a−b) and 4 | (b−c), their sum a−c is also a multiple of 4.
The equivalence classes are the four residue classes mod 4.
Answer: Congruence mod 4 is an equivalence relation with exactly 4 equivalence classes: [0],[1],[2],[3].
Practice Problems
Is the relation 'has the same birthday' an equivalence relation on a group of people? Justify briefly.
How many equivalence classes does congruence mod 5 have on the integers?
A social media platform groups users by which of 6 languages their profile is set to. Explain why this grouping corresponds to an equivalence relation, and state how many equivalence classes there are (assuming every language is used by at least one user).
Quiz
Summary
- An equivalence relation is reflexive, symmetric, and transitive — the formal version of 'essentially the same as'.
- Every equivalence relation partitions its set into disjoint equivalence classes, and every partition arises from some equivalence relation.
- Congruence mod n is the canonical example: it partitions the integers into n residue classes [0],[1],...,[n-1].
Mathematics