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.

A relation from to is formally a subset of ; we write (or ) to mean " stands in relation to ." This deceptively simple definition unifies an enormous range of mathematical concepts — functions, orderings, equivalences, and graphs are all special kinds of relations. Why it matters: relations are the connective tissue of mathematics, providing the language in which we say how objects relate rather than merely what they are. A surprising fact is that the seemingly different notions of "equality up to some criterion" (equivalence) and "partitioning a set into disjoint pieces" are literally the same thing — there is a perfect bijection between equivalence relations on a set and partitions of it.

The Core Insight

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

Binary Relation

Let and be sets. A binary relation from to is a subset of the Cartesian product:

1
⟳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:

2
⟳Project the pairs in onto their first and second coordinates respectively.

The Three Structural Properties

A relation on a set may satisfy:

3
⟳Every element relates to itself — the diagonal .
4
⟳The relation is its own inverse, , where .
5
⟳Chains compose — composing with itself stays inside , i.e. .

Two further properties define orderings:

6
⟳Two-way relation can only happen on the diagonal; forbids genuine cycles of length 2.

Equivalence Relation and Partial Order

A relation on is an equivalence relation if it is reflexive, symmetric, and transitive. The equivalence class of is:

7
⟳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).

Fundamental Theorem on Equivalence Relations

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:

8
⟳Map each relation to its set of classes; map each partition to "lies in the same block."

Why It Holds

Equivalence Classes Partition the Set

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.

Charles Sanders Peirce | 1839–1914

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.

Relation as a directed graph: a symmetric, reflexive relation breaking into two equivalence classes

Equivalence Relation → Partition into Classes [a] = {a, b, c} a b c [d] = {d, e} d e Self-loops (reflexivity) omitted for clarity; edges undirected (symmetry); clumps are classes

Worked Examples

Congruence modulo 5

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:
9
⟳The Division Algorithm gives a unique remainder for each integer.
Answer:

Divisibility as a partial order

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.

Symmetric + Transitive ≠ Equivalence

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

  1. Databases (Relational Model). E.F. Codd's relational database model represents every table as a relation (a subset of a Cartesian product of column domains); SQL queries are operations in relational algebra (join, projection, selection).
  2. Modular Arithmetic & Cryptography. Congruence relations underpin RSA encryption, hash functions, and checksums (ISBN, credit-card Luhn checks).
  3. Sorting & Scheduling. Partial orders model task dependencies; topological sorting of a poset schedules jobs respecting prerequisites (build systems like Make, project management with PERT charts).
  4. Type Systems & Subtyping. In programming languages, the subtype relation (Cat <: Animal) is a partial order that compilers traverse for type checking.
  5. Equivalence in Quotient Constructions. Building the rationals from pairs of integers, or the real numbers from Cauchy sequences, uses equivalence relations to identify "the same" object.
  6. Social Network Analysis. "Friendship" is a symmetric relation; "follows" is a general directed relation — graph algorithms compute connected components (equivalence classes) and influence rankings.
  7. Equivalence Checking in Hardware. Verifying two circuits compute the same function uses equivalence relations on Boolean expressions and BDD-based comparison.

Historical Development

  • 1847 — Augustus De Morgan publishes early work on the logic of relations, noting Aristotelian syllogistics cannot handle "is greater than."
  • 1860s–1880s — Charles S. Peirce develops a full algebra of relatives, introducing notation for converse and relative product (composition).
  • 1870 — Richard Dedekind uses equivalence-class-like constructions (cuts) to build the real numbers, an early implicit use of equivalence relations.
  • 1890s — Ernst Schröder systematizes the algebra of relations in his Vorlesungen über die Algebra der Logik.
  • 1895–1897 — Georg Cantor's set theory provides the ordered-pair and Cartesian-product machinery relations require.
  • 1910–1913 — Russell and Whitehead's Principia Mathematica make relations central to logicism, defining them as classes of ordered pairs.
  • 1921 — Kazimierz Kuratowski gives the now-standard set-theoretic definition of the ordered pair , grounding relations purely in set theory.
  • 1940s — Alfred Tarski revives and axiomatizes relation algebra as an abstract algebraic structure.
  • 1970 — Edgar F. Codd publishes "A Relational Model of Data for Large Shared Data Banks," translating relation theory into the foundation of modern databases.

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

Before this

  • Set Theory — relations are subsets of Cartesian products; you need union, intersection, subset.
  • Cartesian Product — the universe $A \times B$ from which relations are carved.
  • Ordered Pairs — the atomic building block $(a,b)$, formalized by Kuratowski.
  • Logical Quantifiers — the properties (reflexive, symmetric, etc.) are stated with $\forall$ and $\exists$.
  • Proof Techniques — verifying properties requires direct and contrapositive proof.

Where this leads

  • Functions — single-valued total relations; the next major specialization.
  • Equivalence Relations — the partition theorem powers quotient constructions everywhere.
  • Partial Orders — leads to lattices, well-orderings, and Zorn's Lemma.
  • Quotient Structures — quotient groups, rings, and spaces built from equivalence relations.
  • Graph Theory — relations on finite sets are exactly directed graphs.