Ordered pair

A two-component object where order matters.
Ordered pair

An ordered pair is a two-component object (a,b)(a,b) whose equality is componentwise:

(a,b)=(c,d)    a=c and b=d. (a,b)=(c,d)\iff a=c \text{ and } b=d.

In set theory one standard implementation is the Kuratowski ordered pair:

(a,b):={{a},{a,b}}. (a,b):=\bigl\{\{a\},\{a,b\}\bigr\}.

Ordered pairs are used to form the and to encode as sets of pairs.

Examples:

  • (1,2)(2,1)(1,2)\neq(2,1) because the first coordinates differ.
  • If a=ba=b, then (a,a)(a,a) is still a well-defined ordered pair (with both coordinates equal).