Logic, Sets and Infinity

Zorn's Lemma and What Mathematicians Use It For

Learn what Zorn's lemma says, how to check its conditions, and how it proves that bases and maximal ideals exist.

Key takeaways

  • Zorn's lemma guarantees a maximal element, meaning one with nothing strictly above it, in a suitable partially ordered set.
  • To apply it you show the set is nonempty and that every chain has an upper bound that still belongs to the set.
  • A typical proof orders partial solutions by inclusion, takes unions along chains and then shows a maximal one is complete.
  • It is equivalent to the axiom of choice, so it proves existence without telling you how to find the object.

Zorn's lemma is a tool for proving that a largest-possible object exists when you cannot build it step by step in finitely many moves. It says that if every chain in a partially ordered set has an upper bound in that set, and the set is not empty, then the set has a maximal element.

You meet it when you want to show that every vector space has a basis, that rings have maximal ideals, or that a connected graph with infinitely many vertices has a spanning tree. The idea is easier than its reputation.

The vocabulary

A partially ordered set is a set with a relation ≤ that is reflexive (a ≤ a), antisymmetric (a ≤ b and b ≤ a force a = b) and transitive (a ≤ b and b ≤ c give a ≤ c). Some pairs may be incomparable. See partial orders and their diagrams for pictures.

A chain is a subset in which every two elements are comparable. An upper bound for a chain C is an element u of the whole set with c ≤ u for every c in C. It need not belong to C.

An element m is maximal if no element is strictly greater than m. This differs from a maximum, which is greater than or equal to everything. A partially ordered set can have many maximal elements and no maximum.

The statement

Let P be a nonempty partially ordered set.
Suppose every nonempty chain in P has an upper bound in P.
Then P has at least one maximal element.

Some books require upper bounds for every chain including the empty one. An upper bound for the empty chain is just any element of P, so that version folds the nonempty condition into the chain condition.

Both conditions matter. Consider the positive integers with the usual order. The set is nonempty, but the chain consisting of all of them has no upper bound among the integers, and there is no maximal integer. For another example, take the finite subsets of the integers ordered by inclusion. The chain {1} ⊂ {1, 2} ⊂ {1, 2, 3} ⊂ ... has a union that is infinite, so the bound lies outside, and indeed no finite subset is maximal.

A finite warm-up

In a finite nonempty partially ordered set, a maximal element always exists, and you can find it by hand. Start anywhere. If something lies strictly above your element, move there. You can never revisit an element, so after finitely many moves you are stuck, and stuck means maximal.

Take the numbers 2, 3, 4, 6, 9 and 12, ordered by divisibility, so that a ≤ b means a divides b. Starting at 2, you might move to 6 and then to 12. Nothing in the list other than 12 is a multiple of 12, so you stop. Starting at 3, you could instead move to 9, which divides no other entry. Both 9 and 12 are maximal, and neither is a maximum because 9 does not divide 12.

In an infinite set, the walk may never end. Zorn's lemma supplies the missing guarantee. Its chain condition says that even an endless walk has something sitting above all of it, from which you could continue.

Why it is believable

Suppose there were no maximal element. Then from any element you could climb to a strictly larger one. Climb forever, and you get an infinite chain. The hypothesis gives it an upper bound, from which you climb again, and again after the next infinite stretch.

This climb could be continued through the ordinal numbers, which go on beyond any given size. Eventually you would have more distinct elements than the set contains, which is impossible. So somewhere the climb must stop.

The catch is the word "climb". At each step you must select one of the larger elements, with no rule saying which. That is where the axiom of choice enters. In fact, Zorn's lemma and the axiom of choice are equivalent on the basis of the other ZF axioms, as is the statement that every set can be well-ordered.

A template you can reuse

Most applications follow the same plan.

How a Zorn's lemma proof runs
1 Collect candidates Gather all partial solutions into a set 2 Order them Usually by inclusion or by extension 3 Check nonempty Exhibit at least one candidate 4 Bound each chain Show the union is still a candidate 5 Use maximality Prove a maximal candidate is complete Collect candidates Gather all partial solutions into a set 1 Order them Usually by inclusion or by extension 2 Check nonempty Exhibit at least one candidate 3 Bound each chain Show the union is still a candidate 4 Use maximality Prove a maximal candidate is complete 5

The fourth step is where the real work usually hides. Taking a union is easy. Showing that the union still has the required property depends on the property being detectable from finitely many elements at a time.

The fifth step is typically a proof by contradiction: if the maximal candidate were incomplete, you could enlarge it, which contradicts maximality.

Every vector space has a basis

A basis is a set of vectors that is linearly independent and spans the space, where linear combinations use only finitely many vectors at a time. For finite-dimensional spaces you can build a basis one vector at a time. For a space like the real numbers viewed as a vector space over the rational numbers, that process never finishes.

Let V be a vector space, and let P be the set of all linearly independent subsets of V, ordered by inclusion.

  1. Nonempty. The empty set is linearly independent.
  2. Chains. Let C be a nonempty chain in P and let U be the union of its members. Take finitely many vectors from U. Each lies in some member of C, and because C is a chain, one member contains them all. That member is independent, so these vectors have no nontrivial linear relation. Hence U is independent.
  3. Maximal element. By Zorn's lemma there is a maximal independent set B.
  4. Spanning. If some vector v were not a combination of vectors in B, then B together with v would still be independent and strictly larger. That is impossible.

So B is a basis. No one can write down such a basis for the real numbers over the rationals, yet the argument is airtight given choice.

Maximal ideals in rings

In ring theory, an ideal is a subset closed under addition that absorbs multiplication by ring elements. A maximal ideal is a proper ideal contained in no larger proper ideal.

Let R be a commutative ring with 1, where 1 ≠ 0. Order the proper ideals by inclusion. The zero ideal shows the collection is nonempty. The union of a chain of ideals is an ideal, by the same "any two elements lie in one member" argument. It is proper, because an ideal is proper exactly when it does not contain 1, and no member of the chain contains 1. Zorn's lemma gives a maximal ideal.

Notice the role of the element 1. It makes "proper" testable by a single element, which survives unions. Rings without an identity can fail to have any maximal ideal, so the hypothesis cannot be dropped.

Other places it appears

Result Candidates ordered
Spanning tree in any connected graph Subgraphs that contain no cycle, by inclusion
Hahn-Banach extension theorem Partial extensions of a linear functional, by domain
Ultrafilters containing a given filter Filters containing it, by inclusion
Algebraic closure of a field Suitable algebraic extensions or ideals
Orthonormal basis of a Hilbert space Orthonormal sets, by inclusion

For spanning trees, a cycle uses only finitely many edges, so a union of cycle-free subgraphs along a chain is cycle-free. If the graph is connected, a maximal cycle-free subgraph containing all vertices must connect everything.

Some of these results, including Hahn-Banach and the ultrafilter lemma, need less than the full axiom of choice. Zorn's lemma is used because it gives a quick, clean proof.

Mistakes to avoid

  • Forgetting the nonempty condition. Always produce one element.
  • Using a bound that leaves the set. The union must satisfy the defining property.
  • Checking only sequences. Chains can be far larger than any list indexed by the positive integers, so argue about an arbitrary chain.
  • Confusing maximal with maximum. A vector space usually has many different bases, each maximal among independent sets.
  • Reaching for it too early. If the space is finite or the object can be built explicitly, a direct construction tells you more.

A good test case is the statement "every set of subsets has a maximal member". It is false, as the finite subsets of the integers show. Finding exactly where your chain argument fails for that family is a fine exercise.

A bit of history

Max Zorn stated the principle in a 1935 paper aimed at applications in algebra. Mathematicians, Kazimierz Kuratowski among them, had formulated closely related maximality principles earlier, which is why some texts speak of the Kuratowski-Zorn lemma. A cousin called the Hausdorff maximal principle says that every partially ordered set contains a maximal chain.

The appeal of Zorn's version was practical. It let algebraists replace long transfinite constructions, which required fluency with ordinals, by a short check on chains. If you can follow the two examples above, you can read the many textbook proofs that say only "a standard Zorn's lemma argument".

Maximal is weaker than maximum
Maximal element Nothing lies strictly above it May be incomparable with others There can be several Maximum element Lies above every element Comparable with all At most one exists VS Maximal element Nothing lies strictly above it May be incomparable with others There can be several Maximum element Lies above every element Comparable with all At most one exists

Written for 4Mathematics with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 41 articles in Logic, Sets and Infinity →

Latest news on this topic