Quotient Sets and Well-Definedness
Suppose you want to add fractions. A fraction like is really just a name. It's a name for the number that , , and also name. Addition of fractions is defined by the rule . But how do you know the answer doesn't depend on which names you picked? This question is about whether an operation defined on representatives actually descends to an operation on the things they represent. It is the problem of well-definedness. This problem sits at the heart of an enormous amount of ordinary mathematics. The formal machinery for this problem is the quotient set. Given a set and an equivalence relation on , the quotient set collects the equivalence classes of . These classes form a brand-new set. Its elements are themselves sets of elements of . This construction converts "sameness up to " into literal set-theoretic equality. Two classes and are equal as elements of exactly when . Quotient sets let us build new mathematical objects this way. Examples include the integers from pairs of naturals, and the rationals from pairs of integers. Other examples are remainders mod , congruence classes, and cosets of a subgroup. We do this by declaring certain elements "the same." Then we work with the resulting classes as if they were single points. The subtlety appears once you pass to the quotient. Suppose you want to define a function or relation on classes. First you choose a representative and compute something with it. But this must be checked for well-definedness. Does the result depend only on the class? Or does it secretly depend on which representative you happened to pick? This check is not a formality. It is a genuine proof obligation. Forgetting it is one of the most common errors made by students. This tends to happen when they are first learning to build quotient structures. This article gives the precise definition of . It proves the fundamental theorem linking equivalence relations, partitions, and quotient sets. It develops the general recipe for proving a map on a quotient is well-defined. It closes with worked examples: rational numbers and arithmetic modulo . It also gives a counterexample showing what happens when well-definedness genuinely fails. Finally, it looks at where this idea recurs throughout modern mathematics.
- is the set of all equivalence classes of on ; its elements are sets of elements of , not elements of itself.
- The Fundamental Theorem of Equivalence Relations says equivalence relations on correspond exactly to partitions of , and this correspondence is what makes meaningful.
- Defining a function "by representatives" means picking a rule and setting .
- Such an is well-defined iff implies for all — this is a theorem you must prove, not an assumption.
- Classic constructions (rationals from integer pairs, modular arithmetic, cosets) are quotient sets whose operations require exactly this check.
- Key idea: a rule on representatives determines a genuine function on the quotient only if equivalent representatives always produce equal outputs.
Where this lives today
Quotient constructions and their well-definedness checks are everywhere once you know to look. In abstract algebra, quotient groups , quotient rings , and quotient vector spaces are all built exactly this way: elements of the quotient are cosets (equivalence classes), and operations like require the same representative-independence proof, using the defining properties of a normal subgroup or ideal. In number theory and cryptography, modular arithmetic — the backbone of RSA and other public-key systems — is arithmetic on the quotient set , and every claim that "encryption commutes with the modular operations" ultimately rests on a well-definedness argument of this kind. In topology, quotient spaces (gluing constructions like forming a torus from a square, or projective space from a sphere) use the same equivalence-class idea, now demanding also that continuity of maps descend to the quotient topology. In computer science and formal verification, data type invariants and "canonical forms" (e.g. representing rational numbers, or terms modulo alpha-equivalence in lambda calculus) are handled by exactly this apparatus, since programs must be shown to give consistent output regardless of which internal representative of an abstract value they receive. In statistics and measure theory, spaces of random variables identified when they agree "almost surely" form a quotient set, and operators (like conditional expectation) must be checked to be well-defined on these classes.
:::quiz[The Well-definedness Criterion says is a well-defined function on if and only if:]
- is injective on
- is surjective onto
- implies , for all ✓
- implies
Ask the tutor: Can you show me why the "check both coordinates separately" step in the fraction-addition example is enough to guarantee full well-definedness on pairs of classes?
Let be a set and let be an equivalence relation on . For , the equivalence class of is
The quotient set of by , written , is the set of all equivalence classes:
Thus is a subset of the power set : an element of is itself a set (an equivalence class), and two elements satisfy
The map defined by is called the quotient map (or canonical projection); it is always surjective. Now suppose is any set and is a function. We say respects (or is compatible with ) if
If respects , we say the rule
defines a well-defined function . Well-definedness means precisely: the value of at a class does not depend on which representative of (i.e. which with ) was used to compute .
Intuition
Think of as a set of raw objects and as an instruction for "gluing together" objects that we've decided to regard as the same. The quotient set is the set of resulting blobs, one blob per equivalence class. The quotient map sends each raw object to its blob. Crucially, is generally not injective: many different elements of can land in the same blob. That collapsing is the entire point — it's how we manufacture new mathematical objects (like "the number ") out of old ones (like "pairs of integers"). The trouble comes when we want to define an operation on blobs. A blob has no preferred representative — as a fraction class has representatives , , , all equally legitimate. If we compute an answer using one representative, we must get the same answer no matter which representative we had used, or the "operation on blobs" isn't really an operation at all — it would be assigning multiple different outputs to the single input , violating the very definition of a function. The well-definedness check is exactly the verification that our chosen computation doesn't secretly "look inside" the blob and depend on more information than the blob itself contains. The picture below shows partitioned by congruence mod into three classes, collapsed to the three-point quotient set .
Central results
Let be a set. 1. If is an equivalence relation on , then the collection of equivalence classes is a partition of : its members are nonempty, pairwise disjoint, and their union is . 2. Conversely, if is a partition of , then the relation defined by
is an equivalence relation on , and . 3. These two processes are mutually inverse: starting from , forming , and then forming recovers ; starting from , forming , and then forming recovers .
We use direct verification from the definitions of equivalence relation (reflexive, symmetric, transitive) and partition.
(1) is a partition. Nonempty blocks. For each , reflexivity gives , so ; hence . Cover. Every lies in , so . Pairwise disjoint (via the key lemma ). We first prove: for , either or . Suppose ; pick , so and . We show . Let , so . Since , symmetry gives , and transitivity on , gives . Since , transitivity gives , i.e. . This shows . By the symmetric argument (swapping roles of and ), . Hence . So any two classes are either identical or disjoint; since is defined as a set of classes (repeats collapse automatically, as sets contain no duplicate elements), distinct elements of are automatically disjoint. Combined with nonemptiness and the covering property, is a partition of .
(2) is an equivalence relation with . Since is a partition, every lies in exactly one block (existence because covers ; uniqueness because blocks are pairwise disjoint). Define to mean . Reflexive: , so . Symmetric: if then , so . Transitive: if and then , so and imply . Thus is an equivalence relation. Its equivalence class of is
because forces by uniqueness of blocks, and conversely forces . So the equivalence classes of are exactly the blocks of , giving .
(3) The two constructions are mutually inverse. Starting from an equivalence relation , form the partition , then form . By definition, iff lie in the same block of , i.e. iff (blocks of are exactly the classes ). We showed in part (1)'s lemma that . Hence , so . Starting from a partition , form , then form : part (2) already showed directly that . This establishes the claimed mutual inversion, completing the proof.
∎Let be an equivalence relation on , let be a set, and let be a function. Define on by attempting to set for each class . Then:
Moreover, when this condition holds, is the unique function satisfying , where is the quotient map.
() Suppose is a well-defined function on with for all . Let . By the Fundamental Theorem (part 1's lemma, restated: ), implies . Since is a function, equal inputs give equal outputs: . Substituting the defining rule, . () Suppose the compatibility condition holds. We must check that the assignment for any with is a genuine function on , i.e. that it assigns exactly one value in to each . Existence of a value: every has the form for some (by the definition of as ), so at least one representative exists, and is defined. Independence of the choice of representative (single-valuedness): suppose both satisfy . By the Fundamental Theorem lemma, implies . By the compatibility hypothesis, implies . So any two representatives of give the same value of ; call this common value . This shows , defined by for any representative of , is a genuine function with a single well-defined value at each point, and it satisfies for all by construction, i.e. . Uniqueness: if also satisfies , then for every , . Since every element of is of the form (surjectivity of ), and agree at every point of , so .
∎Worked examples
Example 1: Addition of rational numbers as fractions in lowest-terms-free form. Let , the set of pairs thought of as "the fraction ." Define on by
This is an equivalence relation (a standard fact we take as known, verified by checking reflexivity from ; symmetry by the commutativity of multiplication; and transitivity using that are all nonzero, so cancellation in is valid: from and , cross-multiplying by and respectively and comparing yields after cancelling the nonzero common factor ). We want to define addition on by
Take , , followed by the quotient map; formally we're defining a map on , but the same representative-independence idea applies to each coordinate separately, and we check it coordinate by coordinate for concreteness. Note since , so does land in .
Well-definedness check. Suppose , i.e. , and we replace by while keeping fixed. We must show
Using the definition of , this means checking
Expand the left side: . Expand the right side: (using ). So the claim reduces to , i.e. (since , so , and we may cancel in , an integral domain) to — which is exactly our hypothesis . Since and has no zero divisors, the cancellation is valid. The symmetric check for varying the second argument is identical with the roles of the two pairs swapped. By the Well-definedness Criterion (applied to each argument, or to the product relation on defined by "same in both coordinates"), addition of fractions
is a well-defined operation on . This is precisely the proof, usually skipped in school, that "adding fractions by finding a common denominator gives the same rational number no matter which representing fractions you started from."
Example 2: A map that is well-defined, and the specific representatives that test it. Let and let be congruence mod : . Define (identify with the usual parity classes) by
We claim this descends to a well-defined map , . Check the criterion. Suppose , i.e. . Since , in particular , so and have the same parity, i.e. . This verifies the hypothesis of the Well-definedness Criterion, so is a genuine, well-defined function . A concrete test. Take the class . Using representative : . Using representative (since , as ): . Using representative (since ): . All three representatives of the same class give the same output , exactly as the theorem guarantees. Contrast — what would fail. Suppose instead we tried and asked whether is well-defined on . Test representative of the class : . Test representative (since , so ): . We get from two representatives of the same class , so is not well-defined — this is exactly the failure the next block explores formally.
Counterexample
The Well-definedness Criterion requires for all , not just for some pairs. If we drop this hypothesis — i.e. attempt to define for an that is not compatible with — the resulting "rule" fails to be a function at all. Concretely, let and let be congruence mod , as in Example 2. Let and define by (ordinary remainder on division by ). Consider the class . We attempt to compute for a representative of :
- Using : .
- Using (note since ): .
- Using (note since ): (since ).
So representative gives output , while representatives and give output . The "rule" assigns two different values, and , to the single input . This violates the defining requirement of a function — that each input have exactly one output — so no function with exists. The root cause is visible directly: fails the compatibility hypothesis, since (as ) but . This single failure of compatibility is enough to destroy well-definedness entirely — the criterion is an "if and only if," so any violation for even one pair of -related elements produces a genuine contradiction with functionhood, not merely an inconvenience. This is precisely why, in the theory of , one may define addition and multiplication mod , but a rule like "" only descends to when — which fails here, and the failure is exactly what breaks the construction.
Scope, edge cases & common traps
| Situation | What to check | Common error |
|---|---|---|
| Defining for one-variable | for all pairs | Checking only one or two sample representatives, not a universally quantified statement |
| Defining an operation | Independence under changing and independence under changing (often two separate checks) | Verifying only one coordinate and assuming symmetry handles the other |
| is finite (e.g. ) | Same universal compatibility condition; finiteness gives no shortcut | Believing "checking a few cases" ever substitutes for the general argument |
| Relation is only reflexive+symmetric (not transitive) | The Fundamental Theorem's disjointness argument needs transitivity | Calling classes "equivalence classes" for a non-transitive relation, then applying the theorem anyway |
| happens to be injective | Injectivity of says nothing about compatibility with | Assuming an injective is automatically well-defined on |
The mathematician behind it
Origins · 1 minRichard Dedekind and how this was discovered
Dedekind was among the first to treat "sameness up to an equivalence" as a rigorous algebraic tool rather than an informal convenience. His construction of ideals in rings of algebraic integers — and his method of Dedekind cuts for constructing the real numbers from the rationals — both hinge on the idea of collecting equivalent or compatible objects into a single new object and then verifying that arithmetic operations descend correctly to these new objects. This is exactly the well-definedness pattern formalized in this article, applied by Dedekind decades before the general set-theoretic language of equivalence relations and quotient sets was codified.
What exactly is the difference between an equivalence class and the quotient set?
An equivalence class is a subset of : the set of all elements equivalent to . The quotient set is a set of such subsets — one element for each distinct equivalence class. So if and groups and , then is a subset of with two elements, while is a two-element set whose elements are themselves sets. This distinction — class as subset, quotient as set-of-subsets — is exactly why .
Do I always need to check well-definedness "by hand" using the criterion?
Yes, in the sense that the criterion is what the check reduces to, though in practice you streamline the algebra. Whenever you define a function or operation on a quotient by choosing representatives and computing with them, you must verify that swapping any representative for an equivalent one leaves the output unchanged. There is no shortcut around this for a genuinely new construction; what varies from example to example is how much algebra the verification requires, not whether the verification is logically necessary.
Can well-definedness fail in only "some" cases but not others?
No — well-definedness is an all-or-nothing property of the pair : either the universally quantified statement "" holds for every pair, or it fails for at least one pair. If it fails for even a single pair, then, as the counterexample shows, the proposed rule assigns two different values to one class, so it isn't a function at all on the quotient. There's no notion of "mostly well-defined."
How does this connect to functions being a special kind of relation?
A function is often defined as a relation satisfying: for every there is exactly one with . The well-definedness check is precisely verifying this "exactly one" clause when the proposed relation is on : existence of an output is automatic (every class has a representative), and the real content is uniqueness — that no class gets sent to two different outputs. This ties the quotient-set discussion directly to the general treatment of Functions as Special Relations.
Is the quotient map itself an example of this construction?
Yes, trivially and instructively: take and itself, i.e. . Compatibility is immediate — if then by the Fundamental Theorem, so holds automatically. This shows the quotient map is always well-defined "for free," which is exactly why every quotient construction begins by taking for granted before worrying about any further structure (like addition) defined on top of it.
What if is not an equivalence relation, just reflexive and symmetric?
Then as we've defined it may fail to be a partition, because the disjointness argument in the Fundamental Theorem genuinely used transitivity. Concretely, on , let , , but not (plus reflexivity and symmetry). Then and overlap in without being equal, so the "classes" are not pairwise disjoint, and the resulting collection is not a partition. The entire theory in this article requires genuine equivalence relations.
Why does this matter for cryptographic or computational systems that use modular arithmetic?
Systems built on (like RSA) represent numbers by one integer among infinitely many congruent choices, and every operation — modular multiplication, exponentiation, inversion — must be proven independent of which representative integer was used internally. This is exactly the Well-definedness Criterion applied to 's built from ordinary integer arithmetic composed with reduction mod ; without this guarantee, the same abstract residue class could be computed to different "answers" depending on implementation details, which would make the cryptosystem's correctness proofs meaningless.