Equivalence Classes and Partitions
Suppose you sort a box of fractions by numerical value. Then , , and all land in the same pile. What exactly is a "pile"? Why does this sorting process always produce piles that are disjoint and exhaustive? They never overlap and never leave a fraction homeless. This article answers that question in full generality. It shows that the informal act of "grouping objects by a shared property" is mathematically identical to the notion of an Equivalence Relation. The identification is not an analogy — it is a genuine mathematical equivalence, in the strongest sense. Equivalence relations on a set and partitions of determine each other exactly, via mutually inverse constructions. This correspondence matters because it converts a relational description of "sameness" into a structural description. A relational description is a set of ordered pairs satisfying three axioms. A structural description is a way of chopping into non-overlapping pieces. The structural picture is often easier to reason about, and it is the one that generalizes. The pieces themselves — equivalence classes — become the elements of a new set, the quotient set. On this quotient set, one can define new operations and functions "up to equivalence." Every construction of a quotient object in mathematics rests on this single theorem. This includes modular arithmetic, quotient groups, quotient topological spaces, and the rational numbers built from pairs of integers. The big picture is this: an equivalence relation is the analytic description of a partition. It is a rule for testing when two elements belong together. A partition, meanwhile, is the synthetic description of an equivalence relation. It is an explicit list of the groups. The Fundamental Theorem of Equivalence Relations makes this precise. It does so by exhibiting a bijection between the set of equivalence relations on and the set of partitions of . This article delivers a complete, rigorous statement and proof of that theorem. It gives careful attention to the definitions of equivalence class and partition. It offers worked examples on both finite and infinite sets. It includes a counterexample showing why each hypothesis (reflexivity, symmetry, transitivity) is indispensable. Finally, it looks at where this correspondence shows up across mathematics. This sets the stage for the notion of a Quotient Set and the delicate question of well-definedness for functions on quotients.
- An equivalence relation on splits into equivalence classes .
- A partition of is a collection of nonempty, pairwise disjoint subsets whose union is all of .
- The Fundamental Theorem: equivalence relations on and partitions of correspond bijectively, each induced from the other.
- Two elements are related iff they lie in the same block of the induced partition — this is the technical heart of the proof.
- Dropping reflexivity, symmetry, or transitivity each independently destroys the "disjoint, exhaustive blocks" structure.
- Key idea: an equivalence relation is, in disguise, nothing more than a rule for grouping a set into disjoint, exhaustive families.
Where this lives today
The equivalence-class/partition correspondence is the quiet engine behind an enormous share of mathematical construction. In abstract algebra, cosets of a subgroup partition a group, and the corresponding equivalence relation ( iff ) is exactly the machinery behind quotient groups and Lagrange's theorem; the same pattern gives quotient rings from ideals. In number theory, congruence classes modulo (Example 1) partition and underlie modular arithmetic, RSA cryptography, and check-digit schemes. In the construction of number systems, both (Example 2) and (via Cauchy sequences modulo the "eventually close" relation) are built as quotient sets. In topology, quotient spaces (gluing constructions such as building a torus from a square) are defined by first specifying a partition or an equivalence relation on points and topologizing the quotient set. In computer science, union-find (disjoint-set) data structures maintain a partition of a finite set in real time, implicitly tracking an equivalence relation under merge operations, and are central to Kruskal's minimum spanning tree algorithm and to compiler register-allocation and type-inference (unification) algorithms. In linear algebra, cosets of a subspace partition a vector space and are the underlying data of a quotient vector space . In statistics and combinatorics, partitions of a finite set are counted by Bell numbers, and equivalence relations refine or coarsen one another exactly as their partitions refine or coarsen, giving a lattice structure exploited in cluster analysis. Across all of these, the theorem proved here is the silent justification that the two languages — "relation" and "grouping" — may be used interchangeably.
:::quiz[If is an equivalence relation on and with , what can you conclude?]
- and are disjoint after all
- ✓
- Nothing; overlapping classes are possible
:::quiz[For the relation on , what is ?]
- ✓
Ask the tutor: How do I check that a function defined on equivalence classes is "well-defined," and why does that check matter so much?
Let be a set and let be an Equivalence Relation on , meaning is reflexive, symmetric, and transitive.
Equivalence class. For , the equivalence class of under is
When is clear from context we write . The element is called a representative of the class .
Quotient set. The set of all equivalence classes is denoted
and is called the quotient of by (this set becomes the central object in the theory of Quotient Sets).
Partition. A partition of a set is a collection of subsets of such that: 1. (Nonempty blocks) ; 2. (Pairwise disjoint) for all , if then ; 3. (Covers ) . Elements of are called the blocks (or cells, or parts) of the partition.
Intuition
Think of as a room full of people and as the relation "has the same birth-month as." This relation is reflexive (everyone shares a birth-month with themselves), symmetric (if you share a birth-month with me, I share one with you), and transitive (if you and I share, and I and a third person share, then you and that third person share too). The equivalence class is simply the crowd of people born in the same month as . Twelve possible birth-months give (at most) twelve nonempty crowds; every person belongs to exactly one crowd; the crowds never overlap. That collection of crowds is precisely a partition of the room. The subtlety — and the entire content of the theorem below — is that this process is reversible. If instead someone hands you twelve labeled boxes (already-formed groups) covering the room with no overlaps, you can manufacture a relation: declare exactly when and sit in the same box. This manufactured relation is automatically reflexive, symmetric, and transitive, and running the "equivalence class" construction on it hands back the exact same twelve boxes you started with. The two processes — relation-to-partition and partition-to-relation — are mutually inverse. That inverse pairing, not just the existence of classes, is the actual theorem.
Let be a set. Let denote the set of all equivalence relations on , and let denote the set of all partitions of .
(I) From relations to partitions. If , then the collection of equivalence classes
is a partition of .
(II) From partitions to relations. If , define a relation on by
Then is an equivalence relation on .
(III) Mutual inversion. The maps
are mutually inverse bijections: for every , and for every . Consequently there is a canonical bijective correspondence between equivalence relations on and partitions of .
We prove each part in turn. Throughout, is a fixed set.
Part (I): is a partition of . Let be an equivalence relation on ; write for when convenient. We must check the three partition axioms for . Nonempty blocks. Let for some . By reflexivity of , , so . Hence . This establishes axiom 1. Covers . Let . By reflexivity, , so , and . Hence . Since was arbitrary, . Conversely every is a subset of by definition, so . Hence , establishing axiom 3. Pairwise disjoint. This is the substantive step. We first prove a lemma. > Lemma. For all : if and only if . Proof of Lemma. () Suppose . By reflexivity , so , i.e. , which by definition of means . () Suppose . We show and .
- Let , so . Since , transitivity gives , i.e. . Hence .
- Since is symmetric and , we get . Let , so . Since , transitivity gives , i.e. . Hence .
Combining, . (Lemma) Now suppose for some ; we must show . We argue by contradiction: suppose . Then and . By symmetry, . Combining and by transitivity gives . By the Lemma (the direction just proved), implies , contradicting our assumption . Hence no such exists, so . This establishes axiom 2. All three axioms hold, so is a partition of . This proves (I).
Part (II): is an equivalence relation. Let be a partition of and define to mean " with ," where . We check the three axioms of an equivalence relation. Reflexivity. Let . Since covers (axiom 3 of a partition), there exists with . Then certainly and , so . Symmetry. Suppose . Then there is with and . The same witness shows and , so . Transitivity. Suppose and . Then there exist with and . In particular , so . By the pairwise-disjointness axiom of a partition (axiom 2, contrapositive form: nonempty intersection forces equality), . Hence and , so , giving . All three axioms hold, so is an equivalence relation on . This proves (II).
Part (III): and are mutually inverse. Claim 1: for every equivalence relation on . Let be an equivalence relation, let , and let . We must show , as a set of ordered pairs, equals . We show both inclusions. Suppose . By definition of , there is a block with . Then and . By symmetry, ; by transitivity applied to and , we get . Hence . Conversely, suppose . Consider the block . By reflexivity, , so . Since , by definition as well. So , which by definition of gives . Hence . Combining the two inclusions, , i.e. . Claim 2: for every partition of . Let be a partition, let , and let . We show as collections of sets, by showing every block of is a block of and vice versa. First, take any -class , where . Since covers , there is a (unique, by disjointness — see below) block with . We claim .
- If , then , so by definition of there is a block with . Since and , we have , so ; by pairwise disjointness of , . Hence . This shows .
- If , then , so by definition of , , i.e. . This shows .
Hence , so every block of is a block of ; that is, . Conversely, let . Since is nonempty (axiom 1 of a partition), pick . By the argument just given (with this in place of , valid since ), . Hence , so . Combining, , i.e. .
Conclusion. By Claims 1 and 2, and . A function with a two-sided inverse is a bijection, so is a bijection with inverse .
∎The proof technique throughout is direct element-chasing from the axioms — reflexivity, symmetry, and transitivity are each invoked at a specific, identifiable point (reflexivity for covering and for membership ; symmetry and transitivity together for disjointness), and the two-sided inverse verification is done by mutual set-inclusion, the standard technique for proving set equality.
Worked examples
Example 1: Congruence mod , with and . Define iff . This is a standard equivalence relation (reflexive since ; symmetric since ; transitive since and imply , as the sum of two multiples of is a multiple of ). Let us compute . We need all integers with , i.e. . So
Note — infinitely many representatives give the same class, exactly as the Lemma in the proof predicts, since . The full quotient set is
a partition of into exactly infinite blocks — the residue classes mod . Applying to this partition (declare iff lie in a common block) recovers precisely the original congruence relation, illustrating Claim 2 of Part (III) concretely: here reads as "sorting integers by residue mod 5, then re-deriving the 'same residue' relation from the sorting, gives back congruence mod 5."
Example 2: A relation on ordered pairs, building the rationals. Let , and define
This is the relation whose quotient set is used to construct from . Let's verify it is an equivalence relation and compute a specific class. Reflexive: iff , true in . Symmetric: if then (just commutativity and reading the equation backwards), so . Transitive: suppose and , i.e. and . We want . Multiply the first equation by : . Substitute : . Since (as is a second coordinate, hence nonzero by definition of ), we may cancel from to get , as desired. (Cancellation is valid because is an integral domain.) Hence . Now compute : this is the set of all with , i.e. , i.e. in lowest terms. So
This infinite set of pairs is exactly the equivalence class that we call the rational number . The quotient set is, by definition in the standard construction, the set of rational numbers — each fraction is literally an equivalence class of pairs. The theorem guarantees that this quotient set, viewed as a collection of classes, genuinely partitions : every pair lands in exactly one such class, with no pair belonging to two different "fractions" and no pair left over. This is the first hint of the general theme of Quotient Sets: interesting new objects (rationals, cosets, quotient groups) are frequently defined as equivalence classes of more primitive data.
The theorem requires to be reflexive, symmetric, and transitive. We show that dropping transitivity alone already destroys the disjointness of the "classes," so that need not be a partition at all. Let and define by:
Check reflexivity: . ✓. Check symmetry: and both present; and both present. ✓. Check transitivity: we need, for instance, that and force . But . So is not transitive — this is the only axiom that fails. Now compute the "classes" using the same formula :
These are not the blocks of a partition: , yet . Axiom 2 (pairwise disjointness) fails outright, even though every "class" is nonempty and their union is all of (axioms 1 and 3 survive). The proof of Part (I) breaks exactly where expected: the disjointness argument used transitivity essentially — given , we derived via using transitivity, and it is precisely that step that is unavailable here. Without it, classes can genuinely overlap without being equal, and fails to be a partition. This shows transitivity is not a decorative hypothesis: it is exactly what forces "overlapping classes" to collapse into "identical classes."
Scope, edge cases & common traps
| Situation | What happens |
|---|---|
| The unique relation is (vacuously) an equivalence relation, and the unique partition of is (the empty collection of blocks). The correspondence holds trivially. | |
| is equality () | Every class is a singleton ; the induced partition is the finest possible one, "all singletons." |
| relates everything to everything () | There is exactly one class, for every ; the induced partition is the coarsest one, itself (assuming ). |
| infinite | Classes may be infinite (Example 1) or the quotient set may be infinite (Example 2); the theorem makes no finiteness assumption anywhere in its proof. |
| Confusing "block of a partition" with "equivalence class" | These are literally the same objects under the correspondence, but only once or — an arbitrary collection of disjoint sets that fails to cover , or a random equivalence-like relation missing an axiom, breaks the identification (see the counterexample). |
The mathematician behind it
Origins · 1 minRichard Dedekind and how this was discovered
Richard Dedekind, working alongside Georg Cantor in the formative decades of set theory, was among the first to treat equivalence and quotient constructions with full rigor — most famously in his construction of the real numbers via Dedekind cuts, and in his systematic use of "sameness up to a relation" to build new number systems out of old ones. The general theorem connecting equivalence relations to partitions, though folklore by the early 20th century and formalized repeatedly in the development of abstract algebra (compare cosets and quotient groups) and mathematical logic, crystallizes the technique Dedekind pioneered: define new mathematical objects not by exhibiting them directly, but as equivalence classes of more concrete data subject to a relation capturing exactly the intended notion of "essentially the same."
What exactly is the difference between an equivalence class and a partition?
An equivalence class is a single subset of — the set of all elements related to some fixed . A partition is the entire collection of such subsets, one for each "type" of element, arranged so they are disjoint and cover . So is one block; is the whole partition. Every equivalence relation produces one partition (all its classes together), and conversely every partition can be read off as the class structure of some equivalence relation, by the Fundamental Theorem proved above.
Why do we need all three axioms — reflexivity, symmetry, transitivity — and not just one or two?
Each axiom does distinct work in the proof. Reflexivity guarantees every lies in its own class , which forces classes to be nonempty and to cover . Symmetry and transitivity together are exactly what force the Lemma , which in turn forces classes that overlap at all to be identical, giving disjointness. The counterexample above shows a reflexive, symmetric relation lacking transitivity whose "classes" genuinely overlap without being equal — so transitivity cannot be dropped, and by symmetric reasoning neither can the other two.
Can two different equivalence relations induce the same partition?
No. Part (III) of the theorem shows is a bijection, so it is in particular injective: distinct equivalence relations always induce distinct partitions. If you ever find as partitions, then in fact and must be the identical relation, since and by Claim 1, and applying to equal partitions gives equal outputs.
Is the empty set ever an equivalence class?
No, never — an equivalence class always contains at least itself, by reflexivity (). This is exactly axiom 1 of a partition ("nonempty blocks"), and it is why the proof of Part (I) explicitly invokes reflexivity to rule out empty classes. If you ever compute a "class" and get , either the relation is not reflexive or an arithmetic error occurred.
How does this theorem relate to the idea of a quotient set used elsewhere in mathematics, like quotient groups?
The quotient set constructed here is the general set-theoretic template. Quotient groups , quotient rings , and quotient vector spaces are all special cases: one first defines an equivalence relation encoding "differ by an element of (or , or )," confirms it is an equivalence relation, and then the Fundamental Theorem guarantees the classes genuinely partition the ambient set — a prerequisite for the group/ring/vector-space operations to even be sensibly defined on the classes. The deeper question of whether operations defined on representatives are actually well-defined on classes is the subject of Quotient Sets and Well-Definedness.
Does this correspondence require to be finite?
No. Nothing in the statement or the proof assumes finiteness; can be any set, including infinite ones, as both worked examples (integers under congruence, and pairs of integers modulo cross-multiplication) demonstrate. Finiteness is irrelevant to the logical structure of the argument, which is purely about membership, reflexivity, symmetry, and transitivity — properties that make sense for sets of any cardinality, a theme that continues into the study of Cardinality.
If I only check that classes are pairwise disjoint and cover , have I verified is an equivalence relation?
Not directly — pairwise disjointness and covering are properties of the partition you get out, not axioms you check on itself. To confirm is an equivalence relation you must verify reflexivity, symmetry, and transitivity directly from its definition, as in both worked examples. The payoff of the theorem is that once you've done that, the disjoint-covering structure of follows automatically — you never need to separately re-verify it by brute-force set comparison.