Well-Ordering Theorem

lean4-proofset-theory-logicvisualization
X, X, (X,X) is well-ordered\forall X,\ \exists\, \le_X,\ (X, \le_X) \text{ is well-ordered}

Statement

The Well-Ordering Theorem (equivalent to the Axiom of Choice): every set XX admits a total order X\le_X under which every nonempty subset SXS \subseteq X has a least element:

X,  X,  SX,  SmS,  sS,  mXs\forall X,\; \exists\, \le_X,\; \forall S \subseteq X,\; S \neq \emptyset \Rightarrow \exists\, m \in S,\; \forall s \in S,\; m \le_X s

Visualization

N\mathbb{N} is well-ordered by the standard \le: every nonempty subset has a minimum.

ℕ with standard order:
0 < 1 < 2 < 3 < 4 < 5 < …

Subset {3, 7, 2, 11}: minimum is 2.
Subset {5, 5, 8}:     minimum is 5.
Subset {0}:           minimum is 0.

Compare ℝ with standard order — NOT well-ordered:
  Subset (0, 1) = {x | 0 < x < 1} has no minimum element.
  For any candidate m > 0, the element m/2 is smaller and still in (0,1).

With AC, we can well-order ℝ — but no explicit well-order is constructible.

N\mathbb{N} is the canonical example: any decreasing sequence n0>n1>n2>n_0 > n_1 > n_2 > \cdots in N\mathbb{N} must terminate.

Proof Sketch

The Well-Ordering Theorem follows from Zorn's Lemma (and conversely):

  1. Consider the poset of all well-orderings (S,S)(S, \le_S) where SXS \subseteq X, ordered by end-extension: (S,S)(T,T)(S, \le_S) \preceq (T, \le_T) if STS \subseteq T, T\le_T extends S\le_S, and every element of TST \setminus S is above all of SS.
  2. Every chain in this poset has an upper bound (the union of all well-orderings in the chain).
  3. By Zorn's Lemma, there is a maximal well-ordering (M,M)(M, \le_M).
  4. If MXM \neq X, pick any xXMx \in X \setminus M and extend M\le_M by placing xx at the top — contradicting maximality. So M=XM = X.

Connections

Well-ordering is equivalent to both Zorn's LemmaZorn's Lemmaevery chain bounded     maximal element\text{every chain bounded} \implies \exists\text{ maximal element}If every chain in a nonempty poset has an upper bound, the poset has a maximal element.Read more → and the Axiom of Choice. The ordinals provide canonical representatives of well-ordered sets: every well-order is isomorphic to a unique ordinal. The diagonal argumentCantor's TheoremX<2X|X| < |2^X|Every set is strictly smaller than its power set: |X| < |2^X| for any set X.Read more → uses well-ordering implicitly when constructing new cardinals.

Lean4 Proof

import Mathlib.SetTheory.Cardinal.Order

/-- Every type admits a well-ordering relation.
    Mathlib: `WellOrderingRel.isWellOrder` — the canonical instance built via AC. -/
example (α : Type*) : IsWellOrder α WellOrderingRel :=
  WellOrderingRel.isWellOrder