Skip to content

A pair of objects where order matters — the building block of Cartesian products, binary relations, and functions.

An ordered pair (a,b)(a, b) is a pair of objects where order matters: (a,b)(b,a)(a, b) \neq (b, a) unless a=ba = b. Two ordered pairs are equal if and only if their first components agree and their second components agree: (a,b)=(c,d)(a, b) = (c, d) if and only if a=ca = c and b=db = d.

Order is the whole point. The pair (3,5)(3, 5) is different from (5,3)(5, 3). A plain set {3, 5} is the same as {5, 3} — sets have no order. An ordered pair records which came first and which came second.

In set theory, ordered pairs are constructed from sets using the Kuratowski definition: (a,b)={{a},{a,b}}(a, b) = \{\{a\}, \{a, b\}\}. This encoding ensures the order condition holds using only the axioms of set theory. The construction looks odd but it works: you can prove from it that (a,b)=(c,d)(a, b) = (c, d) if and only if a=ca = c and b=db = d.

The Cartesian product A×BA \times B is the set of all ordered pairs (a,b)(a, b) with aAa \in A and bBb \in B. If A has 3 elements and B has 4, then A×BA \times B has 12 ordered pairs.

Ordered pairs are the building blocks of binary relations and functions. A binary relation on A×BA \times B is a subset of A×BA \times B — a collection of ordered pairs specifying which elements are related. A function f:ABf : A \to B is a binary relation where each element of A appears in exactly one pair.

Ordered n-tuples (a1,a2,,an)(a_1, a_2, \ldots, a_n) extend the idea to any finite length. A triple is an ordered pair where one component is itself an ordered pair: (a,b,c)=((a,b),c)(a, b, c) = ((a, b), c). This nesting lets you build tuples of any length from pairs alone.

In a category, the Cartesian product generalizes to the categorical product, defined by a universal property rather than by element-level construction. The ordered pair generalizes to a pair of projection morphisms. The set-theoretic and categorical definitions agree in Set and diverge in other categories.

Relations

Construction
Kuratowski definition
Date created
Date modified
Defines
Ordered pair
Enables
Binary relation, function, cartesian product
Equality
First components match, second components match
Generalizes to
Tuple
Made of
Element, element
Referenced by