Relations
A relation from a set to a set is any subset of the Cartesian product — a precise way to encode "is connected to," "is less than," or "is equal to." The key result is that relations on a single set are classified by which of three properties (reflexivity, symmetry, transitivity) they satisfy, yielding equivalence relations (which partition sets) and order relations (which rank them). Relations appear everywhere in mathematics, computer science, and logic. The modern set-theoretic formulation is due to Peirce, Schröder, and Russell in the late 19th and early 20th centuries.
Everything that connects mathematical objects — equality, order, divisibility, congruence, adjacency — is captured by selecting which pairs belong together. A relation is just a set of ordered pairs. By demanding combinations of three structural properties (reflexive, symmetric, transitive), we carve out the two most important species: equivalence relations (which behave like generalized equality) and partial orders (which behave like generalized ). The miracle is how much mathematics is generated by these three axioms.
Formal Statement
Let and be sets. A binary relation from to is a subset of the Cartesian product:
Derivation hint: The Cartesian product collects every possible ordered pair; a relation simply selects which pairs to keep. We write . When , we call a relation on . The domain and range are:
Derivation hint: Project the pairs in onto their first and second coordinates respectively.
A relation on a set may satisfy:
Derivation hint: Every element relates to itself — the diagonal .
Derivation hint: The relation is its own inverse, , where .
Derivation hint: Chains compose — composing with itself stays inside , i.e. . Two further properties define orderings:
Derivation hint: Two-way relation can only happen on the diagonal; forbids genuine cycles of length 2.
A relation on is an equivalence relation if it is reflexive, symmetric, and transitive. The equivalence class of is:
Derivation hint: Collect everything equivalent to ; symmetry and transitivity make this well-behaved. A relation on is a partial order if it is reflexive, antisymmetric, and transitive. The pair is then a partially ordered set (poset).
Let be an equivalence relation on a set . Then the equivalence classes form a partition of : they are nonempty, pairwise disjoint, and their union is . Conversely, every partition of arises from a unique equivalence relation. This establishes a bijection:
Derivation hint: Map each relation to its set of classes; map each partition to "lies in the same block."
Why It Holds
We prove the three partition conditions from the equivalence axioms.
Step 1 — Each class is nonempty and covers . By reflexivity [3], , so . Thus every class contains its representative and is nonempty; moreover every lies in some class (namely ), so .
Step 2 — Classes are equal or disjoint. Suppose ; pick . Then and . By symmetry [4], ; combined with , transitivity [5] gives .
Step 3 — Conclude . Take any , so . Since (Step 2), transitivity yields , hence . So ; by symmetric argument . Therefore .
Step 4 — Disjointness. Contrapositively, if then by Step 3 they cannot intersect, so .
Step 5 — Converse. Given a partition , define iff lie in the same block. Reflexivity holds since each is in its own block; symmetry is automatic ("same block" is symmetric); transitivity holds because blocks are disjoint, so sharing a block with and sharing with forces all three into one block.
∎Peirce, an American polymath, developed the algebra of relations in the 1870s–1880s, extending De Morgan's earlier work. He introduced systematic notation for relative operations (composition, converse) and recognized relations as fundamental logical objects rather than derivative of properties. His work, refined by Ernst Schröder, fed directly into Bertrand Russell and Whitehead's Principia Mathematica, where relations became the backbone of the logicist program. Peirce famously argued that relations are irreducible — that genuinely triadic relations cannot be decomposed into dyadic ones, a deep claim in his theory of categories.
Building Intuition
Picture a relation as a directed graph: draw a dot for each element, and an arrow whenever . Then the abstract axioms become pictures you can see:
- Reflexive = every dot has a self-loop.
- Symmetric = every arrow comes with a reverse arrow (so you may as well draw undirected edges).
- Transitive = whenever you can walk , there's a direct shortcut .
An equivalence relation is then a graph that breaks into fully-connected clumps — each clump is one equivalence class, an "island of sameness." A partial order is an arrow-diagram with no cycles (drawn as a Hasse diagram, going upward), where transitivity lets us infer indirect comparisons but antisymmetry forbids two distinct elements from sitting at the same level via mutual arrows.
Worked Examples
Given: Define on by (i.e. ). Verify it is an equivalence relation and list the classes.
Step 1 — Reflexive: since . ✓
Step 2 — Symmetric: If , write . Then , so . ✓
Step 3 — Transitive: If and , then , so . ✓
Step 4 — Classes: Each integer is equivalent to its remainder on division by 5. There are exactly 5 classes:
Derivation hint: The Division Algorithm gives a unique remainder for each integer.
Answer:
Given: On the set (divisors of 12) define (" divides "). Show it is a partial order and find maximal/minimal elements.
Step 1 — Reflexive: since . ✓
Step 2 — Antisymmetric: If and with , then and , forcing . ✓
Step 3 — Transitive: If and , then , so . ✓
Step 4 — Extremes: The least element is (divides all); the greatest is (divisible by all in ). Comparable chains include and , but and are incomparable ( and ) — confirming it is partial, not total.
Answer:
Common Misconceptions
Symmetry + Transitivity does NOT imply Reflexivity. A common false "proof": if then by symmetry , and by transitivity . The flaw: this only forces for elements that relate to something. An element related to nothing never gets a self-loop, so the relation can fail reflexivity. Reflexivity must be checked independently. Also beware: "antisymmetric" is not the negation of "symmetric." A relation can be both (e.g. equality ), neither, or one without the other. Antisymmetric means mutual arrows only occur on the diagonal.
On take . Check: it is symmetric (every pair has its reverse) and transitive (the only chains stay within ). But it is not reflexive because — the element is related to nothing, so it gets no self-loop. Hence is not an equivalence relation despite having two of the three properties, decisively refuting the "derivation" of reflexivity in the warning above.
Connections
Relations sit at the crossroads of nearly every undergraduate subject. A Function is precisely a relation in which every relates to exactly one — functions are "single-valued, total" relations. Equivalence Relations manufacture Quotient Sets, the engine behind constructing , quotient groups, and quotient topological spaces. Partial Orders generalize to Lattices and underlie Order Theory and domain theory in semantics. In Graph Theory, a relation on a finite set is a directed graph, and symmetric relations are undirected graphs. The algebra of relations (composition, converse, intersection) forms a Relation Algebra, connecting to Boolean Algebra and category theory, where relations form a category .
Real-World Applications
Historical Development
Subtleties & Limits
The set-theoretic reduction of relations is clean for binary relations, but -ary relations and the question of whether all relations reduce to binary ones is philosophically loaded — Peirce insisted that genuine triadic relations (like " gives to ") are irreducible to dyadic compositions, a claim with no purely formal resolution. On the algorithmic side, deciding whether the transitive closure of an infinite relation is itself definable, or whether a finitely-axiomatized first-order theory of relations is decidable, connects to deep undecidability results: Tarski's relation algebra is not finitely axiomatizable in a strong sense (Monk, 1964), and many problems about representable relation algebras remain open. In order theory, characterizing which partial orders extend to total orders (always possible by the Szpilrajn extension theorem, but requiring the Axiom of Choice for infinite sets) shows that even basic facts about relations depend on foundational choices.
See Also
Cartesian Product · Functions · Equivalence Relations · Partial Orders · Lattices · Graph Theory · Modular Arithmetic · Relational Algebra · Quotient Sets · Order Theory