In mathematics, an ordered pair (a, b) is a pair of mathematical objects. The order in which the objects appear in the pair is significant: the ordered pair (a, b) is different from the ordered pair (b, a) unless a = b. (In contrast, the unordered pair {a, b} equals the unordered pair {b, a}.)
Ordered pairs are also called 2tuples, or sequences of length 2; ordered pairs of scalars are also called 2dimensional vectors. The entries of an ordered pair can be other ordered pairs, enabling the recursive definition of ordered ntuples (ordered lists of n objects). For example, the ordered triple (a,b,c) can be defined as (a, (b,c)), i.e., as one pair nested in another.
In the ordered pair (a, b), the object a is called the first entry, and the object b the second entry of the pair. Alternatively, the objects are called the first and second coordinates, or the left and right projections of the ordered pair.
Cartesian products and binary relations (and hence functions) are defined in terms of ordered pairs.
Generalities
Let (a_1, b_1) and (a_2, b_2) be ordered pairs. Then the characteristic (or defining) property of the ordered pair is:

(a_1, b_1) = (a_2, b_2)\quad\text{if and only if}\quad a_1 = a_2\text{ and }b_1 = b_2.\!
The set of all ordered pairs whose first entry is in some set A and whose second entry is in some set B is called the Cartesian product of A and B, and written A × B. A binary relation between sets A and B is a subset of A × B.
If one wishes to employ the \ (a,b) notation for a different purpose (such as denoting open intervals on the real number line) the ordered pair may be denoted by the variant notation \left \langle a,b\right \rangle.
The left and right projection of a pair p is usually denoted by π_{1}(p) and π_{2}(p), or by π_{l}(p) and π_{r}(p), respectively. In contexts where arbitrary ntuples are considered, π^{n}_{i}(t) is a common notation for the ith component of an n tuple t.
Defining the ordered pair using set theory
The above characteristic property of ordered pairs is all that is required to understand the role of ordered pairs in mathematics. Hence the ordered pair can be taken as a primitive notion, whose associated axiom is the characteristic property. This was the approach taken by the N. Bourbaki group in its Theory of Sets, published in 1954, long after Kuratowski discovered his reduction (below). The Kuratowski definition was added in the second edition of Theory of Sets, published in 1970.
If one agrees that set theory is an appealing foundation of mathematics, then all mathematical objects must be defined as sets of some sort. Hence if the ordered pair is not taken as primitive, it must be defined as a set.^{[1]} Several settheoretic definitions of the ordered pair are given below.
Wiener's definition
Norbert Wiener proposed the first set theoretical definition of the ordered pair in 1914:^{[2]}

\left( a, b \right) := \left\{\left\{ \left\{a\right\},\, \emptyset \right\},\, \left\{\left\{b\right\}\right\}\right\}.
He observed that this definition made it possible to define the types of Principia Mathematica as sets. Principia Mathematica had taken types, and hence relations of all arities, as primitive.
Wiener used instead of {b} to make the definition compatible with type theory where all elements in a class must be of the same "type". With nesting b within an additional set its type is made equal to \{\{a\}, \emptyset\}'s.
Hausdorff's definition
About the same time as Wiener (1914), Felix Hausdorff proposed his definition:

(a, b) := \left\{ \{a, 1\}, \{b, 2\} \right\}
"where 1 and 2 are two distinct objects different from a and b."^{[3]}
Kuratowski definition
In 1921 Kazimierz Kuratowski offered the nowaccepted definition^{[4]}^{[5]} of the ordered pair (a, b):

(a, \ b)_K \; := \ \{ \{ a \}, \ \{ a, \ b \} \}.
Note that this definition is used even when the first and the second coordinates are identical:

(x,\ x)_K = \{\{x\},\{x, \ x\}\} = \{\{x\},\ \{x\}\} = \{\{x\}\}
Given some ordered pair p, the property "x is the first coordinate of p" can be formulated as:

\forall{Y}{\in}{p}:{x}{\in}{Y}.
The property "x is the second coordinate of p" can be formulated as:

(\exist{Y}{\in}{p}:{x}{\in}{Y})\and(\forall{Y_{1},Y_{2}}{\in}{p}:Y_{1}\ne Y_{2}\rarr ({x}{\notin}{Y_{1}}\or{x}{\notin}{Y_{2}})).
In the case that the left and right coordinates are identical, the right conjunct (\forall{Y_{1},Y_{2}}{\in}{p}:Y_{1}\ne Y_{2}\rarr ({x}{\notin}{Y_{1}}\or{x}{\notin}{Y_{2}})) is trivially true, since Y_{1} ≠ Y_{2} is never the case.
This is how we can extract the first coordinate of a pair (using the notation for arbitrary intersection and arbitrary union):

\pi_1(p) = \bigcup\bigcap p
This is how the second coordinate can be extracted:

\pi_2(p) = \bigcup\{x \in \bigcup p \mid \bigcup p \not= \bigcap p \rarr x \notin \bigcap p \}
Variants
The above Kuratowski definition of the ordered pair is "adequate" in that it satisfies the characteristic property that an ordered pair must satisfy, namely that (a,b) = (x,y) \leftrightarrow (a=x) \and (b=y). In particular, it adequately expresses 'order', in that (a,b) = (b,a) is false unless b = a. There are other definitions, of similar or lesser complexity, that are equally adequate:

( a, b )_{\text{reverse}} := \{ \{ b \}, \{a, b\}\};

( a, b )_{\text{short}} := \{ a, \{a, b\}\};

( a, b )_{\text{01}} := \{\{0, a \}, \{1, b \}\}.^{[6]}
The reverse definition is merely a trivial variant of the Kuratowski definition, and as such is of no independent interest. The definition short is socalled because it requires two rather than three pairs of braces. Proving that short satisfies the characteristic property requires the Zermelo–Fraenkel set theory axiom of regularity.^{[7]} Moreover, if one uses von Neumann's settheoretic construction of the natural numbers, then 2 is defined as the set {0, 1} = {0, {0}}, which is indistinguishable from the pair (0, 0)_{short}. Yet another disadvantage of the short pair is the fact, that even if a and b are of the same type, the elements of the short pair are not. (However, if a = b then the short version keeps having cardinality 2, which is something one might expect of any "pair", including any "ordered pair". Also note that the short version is used in Tarski–Grothendieck set theory, upon which the Mizar system is founded.)
Proving that definitions satisfy the characteristic property
Prove: (a, b) = (c, d) if and only if a = c and b = d.
Kuratowski:
If. If a = c and b = d, then = . Thus (a, b)_{K} = (c, d)_{K}.
Only if. Two cases: a = b, and a ≠ b.
If a = b:

(a, b)_{K} = = = .

(c, d)_{K} = = .

Thus {c} = {c, d} = {a}, which implies a = c and a = d. By hypothesis, a = b. Hence b = d.
If a ≠ b, then (a, b)_{K} = (c, d)_{K} implies = .

Suppose {c, d} = {a}. Then c = d = a, and so = = = . But then would also equal , so that b = a which contradicts a ≠ b.

Suppose {c} = {a, b}. Then a = b = c, which also contradicts a ≠ b.

Therefore {c} = {a}, so that c = a and {c, d} = {a, b}.

If d = a were true, then {c, d} = {a, a} = {a} ≠ {a, b}, a contradiction. Thus d = b is the case, so that a = c and b = d.
Reverse:
(a, b)_{reverse} = = = (b, a)_{K}.
If. If (a, b)_{reverse} = (c, d)_{reverse}, (b, a)_{K} = (d, c)_{K}. Therefore b = d and a = c.
Only if. If a = c and b = d, then = . Thus (a, b)_{reverse} = (c, d)_{reverse}.
Short:^{[8]}
If: If a = c and b = d, then {a, {a, b}} = {c, {c, d}}. Thus (a, b)_{short} = (c, d)_{short}.
Only if: Suppose {a, {a, b}} = {c, {c, d}}. Then a is in the left hand side, and thus in the right hand side. Because equal sets have equal elements, one of a = c or a = {c, d} must be the case.

If a = {c, d}, then by similar reasoning as above, {a, b} is in the right hand side, so {a, b} = c or {a, b} = {c, d}.

If {a, b} = c then c is in {c, d} = a and a is in c, and this combination contradicts the axiom of regularity, as {a, c} has no minimal element under the relation "element of."

If {a, b} = {c, d}, then a is an element of a, from a = {c, d} = {a, b}, again contradicting regularity.

Hence a = c must hold.
Again, we see that {a, b} = c or {a, b} = {c, d}.

The option {a, b} = c and a = c implies that c is an element of c, contradicting regularity.

So we have a = c and {a, b} = {c, d}, and so: {b} = {a, b} \ {a} = {c, d} \ {c} = {d}, so b = d.
QuineRosser definition
Rosser (1953)^{[9]} employed a definition of the ordered pair due to Quine which requires a prior definition of the natural numbers. Let \N be the set of natural numbers and x \setminus \N be the elements of x not in \N. Define

\varphi(x) = (x \setminus \N) \cup \{n+1 : n \in (x \cap \N) \}.
Applying this function simply increments every natural number in x. In particular, \varphi(x) does not contain the number 0, so that for any sets x and y,

\varphi(x) \not= \{0\} \cup \varphi(y).
Define the ordered pair (A, B) as

(A, B) = \{\varphi(a) : a \in A\} \cup \{\varphi(b) \cup \{0\} : b \in B \}.
Extracting all the elements of the pair that do not contain 0 and undoing \varphi yields A. Likewise, B can be recovered from the elements of the pair that do contain 0.
In type theory and in outgrowths thereof such as the axiomatic set theory NF, the QuineRosser pair has the same type as its projections and hence is termed a "typelevel" ordered pair. Hence this definition has the advantage of enabling a function, defined as a set of ordered pairs, to have a type only 1 higher than the type of its arguments. This definition works only if the set of natural numbers is infinite. This is the case in NF, but not in type theory or in NFU. J. Barkley Rosser showed that the existence of such a typelevel ordered pair (or even a "typeraising by 1" ordered pair) implies the axiom of infinity. For an extensive discussion of the ordered pair in the context of Quinian set theories, see Holmes (1998).^{[10]}
Morse definition
Morse–Kelley set theory makes free use of proper classes.^{[11]} Morse defined the ordered pair so that its projections could be proper classes as well as sets. (The Kuratowski definition does not allow this.) He first defined ordered pairs whose projections are sets in Kuratowski's manner. He then redefined the pair

(x, y) = (\{0\} \times s(x)) \cup (\{1\} \times s(y))
where the component Cartesian products are Kuratowski pairs of sets and where

s(x) = \{\emptyset \} \cup \{\{t\}  t \in x\}
This renders possible pairs whose projections are proper classes. The QuineRosser definition above also admits proper classes as projections. Similarly the triple is defined as a 3tuple as follows:

(x, y, z) = (\{0\} \times s(x)) \cup (\{1\} \times s(y)) \cup (\{2\} \times s(z))
The use of the singleton set s(x) which has an inserted empty set allows tuples to have the uniqueness property that if a is an ntuple and b is an mtuple and a = b then n = m. Ordered triples which are defined as ordered pairs do not have this property with respect to ordered pairs.
Category theory
A categorytheoretic product A × B in a category of sets represents the set of ordered pairs, with the first element coming from A and the second coming from B. In this context the characteristic property above is a consequence of the universal property of the product and the fact that elements of a set X can be identified with morphisms from 1 (a one element set) to X. While different objects may have the universal property, they are all naturally isomorphic.
References

^ Quine has argued that the settheoretical implementations of the concept of the ordered pair is a paradigm for the clarification of philosophical ideas (see "Word and Object", section 53). The general notion of such definitions or implementations are discussed in Thomas Forster "Reasoning about theoretical entities".

^ Wiener's paper "A Simplification of the logic of relations" is reprinted, together with a valuable commentary on pages 224ff in van Heijenoort, Jean (1967), From Frege to Gödel: A Source Book in Mathematical Logic, 19791931, Harvard University Press, Cambridge MA, ISBN 0674324498 (pbk.). van Heijenoort states the simplification this way: "By giving a definition of the ordered pair of two elements in terms of class operations, the note reduced the theory of relations to that of classes".

^ cf introduction to Wiener's paper in van Heijenoort 1967:224

^ cf introduction to Wiener's paper in van Heijenoort 1967:224. van Heijenoort observes that the resulting set that represents the ordered pair "has a type higher by 2 than the elements (when they are of the same type)"; he offers references that show how, under certain circumstances, the type can be reduced to 1 or 0.

^

^ This differs from Hausdorff's definition in not requiring the two elements 0 and 1 to be distinct from a and b.

^ Tourlakis, George (2003) Lectures in Logic and Set Theory. Vol. 2: Set Theory. Cambridge Univ. Press. Proposition III.10.1.

^ For a formal Metamath proof of the adequacy of short, see here (opthreg). Also see Tourlakis (2003), Proposition III.10.1.

^ J. Barkley Rosser, 1953. Logic for Mathematicians. McGrawHill.

^ Holmes, Randall (1998) Elementary Set Theory with a Universal Set. AcademiaBruylant. The publisher has graciously consented to permit diffusion of this monograph via the web.

^ Morse, Anthony P. (1965). A Theory of Sets. Academic Press.
This article was sourced from Creative Commons AttributionShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, EGovernment Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a nonprofit organization.