Ordered Pairs
Definition
An ordered pair (a,b) is a mathematical structure that:
- Contains exactly two elements
- Has a specified order: first component a, second component b
Key Property
(a,b)=(c,d)⟺a=c∧b=d
This distinguishes ordered pairs from sets: {a,b}={b,a} but (a,b)=(b,a) (unless a=b).
Kuratowski Definition (Encoding)
We can define ordered pairs purely in terms of sets:
(a,b)={{a},{a,b}}
Verification: If (a,b)=(c,d), then {{a},{a,b}}={{c},{c,d}}.
- If a=b, then {{a},{a,b}}={{a}}, so {c}={a}, hence c=a=b.
- If a=b, then {a}∈{{c},{c,d}} requires {a}={c}, so a=c.
- Then {a,b}={a,d}, and since a=b, we have b=d.
Cartesian Product
Definition
The Cartesian product of sets A and B is:
A×B={(a,b):a∈A∧b∈B}
Examples
- {1,2}×{a,b}={(1,a),(1,b),(2,a),(2,b)}
- R×R=R2 (the Euclidean plane)
- {x}×A={(x,a):a∈A}
Cardinality
For finite sets:
∣A×B∣=∣A∣⋅∣B∣
Properties of Cartesian Products
Non-commutativity
A×B=B×A in general
Unless A=B or one of them is empty.
Distributivity over Union
A×(B∪C)=(A×B)∪(A×C)
(A∪B)×C=(A×C)∪(B×C)
Distributivity over Intersection
A×(B∩C)=(A×B)∩(A×C)
(A∩B)×C=(A×C)∩(B×C)
Interaction with Empty Set
A×∅=∅=∅×A
n-tuples
Definition
An n-tuple (a1,a2,…,an) generalises ordered pairs.
We can encode n-tuples using nested pairs:
(a1,a2,…,an)=(a1,(a2,(…,(an−1,an)…)))
n-fold Cartesian Product
An=n timesA×A×⋯×A={(a1,…,an):ai∈A}
Examples
- R2: the plane (2D coordinates)
- R3: 3D space
- Zn: integer lattice in n dimensions
Disjoint Union (Coproduct)
Motivation
The union A∪B is not ideal for “combining” sets because:
- If A and B overlap, we lose information about origin
- We cannot distinguish a∈A∩B from a∈A vs a∈B
Definition
The disjoint union (or coproduct, or sum) of A and B is:
A+B=({0}×A)∪({1}×B)
Each element is “tagged” with its origin.
Examples
- {a,b}+{b,c}={(0,a),(0,b)}∪{(1,b),(1,c)}
- Even though b appears in both, (0,b)=(1,b)
Cardinality
∣A+B∣=∣A∣+∣B∣
This holds without restriction (unlike union, where ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣).
Summary
- Ordered pairs (a,b) satisfy (a,b)=(c,d)⟺a=c∧b=d
- Cartesian product A×B={(a,b):a∈A,b∈B}
- ∣A×B∣=∣A∣⋅∣B∣ and ∣A+B∣=∣A∣+∣B∣
- Disjoint union A+B tags elements to preserve origin information