
An equivalence relation formalizes a choice to treat objects as the same for a particular purpose. Integers can have the same remainder, strings can have the same length, and records can have the same classification. The objects need not be equal. What matters is that the chosen test divides the whole underlying set into consistent, nonoverlapping classes.
This note uses the relation properties from Note 1.1. Its main connection is a two-way correspondence: equivalence relations determine partitions, and partitions determine equivalence relations.
1. Equivalence Relations and Proof Methods
A relation on a set is an equivalence relation if it is reflexive, symmetric, and transitive. When these conditions hold, write for .
| Requirement | What must be proved |
|---|---|
| Reflexive | Every satisfies |
| Symmetric | For arbitrary , implies |
| Transitive | For arbitrary , and imply |
Checking several pairs is not a proof on an infinite set. Begin with arbitrary elements and use the defining condition. To disprove equivalence, one explicit failure of any required property is enough.
Example: Congruence modulo an integer. Fix an integer . On , define when . Prove that this is an equivalence relation.
Show proof
- Reflexivity: , so .
- Symmetry: If for an integer , then .
- Transitivity: If and , then .
Each required property holds for arbitrary integers, so congruence modulo is an equivalence relation. Negative integers are included; divisibility of the difference is the defining test.
Equality of a Feature
A useful general construction starts with any function :
Equality of outputs is reflexive, symmetric, and transitive, so this always defines an equivalence relation. Its classes are the nonempty fibers . Surjectivity is not needed: values outside the image produce empty fibers, which are not classes.
For instance, if is the length of a finite string, the classes collect strings of the same length. The empty string forms the only member of the length-zero class. A feature groups objects by a specified rule; it does not assert that the objects themselves are identical.
Counterexample: Being close is insufficient. On , define when . Determine whether this is an equivalence relation.
Show the property checks
It is reflexive because , and symmetric because . It is not transitive: and , but is not related to . Thus it is not an equivalence relation. Overlapping neighborhoods cannot be treated as equivalence classes without changing the relation.
2. Equivalence Classes and Quotient Sets
For an equivalence relation on , the equivalence class of is
The subscript can be omitted when the relation is clear. Symmetry allows the equivalent definition . The element is a representative of its class; different representatives may name the same class.
For any , the following statements are equivalent:
To prove the first implication, suppose . If , transitivity gives , so . Symmetry gives , yielding the reverse inclusion. If the classes are equal, their intersection contains by reflexivity. Finally, if belongs to both classes, then and ; symmetry gives , and transitivity gives .
Consequently, two classes are either exactly equal or disjoint. They cannot partly overlap. Also for every , so no class is empty and their union covers .
The quotient set is the set of distinct equivalence classes:
Its elements are subsets of , not individual elements of . Repeated names for the same class are listed only once. The map sends every original element to the class containing it.
For a finite illustration, take with equivalence defined by equal remainders modulo 3. The projection sends each number to its whole equivalence class:
For example, , , and are different elements of , but . Counting representatives and counting distinct classes answer different questions.
Example: Classes with negative representatives. For congruence modulo 3 on , find , , and the quotient set. Explain why there are three classes rather than infinitely many.
Show classes and representatives
For any integer ,
Since is divisible by 3, . This class is . Every integer has exactly one remainder in , so
The infinitely many integers provide infinitely many representatives, but only three distinct classes. No arithmetic on these classes has yet been defined; a quotient set by itself is simply a set of classes.
3. Partitions and the Two-Way Correspondence
A partition of is a collection of subsets, called blocks, such that:
- Every block is nonempty.
- Distinct blocks are disjoint.
- The union of all blocks is .

Equivalently, every element of belongs to exactly one block. A collection with overlapping blocks or an omitted element fails to be a partition. With the usual convention, the empty collection is the partition of the empty set.
The class theorem above proves that is a partition whenever is an equivalence relation. Conversely, given a partition , define
In words, two elements are related exactly when they belong to the same block. Reflexivity follows because each element belongs to a block. Symmetry follows because block membership has no direction. For transitivity, if share a block and share a block, those blocks intersect at . Disjointness forces them to be the same block, so share it as well.
The classes of are exactly the original blocks. Starting with an equivalence relation, forming its classes, then reconstructing same-block pairs likewise recovers the original relation. Thus this is a one-to-one correspondence, not just a method that produces some relation.
Example: A finite restriction of modular congruence. Let and define when . Find the partition and the number of ordered pairs in .
Show the partition and pair count
The partition is
Each block contributes its full Cartesian square, including loops and both directions between distinct elements. Each has three elements and contributes pairs. The blocks do not overlap, so .
These finite classes differ from the classes on : for example, here , whereas on it includes every multiple of 3. Always identify the underlying set before listing a class.
4. Reconstructing Relations and Matrices
For a finite partition with block sizes ,
The second formula counts ordered pairs, including diagonal pairs. It does not count unordered pairs and does not count equivalence classes; the latter number is .
If rows and columns are ordered block by block, the zero-one matrix has square all-one blocks along its diagonal and zeros elsewhere. Inside a class every pair is present; between different classes every pair is absent. In the digraph, each class has every loop and both directed edges between any two distinct vertices, with no edges between classes.
Example: From a partition to a relation. On take . List all pairs, give the matrix in the order , and identify and .
Show reconstruction
Taking the Cartesian square of each block gives
In the requested ordering,
There are pairs, agreeing with the list and matrix. The class equals , and has three elements. A different row ordering would rearrange the matrix without changing the relation.
5. Review and Self-Check
- On , does define a partition? If its two block squares are simply united, which equivalence property fails? Give a witness.
- Let be congruence modulo 4 on . Find , decide whether , and list the distinct classes.
- An equivalence relation on a six-element set has class sizes 1, 2, and 3. How many classes and ordered pairs does it have? Can two of its classes share exactly one element?
Show self-check answers
- The proposed blocks overlap at , so they are not a partition. The union of their squares contains and but not ; it is not transitive. Merging all three elements into one block would produce a different relation.
- . The distinct classes are .
- There are three classes and ordered pairs. Distinct classes are disjoint, so they cannot share one element.
Equivalence relations organize objects into classes. Note 1.8 develops a different use of relations: comparing objects without requiring every two objects to be comparable.
6. Compatible Relations and Operations
Compatible Relations and Complete Covers
A compatible relation is reflexive and symmetric. For example, on define by . Here and , while and fail the test, so transitivity fails.
A nonempty subset is a compatible class when every pair in belongs to . To find such sets in a finite example, omit the loops and draw one undirected edge for each related pair of distinct elements. A compatible class is a clique: every two distinct vertices in it are joined. It is maximal if no additional vertex can be included while preserving the pairwise condition. In the example the simplified graph has edges , , and . Each edge gives a maximal class, and every singleton can grow into an edge. The resulting complete cover is . It covers and some classes overlap. For any finite compatible relation, a singleton can be enlarged to a maximal class, so the maximal classes cover the set.
Intersections and Unions of Equivalence Relations
If and are equivalence relations on , then is an equivalence relation. Every diagonal pair is in both, and reversals and transitive consequences of pairs in both belong to both. Its class of is .
The union is compatible because each diagonal pair is present and every pair can be reversed within the relation that supplied it. A two-step chain can use one pair from each relation and have no matching endpoint pair in either. For example, let the partitions be and . Their union contains and and omits . Its transitive closure adds both and , giving the universal equivalence relation on the three elements.
Glossary and Sources
| Term | Main idea |
|---|---|
| Equivalence relation | Reflexive, symmetric, and transitive relation |
| Equivalence class | All elements equivalent to a given representative |
| Quotient set | Set of distinct equivalence classes |
| Partition | Nonempty, disjoint blocks covering the underlying set |
| Representative | An element used to name its class |
- Kenneth H. Rosen, Discrete Mathematics and Its Applications, 8th edition, Section 9.5, printed pages 638–646.
- Figure 1 is a constructed illustration of the quotient map. Figure 2 is cropped from Rosen, Section 9.5, Figure 1 (printed page 644). The finite examples, matrix, and self-checks are constructed from the stated definitions. Equality of a feature is a general formulation of the equal-length and congruence constructions.
Updated: