MathLabs

Foundations of mathematics

The ZFC axioms

Naive set theory allowed forming {x:φ(x)}\{x : \varphi(x)\} for any property φ\varphi, but Russell's set R={x:x∉x}R = \{x : x \notin x\} derives the contradiction R∈R  ⟺  R∉RR \in R \iff R \notin R. ZFC repairs this with a precise axiom list: Extensionality, Pairing, Union, Power Set, Infinity and Replacement build sets safely, the Axiom Schema of Separation replaces unrestricted comprehension, and Foundation, ∀x (x≠∅  ⟹  ∃y∈x (x∩y=∅))\forall x\,(x \neq \emptyset \implies \exists y \in x\, (x \cap y = \emptyset)), forbids self-membership x∉xx \notin x outright. The Axiom of Choice — equivalent to Zorn's Lemma and the Well-Ordering Theorem — lets mathematicians make infinitely many simultaneous choices, with concrete proofs given here for both the self-membership ban and the Choice–Zorn equivalence, plus real applications from maximal ideals to non-measurable sets.

IntuitionA paradox that forced mathematics to write down its rules

In 1901, Bertrand Russell asked a simple question about the set R={x:x∉x}R = \{x : x \notin x\}, the set of all sets that do not contain themselves: is R∈RR \in R? If R∈RR \in R, then by its own defining property RR must satisfy R∉RR \notin R; but if R∉RR \notin R, then RR satisfies exactly the property that qualifies it for membership in RR, so R∈RR \in R. Either assumption contradicts itself: R∈R  ⟺  R∉RR \in R \iff R \notin R. This showed that naively allowing "the set of all xx satisfying any property" is inconsistent, and forced mathematicians to write down a precise list of rules — the ZFC axioms — for which collections are allowed to be sets at all.

Interactive directed network diagram of the membership relation, illustrating why the Axiom of Foundation forbids cycles
The membership relation ∈\in drawn as a directed network; the Axiom of Foundation forbids any cycle (in particular any self-loop x∈xx \in x), forcing the network to have no infinite descending path.

AdvancedThe axioms, and the comprehension they replace

Definition: Unrestricted comprehension (rejected)

Naive set theory allowed forming {x:φ(x)}\{x : \varphi(x)\} for any property φ\varphi. ZFC replaces this with the weaker Axiom Schema of Separation: given an already-existing set AA, you may form {x∈A:φ(x)}\{x \in A : \varphi(x)\}, a subset of AA. This alone blocks Russell's paradox, since forming RR would require some pre-existing set to separate from, and no set of all sets is ever built.

R={x:x∉x},R∈R  ⟺  R∉RR = \{x : x \notin x\}, \qquad R \in R \iff R \notin R

The Axiom of Foundation (Regularity) adds a further, independent restriction on the membership relation itself: ∀x (x≠∅  ⟹  ∃y∈x (x∩y=∅))\forall x\,(x \neq \emptyset \implies \exists y \in x\, (x \cap y = \emptyset)). Every nonempty set xx must contain some element yy that shares no members with xx. As proved below, this single axiom is exactly strong enough to forbid x∉xx \notin x for every set, ruling out self-membership by fiat rather than by contradiction.

∀x (x≠∅  ⟹  ∃y∈x (x∩y=∅))\forall x\,\big(x \neq \emptyset \implies \exists y \in x\, (x \cap y = \emptyset)\big)
The axioms of ZFC
AxiomWhat it guarantees
ExtensionalityTwo sets with the same elements are equal.
PairingFor any a,ba,b, the set {a,b}\{a,b\} exists.
UnionFor any set of sets, their union exists.
Power SetFor any set AA, P(A)\mathcal{P}(A) (all subsets) exists.
InfinityAn infinite set exists (containing ∅,{∅},…\emptyset, \{\emptyset\}, \ldots).
Separation{x∈A:φ(x)}\{x \in A : \varphi(x)\} exists for any already-built AA.
ReplacementThe image of a set under any definable function is a set.
FoundationNo infinite descending ∈\in-chain; forbids x∈xx \in x.
ChoiceEvery family of nonempty sets has a choice function.

AdvancedTwo key theorems, with full proofs

For every set xx (assuming the Axiom of Foundation together with Pairing), x∉xx \notin x: no set can be an element of itself.

Why is it true?

Self-membership is exactly the kind of self-reference that powers Russell's paradox; Foundation rules it out not by deriving a contradiction each time, but once and for all, as a structural rule on how sets can be built. This is what lets mathematicians safely define things by induction/recursion on the membership relation, and it is why the sets that appear throughout ordinary mathematics never contain themselves.

Proof

Suppose, for contradiction, that some set xx satisfies x∈xx \in x.

By the Axiom of Pairing, the set {x}\{x\} exists (pair xx with itself). This set is nonempty, since it contains xx.

Apply the Axiom of Foundation to the nonempty set {x}\{x\}: there must exist y∈{x}y \in \{x\} with {x}∩y=∅\{x\} \cap y = \emptyset. But the only element of {x}\{x\} is xx itself, so y=xy = x, and the conclusion becomes {x}∩x=∅\{x\} \cap x = \emptyset.

Now recall the contradiction hypothesis x∈xx \in x. Since x∈{x}x \in \{x\} (by definition of the pair) and x∈xx \in x (our assumption), the element xx belongs to both {x}\{x\} and xx, so x∈{x}∩xx \in \{x\} \cap x. This means {x}∩x\{x\} \cap x is nonempty, directly contradicting {x}∩x=∅\{x\} \cap x = \emptyset obtained above.

This contradiction shows the assumption x∈xx \in x is impossible for any set xx; hence x∉xx \notin x for every set xx, as claimed.

Assuming the Axiom of Choice, every nonempty partially ordered set in which every chain (totally ordered subset) has an upper bound contains at least one maximal element (Zorn's Lemma); the Axiom of Choice, Zorn's Lemma and the Well-Ordering Theorem (every set can be well-ordered) are all logically equivalent given the other ZFC axioms.

Why is it true?

Zorn's Lemma, Choice and Well-Ordering look completely different — one is about order and maximal elements, one is about choosing simultaneously from many sets, one is about a total order with no infinite descent — yet each encodes exactly the same underlying power to make infinitely many unconstrained choices at once. This is why algebraists reach for Zorn's Lemma to prove existence statements (a maximal ideal, a basis, an algebraic closure) that Choice alone would state less conveniently.

Proof

We prove Choice   ⟹  \implies Zorn's Lemma (the other equivalences are standard but longer; this direction is the one used constantly in algebra). Let (P,≤)(P, \le) be a nonempty poset in which every chain has an upper bound in PP, and suppose toward contradiction that PP has no maximal element.

Since PP has no maximal element, every x∈Px \in P has some strict upper bound in PP (an element yy with x<yx < y): otherwise that xx would itself be maximal. In particular, every chain C⊆PC \subseteq P has an upper bound (by hypothesis) which itself has a strict upper bound, so every chain has a strict upper bound in PP.

By the Axiom of Choice, fix a choice function that selects, for every chain C⊆PC \subseteq P, some strict upper bound g(C)g(C) of CC. Using gg, build a transfinite sequence (aα)(a_\alpha) indexed by all ordinals α\alpha: let a0=g(∅)a_0 = g(\emptyset), and for each ordinal α\alpha, once aβa_\beta has been defined for every β<α\beta < \alpha, the set {aβ:β<α}\{a_\beta : \beta<\alpha\} is a chain (by construction each new term is a strict upper bound of all earlier ones), so define aα=g({aβ:β<α})a_\alpha = g(\{a_\beta : \beta<\alpha\}), a strict upper bound of every earlier term.

This produces a strictly increasing map from the ordinals into PP: α<β  ⟹  aα<aβ\alpha < \beta \implies a_\alpha < a_\beta. But the ordinals do not form a set (there is no set of all ordinals), while PP is an ordinary set; a strictly increasing map from the ordinals into PP would make the ordinals no larger in cardinality than PP, contradicting the fact (a consequence of Replacement) that no set can be mapped injectively onto a collection as large as all the ordinals. This contradiction shows the assumption "PP has no maximal element" is false, so PP has a maximal element, proving Zorn's Lemma from Choice.

AdvancedReal-World Applications and Worked Examples

ZFC is not just philosophy — it is the load-bearing foundation under nearly every existence proof in modern algebra and analysis. Zorn's Lemma is the standard tool to prove every nonzero ring has a maximal ideal, every vector space has a basis (even infinite-dimensional ones, essential in functional analysis), and every field has an algebraic closure. The Axiom of Choice also has more surprising, "non-constructive" consequences: it lets you build a Vitali set, a subset of [0,1][0,1] that provably has no well-defined length, showing that not every set of real numbers can be measured. In computer science and formal verification, proof assistants built on set-theoretic or type-theoretic foundations must decide explicitly whether to include a Choice-like axiom, since it changes which existence proofs are available.

Example: Building the ordinal 22 from the empty set

Using only the Axiom of Pairing and the Axiom of Union starting from ∅\emptyset (which exists by Separation applied to any set, or is postulated directly), construct the von Neumann ordinals 00, 11, and 22, where each ordinal is defined as the set of all smaller ordinals.

Solution

Start with 0:=∅0 := \emptyset, the empty set, which exists directly (or via Separation: {x∈A:x≠x}\{x \in A : x\neq x\} for any set AA).

Define 1:={0}={∅}1 := \{0\} = \{\emptyset\}: this set exists by the Axiom of Pairing applied to 00 and 00 (pairing an element with itself gives the singleton {0}\{0\}). Note 11 has exactly one element, namely 00.

To define 22, we want the set of both smaller ordinals, {0,1}\{0, 1\}. First use Pairing on 00 and 11 to form the two-element set {0,1}\{0, 1\} directly (Pairing applied to two distinct sets 0=∅0=\emptyset and 1={∅}1=\{\emptyset\} gives exactly {0,1}\{0,1\} with no need for Union here, since Pairing already accepts two arbitrary sets as its two elements).

So 2:={0,1}={∅,{∅}}2 := \{0, 1\} = \{\emptyset, \{\emptyset\}\}. Each step used only existing sets and one of the two axioms (Pairing to combine two sets into a two-element set, and implicitly Union whenever combining more than two pre-built pieces, e.g. defining 3:={0,1,2}3 := \{0,1,2\} would need Union of 22 with {2}\{2\}). This shows finite ordinals — and hence finite cardinal numbers — are built from nothing but ∅\emptyset using only these axioms.

Example: Zorn's Lemma finds a maximal ideal

Show, using Zorn's Lemma, that every proper ideal II of a ring with 11 is contained in some maximal ideal. Then, concretely, find all maximal ideals of Z\mathbb{Z} containing the ideal 12Z12\mathbb{Z}.

Solution

General argument: let PP be the set of all proper ideals of the ring containing II, ordered by inclusion ⊆\subseteq; PP is nonempty since I∈PI \in P. Given any chain (totally ordered subfamily) of ideals in PP, its union is again an ideal containing II, and it is still proper: if the union contained 11, some single ideal in the chain would already contain 11, making it improper, contradiction. So every chain in PP has an upper bound in PP (the union).

By Zorn's Lemma, PP has a maximal element MM. Being maximal in PP means MM is a proper ideal containing II that is not properly contained in any other proper ideal — exactly the definition of a maximal ideal. This proves every proper ideal is contained in a maximal one.

Now specialize to Z\mathbb{Z} and I=12ZI = 12\mathbb{Z}. Ideals of Z\mathbb{Z} are exactly nZn\mathbb{Z} for n≥0n \ge 0, and nZ⊆mZn\mathbb{Z} \subseteq m\mathbb{Z} exactly when mm divides nn. So ideals containing 12Z12\mathbb{Z} correspond to divisors mm of 1212, and mZm\mathbb{Z} is maximal exactly when mm is prime (a maximal ideal of Z\mathbb{Z} is always pZp\mathbb{Z} for a prime pp).

Since 12=22×312 = 2^2 \times 3, the prime divisors of 1212 are 22 and 33. So the maximal ideals of Z\mathbb{Z} containing 12Z12\mathbb{Z} are exactly 2Z2\mathbb{Z} and 3Z3\mathbb{Z}.

What contradiction does Russell's paradox derive from R={x:x∉x}R = \{x : x \notin x\}?

Which axiom directly guarantees the existence of an infinite set?

Which everyday algebra fact is typically proved using Zorn's Lemma?

What does the Axiom of Foundation forbid?

References

  1. Thomas Jech (2003). Set Theory
  2. Paul J. Cohen (1963). The Independence of the Continuum Hypothesis