2.1  The Natural Numbers and Well-Ordering

Logic and Proof, Chapter 4 took one fact about the natural numbers on trust: the principle of induction (Logic and Proof, Axiom 4.2.1), which says that a property holding at 0 and passing from each n to n+1 holds for every n∈N. From it, Logic and Proof, Chapter 4 proved strong induction (Logic and Proof, Theorem 4.2.2), whose step may use the property at every smaller number. Everything else we have said about N was school knowledge: that 7−3 is a natural number, that none lies strictly between 3 and 4, that every non-empty set of natural numbers has a least member. This section derives those facts from induction, extends them to the integers, and then proves that the least-member property, well-ordering, is induction in another form.

2.1.1. What we assume about the natural numbers

The principle of induction is usually used with a property written as a sentence. It has an equivalent form about sets, which is the one Analysis on the Real Line, Chapter 1 uses.

Remark. Let S⊆N contain 0, and suppose n+1∈S whenever n∈S. Apply Logic and Proof, Axiom 4.2.1 to the property “n∈S”: its base case is 0∈S, and its step is the closure of S. So every n∈N lies in S, that is, N⊆S, and with S⊆N this gives S=N (Proposition 1.2.1). In words: the only subset of N that contains 0 and is closed under n↦n+1 is N itself. Analysis on the Real Line, Chapter 1 states this as “N is contained in every inductive set”, where an inductive set contains 0, as here.

Here is everything the section assumes about N. The natural numbers form a subset N⊆R of the familiar real numbers such that

  • (( )0) 0∈N;
  • (NS) for every n∈N, also n+1∈N;

and Logic and Proof, Axiom 4.2.1 holds. The arithmetic and the order of the real numbers (the laws of +, −, ⋅ and ≤, trichotomy, multiplying an inequality by a positive number) are school facts in this volume and in Logic and Proof; Analysis on the Real Line, Chapter 1 states them as axioms of an ordered field. These three items are a description of N, not new axioms: Logic and Proof, Chapter 4 already used all of them.

The rule for this section. From here to the end of the section, a fact about N is used only if it is (( )0), (NS), Logic and Proof, Axiom 4.2.1, a statement proved earlier in the section, or Logic and Proof, Theorem 4.2.2 once the paragraph after Lemma 2.1.1 has shown that its Logic and Proof, Chapter 4 proof rests only on these. The real-number arithmetic is used freely. In particular “n≥0” for a natural number n, which looks too obvious to mention, is not available until it is proved below, in Lemma 2.1.1 (a).

The integers and the rationals are then defined from N, as subsets of R: Z:=N∪{−n:n∈N},Z>0:={n∈N:n≠0},Q:={m/n:m∈Z, n∈Z>0}. In words: an integer is a natural number or the negative of one; a positive integer is a natural number other than 0; a rational number is a quotient of an integer by a positive integer. These are word for word the definitions of Analysis on the Real Line, Section 1.5, so the two chapters speak of the same sets. Examples: −3∈Z because 3∈N; 0 lies in Z twice over, as 0∈N and as −0, which a union does not mind; −12=(−1)/2∈Q. The definitions do not yet tell us that 12∉Z, or that Z>0 is the set of natural numbers ≥1. Both need the lemma below.

Two pieces of notation will save words later. For n∈N, {1,…,n}:={k∈N:1≤k≤n},{0,…,n}:={k∈N:k≤n}. So {1,…,0}=∅, since no k has 1≤k≤0. We do not write [n] for these sets: square brackets will mean an equivalence class in Section 4.2.

2.1.2. The arithmetic of the natural numbers

The facts below are the ones Logic and Proof, Chapter 4 and Analysis on the Real Line, Chapter 1 used without proof. Each of (a)–(d) is one ordinary induction, and the only work is to choose the property to induct on; (e) follows from (a) and (d).

Lemma 2.1.1 (Arithmetic of the Natural Numbers)

For all m,n∈N:

  • (a) n≥0; and if n≠0, then n≥1;
  • (b) m+n∈N and mn∈N;
  • (c) if n≠0 (equivalently, by (a), n≥1), then n−1∈N;
  • (d) if m≤n, then n−m∈N;
  • (e) there is no k∈N with n<k<n+1; equivalently, if m<n, then m+1≤n.

In words: (a) says that 0 is the smallest natural number and that nothing in N lies between 0 and 1. (b) says N is closed under sums and products, (c) that every natural number except 0 has a predecessor in N, and (d) that a difference “larger minus smaller” stays in N. (e) says the natural numbers come one unit apart, with no gaps to hide in.

Idea. Each induction needs a property that is true at 0 and survives the step, and the statement as written does not always qualify. “If n≠0, then n≥1” says nothing useful at 0, so for (a) we induct on the disjunction “n=0 or n≥1”. For (b) we fix one of the two numbers and induct on the other. For (d) we induct on m. The step from m to m+1 uses the hypothesis only at the same n, with the weaker bound m≤n, and then subtracts 1 using (c). So n could be fixed first, as m is in (b); the proof below puts “for every n” inside the property instead, which is harmless.

Proof. (a) Let P(n) be “n=0 or n≥1”. Base case: P(0) holds by its first disjunct. Step: let n∈N with P(n). If n=0, then n+1=1≥1; if n≥1, then n+1≥2≥1. In both cases n+1≥1, so P(n+1) holds by its second disjunct. By Logic and Proof, Axiom 4.2.1, every n∈N satisfies n=0 or n≥1. In both cases n≥0; and if n≠0, the first disjunct is excluded, so n≥1.

(b) Fix m∈N. Sums: let P(n) be “m+n∈N”. Then P(0) holds, since m+0=m∈N. If m+n∈N, then m+(n+1)=(m+n)+1∈N by (NS). By Logic and Proof, Axiom 4.2.1, m+n∈N for every n∈N; as m was arbitrary, this holds for all m,n∈N. Products: let Q(n) be “mn∈N”. Then m⋅0=0∈N by (( )0). If mn∈N, then m(n+1)=mn+m, a sum of the two natural numbers mn and m, so it lies in N by the half just proved. By Logic and Proof, Axiom 4.2.1, mn∈N for every n.

(c) Let P(n) be “n=0 or n−1∈N”. P(0) holds by its first disjunct. Let n∈N; then (n+1)−1=n∈N, so P(n+1) holds by its second disjunct. By Logic and Proof, Axiom 4.2.1, P(n) holds for every n∈N, and for n≠0 its second disjunct is the claim.

(d) Let P(m) be “for every n∈N, if m≤n, then n−m∈N”. Base case: n−0=n∈N. Step: let m∈N with P(m), and let n∈N with m+1≤n. Then m<m+1≤n, so n−m∈N by P(m). Moreover n−m≥1>0, so n−m≠0, and (c) gives (n−m)−1∈N. Since (n−m)−1=n−(m+1), this is P(m+1). By Logic and Proof, Axiom 4.2.1, P(m) holds for every m∈N.

(e) Let m<n. By (d), n−m∈N, and n−m>0, so n−m≠0 and (a) gives n−m≥1, that is, m+1≤n. Now suppose k∈N with n<k<n+1. Applying what we just proved to n<k gives n+1≤k, which contradicts k<n+1. So no such k exists. This proves the lemma.

Read the proof of (c) again. Its inductive step never mentions P(n).

Example (An induction that ignores its hypothesis)

Logic and Proof, Chapter 4, after its first worked induction (Logic and Proof, Example (A sum of products of neighbors)), said: “A proof by induction that never uses its induction hypothesis is either not an induction or is hiding a gap.” The proof of Lemma 2.1.1 (c) never uses its induction hypothesis. Is it an induction, and is it hiding a gap?

Solution. It is an induction, and it hides no gap. Its base case P(0) is proved, and its step “P(n)⇒P(n+1)” is a valid implication for every n∈N: the conclusion P(n+1) is proved outright, so the implication holds whatever P(n) says. Then Logic and Proof, Axiom 4.2.1 delivers P(n) for every n. The hypothesis n∈N of the step is used, through (n+1)−1=n∈N; only P(n) is not.

Nor can a case analysis replace the axiom here. A direct proof would have to say which numbers lie in N, and the only thing that says so is induction: the step shows that every number of the form n+1 with n∈N has the property, and it is Logic and Proof, Axiom 4.2.1 that tells us every natural number other than 0 is of this form. Logic and Proof, Chapter 4’s sentence is a rule of thumb, and a good one: an unused hypothesis is a reason to check the proof line by line. Here the check passes. The exception is a step whose conclusion is reached without the hypothesis, and the axiom is still what carries the property from 0 to every n.

The lemma also closes a gap in Logic and Proof, Chapter 4. The proof of Logic and Proof, Theorem 4.2.2 used two facts about N as school knowledge. In its base case it said “No natural number is less than 0, so P(k) holds for every k∈N with k<0, vacuously” and “The only k∈N with k≤0 is 0”: both are (a), the second with trichotomy. In its inductive step it said “The natural numbers k<n+1 are exactly those with k≤n, since no natural number lies strictly between n and n+1”, and then “A natural number k≤n+1 satisfies k≤n or k=n+1”: both are (e), with trichotomy. The proofs of (a), (d) and (e) above use only Logic and Proof, Axiom 4.2.1, (( )0), (NS), part (c) and the arithmetic of R, and none of them uses strong induction. So strong induction rests on those items alone, and from now on we may cite Logic and Proof, Theorem 4.2.2 with no school fact behind it.

Quick check. Where in the proof of Lemma 2.1.1 (d) is part (c) used, and could n have been fixed before the induction on m, as m was in (b)?

Solution. Part (c) is used to pass from n−m∈N to n−(m+1)=(n−m)−1∈N, after checking n−m≠0. The step from m to m+1 is about one n with m+1≤n, and it uses P(m) at that same n, with the weaker bound m≤n. So yes: fixing n∈N and inducting on “if m≤n, then n−m∈N” proves the same thing, and then n was arbitrary. Putting “for every n” inside P(m) is harmless but not needed. It would be needed only if the step used the hypothesis at a different n, such as n−1.

2.1.3. The integers

Analysis on the Real Line, Chapter 1 uses that sums, differences and products of integers are integers, and that an integer greater than 3 is at least 4. Both now follow from the lemma, by sorting integers into natural numbers and their negatives.

Proposition 2.1.2 (Arithmetic of the Integers)

Let m,n∈Z.

  • (a) m+n, m−n and mn are integers.
  • (b) If n≥0, then n∈N; if n>0, then n∈Z>0. Hence N={n∈Z:n≥0},Z>0={n∈Z:n>0}={n∈N:n≥1}.
  • (c) (Discreteness.) If m<n, then m+1≤n.

Idea. Every integer is a or −a with a∈N, so each claim splits into cases by signs. Only one case has content: a+(−b)=a−b with a,b∈N, which is in N when b≤a, by Lemma 2.1.1 (d), and is the negative of a natural number when a<b. Discreteness then follows from (b) applied to the difference n−m: it is a positive integer, hence a natural number with n−m≥1, by (a) of the lemma.

Proof. (a) First, Z is closed under x↦−x: if x∈N, then −x∈Z by the definition of Z; if x=−k with k∈N, then −x=k∈N⊆Z.

Next let a,b∈N; we show a−b∈Z. By trichotomy there are three cases. If a>b or a=b, then b≤a, and a−b∈N by Lemma 2.1.1 (d). If a<b, then b−a∈N by (d), and a−b=−(b−a)∈Z.

Now write m=±a and n=±b with a,b∈N. The table lists the four sign patterns; in each, a+b and ab lie in N by Lemma 2.1.1 (b), and a−b, b−a lie in Z by the previous paragraph.

m n m+n mn
a b a+b∈N ab∈N
a −b a−b∈Z −(ab)∈Z
−a b b−a∈Z −(ab)∈Z
−a −b −(a+b)∈Z ab∈N

So m+n and mn are integers. Finally m−n=m+(−n), a sum of two integers, since −n∈Z by the first paragraph.

(b) Let n≥0. By the definition of Z, either n∈N, and we are done, or n=−k with k∈N. In the second case k=−n≤0, and k≥0 by Lemma 2.1.1 (a), so k=0 and n=0∈N by (( )0). If moreover n>0, then n is a natural number with n≠0, so n∈Z>0.

For the set equalities: N⊆Z, and every n∈N has n≥0 by (a) of the lemma; with the first sentence of (b) this gives N={n∈Z:n≥0}. Every element of Z>0 is a natural number n≠0, so n≥1>0 by (a) of the lemma; with the second sentence of (b) this gives Z>0={n∈Z:n>0}. Finally, for n∈N, n≠0 implies n≥1 by (a), and n≥1 implies n≠0; so Z>0={n∈N:n≥1}.

(c) Let m<n. By (a), n−m∈Z, and n−m>0, so n−m∈Z>0 by (b), that is, n−m≥1. Hence m+1≤n. This proves the proposition.

Discreteness is the fact behind “an integer greater than 3 is at least 4” (take m=3), and behind “the integers x with −2≤x≤2 are −2,−1,0,1,2”: an integer x with −2≤x is −2 or at least −1, and so on up to 2. It also settles the question left open above: 12∉Z, since 0<12 would force 1≤12.

2.1.4. Well-ordering

A fraction with even numerator and denominator can be halved, and halved again, and Logic and Proof, Chapter 2 claimed that this cannot go on for ever (the fact (L) in the proof of Logic and Proof, Theorem 2.2.1). The reason is that the absolute values of the denominators form a strictly decreasing list of positive integers, and such a list must stop. The precise form of “must stop” is a statement about least elements.

A least element of a set S⊆R is an element m∈S such that m≤s for every s∈S. Not every set has one: (0,1] has none, since for every x∈(0,1] the number x/2 lies in the set and is smaller. The empty set has none either, as a least element must be an element. Reversing the inequality, a greatest element of S is an element m∈S with s≤m for every s∈S; this is the maximum of Logic and Proof, Section 5.8.

Every non-empty set of natural numbers has a least element.

Theorem 2.1.3 (Well-Ordering of the Natural Numbers)

Every non-empty subset of N has a least element.

Try it first (ten minutes): suppose that S⊆N has no least element. Which property of n would you prove for every n∈N by strong induction, and why does it finish the proof?

Idea. A least element cannot be found by inspecting S, since we know nothing about S. So we suppose there is none and show S is empty, which contradicts “non-empty”. The property to carry is “n∉S”. If no number below n is in S and n were in S, then n would be a least element; so n is not in S. The hypothesis must speak about every number below n, which is why the induction is strong. Before reading on: at which line is trichotomy used, and what would go wrong without it?

Proof. Let S⊆N be non-empty, and suppose, for a contradiction, that S has no least element. For n∈N, let P(n) be “n∉S”.

Let n∈N, and suppose P(k) holds for every k∈N with k<n, that is, no natural number less than n lies in S. Suppose n∈S. Let s∈S. By trichotomy, s<n, s=n or s>n. The first is impossible: s is a natural number less than n, so s∉S by the hypothesis. So s≥n. As s∈S was arbitrary, n is a least element of S, which contradicts our supposition. Hence n∉S, that is, P(n) holds.

By Logic and Proof, Theorem 4.2.2, n∉S for every n∈N. Since S⊆N, the set S has no elements, which contradicts S being non-empty. So S has a least element. This proves the theorem.

The outer frame is an RAA on the statement “S has a least element”. The proof shows that a least element exists; it does not say how to find it. Logic and Proof, Section 8.7 explained why mathematicians have argued over proofs of this kind. Here the debate has a quiet ending: if S is given by a property that can be checked number by number, testing 0,1,2,… in turn finds the least element, and the theorem says the search stops. Nothing in the proof above depends on such a test.

Quick check. In the proof of Theorem 2.1.3, to which property is strong induction applied, and what is the induction hypothesis at n?

Solution. To P(n): “n∉S”. At n, the induction hypothesis is that k∉S for every natural number k<n: no element of S lies below n. Together with “n∈S” it would make n a least element, which is why n∈S leads to a contradiction.

Warning. Well-ordering is a property of subsets of N, not of every set of numbers. The set of positive rationals is non-empty and has no least element: for every positive rational q, the number q/2 is a smaller positive rational. Neither has Z: n−1<n is again an integer. A proof that takes “the least element” of a set must first show that the set is a non-empty subset of N, or a non-empty set of integers with an integer lower bound, as in Corollary 2.1.5 below.

Quick check. Does {n∈N:n2>50} have a least element? If so, which?

Solution. Yes. The set is non-empty, since 102=100>50, and it is a subset of N, so Theorem 2.1.3 applies. The least element is 8: 82=64>50, while 72=49≤50, and for n≤7 we have n2≤49. The theorem promised a least element; finding it took a search from below.

2.1.5. The least element as a tool

Well-ordering is used in two ways. The proof of Theorem 2.1.4 below uses it to compare principles; most proofs use it as a tool. They name a set of natural numbers, take its least element, and use the one thing a least element offers: nothing in the set lies below it. Here is the halving question that opened the subsection on well-ordering, answered that way.

Example (No endless descent in the natural numbers)

Show that there is no function f:N→N with f(n+1)<f(n) for every n∈N.

Idea (Scratch work). The goal is a negation, so we suppose that such an f exists and aim for a contradiction (¬I). A direct attempt stalls at once: f is arbitrary, and there is nothing to compute. Well-ordering needs a set of natural numbers, and the question is which set has a least element worth having. The domain does not help: its least element is 0, which says nothing about f. The values do: in V:=f(N)={f(n):n∈N}, a least value would be undercut by the value after it.

Givens Goal
f:N→N, f(n+1)<f(n) for every n a contradiction
V:=f(N)⊆N, and f(0)∈V a least element of V, and an element of V below it
f(m) least in V (Theorem 2.1.3) f(m+1)∈V and f(m+1)<f(m): the gap is closed

The hypothesis on f is used once, at the one place where it bites: just after the least value.

Solution. Suppose f is such a function, and let V:=f(N) (Definition 1.7.1). Then V⊆N, and V≠∅ since f(0)∈V. By Theorem 2.1.3, V has a least element, say f(m) with m∈N. Now m+1∈N by (NS), so f(m+1)∈V, and f(m+1)<f(m) by hypothesis, contradicting the choice of f(m). So no such f exists.

Repeated halving of a fraction p/q with q>0 and both entries even would give such a function, n↦ the (positive) denominator after n halvings, if the halving never stopped: an even denominator q>0 is 2k with k∈Z (Definition 1.1.1), so k>0, k∈Z>0 by Proposition 2.1.2 (b), and k<2k=q. So it stops. Section 2.2 writes this argument out as a proof, in its lemma on lowest terms.

The example follows a pattern that recurs throughout the book, and it is worth fixing as a method.

Example (Method: the least element)

Template. (1) Name a set S whose least element would help: the failures, the values, the candidates. (2) Show that S is a non-empty subset of N, by giving an element; or a non-empty set of integers with an integer lower bound. (3) Take its least element m (Theorem 2.1.3; for integers, Corollary 2.1.5 below). (4) Use leastness: produce an element of S below m, a contradiction; or conclude what m must be.

When to use it. A process that must stop; a quantity that can always be made smaller; the first time something happens; an object chosen to be extreme.

The usual failure. Taking “the least element” of a set not shown to be non-empty, or of a set of rationals, or of a set of integers with no integer lower bound (the warning above); and forgetting to check that the smaller element lies in S again.

Example (Going down by two)

Let S⊆N be non-empty, and suppose s−2∈S for every s∈S with s≥2. Show that 0∈S or 1∈S.

Idea. By the method of Example (Method: the least element), ending in the second form of its step (4): the least element of S itself must be 0 or 1.

Solution. Since S is a non-empty subset of N, it has a least element m (Theorem 2.1.3). If m≥2, then m−2∈S by hypothesis, and m−2<m, contradicting the choice of m. So m<2, that is, m≤1 by Lemma 2.1.1 (e); and m=0 or m≥1 by (a), so m∈{0,1}. Hence 0∈S or 1∈S.

The proof never asks whether m−2 is a natural number: the hypothesis puts it in S, and S⊆N.

Quick check. Let S:={17−5k:k∈N, 5k≤17}. List S, find its least element, and say what that element has to do with dividing 17 by 5.

Solution. The admissible k are 0,1,2,3, since 5⋅3=15≤17<20=5⋅4 rules out k≥4, and the k<4 are 0,1,2,3 (Lemma 2.1.1 (a), (e)). So S={17,12,7,2}, and its least element is 2, the remainder of 17 on division by 5: 17=5⋅3+2 with 0≤2<5. Section 2.2 proves that the least non-negative number of the form a−qn is always the remainder.

2.1.6. Induction and well-ordering are the same principle

The proof of Theorem 2.1.3 derived well-ordering from induction. The derivation also runs the other way, and the cleanest way to say so is to ask which sets of numbers satisfy which principle. For a set X⊆R, consider three structural properties:

  • 0∈X;
  • closure: for every n∈X, n+1∈X;
  • the predecessor property: for every n∈X with n≠0, n−1∈X.

The set N has all three, by (( )0), (NS) and Lemma 2.1.1 (c). Say that X has the induction property if every S⊆X with 0∈S and n+1∈S for every n∈S equals X; and the least-element property if every non-empty subset of X has a least element. The closure of S in the induction property is plain closure under n↦n+1, not “closure as long as one stays in X”; the witnesses below show why that matters.

Theorem 2.1.4 (Induction Is Equivalent to Well-Ordering)

Let X⊆R contain 0, be closed under n↦n+1, and have the predecessor property. Then X has the induction property if and only if X has the least-element property.

Idea. (⇒) A set X with the induction property and the first two properties must be N itself: N sits inside X by Logic and Proof, Axiom 4.2.1, and the induction property of X, applied to the subset N, forces equality. Then Theorem 2.1.3 applies. (⇐) Take S as in the induction property and suppose S≠X; the least element m of X∖S is then a smallest failure (the method of Example (Method: the least element), applied to the set X∖S of failures, with the least-element property of X in place of Theorem 2.1.3); the number m−1 just below it is not a failure, so it lies in S, and closure passes that success up to m=(m−1)+1, a contradiction. Before reading on: in (⇐), which of the three hypotheses on X gives m−1∈X, and which two are not used at all?

Proof. (⇒) Suppose X has the induction property. Apply Logic and Proof, Axiom 4.2.1 to the property “n∈X”: its base case is 0∈X, and its step is the closure of X. So N⊆X. Now N is a subset of X that contains 0 and is closed under n↦n+1, by (( )0) and (NS); the induction property of X gives N=X. By Theorem 2.1.3, every non-empty subset of X=N has a least element.

(⇐) Suppose X has the least-element property. Let S⊆X contain 0 and be closed under n↦n+1. Suppose S≠X. Then X∖S is non-empty: if it were empty, every element of X would lie in S, so X⊆S, and with S⊆X this would give S=X by Proposition 1.2.1. So X∖S has a least element m. We have m≠0, since 0∈S. So m−1∈X, by the predecessor property. Since m−1<m and m is least in X∖S, m−1∉X∖S, that is, m−1∈S. Hence m=(m−1)+1∈S by the closure of S, which contradicts m∈X∖S. So S=X, and X has the induction property. This proves the theorem.

Second readingEach hypothesis has a job

Each hypothesis on X has a job, and dropping any one of them breaks the theorem. Each witness below names the direction that fails and the step of the proof it blocks.

  • Drop the predecessor property; (⇐) fails. Let X:=N∪{n+12:n∈N}. It contains 0 and is closed, since (n+12)+1=(n+1)+12. It has the least-element property: for non-empty T⊆X, compare a least element of T∩N with 12 plus a least element of {t−12:t∈T∖N}, each of the two sets, when non-empty, being a subset of N; the smaller of the candidates is least in T (Exercise C2 asks for the details). But S:=N contains 0, is closed, and is not X, since 12∉N by Lemma 2.1.1 (e). The proof of (⇐) breaks at “m−1∈X”: here m=12 is least in X∖S, and m≠0, but m−1=−12∉X.
  • Drop closure; (⇒) fails. Let X:={−n:n∈N}={0,−1,−2,…}. It contains 0, and it has the predecessor property, since (−n)−1=−(n+1). Its induction property holds vacuously: a subset S⊆X containing 0 and closed under n↦n+1 would contain 1, and 1∉X, since 1=−n would give n=−1<0, against Lemma 2.1.1 (a); so no such S exists, and every one of them (there are none) equals X. But X itself has no least element, since −(n+1)<−n. The proof of (⇒) breaks at “N⊆X by Logic and Proof, Axiom 4.2.1”: the property “n∈X” has no inductive step.
  • Drop 0∈X; (⇒) fails. Let X:={k+12:k∈Z}. It is closed, and it has the predecessor property, since (k+12)±1=(k±1)+12 with k±1∈Z by Proposition 2.1.2 (a). Its induction property holds vacuously, because 0∉X, so no subset of X contains 0. (Indeed 0=k+12 would need k=−12∈Z, and then 12=−k∈Z by Proposition 2.1.2 (a), which discreteness rules out, as shown above.) And X has no least element, since (k−1)+12<k+12. The proof of (⇒) breaks at “N⊆X by Logic and Proof, Axiom 4.2.1”: the property “n∈X” has no base case, since 0∉X.

In the last two witnesses the induction property is not false but vacuous. That is why the theorem uses plain closure of S. Under a “closure relative to X” reading (n+1∈S only when n+1∈X), the set S={0} would qualify in the closure witness, the induction property would fail there, and the witness would no longer separate the two properties.

So the slogan “induction and well-ordering are the same principle” means exactly Theorem 2.1.4: for a set of numbers with 0, closure and predecessors, either principle implies the other. So Logic and Proof, Chapter 4 could have taken, alongside (( )0) and (NS), the predecessor property and well-ordering as its axioms, and proved induction from them by the (⇐) half of Theorem 2.1.4. The first witness in the fold above shows that the predecessor property cannot be left out, and with induction gone it could no longer be proved as Lemma 2.1.1 (c) was. Number Systems: From N to R, Chapter 1 builds N from sets and proves the Peano axioms, induction among them, there.

2.1.7. Sets of integers

Well-ordering moves to sets of integers by a shift, provided the bound that makes the shift work is itself an integer.

Corollary 2.1.5 (Well-Ordering of Sets of Integers)

Let S⊆Z be non-empty. If S has a lower bound b∈Z, then S has a least element. If S has an upper bound b∈Z, then S has a greatest element.

Idea. Slide S to the right by −b, so that its lower bound lands on 0; the shifted set lies in N, where Theorem 2.1.3 applies, and sliding back preserves order. For an upper bound, reflect: −S is bounded below by −b.

Proof. Lower bound. Let T:={s−b:s∈S}. Each s−b is an integer by Proposition 2.1.2 (a), and s−b≥0 since b≤s; so s−b∈N by Proposition 2.1.2 (b). Thus T is a non-empty subset of N, and by Theorem 2.1.3 it has a least element m0−b with m0∈S. For every s∈S, m0−b≤s−b, so m0≤s. Hence m0 is a least element of S.

Upper bound. Let −S:={−s:s∈S}. It is a non-empty set of integers (negatives of integers are integers, by the definition of Z and Proposition 2.1.2 (a)), and −b is an integer lower bound for it, since s≤b gives −b≤−s. By the first half, −S has a least element −m with m∈S. For every s∈S, −m≤−s, so s≤m: m is a greatest element of S. This proves the corollary.

Quick check. Does {n∈Z:n2<30} have a least element? Which hypothesis of Corollary 2.1.5 do you check, and how?

Solution. Yes. The hypotheses to check are that the set is non-empty and that it has a lower bound in Z. It is non-empty, since 0 is in it. And −6 is an integer lower bound: an integer n≤−6 has −n≥6>0, so n2=(−n)2≥36>30, so every element n of the set has n>−6. The least element is −5: (−5)2=25<30, and every element is >−6, hence ≥−5 by discreteness (Proposition 2.1.2 (c)).

Second readingWhy the bound must be an integer

The bound must be an integer, or at least have an integer below it. Given a set of integers bounded below by the real number −72, we would first replace −72 by the integer −4, and that step, for an arbitrary real bound, is the Archimedean property of Analysis on the Real Line, Chapter 1, whose integer-part lemma in Section 1.6 does exactly this. In an ordered field without the Archimedean property, a set of integers can be bounded below and have no least element (in the field R(x) of Analysis on the Real Line, Chapter 1’s example of a non-Archimedean field, every n∈N has n<x, so the set {−n:n∈N} is bounded below by −x, and it has no least element, since −(n+1)<−n), so this chapter, which has no Archimedean property, proves the corollary with an integer bound, and Analysis on the Real Line, Chapter 1 supplies the rest.

2.1.8. Exercises

A. Check your understanding

Exercise (A1)

Parts (a)–(d) are about the proof of Theorem 2.1.3.

  • (a) Where is trichotomy used?
  • (b) Why would ordinary induction (Logic and Proof, Axiom 4.2.1) on the same property “n∉S” not do?
  • (c) Run the proof on S={4,7,9}: at which n does the argument meet an element of S, and what does it conclude there?
  • (d) State the idea of the proof in two sentences.
  • (e) Let X=N∪{n+12:n∈N}. Which statements of Lemma 2.1.1 remain true when every “N” in them is replaced by “X”? Decide each clause of (a), each half of (b), and (c), (d), (e) separately, with a witness for each failure.

Solution. (a) In the inductive step, to split an arbitrary s∈S into s<n, s=n or s>n. The first case is excluded by the hypothesis, so s≥n. Without trichotomy, “s is not less than n” would not give “s≥n”, and n would not be shown to be least.

(b) Ordinary induction gives only P(n−1), that is, n−1∉S, as hypothesis for P(n). That does not exclude a smaller element of S, such as n−5, so “n∈S” would not make n least, and no contradiction would follow. The proof needs all numbers below n to be outside S.

(c) S={4,7,9} has a least element, so the supposition of the proof is false, and the argument meets its contradiction. For n=0,1,2,3, no smaller number is in S, and indeed n∉S. At n=4, no natural number below 4 is in S, and 4∈S; the argument shows that every s∈S has s≥4, so 4 is a least element of S. That contradicts the supposition “S has no least element”, and the proof concludes that S has a least element, namely 4.

(d) If S had no least element, then no n could be in S, because the first one would be least; strong induction makes “the first one” precise. So S would be empty, against the hypothesis.

(e) Holding: the first clause of (a) (every element is ≥0); the sum half of (b), since a sum of two halves (m+12)+(n+12)=m+n+1 is a natural number and a half plus a natural number is a half; and (d): if x≤y in X, then y−x∈X. For (d) there are four cases. Two natural numbers, or two halves, have a difference in N by Lemma 2.1.1 (d). For x=m≤y=n+12, we have m≤n (else m≥n+1>y by (e) of the lemma), so y−x=(n−m)+12∈X. For x=m+12≤y=n, we have m<n, so m+1≤n and y−x=(n−m−1)+12∈X.

Failing: the second clause of (a), since 12≠0 and 12<1; the product half of (b), since 12⋅12=14∉X (it is not a natural number, as 0<14<1, and not a half, as 14−12<0); (c), since 12≠0 and 12−1=−12∉X; (e), since 0<12<1 with 12∈X.

Each clause had to be decided by its own witness. The proofs of (a)–(d) were inductions over N, and X does not have the induction property (N⊆X contains 0 and is closed), so none of those proofs carries over; some conclusions survive anyway. (c) fails because the predecessor property fails at 12. (e) fails through the second clause of (a), not through (d), which still holds. The set Z∪{k+12:k∈Z} has the predecessor property and still has 12 between 0 and 1, so the predecessor property alone (with 0 and closure) does not give (e); together with the least-element property it does: the set then has the induction property by Theorem 2.1.4, and, as in the proof of its (⇒) half, it equals N.

B. Practice

Exercise (B1)

Use only Lemma 2.1.1 and the arithmetic of R.

  • (a) Prove that if m,n∈N and mn=1, then m=n=1.
  • (b) Prove that n2≥n for every n∈N.

Solution. (a) Since 0⋅n=0≠1, we have m≠0, and likewise n≠0. By the second clause of Lemma 2.1.1 (a), m≥1 and n≥1. Suppose m>1. Multiplying by n>0 gives mn>n≥1, which contradicts mn=1. So m=1, and then n=mn=1.

(b) Let n∈N. By Lemma 2.1.1 (a), n=0 or n≥1. If n=0, then n2=0=n. If n≥1, multiplying n≥1 by n>0 gives n2≥n. In both cases n2≥n.

Exercise (B2: Putting a proof in order)

The lines below, (i)–(ix), include the seven lines of a proof of (⇐) in Theorem 2.1.4, shuffled, and two lines that do not belong. Here X has 0∈X, closure and the predecessor property, and the least-element property. Write the seven lines in an order that makes a correct proof, and say why each of the other two lines fails.

  • (i) So m−1∈X, by the predecessor property.
  • (ii) Let m be the least element of S.
  • (iii) Then X∖S is non-empty, so it has a least element m.
  • (iv) Hence m=(m−1)+1∈S, a contradiction; so S=X.
  • (v) Let S⊆X contain 0 and be closed under n↦n+1.
  • (vi) m−1<m, so m−1∉X∖S, that is, m−1∈S.
  • (vii) Since m is least and m−1<m, m−1∈X∖S.
  • (viii) Suppose S≠X.
  • (ix) m≠0, since 0∈S.

Solution. The order is (v), (viii), (iii), (ix), (i), (vi), (iv). It is the only admissible one. (v) introduces S, (viii) is the supposition the rest contradicts, and (iii) introduces m from it. (ix) must sit between (iii) and (i): it needs the m of (iii), and (i) applies the predecessor property, which needs m≠0. (vi) uses the m−1∈X of (i): only an element of X can be sorted into S or X∖S. (iv) uses (vi) and closure.

Line (ii) takes the least element of the wrong set. The set whose least element locates a failure is X∖S: its least element is the first number of X missing from S. A least element of S says nothing about where S and X differ; in the case X=N it is 0, which lies in S by (v) and is no failure at all. Line (vii) reads leastness backwards: “m is least in X∖S” says that nothing below m lies in X∖S, so a smaller number of X is in S, not outside it.

Exercise (B3)

Prove the second half of Corollary 2.1.5 directly from Theorem 2.1.3, without using the first half: if S⊆Z is non-empty and b∈Z is an upper bound of S, then S has a greatest element.

Hint: shift by s↦b−s.

Solution. Let T:={b−s:s∈S}. For s∈S, b−s is an integer by Proposition 2.1.2 (a), and b−s≥0 because s≤b; so b−s∈N by Proposition 2.1.2 (b). Thus T is a non-empty subset of N, and by Theorem 2.1.3 it has a least element, of the form b−s0 with s0∈S. For every s∈S, b−s0≤b−s, so s≤s0. Hence s0 is a greatest element of S.

Exercise (B4: Prove or disprove)

Prove each true statement, by the method of Example (Method: the least element) where it applies, and refute each false one with a concrete counterexample.

  • (a) Every non-empty set of integers has a least element.
  • (b) Every non-empty set of negative rational numbers has a greatest element.
  • (c) Every non-empty set of even natural numbers has a least element.
  • (d) Every non-empty subset of {1/n:n∈Z>0} has a greatest element.
  • (e) Every non-empty subset of {1/n:n∈Z>0} has a least element.
  • (f) If S⊆Z is non-empty and s≥−133 for every s∈S, then S has a least element.

Solution.

  • (a) False. Take Z itself. For every n∈Z, also n−1∈Z by Proposition 2.1.2 (a), and n−1<n, so no element is least.

  • (b) False. Take {−1/n:n∈Z>0}, a non-empty set of negative rationals. For each −1/n in it, −1/(n+1) is in it too, and −1/n<−1/(n+1), so no element is greatest.

  • (c) True. Such a set is a non-empty subset of N, so Theorem 2.1.3 gives it a least element.

  • (d) True. Let T be a non-empty subset, and let N:={n∈Z>0:1/n∈T}. Then N⊆Z>0⊆N, and N is non-empty: T has an element, which is 1/n for some n∈Z>0, and that n lies in N. So N has a least element n0 (Theorem 2.1.3). Then 1/n0∈T, and for every 1/n∈T we have n∈N, so n≥n0>0 and 1/n≤1/n0. So 1/n0 is a greatest element of T.

  • (e) False. Take the whole set. For each 1/n in it, 1/(n+1) is in it too, and 1/(n+1)<1/n, so no element is least.

  • (f) True. The integer −5 is a lower bound of S, since −5<−133≤s for every s∈S. So Corollary 2.1.5 applies.

Items (c), (d) and (f) are well-ordering, sometimes after a change of view: (c) is a subset of N as it stands, (f) needs its bound −133 replaced by the integer −5, and (d) passes from 1/n to n, where “greatest” becomes “least”. The false items are the warning after Theorem 2.1.3 in three costumes.

C. Going deeper

Exercise (C1: A greatest element from a least upper bound)

Let S⊆N be non-empty, and suppose some M∈N satisfies s≤M for every s∈S.

  • (a) Prove that S has a greatest element by applying Theorem 2.1.3 to the set U of upper bounds of S that lie in N, not by citing Corollary 2.1.5: show that the least element of U lies in S.
  • (b) Show that the hypothesis “some M∈N bounds S above” cannot be dropped.

Solution (Hint 1). Consider U:={u∈N:s≤u for every s∈S}.

Solution (Hint 2). U is non-empty because M∈U; let u be its least element, which exists by Theorem 2.1.3.

Solution. (a) Let U:={u∈N:s≤u for every s∈S}. Then M∈U, so U is a non-empty subset of N, and Theorem 2.1.3 gives a least element u of U. We show u∈S.

Suppose u∉S. Then every s∈S satisfies s≤u and s≠u, so s<u, and s+1≤u by Lemma 2.1.1 (e); that is, s≤u−1. Since S is non-empty, it has an element s0, and 0≤s0<u by Lemma 2.1.1 (a), so u≠0. By Lemma 2.1.1 (c), u−1∈N. So u−1 is an upper bound of S in N, that is, u−1∈U, and u−1<u, which contradicts the choice of u. Hence u∈S.

Since u∈S and s≤u for every s∈S, u is a greatest element of S.

(b) S=N is non-empty and has no greatest element: for every n∈N, also n+1∈N by (NS), and n+1>n. In the proof, U is then empty, and Theorem 2.1.3 has nothing to apply to.

The number u of (a) is the least upper bound of S among natural numbers, and the proof shows that it lies in S. Section 4.3 defines least upper bounds in any partially ordered set, and Analysis on the Real Line, Chapter 1 is about sets of real numbers whose least upper bound, when it exists, need not lie in the set.

Marking scheme. (10 points) - 2: defines the set of upper bounds in N, shows it is non-empty, and takes its least element by Theorem 2.1.3. - 2: handles u=0 separately, or shows u≠0 using that S is non-empty, before using u−1∈N (Lemma 2.1.1 (c)). - 3: uses the minimality of u: either shows directly that u−1∉U, so some s∈S has s>u−1, or, supposing u∉S, derives u−1∈U and contradicts minimality. - 1: uses discreteness (Lemma 2.1.1 (e)) to show that an element of S greater than u−1 equals u, or to get s≤u−1 in the contradiction route, and concludes that u∈S is a greatest element. - 2: (b) the witness S=N, with the reason it has no greatest element. Fatal errors (0 for the step): using u−1∈N without checking u≠0; taking a least element of U without showing U non-empty.

A second route, through the least element M−s0 of {M−s:s∈S}⊆N (as in Exercise (B3)), proves the conclusion of (a) but not by the method the task names, so it earns at most 4 points for (a): 2 for showing that this set is a non-empty subset of N and taking its least element, and 2 for deducing s≤s0 for every s∈S from M−s0≤M−s, with s0∈S; and (b) as above.

Exercise (C2: A well-ordered set with gaps)

Let X:=N∪{n+12:n∈N}. Prove that every non-empty subset of X has a least element.

Solution. Let T⊆X be non-empty, and put A:=T∩N,B:={t−12:t∈T∖N}. Every t∈T∖N is n+12 for some n∈N, since t∈X; so t−12=n∈N, and B⊆N. Since T=A∪(T∖N) is non-empty, A or B is non-empty. By Theorem 2.1.3, A, if non-empty, has a least element a, and B, if non-empty, has a least element b. Define c:={aif B=∅,b+12if A=∅,min{a,b+12}otherwise. In each case c∈T: a∈A⊆T, and b=t−12 for some t∈T∖N, so b+12=t∈T.

Let t∈T. If t∈N, then t∈A, so A≠∅ and t≥a≥c. If t∉N, then t−12∈B, so B≠∅ and t−12≥b, that is, t≥b+12≥c. (In both chains, the last inequality holds in every case of the definition of c that can occur.) So c is a least element of T.

The set X has the least-element property, contains 0 and is closed under n↦n+1, but it does not have the induction property (N⊆X contains 0 and is closed, and N≠X). That is the first witness after Theorem 2.1.4: without the predecessor property, well-ordering does not give induction.

Marking scheme. (10 points) - 2: splits T into its natural-number part and its half part, and shows the shifted half part lies in N. - 2: applies Theorem 2.1.3 to each non-empty part, saying that at least one part is non-empty. - 2: defines the candidate in all cases, including those where one part is empty, and checks it lies in T. - 3: checks the candidate is ≤t for every t∈T, by cases on t∈N or not. - 1: concludes, with the quantifiers right: one least element for the given T. Fatal errors (0 for the step): applying Theorem 2.1.3 to T itself (it need not be a subset of N); taking a least element of an empty part.

A second route, through the least element of {2t:t∈T}⊆N, earns the same points. It earns 4 for showing that this set lies in N, checking both 2n and 2n+1 by Lemma 2.1.1 (b), and that it is non-empty, and for taking its least element 2t0 with t0∈T by Theorem 2.1.3. It earns 4 for deducing t0≤t from 2t0≤2t for every t∈T, and 2 for the conclusion. The same fatal errors apply.