Axiom of Choice

lean4-proofset-theory-logicvisualization
A(A    f:AA,  SA,  f(S)S)\forall A\,(\emptyset \notin A \implies \exists f: A \to \bigcup A,\; \forall S\in A,\; f(S)\in S)

Statement

Axiom of Choice (AC): For any set AA of nonempty sets there exists a choice function f:AAf : A \to \bigcup A satisfying f(S)Sf(S) \in S for every SAS \in A.

The three statements below are equivalent (provably so in ZF without Choice):

  1. AC — choice functions exist.
  2. Zorn's Lemma — every chain-bounded nonempty poset has a maximal element.
  3. Well-Ordering Theorem — every set can be well-ordered.

Visualization

Choice from a family of shoes vs. socks:

Hilbert's informal picture: for infinitely many pairs of shoes, you can choose the left shoe from each pair without AC (it is a definable rule). For infinitely many pairs of socks (identical), you need AC — there is no rule to distinguish elements, so you must postulate the choice function.

Zorn ↔ AC (one direction):

Given a collection F\mathcal{F} of functions (partial choice functions on subsets of AA), ordered by extension, every chain has an upper bound (their union). By Zorn there is a maximal partial choice function ff^*; if its domain were not all of AA, we could extend it (using a single choice), contradicting maximality. So ff^* is a full choice function.

Equivalences and Consequences

ConsequenceProof route
Every vector space has a basisZorn on the poset of linearly independent sets
Every ring has a maximal idealZorn on proper ideals ordered by inclusion
Every field has an algebraic closureZorn + transfinite extension
Tychonoff's TheoremTychonoff's TheoremiIXi compact    i,  Xi compact\prod_{i \in I} X_i \text{ compact} \iff \forall i,\; X_i \text{ compact}An arbitrary product of compact spaces is compact in the product topologyRead more →AC (Tychonoff ↔ AC)
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 →Direct equivalence with AC
Well-ordering of R\mathbb{R}WOT (non-constructive, AC equivalent)

Proof Sketch (Zorn \Rightarrow AC)

  1. Let A={Si}A = \{S_i\} be a family of nonempty sets. Consider the poset P\mathcal{P} of all partial choice functions: pairs (B,f)(B, f) with BAB \subseteq A and f:BAf : B \to \bigcup A, f(S)Sf(S) \in S for all SBS \in B.
  2. Order P\mathcal{P} by (B,f)(B,f)(B, f) \le (B', f') iff BBB \subseteq B' and fB=ff' \restriction_B = f.
  3. Every chain (Bα,fα)(B_\alpha, f_\alpha) in P\mathcal{P} has upper bound (Bα,fα)(\bigcup B_\alpha, \bigcup f_\alpha) (compatible functions on a chain have a consistent union).
  4. By Zorn's lemma, there exists a maximal (B,f)(B^*, f^*).
  5. If BAB^* \neq A, pick SABS \in A \setminus B^* and any xSx \in S; extend ff^* to B{S}B^* \cup \{S\} by f(S)=xf^*(S) = x — contradicting maximality. Hence B=AB^* = A and ff^* is a total choice function.

Connections

  • 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 → — direct equivalence; Zorn is often the most convenient form for algebra
  • Well-Ordering TheoremWell-Ordering TheoremX, X, (X,X) is well-ordered\forall X,\ \exists\, \le_X,\ (X, \le_X) \text{ is well-ordered}Every set can be well-ordered: given AC, every set admits a relation under which every nonempty subset has a minimum.Read more → — equivalent to AC; implies every cardinal is an aleph
  • Tychonoff's TheoremTychonoff's TheoremiIXi compact    i,  Xi compact\prod_{i \in I} X_i \text{ compact} \iff \forall i,\; X_i \text{ compact}An arbitrary product of compact spaces is compact in the product topologyRead more → — product of compact spaces is compact; equivalent to AC in full generality
  • Cantor's TheoremCantor's TheoremX<2X|X| < |2^X|Every set is strictly smaller than its power set: |X| < |2^X| for any set X.Read more → — cardinality strict inequalities hold independently of AC, but cardinal arithmetic relies on AC for linearity of card\le_\text{card}

Lean4 Proof

import Mathlib.Order.Zorn
import Mathlib.Logic.Choice

/-- The Axiom of Choice is a global axiom in Lean/Mathlib via `Classical.choice`.
    Every nonempty type has an element. -/
theorem choice_nonempty {α : Sort*} [h : Nonempty α] : α :=
  Classical.choice h

/-- Zorn's lemma in Mathlib (`zorn_le`) is proved from `Classical.choice`.
    Direction: Zorn ⊢ for any chain-bounded nonempty poset, a maximal element exists. -/
theorem zorns_lemma_from_choice {α : Type*} [PartialOrder α]
    (h :  c : Set α, IsChain ·) c  BddAbove c) :  m : α, IsMax m :=
  zorn_le h

/-- One direction of AC ↔ Zorn: existence of choice functions.
    For a family of nonempty sets (here modelled as a type with Nonempty instances),
    Classical.choice provides the choice function definitionally. -/
theorem ac_choice_function {ι : Type*} (S : ι  Type*) [ i, Nonempty (S i)] :
     f :  i, S i, True :=
  fun i => Classical.choice (inferInstance), trivial