1.7  Nested Intervals and the Uncountability of the Reals

Each point we have built so far was a single supremum: the supremum of a set that “reaches toward” the point we want. This section builds points from a different kind of data, a sequence of closed intervals, each inside the one before. We prove that such intervals always have a point in common. In Q this fails, and so it is one more way of saying that R has no gaps. The payoff is a proof that the real numbers cannot be listed, one that uses no decimal expansions, only the axiom.

1.7.1. Trapping a point

Here is a way to hunt for 2 using nothing but rational arithmetic. Start with the interval [1,2]; since 12<2<22, the number we are after is in there. Cut the interval at its midpoint 32. Since (32)2=94>2, keep the left half [1,32]. Cut again at 54: since (54)2=2516<2, keep the right half. Continuing, we get ⊇[1,32]⊇[54,32]⊇[118,32]⊇[118,2316]⊇⋯, each interval half as long as the one before, each with rational endpoints, and each containing 2. Is there a number lying in all of them?

In R the answer should be “yes, 2”. In Q the answer is “no”: the only candidate is 2, and it is not rational. We make both answers precise below. First, a name for the shape of this data. A family of sets I1,I2,I3,… is nested if In+1⊆In for every n≥1.

Theorem 1.7.1 (Nested Interval Theorem)

For each n≥1, let In=[an,bn] be a closed bounded interval with an≤bn, and suppose the family is nested: In+1⊆In for every n≥1. Then ⋂n≥1In≠∅. More precisely, α:=sup{an:n≥1} exists and lies in every In.

If moreover for every ε>0 there is n≥1 with bn−an<ε, then ⋂n≥1In={α}.

Idea. Picture the intervals on the line. As n grows, the left endpoints move right (or stay), the right endpoints move left (or stay), and they never cross: every left endpoint lies below every right endpoint, even for different indices. So the set of left endpoints is bounded above by each bn. Its supremum α is at least every an, because it is an upper bound. It is at most every bn, because it is the least upper bound and each bn is an upper bound. Hence α∈[an,bn] for every n.

For uniqueness: two different common points x<y would force every interval to have length at least y−x, and the shrinking hypothesis with ε=y−x forbids that.

Proof. We first compare endpoints with different indices.

Claim. am≤bn for all m,n≥1.

Proof of Claim. From Ij+1⊆Ij for every j, induction on k−m gives Ik⊆Im whenever m≤k. Let m,n≥1 and k:=max{m,n}. Then Ik⊆Im and Ik⊆In. Since ak∈Ik⊆Im, we have am≤ak. Since bk∈Ik⊆In, we have bk≤bn. Hence am≤ak≤bk≤bn.

Let A:={an:n≥1}. It is nonempty, since a1∈A, and by the claim it is bounded above by b1. By Axiom 1.3.1, α:=supA exists.

Fix n≥1. Since α is an upper bound of A, an≤α. By the claim, bn is an upper bound of A, so (S2) of Definition 1.2.4 gives α≤bn. Hence α∈[an,bn]=In. As n was arbitrary, α∈⋂nIn, and the intersection is nonempty.

Now assume the shrinking hypothesis, and let x∈⋂nIn. Suppose x≠α, and let u:=min{x,α} and v:=max{x,α}, so u<v and both lie in every In. For every n, an≤u<v≤bn, so bn−an≥v−u. But ε:=v−u>0, and by hypothesis some n has bn−an<v−u. This is a contradiction, so x=α. Hence ⋂nIn={α}.

Closedness is what lets α belong to In. The proof gives only an≤α≤bn, with nonstrict inequalities, and α may well equal an endpoint. An open interval would exclude it.

Now back to the bisection. Its intervals have length 1/2n−1, and 2n−1≥n for every n≥1 (by Logic and Proof, Axiom 4.2.1), so 1/2n−1≤1/n. Given ε>0, Corollary 1.5.2 gives n with 1/n<ε, and then the n-th interval is shorter than ε. The rule keeps an2<2<bn2 at every step, so an<2<bn by Theorem 1.1.2 (g), and every interval contains 2. By Theorem 1.7.1 the intersection is exactly {2}. The bisection traps 2 and nothing else.

1.7.2. What each hypothesis does

Theorem 1.7.1 has four hypotheses: the intervals are closed, they are bounded, they are nested, and they live in R. The uniqueness clause adds a fifth, that the lengths shrink below every ε. Each one is needed, and each has a witness.

Hypothesis dropped Family Intersection
closed (0,1/n) ∅
bounded [n,∞) ∅
nested [n,n+1] ∅
the field is R the rational bisection intervals, in Q ∅
lengths shrink (uniqueness only) [−1/n,1+1/n] [0,1]

We check each row.

  • Closed. The intervals (0,1/n) are nested and bounded. A real x≤0 is not in (0,1). For x>0, Corollary 1.5.2 gives n with 1/n<x, so x∉(0,1/n). Hence no real number is in every interval. Here the supremum of the left endpoints is α=0, and it lies in none of the intervals: exactly the step that closedness secured.
  • Bounded. The intervals [n,∞) are closed and nested. For any x∈R, Theorem 1.5.1 gives n>x, and then x∉[n,∞). The proof breaks earlier here: the left endpoints form Z>0, which has no upper bound, so α does not exist.
  • Nested. The intervals [n,n+1] are closed and bounded, but [1,2]∩[3,4]=∅ already.
  • The field is R. In Q, a closed interval means {q∈Q:a≤q≤b}. Take the bisection intervals [an,bn] from the start of this section. They are defined by rational arithmetic alone, because each midpoint c is rational, and c2≠2 by Logic and Proof, Theorem 2.2.1, so the rule “keep the half whose endpoints’ squares straddle 2” always applies. We showed that the real intervals [an,bn] have intersection {2}. So their rational parts have intersection Q∩{2}=∅.
  • Shrinking. The intervals [−1/n,1+1/n] are closed, bounded, and nested, and their intersection is [0,1]: every point of [0,1] lies in all of them, and a point outside [0,1] is excluded from some interval by Corollary 1.5.2 (Exercise (B2: An intersection that is not a point) writes this out). The intersection is nonempty, but it is not a single point. Their lengths 1+2/n never drop below 1.

Warning. Dropping a hypothesis removes the guarantee. It does not force the conclusion to fail. The open intervals (−1/n,1/n) are nested, and their intersection is {0}, which is not empty. A witness that a hypothesis is needed must be a family where the conclusion actually fails, like (0,1/n).

Quick check. The table’s witness for “closed” uses the open intervals (0,1/n). Do the half-open intervals (0,1/n] witness it too? And the half-open intervals [0,1/n)? Give a reason for each.

Solution. The half-open intervals (0,1/n] are nested and bounded, but no real number lies in all of them: x≤0 is not in (0,1], and for x>0 some n has 1/n<x (Corollary 1.5.2). The supremum of the left endpoints is 0, which is excluded from every interval. So (0,1/n] is a witness too. The intervals [0,1/n) are not: 0 lies in all of them, so their intersection {0} is not empty. Closing the left end puts the supremum 0 of the left endpoints back in.

1.7.3. The real numbers cannot be listed

Sets, Relations, and Cardinality, Chapter 3 calls a set countable if its elements can be listed as x0,x1,x2,…, repetitions allowed; for a nonempty set this means that it is the image of some function from N. That chapter shows that N, Z, and Q are countable. It also shows that R is not, by Cantor’s diagonal argument with decimal expansions. Decimal expansions were taken there as a fact from school: every real number has one, and two different expansions such as 0.4999… and 0.5000… can name the same number. Neither fact has been proved from our axioms.

Here is a proof with no decimals, using only Theorem 1.7.1.

Theorem 1.7.2 (Uncountability of the Reals)

Let x1,x2,x3,… be any list of real numbers, that is, any function n↦xn from Z>0 to R. Then there is c∈R with c≠xn for every n≥1. Consequently R is not countable.

Idea. Build nested closed intervals I1⊇I2⊇⋯, where In is chosen to avoid xn. A point c common to all of them, which Theorem 1.7.1 provides, avoids every xn: it lies in In, and xn does not.

To pass from In to In+1, cut In into thirds and look at the two outer thirds. They are disjoint closed intervals, so xn+1 misses at least one of them; take that one.

Before reading on: why thirds, and not halves?

Proof. We define closed intervals In=[an,bn] with an<bn by recursion on n.

Let I1:=[x1+1,x1+2]. Then x1∉I1.

Suppose In=[an,bn] with an<bn has been defined. Let d:=bn−an>0, and let L:=[an, an+d3],R:=[bn−d3, bn]. Both are closed intervals of length d/3>0 contained in In. They are disjoint, because an+d/3<bn−d/3, which is 2d/3<d. Define In+1:={Lif xn+1∉L,Rif xn+1∈L. In the second case xn+1∈L, so xn+1∉R, since L and R are disjoint. In both cases xn+1∉In+1, In+1⊆In, and In+1 has positive length.

Each In+1 is determined by In and xn+1 through an explicit rule, so the family is defined by recursion (Sets, Relations, and Cardinality, Chapter 2); no choice principle is involved.

The intervals In are closed, bounded, and nested. By Theorem 1.7.1, there is c∈⋂nIn. For each n≥1 we have c∈In and xn∉In, so c≠xn.

Hence no function f from N to R has image all of R: the list xn:=f(n−1), for n≥1, has the same image as f, and it misses c. Since R is nonempty, it is not countable. This proves the theorem.

The answer to the prompt: halves share their midpoint. If xn+1 were exactly that midpoint, it would lie in both closed halves, and neither could be chosen to avoid it. Thirds leave a gap between the two outer pieces.

Only the existence half of Theorem 1.7.1 was used; the intervals need not shrink.

Remark. Since Q is countable, and a union of two countable sets is countable (both from Sets, Relations, and Cardinality, Chapter 3), the set R∖Q of irrational numbers is uncountable. Otherwise R=Q∪(R∖Q) would be countable. In this sense most real numbers are irrational, although so far we have named only a few of them, such as 2 and 2+q for rational q (the proof of Corollary 1.6.5).

The decimal proof of Sets, Relations, and Cardinality, Chapter 3 is secretly a nested interval proof too: the first n digits of a number place it in an interval of length 10−n. The version above avoids the digits, and with them the numbers that have two expansions.

1.7.4. What the axiom bought us

Here is the chapter so far in one table. Each row is a property that R has, checked against the two ordered fields we have used as foils: Q and the field R(x) of Example (A non-Archimedean field).

Property R Q R(x)
nonempty sets bounded above have suprema yes (axiom) no: positive q with q2<2 no: N
Archimedean property yes yes no: x>n for all n
Q is dense yes yes no: nothing rational in (x,x+1)
positive elements have square roots yes no: 2 no: x
nested closed intervals meet yes no: bisection toward 2 no: [n,x/n]
uncountable yes no (Sets, Relations, and Cardinality, Chapter 3) yes: contains R

The entries for R are this chapter’s theorems. For Q, the failures come from Theorem 1.2.2, Logic and Proof, Theorem 2.2.1, and the bisection above; Q is Archimedean by Exercise (C3: Archimedean without the axiom); and Q is dense in itself because the average of two rationals is a rational between them. For R(x): every rational r is below some natural number (Exercise (C3: Archimedean without the axiom)), hence below x, so none lies in (x,x+1). If (p/q)2=x for polynomials p,q, then p2=xq2, whose sides have even and odd degree, which is impossible. That the nested intervals [n,x/n] have no common point is proved in Exercise (C3: Nested intervals in the rational functions). And R(x) contains the constants, a copy of R, so it cannot be countable, since a subset of a countable set is countable (Sets, Relations, and Cardinality, Chapter 3).

The Q column shows that the Archimedean property and density are far weaker than the axiom; the R(x) column shows an ordered field where even they fail.

Two questions are left open. Is the least upper bound axiom equivalent to some of the other rows? And could a different “no gaps” property serve as the axiom instead? Chapter 11 answers both. Over an arbitrary ordered field, the least upper bound axiom is equivalent to each of: the monotone convergence of bounded monotone sequences; the Bolzano–Weierstrass property; Cauchy completeness together with the Archimedean property; and the nested interval property together with the Archimedean property. You can prove one arrow of that last equivalence now (Exercise (C1: Exit check: nested intervals and the axiom)).

1.7.5. Exercises

A. Check your understanding

Exercise (A1)

For each family (In)n≥1, say which hypothesis of Theorem 1.7.1 fails, and find ⋂nIn.

  • (a) In=[0,1/n).
  • (b) In=[n,n+1/n].
  • (c) In=(−1/n,1/n).
  • (d) In=[−n,n].
  • (e) Run the construction in the proof of Theorem 1.7.2 on a list that begins x1=0, x2=1, x3=2: find I1, I2, and I3.
  • (f) Where does the proof of Theorem 1.7.2 use that the intervals L and R are closed, and what could go wrong with open thirds?

Solution.

  • (a) Not closed. The intersection is {0}: 0 lies in every [0,1/n); a negative number lies in none; and for x>0, Corollary 1.5.2 gives n with 1/n<x, so x∉[0,1/n). The conclusion holds although a hypothesis fails.

  • (b) Not nested: I2=[2,52]⊈[1,2]=I1. The intersection is empty, since already I1∩I3=[1,2]∩[3,103]=∅.

  • (c) Not closed. The intersection is {0}: 0 lies in every interval, and for x≠0, Corollary 1.5.2 gives n with 1/n<|x|, so x∉In.

  • (d) Not nested in the required direction: In+1⊇In, and I2=[−2,2]⊈[−1,1]=I1. The intersection is I1=[−1,1], since every In contains [−1,1].

  • (e) I1=[x1+1,x1+2]=[1,2]. For n=1, d=1, L=[1,43], and R=[53,2]; since x2=1∈L, I2=R=[53,2]. For n=2, d=13, L=[53,169], and R=[179,2]; since x3=2∉L, I3=L=[53,169]. Each In misses xn, and I3⊆I2⊆I1.

  • (f) Only in the last step, where Theorem 1.7.1 is applied: its hypothesis is that the intervals are closed. With open thirds the family would be nested open intervals, and those can have empty intersection, like (0,1n); then there might be no point c at all. The avoidance of xn+1 does not need closedness, only that L and R are disjoint.

B. Practice

Exercise (B1: Shrinking by a fixed factor)
  • (a) Let In=[an,bn] be nested closed intervals with bn−an=2−n for every n. Prove that ⋂nIn consists of exactly one point.
  • (b) For n≥1, let mn:=⌊10n2⌋ (Lemma 1.6.3), and let an:=mn/10n and bn:=an+10−n, so that an is the n-digit decimal truncation of 2. Prove that the intervals [an,bn] are nested, and that their intersection is {2}. Compute a1 and a2.

Solution.

  • (a) By Theorem 1.7.1 it suffices to check the shrinking hypothesis. By induction, 2n>n for every n∈N (as in Exercise (C2: Dyadic rationals)), so 2−n<1/n for every n≥1. Given ε>0, Corollary 1.5.2 gives n with 1/n<ε, and then bn−an=2−n<ε. Hence the intersection is a single point.

  • (b) By definition of the floor, mn≤10n2<mn+1, so an≤2<bn for every n.

Nested. Multiplying mn≤10n2 by 10 gives 10mn≤10n+12. An integer k≤z always satisfies k≤⌊z⌋, since k≥⌊z⌋+1 would give k>z. Applied to k=10mn and z=10n+12, this gives 10mn≤mn+1, that is, an≤an+1. Similarly mn+1≤10n+12<10mn+10, so mn+1<10mn+10, and since both sides are integers, mn+1+1≤10mn+10. Dividing by 10n+1 gives bn+1≤bn. Hence [an+1,bn+1]⊆[an,bn].

The intersection. The lengths are 10−n≤2−n, so by the argument of (a) the intersection is one point. Since 2 lies in every interval, that point is 2.

The first terms. 142=196≤200<225=152, so 14≤102<15, m1=14, and a1=1.4. Likewise 1412=19881≤20000<20164=1422, so m2=141 and a2=1.41.

Exercise (B2: An intersection that is not a point)

Prove that ⋂n≥1[−1/n,1+1/n]=[0,1]. Which hypothesis of the uniqueness clause of Theorem 1.7.1 fails?

Solution. (⊇) Let x∈[0,1]. For every n, −1/n<0≤x≤1<1+1/n, so x∈[−1/n,1+1/n].

(⊆) Let x lie in every [−1/n,1+1/n]. Suppose x<0. By Corollary 1.5.2 with ε=−x>0, there is n with 1/n<−x, that is, x<−1/n, so x∉[−1/n,1+1/n]: a contradiction. Suppose x>1. With ε=x−1>0, there is n with 1/n<x−1, that is, x>1+1/n: again a contradiction. Hence 0≤x≤1.

The lengths are 1+2/n>1, so for ε=1 no interval is shorter than ε: the shrinking hypothesis fails. The intervals are closed, bounded, and nested, and the existence part applies, as it must.

C. Going deeper

Exercise (C1: Exit check: nested intervals and the axiom)
  • (a) Without looking back, prove the existence part of Theorem 1.7.1 from the least upper bound axiom.
  • (b) Now work in an ordered field F in which the Archimedean property holds (for every t∈F some n∈N has n>t) and every nested family of closed bounded intervals has a common point. Let A⊆F be nonempty and bounded above by M, and pick a∈A. Define intervals [an,bn] by a1:=a, b1:=M, and, with c:=(an+bn)/2, let [an+1,bn+1]:=[an,c] if c is an upper bound of A, and [c,bn] otherwise. Prove that for every n: bn is an upper bound of A; some element of A is ≥an; and bn−an=(M−a)/2n−1.
  • (c) Let s be a common point of all the [an,bn]. Prove that s=supA. Deduce that in an ordered field, the nested interval property together with the Archimedean property implies the least upper bound axiom.

Solution (Hint 1). In (c), prove the two properties of a supremum separately, each by contradiction. Each contradiction comes from making bn−an smaller than a positive gap you are given, which is where the Archimedean property enters.

Solution (Hint 2). For “s is an upper bound” in (c), argue by contradiction: what does an element y∈A with y>s give you, and what do you know about bn?

Solution.

  • (a) Let In=[an,bn] be nested. For m≤k, Ik⊆Im, by induction from Ij+1⊆Ij. Given m,n, put k:=max{m,n}; then am≤ak≤bk≤bn. So A:={an:n≥1} is nonempty and bounded above by b1, and α:=supA exists by Axiom 1.3.1. For each n, an≤α because α is an upper bound, and α≤bn because bn is an upper bound and α is the least one. So α∈In for every n.

  • (b) In an ordered field 2=1+1>0, so c is defined and an≤c≤bn when an≤bn. We prove the three statements together by induction on n. For n=1: b1=M is an upper bound, a1=a∈A, and b1−a1=M−a. Suppose they hold for n. If c is an upper bound of A, then bn+1=c is an upper bound, and an+1=an, so the element of A that is ≥an still works. Otherwise, c is not an upper bound, so some y∈A has y>c=an+1, and bn+1=bn is an upper bound. In both cases bn+1−an+1=(bn−an)/2=(M−a)/2n. The intervals are nested, since each is one half of the previous one.

  • (c) s is an upper bound. Suppose some y∈A has y>s. Since 2n−1≥n, we have bn−an≤(M−a)/n. By the Archimedean property in F, choose n>(M−a)/(y−s); then bn−an<y−s. Since an≤s, this gives bn<an+(y−s)≤y. But bn is an upper bound of A and y∈A, a contradiction.

No smaller upper bound. Let u<s, and assume for contradiction that u bounds A from above. As before, choose n with bn−an<s−u. Since s≤bn, we get an>bn−(s−u)≥s−(s−u)=u. By (b) some y∈A has y≥an>u, contradicting that u is an upper bound.

So s=supA. Every nonempty subset of F that is bounded above has a supremum, which is the least upper bound axiom for F. The Archimedean property was used twice, to make bn−an smaller than a given positive gap. (If M=a, all the intervals are {a}, and the same argument gives s=a=supA; the Archimedean step is then not even needed.)

Marking scheme. (10 points) - 2: (a) shows am≤bn for all m,n, takes α=sup{an} with both hypotheses of the axiom checked, and shows an≤α≤bn by (S1) and (S2). - 3: (b) proves the three statements of (b) by one induction, treating both cases of the bisection rule, including the element of A that is at least an+1 in the second case. - 2: (c) shows s is an upper bound: a y∈A above s is excluded by choosing n with bn−an<y−s, using the Archimedean property. - 2: (c) shows no u<s is an upper bound, choosing n with bn−an<s−u and using the element of A that is at least an. - 1: (c) concludes that F has the least upper bound property, and says where each of the two assumed properties was used. Fatal errors (0 for the step): using Axiom 1.3.1, or any supremum, in (b) or (c); choosing n before the gap y−s or s−u is known; assuming A has a maximum. A proof of (c) that shows supA=s through the backward direction of Theorem 1.4.1, rerun in F, instead of (S2) earns the same points; the theorem is stated for R, so citing it without rerunning its proof in F is not enough.

Exercise (C2: Uncountable pieces)
  • (a) Let x<y. Prove that the interval (x,y) is not countable.
  • (b) Deduce that (x,y) contains an irrational number, without using 2 or any other named irrational. You may use the facts from Sets, Relations, and Cardinality, Chapter 3 that Q is countable, and that a subset of a countable set is countable.
  • (c) Let C⊆R be countable. Show that the real numbers not in C are dense: every interval (x,y) with x<y contains a real number that is not in C.

Solution.

  • (a) Let f be any function from N to R, and list its values as zn:=f(n−1) for n≥1, as in the proof of Theorem 1.7.2; this list has the same image as f. Run the construction in the proof of Theorem 1.7.2, but start from a closed interval inside (x,y) that avoids z1. Let d:=y−x, and let L:=[x+d/4,x+d/3] and R:=[y−d/3,y−d/4]. They are disjoint, closed, of positive length, and inside (x,y). Let I1 be L if z1∉L, and R otherwise. Then define I2,I3,… by the outer-thirds rule from the proof. The intervals are nested, closed, and bounded, zn∉In for every n≥1, and by Theorem 1.7.1 some c lies in all of them. Then c∈I1⊆(x,y), and c≠zn for every n≥1. So no function from N has image all of (x,y), and (x,y), which is nonempty, is not countable.

  • (b) Suppose every element of (x,y) were rational. Then (x,y)⊆Q, and a subset of the countable set Q is countable, contradicting (a). So (x,y) contains an irrational number. This reproves Corollary 1.6.5 by counting: there are too many reals in (x,y) for all of them to be rational.

  • (c) As in (b): if (x,y)⊆C, then (x,y) is countable, contradicting (a). Part (b) is the case C=Q.

Exercise (C3: Nested intervals in the rational functions)

Work in the ordered field R(x) of Example (A non-Archimedean field). For n∈Z>0, let In:={f∈R(x):n≤f≤x/n}.

  • (a) Show that n<x/n, so In is a closed bounded interval of positive length, and that In+1⊆In.
  • (b) Let f=p/q with the leading coefficient of q positive, and suppose f∈In for every n. Show that deg⁡p>deg⁡q.
  • (c) Show that deg⁡p≥deg⁡q+2 and deg⁡p=deg⁡q+1 both lead to a contradiction, and conclude that ⋂nIn=∅.
  • (d) Which line of the proof of Theorem 1.7.1 fails in R(x)?

Solution (Hint 1). Positivity in R(x) is decided by leading coefficients. Write each difference you need to sign, such as x/n−f or N−f, as a single fraction with a positive denominator.

Solution (Hint 2). For (b): suppose deg⁡p≤deg⁡q, and look for an N∈N with f<N.

Solution. Write lc for the leading coefficient, and recall from Exercise (C2: The order on the rational functions) that for g=u/w with lc(w)>0, g>0 if and only if lc(u)>0.

  • (a) x/n−n=(x−n2)/n has numerator with leading coefficient 1>0 and positive denominator, so n<x/n. Nesting: n+1>n, and x/n−x/(n+1)=x/(n(n+1))>0. So In+1⊆In.

  • (b) Since f≥1>0, lc(p)>0. Suppose deg⁡p≤deg⁡q. By Theorem 1.5.1, pick N∈N with N>lc(p)/lc(q), a positive real number, so that N∈Z>0. Then N−f=(Nq−p)/q. If deg⁡p<deg⁡q, the leading coefficient of Nq−p is Nlc(q)>0; if deg⁡p=deg⁡q, it is Nlc(q)−lc(p)>0. Either way f<N, so f∉IN, a contradiction. Hence deg⁡p>deg⁡q.

  • (c) For each n, xn−f=xq−npnq,lc(nq)=nlc(q)>0. If deg⁡p≥deg⁡q+2, then deg⁡(np)>deg⁡(xq), so the numerator has leading coefficient −nlc(p)<0. Thus f>x/n for every n, and f∉I1. If deg⁡p=deg⁡q+1, both xq and np have degree deg⁡q+1, and the numerator has leading coefficient lc(q)−nlc(p). Choosing n>lc(q)/lc(p), which Theorem 1.5.1 allows, makes it negative, so f>x/n and f∉In. Both cases contradict f∈⋂nIn. With (b), no f lies in every In, and the intersection is empty.

  • (d) The line “α:=sup{an} exists by Axiom 1.3.1”. Here the left endpoints are an=n, and {an}=Z>0 is bounded above (by x/1, for instance) but has no supremum in R(x), by the argument for N in the section on the Archimedean property. The claim am≤bn and every other line survive.

Exercise (C4: A root of a cubic, from half a proof)

Let g(x):=x3+x. Then g(0)=0 and g(1)=2, so g passes the value 1 somewhere in [0,1]. Here is the first half of a proof that it takes the value 1.

Let S:={x∈R:x≥0, g(x)<1}. Then 0∈S. If x≥1, then x3≥1 and g(x)≥2>1, so every element of S is less than 1. By Axiom 1.3.1, s:=supS exists, and 0≤s≤1.

Name the move, then complete it. Prove that g(s)=1. Then show that 0.68<s<0.69, and that s is the only real number t with g(t)=1.

Solution (Hint 1). Rule out g(s)<1 and g(s)>1 by nudging s to s+h and s−h. For that you need a bound on g(s+h)−g(s), and on g(s)−g(s−h), of the form “a constant times h”, valid for small h.

Solution (Hint 2). Expanding, g(s+h)−g(s)=h(3s2+3sh+h2+1). With 0≤s≤1 and 0<h≤1 this is at most 8h.

Solution. The move is construct a point as a supremum. The given half defines the set of points where things are still fine (g(x)<1) and takes its supremum; what remains is to rule out each way s could fail.

We use that g is strictly increasing on [0,∞): if 0≤u<v, then u3<v3 by the claim in the proof of Theorem 1.6.2, and adding u<v gives g(u)<g(v) by Theorem 1.1.2 (b). Expanding with Lemma 1.1.1, for every h, g(s+h)−g(s)=h(3s2+3sh+h2+1),g(s)−g(s−h)=h(3s2−3sh+h2+1).

Case g(s)<1. Let h:=(1−g(s))/16, which depends only on s. Since 0≤g(s)<1, we have 0<h≤116. With s≤1 and h≤1, the first identity gives g(s+h)−g(s)≤h(3+3+1+1)=8h=12(1−g(s))<1−g(s), so g(s+h)<1. As s+h≥0, we get s+h∈S, and s+h>s contradicts (S1).

Case g(s)>1. Then s>0, since g(0)=0. Let h:=(g(s)−1)/10>0. Since s≤1 gives s3≤s, we have g(s)−1<g(s)≤2s, so h<s5<s and s−h>0. As 0<h<s≤1, we have −3sh<0, and the second identity gives g(s)−g(s−h)≤h(3+1+1)=5h=12(g(s)−1)<g(s)−1, so g(s−h)>1. Now s−h is an upper bound of S: if x∈S had x>s−h, then, as s−h>0, monotonicity would give g(x)>g(s−h)>1, contradicting x∈S. So (S2) gives s≤s−h, which is false.

By trichotomy, g(s)=1.

Location. Exact arithmetic gives g(0.68)=0.314432+0.68=0.994432<1 and g(0.69)=0.328509+0.69=1.018509>1. If s≤0.68, monotonicity would give g(s)≤g(0.68)<1, and if s≥0.69, it would give g(s)>1. So 0.68<s<0.69.

Uniqueness. Let t∈R with g(t)=1. If t<0, then t2>0 and t3=t⋅t2<0 by Theorem 1.1.2 (c), so g(t)<0; hence t≥0. On [0,∞), g is strictly increasing, so t<s or t>s would give g(t)≠g(s). Hence t=s.

This is the intermediate value theorem for one polynomial, proved by the move that proves it in general in Chapter 6.

Marking scheme. (10 points) - 1: names the move, and records that g is strictly increasing on [0,∞) with a reason. - 3: rules out g(s)<1 with an explicit h>0 depending only on s, a verified bound on g(s+h)−g(s), and a contradiction with (S1). - 3: rules out g(s)>1 with an explicit h, checking s−h>0, that g(s−h)>1, and that s−h is an upper bound, then contradicting (S2). - 1: concludes g(s)=1 by trichotomy. - 2: the location 0.68<s<0.69 from two exact computations and monotonicity, and uniqueness, including the case t<0. Fatal errors (0 for the step): an h that depends on an element of S or is not shown positive; using that s−h is an upper bound without monotonicity; assuming the intermediate value theorem. Other constants (for instance h=min{1,(1−g(s))/10}) earn full marks when the bound they need is verified.

R. Review

Exercise (R1)

Let A⊆R be nonempty, and let s be an upper bound of A. Prove that the following are equivalent.

  • (i) s=supA.
  • (ii) For every n∈Z>0 there is a∈A with a>s−1n.
  • (iii) No real number smaller than s is an upper bound of A.

Solution. By Logic and Proof, Proposition 2.4.6 it suffices to prove (i) ⇒ (ii) ⇒ (iii) ⇒ (i).

(i) ⇒ (ii). This is Corollary 1.4.2, or Theorem 1.4.1 (⇒) with ε=1n.

(ii) ⇒ (iii). Let u<s. By Corollary 1.5.2 there is n, depending on s−u, with 1n<s−u. By (ii) some a∈A has a>s−1n>u, so u is not an upper bound.

(iii) ⇒ (i). (S1) holds because s is an upper bound. For (S2), let M be an upper bound. By (iii), M<s is impossible, so s≤M by trichotomy.

The cycle is the method of Logic and Proof, Chapter 2 for equivalences (Logic and Proof, Proposition 2.4.6). Here (ii) ⇒ (iii) is the only arrow with content: it is where the Archimedean property turns the special widths 1n into every width.

Exercise (R2)
  • (a) Prove that if x is a real number and x2 is irrational, then x is irrational.
  • (b) Hence prove that the positive real number t with t4=2 is irrational.

Solution.

The direct statement (a) would be awkward to prove as it stands, since “irrational” is a negative property; its contrapositive is one line. That is the reason to reach for the contrapositive (Logic and Proof, Proposition 2.3.2, Logic and Proof, Chapter 2).

Exercise (R3)

Prove that the real number 2+3 is irrational.

Solution. Here 3 and 6 are the positive square roots given by Theorem 1.6.2. First, 23=6: the left side is positive and its square is 2⋅3=6, so it is the unique positive square root of 6.

Suppose, for a contradiction, that r:=2+3 is rational [assumption for ¬I]. Then r2=2+223+3=5+26, so 6=(r2−5)/2 is rational, because the rationals are closed under the field operations (Example (The rationals and the reals)). But no rational number has square 6 (Logic and Proof, Exercise (C1: The square root of six)). Hence r is irrational [¬I].

Logic and Proof, Chapter 2 could prove only the negative half: no rational squares to 6 (Logic and Proof, Exercise (C1: The square root of six)). With Theorem 1.6.2 the number 6 exists in R, and the negative statement becomes the positive one, “6 is irrational”, which is what the argument uses.

Exercise (R4)

Prove that |x−1|+|x+1|≥2 for every real x, and find all x for which equality holds.

Solution. The tool is the triangle inequality (Theorem 1.1.4), applied to a sum chosen so that x cancels: 2=|(1−x)+(x+1)|≤|1−x|+|x+1|=|x−1|+|x+1|, using |1−x|=|x−1| (Proposition 1.1.3 (b)). By Exercise (B2: Inserting a third point) (b), equality holds exactly when (1−x)(x+1)≥0, that is, when 1−x2≥0, that is, when −1≤x≤1 (by Theorem 1.1.2 (g) and Proposition 1.1.3 (d), x2≤1 means |x|≤1). So equality holds exactly on [−1,1].

The look-alike tools work less well. Proof by cases, as in Logic and Proof, Example (The triangle inequality by cases), succeeds but needs three cases (x<−1, −1≤x≤1, x>1) and a formula in each. Squaring both sides leaves the cross term 2|x2−1|, which still has an absolute value in it, so it only postpones the case split.