Relations — Equivalence Relations and Partial Orders

A relation on a set is a collection of ordered pairs; two special kinds dominate mathematics. An equivalence relation (reflexive, symmetric, transitive) partitions a set into disjoint classes of "interchangeable" elements, while a partial order (reflexive, antisymmetric, transitive) arranges elements into a hierarchy of "comparability." They appear everywhere from modular arithmetic and quotient constructions to scheduling, dependency graphs, and lattice theory. Studied systematically since the late 19th century (Dedekind, Peirce, Cantor).

A binary relation on a set is any subset of the Cartesian product ; we write to mean . From this minimal definition, imposing combinations of three properties — reflexivity, symmetry/antisymmetry, and transitivity — produces the two most important structured relations in mathematics. An equivalence relation generalizes equality: it groups elements into equivalence classes that form a partition, and this correspondence between equivalence relations and partitions is exact (one of the cleanest bijections in all of mathematics). A partial order generalizes "less than or equal to": it lets us compare some elements while leaving others incomparable, which is exactly what is needed to model dependency, containment, and divisibility. The surprising fact: every finite partial order can be drawn as a Hasse diagram and is determined entirely by its covering relation, so an apparently infinite list of comparisons collapses to a finite skeleton.

The Core Insight

Three atomic properties — reflexive, symmetric/antisymmetric, transitive — recombine into two fundamentally different worlds. Keep symmetry and you get sameness (equivalence → partitions → quotients). Replace symmetry with antisymmetry and you get ranking (partial order → hierarchies → lattices). The single property they share, transitivity, is what makes both "behave like" the relations they generalize (equality and ≤).

Formal Statement

Binary Relation and Its Properties

A binary relation on a set is a subset . We write or depending on context.

1
⟳A relation is literally just the set of pairs that "stand in the relation"; everything else is a property this set may or may not have.

The four fundamental properties, for all :

2
⟳every element relates to itself; the diagonal is contained in .
3
⟳the pair set is closed under swapping coordinates, i.e. .
4
⟳the only way two elements can relate both ways is if they are identical; .
5
⟳chains collapse to a single link; in relational-composition terms .

Equivalence Relation

A relation on is an equivalence relation if it is reflexive [2], symmetric [3], and transitive [5]. For , its equivalence class is

6
⟳collect all elements indistinguishable from under ; this set is the basic building block.

The set of all equivalence classes is the quotient set:

7
⟳take the collection of distinct classes; each appears once even if many representatives generate it.

Partition

A partition of is a collection of nonempty subsets (blocks) of such that every element lies in exactly one block:

8
⟳the blocks cover everything (union is ) and never overlap (pairwise disjoint), so each element has a unique home.

Fundamental Theorem of Equivalence Relations

There is a bijection between the set of equivalence relations on and the set of partitions of . Given , the family of equivalence classes is a partition; conversely, given a partition , the relation " iff lie in the same block" is an equivalence relation. These constructions are mutually inverse.

Partial Order, Poset, Total Order

A relation on is a partial order if it is reflexive [2], antisymmetric [4], and transitive [5]. The pair is a partially ordered set (poset). Two elements are comparable if or ; otherwise incomparable (written ). A partial order in which every pair is comparable is a total (or linear) order:

9
⟳add the demand that no two elements are incomparable; this upgrades a partial order to a chain.

The strict order associated with is , which is irreflexive and transitive.

Covering Relation and Hasse Diagram

In a poset , element covers (written ) if and no satisfies :

10
⟳ sits immediately above with nothing in between; this is the "next step up."

A Hasse diagram draws elements as dots, places above whenever , and joins them by a line. The full order is recovered by transitivity, so only covers are drawn.

Why It Holds / Derivation

Equivalence Classes Form a Partition

Let be an equivalence relation on . We verify the two partition conditions [8].

Step 1 — Every element is covered. By reflexivity [2], , so . Hence each lies in at least one class and . Each class is nonempty (it contains its own generator). Step 2 — Classes are equal or disjoint. Suppose ; pick in the intersection, so and . By symmetry [3], . Take any , i.e. . Then by transitivity [5]: , give ; and , give , so . Thus , and by symmetry of the argument , giving . Step 3 — Conclusion. Either two classes coincide or are disjoint; combined with Step 1, is a partition. The inverse direction (a partition induces an equivalence relation) is checked directly: "same block" is trivially reflexive, symmetric, and transitive.

A Finite Poset Is Determined by Its Covering Relation

Let be a finite poset and let be its covering relation [10]. We claim iff there is a chain (with allowed, meaning ).

Step 1 — Chains imply order. Each gives , and by transitivity [5] applied repeatedly . Step 2 — Order implies a chain (finiteness used here). Suppose . If we are done. Otherwise there exists with . The strict order is a strict partial order, so consider the finite set ; pick a minimal such to make , and recurse on . Finiteness guarantees the process terminates, producing a covering chain. Step 3 — Conclusion. The full relation is the reflexive-transitive closure of , so the Hasse diagram (which records exactly ) loses no information.

Step 2 genuinely needs finiteness. In the covering relation is empty — between any two rationals lies a third — so has no Hasse diagram and cannot be reconstructed from covers. Dense orders are the canonical exception.

Richard Dedekind | 1831–1916

Dedekind brought ordered structures and equivalence into the foundations of mathematics. His Dedekind cuts (1872) construct the real numbers using a partition of the rationals into two ordered blocks — a partial-order idea at the heart of analysis. In Was sind und was sollen die Zahlen? (1888) he treated mappings, chains, and the precursors of equivalence classes with new rigor. The notion of a lattice — a poset with meets and joins — traces to his work on ideals and modules (Dualgruppen), later rediscovered and named by Birkhoff. Charles S. Peirce and Ernst Schröder independently developed the algebra of relations in the same era, and Cantor's cardinality theory rests squarely on the equivalence relation "is in bijection with."

Building Intuition

Think of an equivalence relation as a pair of "blurry glasses": elements that look the same through them get lumped together. Modular arithmetic mod 12 is a clock — 3 o'clock and 15 o'clock are the same point, so has just twelve classes. The quotient set is what you see after putting on the glasses: you've thrown away distinctions you decided don't matter.

A partial order is a "depends-on" or "is-bigger-than" arrow, but with the honest admission that some things just can't be compared. Subsets of a set under : and are incomparable — neither contains the other — yet both sit below . The Hasse diagram is the picture of this hierarchy with all redundant arrows erased. The crucial mental switch: symmetry says "both directions are the same," antisymmetry says "both directions can only happen if you're standing still."

Equivalence partition (left) vs. partial order Hasse diagram (right). The gold curve encloses one equivalence class; gold edges trace a covering chain.

Equivalence Relation → Partition Partial Order → Hasse Diagram [a] [b] (one class) [c] ∅ {1} {2} {3} {1,2} {1,3} {2,3} {1,2,3}

Worked Examples

Congruence Modulo 5 — Counting Classes

Given: the relation on defined by . Step 1 — Verify it is an equivalence relation.
  • Reflexive: . ✓
  • Symmetric: if then . ✓
  • Transitive: if and then . ✓
Step 2 — Identify the classes. Every integer leaves remainder or on division by 5. Two integers are related iff they share a remainder. So:
0
Step 3 — Count. There are exactly 5 distinct classes.

Divisibility Poset on {1,2,3,4,6,12} — Bounds

Given: with (divides). Step 1 — Confirm it is a partial order. Reflexive (), antisymmetric (if and with positive integers then ), transitive (, ). ✓ It is not total: (neither divides the other). Step 2 — Find covers. , , , , , , . (Note because .) Step 3 — Identify special elements.
  • Least element (bottom): , since for all .
  • Greatest element (top): , since for all .
  • Meet (greatest lower bound) of and : .
  • Join (least upper bound) of and : .

This poset is in fact a lattice: every pair has a meet () and join ().

Common Misconceptions

Reflexivity is not automatic — and the empty relation is a trap. The relation on a nonempty set is vacuously symmetric and transitive, but it is not reflexive (no ). So it is not an equivalence relation. Likewise, "symmetric + transitive ⟹ reflexive" is a famous fallacy: the bogus proof says "," but it silently assumes every relates to some . If is isolated, can fail. Antisymmetry ≠ asymmetry, and "not symmetric" ≠ "antisymmetric." Antisymmetry [4] permits (the diagonal is allowed); asymmetry forbids it entirely. A relation can be both symmetric and antisymmetric — namely any subset of the diagonal, e.g. equality itself. Do not assume the two properties are opposites. "Has the same first name as" looks like an order but isn't, and "is a friend of" isn't transitive. The relation is at least as tall as on a set of people is reflexive and transitive but generally not antisymmetric: two different people of equal height satisfy and without . So it is a preorder, not a partial order — to fix it you must pass to the quotient by "equal height."

The relation " knows " on a social network is reflexive and symmetric but not transitive (your friend's friend need not be your friend), so it is a tolerance/dependency relation, not an equivalence relation. To force an equivalence you take the transitive closure, yielding connected components.

Connections

Equivalence relations are the engine behind every quotient construction: Quotient Groups (), Quotient Topology, quotient rings, and Cardinality and Bijections (where "same size" is the equivalence "is in bijection with"). The First Isomorphism Theorem is precisely the statement that a homomorphism's kernel-equivalence quotient is isomorphic to its image. Partial orders generalize into Lattice Theory (posets with meets and joins) and underlie Order Topology and Zorn's Lemma, the order-theoretic form of the Axiom of Choice. Both relation types are instances of the general theory of Binary Relations and Their Composition, and the strict-order/total-order distinction connects directly to Well-Ordering and Ordinals. Graph-theoretically, an equivalence relation is a disjoint union of complete graphs, while a (strict) partial order is exactly a transitively closed Directed Acyclic Graphs.

Real-World Applications

  1. Modular arithmetic & cryptography — Congruence mod (an equivalence relation) defines , the backbone of RSA, Diffie–Hellman, hashing, and error-correcting codes.
  2. Task scheduling / build systems — make, Bazel, and CI pipelines model file/task dependencies as a partial order (a DAG); a valid build order is a topological sort, i.e. a linear extension of the poset.
  3. Version control & distributed systems — Git commit history and vector clocks in distributed databases use partial orders to capture "happened-before" causality (Lamport's relation), where concurrent events are incomparable.
  4. Database query optimization & type systems — Subtype relations in programming languages (Cat <: Animal) form a partial order; type checkers compute meets/joins in this lattice. SQL GROUP BY partitions rows by an equivalence relation.
  5. Clustering & image segmentation — Connected-components labeling and union–find partition pixels/data points into equivalence classes; the union–find data structure maintains a dynamic equivalence relation in near-constant time.
  6. Decision theory & rankings — Preference relations are partial orders (allowing "indifferent" or "incomparable" outcomes); Pareto optimality is defined via the product partial order on outcome vectors.
  7. Voting & social choice — Arrow's theorem concerns aggregating individual total/partial orders into a collective ranking, with sharp impossibility limits.

Historical Development

  • 1872 — Richard Dedekind constructs the reals via cuts, partitioning into ordered blocks — an order-theoretic foundation for analysis.
  • 1870s–80s — Charles S. Peirce develops the algebra of relations, formalizing composition, converse, and relational properties.
  • 1883 — Georg Cantor bases cardinality on the equivalence relation "is in bijection with," and ordinality on order types of well-orders.
  • 1888 — Dedekind's Was sind und was sollen die Zahlen? rigorously treats mappings and chains, prefiguring equivalence classes.
  • 1890s — Ernst Schröder's Vorlesungen über die Algebra der Logik systematizes the calculus of relations.
  • 1914 — Felix Hausdorff develops ordered and partially ordered sets in his foundational set-theory text, introducing modern poset language.
  • 1928–1933 — Helmut Hasse popularizes the diagrammatic representation now called the Hasse diagram in number-theory lectures.
  • 1933–1940 — Garrett Birkhoff founds modern lattice theory, unifying posets, Boolean algebras, and order structures; his Lattice Theory (1940) becomes the standard reference.
  • 1978 — Leslie Lamport formalizes the "happened-before" partial order for distributed systems, a landmark application in computer science.

Subtleties & Limits

Several deep issues lurk beneath this elementary surface. (1) Counting: the number of partitions of an -element set is the Bell number , but the number of distinct partial orders (and posets up to isomorphism) on elements has no known closed form and grows wildly — these are computed only for small . (2) Dimension theory: every finite poset embeds into a product of chains; the minimum number of chains needed is the poset's order dimension, and recognizing dimension- posets is NP-complete, with many extremal questions open. (3) Choice-dependence: the claim "every set can be well-ordered" and "every partial order extends to a total order" require the Axiom of Choice / Zorn's Lemma; without it these can fail, exposing the foundational sensitivity of order theory. (4) Infinite & dense orders: dense linear orders (like ) have no covering relation, so Hasse diagrams and finite combinatorial methods break down, and the model theory of such orders (Cantor's back-and-forth theorem and beyond) remains a rich research area.

See Also

Binary Relations and Their Composition · Quotient Topology · Cardinality and Bijections · Boolean Algebra · Directed Acyclic Graphs · Order Topology · First Isomorphism Theorem

Before this

Where this leads