The Well-Ordering Principle
Why This Matters
The well-ordering principle of the natural numbers is the single sentence:
Every non-empty subset of has a least element.
This is foundational. Many of the proof techniques you will use repeatedly in olympiad mathematics either are well-ordering or are equivalent to it. Smallest-counterexample arguments, the division algorithm, infinite descent, the correctness of the Euclidean algorithm: all run on well-ordering.
Recognize a well-ordering argument when:
- You have an existence claim and the negation forms a set bounded below by a natural number (a counterexample is at least 1, or a "minimal violation" exists in ).
- You want to find a "minimal" object (smallest divisor, shortest path, smallest counterexample, smallest period).
- A proof-by-induction would work but you find it cleaner to argue at the smallest counterexample directly.
Well-ordering, mathematical induction, and strong induction are logically equivalent over the natural numbers: each implies the other two, and they are interchangeable in proofs. Choose the form that makes the argument cleanest.
The Principle Itself
The Well-Ordering Principle of N
Statement
has a least element: there exists such that for every .
Intuition
The natural numbers are linearly ordered with no infinite descending chains. Pick any element of ; if it is not the least, find a smaller one in ; iterate. The process must terminate (no infinite chain in goes downward forever), and the terminating element is the least.
This is not the same statement as " is bounded below by 0", which is also true but weaker; well-ordering says every subset, no matter how complicated, has a least element you can name.
Proof Sketch
Several routes:
(a) From induction. Suppose for contradiction is non-empty but has no least element. Let . We show by induction (so is empty, contradicting non-emptiness).
Base: because if , is the least element of (which we assumed does not exist).
Step: assume . If , then since , would be the least element of , contradiction. So .
By induction , so , contradicting non-emptiness.
(b) From Peano axioms directly. Construct the least element by a fixed-point or descending-chain argument.
Why It Matters
Well-ordering is the engine of finite descent: any argument that produces a strictly smaller natural number from a hypothetical counterexample loops back into well-ordering. You cannot loop forever because there is a least counterexample, and the strict-decrease step contradicts its leastness.
The same statement fails for many other ordered sets you encounter (the rationals, the reals, the integers themselves), which is precisely why those settings need different tools (completeness, compactness, transfinite induction).
Failure Mode
Well-ordering applies to (or any subset of it). It does not apply to:
- : is non-empty but has no least element under the usual order.
- : positive rationals; is non-empty but has no least element.
- : is bounded below by 0 but has no least element.
Trying to apply well-ordering in these settings is the most common error. Always verify your set sits inside .
The well-ordering theorem of ZFC (every set can be well-ordered) is a separate, much stronger statement equivalent to the axiom of choice. Do not confuse it with the well-ordering principle of , which is just a property of the natural numbers and needs no choice.
Application: The Division Algorithm
Division with remainder
Problem. For integers and with , show there exist unique integers and with and .
Solution. Existence uses well-ordering.
Let . We need to be non-empty: take very negative (smaller than ) so that . So and is non-empty.
By well-ordering, has a least element . Write . We claim .
If , then , so and , contradicting being the least element of . So .
Uniqueness: if with , then , so , but $|r'
- r| < dr = r'q = q'$.
The division algorithm is the foundation of greatest common divisors, the Euclidean algorithm, and modular arithmetic. All three trace back to this one well-ordering argument.
Application: Smallest Counterexample
The "smallest counterexample" technique is well-ordering in direct application.
Every integer $\ge 2$ has a prime factor
Problem. Show that every integer has at least one prime factor.
Solution. Suppose for contradiction that some has no prime factor. The set of such integers is non-empty and contained in , so it has a least element by well-ordering.
If is prime, then itself is a prime factor of , contradicting . So is composite: with . Now and , so (by minimality of ). Hence has a prime factor . Then , so is a prime factor of , contradicting .
Either way we reach a contradiction, so is empty: every has a prime factor.
Strong induction would prove the same thing. The two phrasings ("smallest counterexample" vs "induct on ") differ only in direction; the underlying logic is identical.
Common Mistakes
Applying well-ordering outside N
The single most common error. Well-ordering of does not give you a least element of a set of integers (could be unbounded below), of rationals (could be unbounded below or have no least element even when bounded), or of reals (likewise). Always verify: is your set a subset of , or at least bounded below by an integer? If not, you need a different argument (typically infimum + attainment argument for reals).
Confusing the principle with the theorem
The well-ordering principle says is well-ordered under . The well-ordering theorem (Zermelo 1904) says every set has some well-order. The theorem is equivalent to the axiom of choice and far stronger. Olympiad and standard mathematics use only the principle, which is provable from the Peano axioms without choice.
Forgetting non-emptiness
Well-ordering requires the subset to be non-empty. The empty set has no least element. In smallest-counterexample arguments the contradiction setup ("suppose the set of counterexamples is non-empty") is doing real work; do not skip it.
Using well-ordering when induction is cleaner
"Smallest counterexample" arguments and induction proofs are logically interchangeable, but stylistically different. If your proof invokes the inductive hypothesis at a single predecessor and the step is mechanical, induction is usually clearer to read. If you need to reason about which smaller counterexamples exist or want to manipulate them as a set, well-ordering reads more naturally.
Exercises
Problem
Show that there is no infinite strictly decreasing sequence of natural numbers .
Problem
Use well-ordering to show that for any positive integers and there exist integers with .
Problem
Show that the equation has no solutions in positive integers .
Cross-Network Links
- ProofsPath: induction-strong-vs-weak is logically equivalent; proof-by-infinite-descent is well-ordering's most elegant application; extremal-principle is well-ordering generalized beyond ; proof-by-contradiction is the meta-technique that smallest-counterexample arguments inhabit.
- TheoremPath: measure-theoretic-probability generalizes to transfinite induction; the well-ordering theorem (with choice) underwrites the construction of non-measurable sets.
- ComputationPath: termination of recursive procedures on -valued measures is well-ordering in algorithmic guise.
References
See structured references block. Primary entry points: Halmos
Naive Set Theory §12 for the foundational construction;
Velleman How to Prove It Ch 6 for the equivalence with
induction; Hardy-Wright Ch 13 for Fermat's descent argument;
Aigner-Ziegler for elegant smallest-counterexample proofs.