Sign in

Libre University uses your GitHub account. Signing in is only needed to sit a final test, so the score is kept on your profile.

The real numbers

The rationals and the reals obey the same rules of arithmetic and the same rules for inequalities, yet the rationals can be listed and the reals cannot, so something separates them that no rule of algebra mentions.

The previous lesson found that split by comparing infinite sets through bijections, and left open what the reals have that the rationals lack. This lesson names it, the completeness axiom, and uses it to pay debts that earlier lessons deferred to "a later lesson": that ℕ has no upper bound in ℝ, used without proof in the lessons on quantifiers, on sets and on order; that the rationals with square less than 2 have no least upper bound among the rationals, stated in the lesson on order; that some real number has square 2, claimed in the lesson on quantifiers; and that a decimal expansion names a real number, which the diagonal argument took for granted. It assumes upper bounds and the supremum from the lesson on order: u=supA when u is an upper bound of A lying below every other upper bound. As throughout the course, ℕ={1,2,3,…}.

The plan is the one a first analysis course follows. First, write down exactly what is assumed about ℝ: the arithmetic and order rules it shares with ℚ, and the one axiom it does not share. Then derive everything else from that list, including facts so familiar that they seem not to need proof, because several of them turn out to be false in number systems that obey every rule of school algebra.

The gap where 2 should be

Work inside ℚ and let T={q∈ℚ:q2<2}. It is nonempty, since 1∈T, and any positive u with u2>2 is an upper bound, because an element q>u would have q2>u2>2. The lesson on order watched the decimals 1.4, 1.41, 1.414 climb inside T while 1.5, 1.42, 1.415 came down from above, and claimed that no rational is the least upper bound. The proof rests on two pieces of algebra that push a candidate up or down.

The first says a number whose square is below 2 is never the top of T. Let u≥1 with u2<2, and set h=2−u22u+1. Then h>0, and h<1 because 2−u2≤1<3≤2u+1. Since 0<h<1 gives h2<h,

(u+h)2=u2+2uh+h2<u2+h(2u+1)=2

So u+h is larger than u with square still below 2. From u=1.4 it gives h=0.043.8=195, and (1.4+195)2≈1.9896.

The second says a number whose square is above 2 is never the least upper bound. Let u>0 with u2>2, and set k=u2−22u>0. Then u−k=u2+22u is positive, and

(u−k)2=u2−2uk+k2>u2−2uk=2

So u−k is a smaller upper bound. From u=32 it gives 1712, with square 289144, just above 2. Both h and k are built from u by the four operations, so if u is rational, so are they.

Example. Prove that T={q∈ℚ:q2<2} has no least upper bound in ℚ.

Suppose, for contradiction, that u∈ℚ is the least upper bound of T. Since 1∈T, u≥1. Since 2 is irrational, as the lesson on contradiction proved, no rational has square 2, so u2≠2, and either u2<2 or u2>2. If u2<2, the rational u+h above lies in T and exceeds u, contradicting that u is an upper bound. If u2>2, the rational u−k is an upper bound of T smaller than u, contradicting that u is the least. Both cases are impossible, so T has no least upper bound in ℚ.

The structure is worth seeing. Trichotomy splits the candidate into three cases; algebra kills two of them; irrationality kills the third. Nothing is left, so no candidate exists.

Now you. Prove that {q∈ℚ:q2<3} has no least upper bound in ℚ, using the irrationality of 3.

Answer

Suppose u∈ℚ is the least upper bound. Since 1 is in the set, u≥1, and since 3 is irrational, u2≠3. If u2<3, let h=3−u22u+1. It is rational and positive, and less than 1 because 3−u2≤2<3≤2u+1. Then h2<h, so (u+h)2<u2+h(2u+1)=3, and u+h is in the set and exceeds u, a contradiction. If u2>3, let k=u2−32u>0. Then u−k=u2+32u>0 and (u−k)2>u2−2uk=3. Any element q of the set with q≥u−k would have q2≥(u−k)2>3, so u−k is an upper bound smaller than u, a contradiction.

The ordered field axioms

That proof used only arithmetic, order and the irrationality of 2. To say what the reals have in addition, their familiar properties must be written down as a list, so that it is clear which ones the rationals share.

A field is a set F with two operations, + and ⋅, and two distinguished elements 0 and 1, such that for all x, y, z in F:

  • (A1) x+(y+z)=(x+y)+z and (A2) x+y=y+x;
  • (A3) x+0=x, and (A4) there is an element −x with x+(−x)=0;
  • (M1) x(yz)=(xy)z and (M2) xy=yx;
  • (M3) x⋅1=x, where 1≠0, and (M4) if x≠0, there is an element x−1 with xx−1=1;
  • (D) x(y+z)=xy+xz.

Subtraction and division are abbreviations: x−y means x+(−y), and xy means xy−1 for y≠0. An ordered field is a field with a total order ≤ (reflexive, antisymmetric, transitive, and any two elements comparable, as in the lesson on order) that respects the arithmetic:

  • (O1) if x≤y, then x+z≤y+z;
  • (O2) if 0≤x and 0≤y, then 0≤xy.

As usual x<y means x≤y and x≠y, and x is positive when 0<x. Totality gives trichotomy: for any x and y, exactly one of x<y, x=y, y<x holds.

Eleven axioms look like very little, but every rule of school algebra and every rule for manipulating inequalities follows from them. Here are the ones used constantly, with proofs, to show how the derivations go; parts (i) to (iii) repeat, for every ordered field, what the first lesson proved for the integers.

Lemma. In any ordered field, for all x, y, z:

(i) negatives are unique: if x+y=0 and x+y′=0, then y=y′;

(ii) 0⋅x=0;

(iii) (−1)x=−x, and (−x)(−y)=xy;

(iv) if xy=0, then x=0 or y=0;

(v) x≤y if and only if 0≤y−x; in particular x≤0 if and only if 0≤−x;

(vi) if x<y and 0<z, then xz<yz; if x<y and z<0, then yz<xz.

Proof. (i) y=y+0=y+(x+y′)=(y+x)+y′=0+y′=y′, using (A3), (A1) and (A2).

(ii) 0⋅x=(0+0)x=0⋅x+0⋅x by (A3) and (D). Adding −(0⋅x) to both sides and using (A1), (A4), (A3) leaves 0=0⋅x.

(iii) x+(−1)x=1⋅x+(−1)x=(1+(−1))x=0⋅x=0, so (−1)x is a negative of x, and by (i) it is −x. Then (−x)(−y)=(−1)(−1)xy, and (−1)(−1)=−(−1)=1, because −1+1=0 makes 1 the negative of −1.

(iv) Suppose xy=0 and x≠0. Then y=(x−1x)y=x−1(xy)=x−1⋅0=0.

(v) If x≤y, add −x to both sides by (O1): 0≤y−x. If 0≤y−x, add x: x≤y. Taking y=0 gives the second statement.

(vi) Suppose x<y and 0<z. By (v), 0≤y−x, and y−x≠0. By (O2), 0≤(y−x)z=yz−xz, and by (iv) the product is not 0, since neither factor is. So 0<yz−xz, and by (v), xz<yz. If z<0, then 0<−z by (v), and the first part gives x(−z)<y(−z), that is, −xz<−yz; adding xz+yz to both sides gives yz<xz. □

Part (vi) is the rule "multiplying by a negative number reverses an inequality", and it is a theorem, not a convention. The same style of argument shows that inequalities can be added: if a≤b and c≤d then a+c≤b+c≤b+d.

Example. Prove that in any ordered field, x2≥0 for every x, and deduce that 0<1.

Let x be an element of the field. By totality, 0≤x or x≤0. If 0≤x, then (O2) with both factors equal to x gives 0≤x⋅x=x2. If x≤0, then 0≤−x by part (v) of the lemma, and (O2) gives 0≤(−x)(−x), which equals x2 by part (iii). So x2≥0 in both cases.

Now 1=1⋅1=12≥0, and 1≠0 by (M3), so 0<1.

The fact looks too obvious to prove, and yet it has content: nothing in the order axioms says directly that 1 is on the positive side. It then follows that 1+1>1>0, and by induction that 1+1+⋯+1 (n terms) is positive for every n∈ℕ. So in an ordered field the elements 1, 1+1, 1+1+1, and so on are all different and all positive, and they form a copy of ℕ inside the field. Negatives and quotients of these give copies of ℤ and ℚ. When this lesson writes ℕ⊆ℝ, that copy is what is meant.

Now you. Prove that in any ordered field, if 0<a, then 0<a−1, and if 0<a<b, then 0<b−1<a−1.

Answer

Let 0<a. Then a≠0, so a−1 exists, and a−1≠0 because aa−1=1≠0 (by part (ii) of the lemma, a⋅0=0). Suppose, for contradiction, that a−1<0. Multiplying the inequality 0<a by the negative element a−1 reverses it, by part (vi): a⋅a−1<0⋅a−1, that is, 1<0. That contradicts the Example, so by trichotomy 0<a−1.

Now let 0<a<b. Then b>0, so a−1>0 and b−1>0 by the first part, and their product a−1b−1 is positive by (O2) and part (iv) of the lemma. Multiplying a<b by this positive element keeps the direction, by part (vi): a⋅a−1b−1<b⋅a−1b−1, which simplifies to b−1<a−1.

Why can the complex numbers not be put in order?

They can be put in some total order, just not one that respects the arithmetic. The Example says that in every ordered field, every square is non-negative and 1 is positive, so −1 is negative (by part (v) of the lemma, since 0<1 gives −1<0). In ℂ, −1=i2 is a square. So an order on ℂ satisfying (O1) and (O2) would make −1 both non-negative and negative, which trichotomy forbids. No ordered field contains a square root of −1.

The comment after the Example rules out another family. In the field ℤ/5ℤ of remainders modulo 5, from the lesson on equivalence relations, 1+1+1+1+1=0. In an ordered field, a sum of n copies of 1 is positive, never 0. So no finite field can be ordered, and every ordered field is infinite and contains a copy of ℚ, as the Example showed. In that sense ℚ is the smallest ordered field, sitting inside all of them.

Neither argument uses completeness. They show how much the eleven axioms already decide: the sign of 1, the sign of every square, which fields can be ordered at all. What they cannot decide is whether a given element, such as a square root of 2, exists, and that is the next section's point.

What the rationals lack

The trouble is that ℚ satisfies every one of these axioms. So no argument from the ordered field axioms alone can produce a number whose square is 2, since the same argument would work in ℚ, where there is none. This is a common pattern for proving that something does not follow from a list of axioms: exhibit one structure satisfying all of them in which the conclusion fails. Here ℚ is that structure.

The gap at 2 is not a single blemish. The same algebra, with 3, 5 or any non-square in place of 2, shows that the rationals below 3, 5 and so on have no rational least upper bound either, and the previous lesson showed that the rationals are countable while the reals are not, so all but a countable part of the real line is missing from ℚ. The rationals are full of holes, and a single additional axiom fills all of them.

The completeness axiom

The missing property concerns least upper bounds, exactly where the rationals failed.

Completeness axiom. Every nonempty set of real numbers that is bounded above has a least upper bound in ℝ.

The reals are an ordered field satisfying this axiom, a complete ordered field, and that is all this course assumes about them. Every other property of ℝ used from here on is proved from the eleven ordered field axioms and this one. The rationals are an ordered field that is not complete: T is nonempty and bounded above, and has no rational least upper bound.

Both conditions in the axiom are needed. The empty set has every real as an upper bound, and so no least one. The set ℕ, as the section on the Archimedean property proves, has no upper bound at all. And the supremum, when it exists, is unique: if u and u′ are both least upper bounds of A, each is an upper bound lying below every upper bound, so u≤u′ and u′≤u, and antisymmetry gives u=u′. That is why the notation supA is allowed.

A supremum need not belong to the set. When it does, it is the maximum maxA, the greatest element; sup[0,1]=max[0,1]=1, while sup[0,1)=1 and [0,1) has no maximum. The axiom is exactly what guarantees a supremum when there is no maximum to fall back on. Every nonempty finite set has a maximum, so completeness says nothing new about finite sets; it is a statement about infinite ones.

The idea took its modern form in 1872, in two independent constructions. Richard Dedekind, in Braunschweig, published Stetigkeit und irrationale Zahlen ("Continuity and irrational numbers"), defining a real number as a cut of the rationals into a lower and an upper class; he dated the idea to November 1858, when, teaching calculus in Zurich, he could find no rigorous proof that a bounded increasing quantity approaches a limit. The same year Georg Cantor, in Halle, built the reals from sequences of rationals whose terms eventually cluster together. In both constructions completeness is a theorem.

Where do the real numbers come from, if they are only described by axioms?

An axiom list describes what is wanted; it does not show that anything fits the description. Dedekind's construction does, using nothing but ℚ and sets.

A cut is a subset α of ℚ that is nonempty, is not all of ℚ, is closed downwards (if q∈α and p<q then p∈α), and has no greatest element. The rationals below 12 form a cut, and so does T together with all negative rationals, that is, {q∈ℚ:q<0orq2<2}. The first cut is "the number 12"; the second has no rational at its top and is "the number 2". Dedekind defines the reals to be the cuts. Order is inclusion: α≤β means α⊆β. Addition is α+β={p+q:p∈α,q∈β}, and multiplication is defined first for positive cuts, then extended by signs.

The hard work is checking the eleven ordered field axioms, which is long and unilluminating. Completeness, the axiom ℚ lacked, is the easy one. If A is a nonempty set of cuts bounded above by a cut β, its union ⋃A is again a cut (nonempty, contained in β so not all of ℚ, closed downwards, and with no greatest element since no member of A has one), it contains every member of A, and it is contained in every upper bound. So supA=⋃A. Taking suprema, which is what fails in ℚ, becomes taking unions, which always works.

Cantor's construction goes through equivalence classes, in the manner of the lesson on equivalence relations, where ℚ was built from pairs of integers. A real number is a class of sequences of rationals whose terms eventually stay as close together as you like, two sequences being equivalent when their difference tends to 0.

The two constructions give the same answer. Any two complete ordered fields are isomorphic: there is a bijection between them that preserves addition, multiplication and order, and it is unique. So the axioms describe exactly one structure, up to renaming the elements, and it no longer matters whether a real number "is" a cut, a class of sequences, or an infinite decimal. This is why a course may start from the axioms, as this one does, and never look at a construction again.

Working with the supremum

The definition of supA quantifies over every upper bound, which is awkward to check directly. Proofs usually want a form that tests only numbers just below the candidate. The lesson on order stated this form for ℝ; here it is with a proof.

Example. Prove that s=supA if and only if s is an upper bound of A and, for every ε>0, some a∈A satisfies a>s−ε.

(⇒) Suppose s=supA. Then s is an upper bound by definition. Let ε>0. Since s−ε<s and s lies below every upper bound, s−ε is not an upper bound, so some a∈A has a>s−ε.

(⇐) Suppose s is an upper bound with the ε property, and let v be any upper bound of A. Suppose, for contradiction, that v<s, and take ε=s−v>0. Some a∈A has a>s−ε=v, contradicting that v is an upper bound. So s≤v for every upper bound v, and s=supA.

The second half chose ε to fit the contradiction. Picking ε after the thing to be defeated is known is the move the next lesson, on limits, makes over and over. The characterisation also has a sequential flavour: taking ε=1,12,13,… produces elements a1,a2,a3,… of A with s−1n<an≤s, a sequence in A that closes in on its supremum.

A classic pitfall sits here. Strict inequalities do not survive taking suprema. Every element of [0,1) is less than 1, and yet sup[0,1)=1, not something less than 1. What does survive is the weak version: if every a∈A satisfies a≤c, then c is an upper bound, so supA≤c. A proof that concludes "supA<c" from "a<c for all a" has made this mistake, and the decimal 0.999… at the end of the lesson is its most famous victim.

Lower bounds need no second axiom.

Proposition. Every nonempty set of real numbers that is bounded below has a greatest lower bound, infA=−sup(−A), where −A={−a:a∈A}.

Proof. Let A be nonempty with a lower bound m. Then −A is nonempty, and −m is an upper bound of it: every element is −a with a≥m, so −a≤−m by part (v) of the lemma. By completeness, −A has a supremum s. Put t=−s. For every a∈A, −a≤s, so a≥−s=t, and t is a lower bound of A. If m′ is any lower bound of A, then −m′ is an upper bound of −A by the same reasoning, so s≤−m′, that is, m′≤t. So t is the greatest lower bound. □

The infimum infA is the greatest lower bound, and the minimum minA is a least element when one exists. Negation turns upper bounds into lower bounds and back, so every fact about suprema has a mirror image about infima, proved by applying the fact to −A.

Now you. Prove that t=infA if and only if t is a lower bound of A and, for every ε>0, some a∈A satisfies a<t+ε.

Answer

(⇒) Suppose t=infA. It is a lower bound by definition. Let ε>0. Since t+ε>t and t lies above every lower bound, t+ε is not a lower bound, so some a∈A has a<t+ε.

(⇐) Suppose t is a lower bound with this property, and let m be any lower bound. If m>t, take ε=m−t>0: some a∈A has a<t+ε=m, contradicting that m is a lower bound. So m≤t for every lower bound m, and t=infA.

The Archimedean property

The lessons on quantifiers, on sets and on order used, without proof, that ℕ has no upper bound in ℝ. It sounds like something no proof could make clearer. It is not a consequence of the ordered field axioms, though: the deeper explanation below describes an ordered field containing an element larger than every natural number. In ℝ it follows from completeness.

Theorem (the Archimedean property). For every real number x there is a natural number n with n>x.

Proof. Suppose, for contradiction, that some real x has n≤x for every n∈ℕ. Then ℕ is nonempty and bounded above, so by completeness it has a supremum s. By the characterisation of the supremum with ε=1, some n∈ℕ has n>s−1. Then n+1>s, and n+1∈ℕ, contradicting that s is an upper bound of ℕ. □

The proof is short because completeness did the work. It also shows the pattern of many completeness arguments: assume the bad thing, take a supremum that the bad thing makes available, and use the characterisation to push past it.

Three consequences are used constantly, and each is one line.

Corollary. (i) For every ε>0 there is n∈ℕ with 1n<ε. (ii) For every x>0 and every real y there is n∈ℕ with nx>y. (iii) For every real x there are integers m and m′ with m<x<m′.

Proof. (i) Take n>1ε and multiply both sides by the positive number εn, which gives ε>1n. (ii) Take n>yx and multiply by the positive number x. (iii) Take m′∈ℕ with m′>x, and k∈ℕ with k>−x; then m=−k satisfies m<x. □

Part (i) is the form earlier lessons used: for ε=0.03, the condition n>10.03=33.3… is first met at n=34, and 134≈0.0294. Part (ii) is the form Archimedes and Euclid had in mind: however small a length x and however large a length y, enough copies of x laid end to end exceed y. The fourth definition of Book V of Euclid's Elements says that two magnitudes have a ratio when each, multiplied, can exceed the other, and Archimedes used the property as an explicit assumption in the third century BC.

Part (iii) leads to the integer part of a real number.

Proposition (the floor). For every real number x there is exactly one integer m with m≤x<m+1. It is written ⌊x⌋.

Proof. Existence. By part (iii) of the corollary there are integers k and m′ with k<x<m′. Let S be the set of integers greater than x. It contains m′, so it is nonempty, and every element exceeds k. Subtracting k from each element of S gives a nonempty set of natural numbers, which by the well-ordering principle has a least element; adding k back, S has a least element j. Then j>x, and j−1∉S, so j−1≤x. Put m=j−1: then m≤x<m+1.

Uniqueness. If m≤x<m+1 and m′≤x<m′+1 for integers m and m′, then m<m′+1 and m′<m+1, so −1<m−m′<1. The only integer strictly between −1 and 1 is 0, so m=m′. □

So ⌊3.7⌋=3, ⌊5⌋=5 and ⌊−2.5⌋=−3, not −2, since −3≤−2.5<−2. The floor is the real-number version of the quotient in the division algorithm of the lesson on direct proof, whose deeper explanation noted that dividing reals with remainder needs "the fact that the integers are not bounded above inside ℝ". This is that fact at work.

Example. Prove that inf{1n:n∈ℕ}=0, and that the infimum is not a minimum.

Every 1n is positive (the reciprocal of a positive element is positive), so 0 is a lower bound. Let ε>0. By part (i) of the corollary some n∈ℕ has 1n<ε=0+ε. By the characterisation of the infimum, inf{1n:n∈ℕ}=0. It is not a minimum because 0 is not in the set: 1n=0 would give 1=n⋅0=0.

This is the whole content of the statement 1n→0, which the next lesson turns into its first proved limit. Without the Archimedean property, the set {1n} could have a positive lower bound.

Now you. Prove that for every x>0 there is n∈ℕ with 12n<x, and deduce that inf{12n:n∈ℕ}=0.

Answer

First, 2n>n for every n∈ℕ, by induction: 21=2>1, and if 2n>n then 2n+1=2⋅2n>2n≥n+1. Now let x>0. By the Archimedean property there is n∈ℕ with n>1x, so 2n>n>1x, and taking reciprocals of positive numbers reverses the inequality: 12n<x.

Every 12n is positive, so 0 is a lower bound of the set. For ε>0, the first part with x=ε gives an element 12n<0+ε. By the characterisation, the infimum is 0. Repeated halving shrinks below every positive number, which is what makes bisection work.

Are there ordered fields in which ℕ is bounded?

Yes, and the simplest is built from polynomials. Let F be the set of quotients p(t)q(t) of polynomials in a letter t with real coefficients, q not the zero polynomial, added and multiplied as algebraic fractions. It is a field, for the same reasons that ℚ is a field built from ℤ. Order it by declaring a nonzero element p(t)q(t) positive when the leading coefficients of p and q (the coefficients of their highest powers of t) have the same sign, and write f<g when g−f is positive. One can check that this is a total order satisfying (O1) and (O2). Informally, f is positive when f(t) is positive for all sufficiently large real t.

In this field, t−n has leading coefficient 1 for every natural number n, so t−n is positive and t>n. The element t is an upper bound for ℕ, and F is an ordered field in which the Archimedean property fails. Its reciprocal 1t is positive and smaller than every 1n, since 1n−1t=t−nnt has leading coefficients 1 and n. Such an element is an infinitesimal: positive, yet smaller than every positive rational. By the theorem above, F cannot be complete, and indeed ℕ is bounded in F with no least upper bound (if s were one, the proof of the theorem would find n∈ℕ with n>s−1, and then n+1>s).

This matters for two reasons. It shows that the Archimedean property genuinely depends on completeness, so the proof above is not proving something that was already assumed. And it answers the old worry about infinitesimals. Leibniz built calculus on quantities infinitely small yet not zero, and his critics, most sharply George Berkeley in The Analyst (1734), asked how such things could exist. The ε definitions of the next lesson were the nineteenth century's answer: in ℝ there are no infinitesimals, and none are needed. In the 1960s Abraham Robinson showed that Leibniz's approach can also be made rigorous, by working in a larger ordered field with infinitesimals, which he called non-standard analysis. Fields like F are the simplest glimpse of such worlds.

Computing suprema and infima

The working method has two stages. First, guess: list some elements, and see where they pile up. Then verify, using the characterisations: show the guess is a bound, and show that nothing closer is. If the guess belongs to the set, the second stage is automatic, because a bound that belongs to the set is a maximum or minimum, and any upper bound must be at least as large as an element of the set.

Example. Find the supremum and infimum of A={(−1)n+1n:n∈ℕ}, and decide whether each is a maximum or minimum.

The first elements, at n=1,2,3,4,5,6, are 0, 32, −23, 54, −45, 76. The even terms come down towards 1 from 32; the odd terms come down towards −1. The guess is supA=32 and infA=−1.

The supremum. If n is even, then n≥2, so 1n≤12 and the element is 1+1n≤32. If n is odd, the element is −1+1n≤−1+1=0<32. So 32 is an upper bound. It is the element at n=2, so any upper bound is at least 32. Hence supA=maxA=32.

The infimum. Every element exceeds −1: for even n it is 1+1n>1, and for odd n it is −1+1n>−1. So −1 is a lower bound. Let ε>0. By the Archimedean property there is n∈ℕ with n>1ε; if n is even, replace it by n+1, which is odd and still exceeds 1ε. For this odd n, the element −1+1n lies in A and is less than −1+ε. By the characterisation of the infimum, infA=−1. It is not a minimum, since every element is strictly greater than −1.

Notice where the Archimedean property entered: only in the part that was not attained. That is typical. Suprema and infima that belong to the set need only algebra; those that do not need a way to get arbitrarily close, and in ℝ that way almost always runs through 1n→0.

Now you. Find the supremum and infimum of B={1n−1m:n,m∈ℕ}, and decide whether each is attained.

Answer

Guess supB=1 and infB=−1.

The supremum. For all n,m∈ℕ, 1n−1m<1n≤1, since 1m>0 and n≥1. So 1 is an upper bound, and it is never attained, since every element is strictly less than 1. Let ε>0, and choose m∈ℕ with 1m<ε, by the Archimedean property. With n=1, the element 1−1m lies in B and exceeds 1−ε. By the characterisation, supB=1.

The infimum. Exchanging n and m turns the element 1n−1m into its negative, so −B=B. By the proposition on infima, infB=−sup(−B)=−supB=−1, and it is not attained, because −1=1n−1m would mean 1m−1n=1, which the first part ruled out.

Two general facts save work in such computations, and both follow from the definitions in a line or two. If A⊆B, both nonempty and B bounded above, then supA≤supB, since supB is an upper bound of B and hence of A. And if A and B are nonempty and every element of A is at most every element of B, then supA≤infB, since each b∈B is an upper bound of A, so supA≤b, and then supA is a lower bound of B. The sheet at the end proves more, such as sup(A+B)=supA+supB.

Square roots exist

The lesson on quantifiers said that "some x has x2=2" is false over the rationals and true over the reals. The rational half was the irrationality of 2. The real half needs completeness, and the proof is the argument of the first section run again, with a supremum now available to run it on. It costs nothing extra to do every positive number at once.

Theorem. For every real a>0 there is exactly one real s>0 with s2=a.

Proof. Let S={x∈ℝ:x≥0andx2<a}. It is nonempty, since 0∈S. It is bounded above by 1+a: if x>1+a, then x>1, so x2=x⋅x>x>1+a>a, and x∉S. By completeness, S has a supremum s, and s≥0 because 0∈S. By trichotomy, s2<a, s2=a or s2>a. We rule out the first and the last.

Suppose s2<a. Let h be the smaller of 12 and a−s22s+1. Then 0<h<1, so h2<h, and h(2s+1)≤a−s2. Hence

(s+h)2=s2+2sh+h2<s2+h(2s+1)≤a

so s+h∈S. But s+h>s, contradicting that s is an upper bound of S.

Suppose s2>a. Then s>0 (as s=0 would give s2=0<a). Let k=s2−a2s>0. Then s−k=s2+a2s>0, and

(s−k)2=s2−2sk+k2>s2−2sk=a

If some x∈S had x≥s−k, then, both being non-negative, x2≥(s−k)2>a, contradicting x∈S. So s−k is an upper bound of S, smaller than s, contradicting that s is the least.

Hence s2=a, and s>0 since a>0. For uniqueness, suppose t>0 and t2=a. Then (s−t)(s+t)=s2−t2=0, and s+t>0, so by part (iv) of the lemma, s−t=0. □

The positive square root of a is written a. For a=2, the proof is the first section's argument with one change. Over ℚ, algebra ruled out both inequalities, irrationality ruled out equality, and no candidate was left. Over ℝ, completeness supplies the candidate, the same algebra rules out both inequalities, and equality is what remains. The gap in the rationals is exactly where the reals have a number.

The same method gives nth roots: for every a>0 and n∈ℕ there is a unique s>0 with sn=a. Only the algebra for pushing a candidate up or down changes, and the problem sheet does the case n=3. In particular ℝ contains irrational numbers, which the ordered field axioms alone could never have produced.

The rationals and irrationals are dense

For all their gaps, the rationals are everywhere: no interval of the real line, however short, avoids them. A set D⊆ℝ is dense in ℝ when every open interval (a,b) with a<b contains an element of D.

Theorem (density of the rationals). For all real a<b there is a rational q with a<q<b.

Proof. Since b−a>0, the Archimedean property gives n∈ℕ with 1n<b−a, that is, nb−na>1. Let m=⌊na⌋+1. By the definition of the floor, m−1≤na<m, so

na<m≤na+1<nb

Dividing by the positive number n gives a<mn<b, and mn is rational. □

The idea is a ruler. Marks spaced 1n apart, with 1n smaller than the gap b−a, cannot all jump over the interval, and the floor finds the first mark past a. Between 0.3 and 0.31 the gap is 0.01, so the proof takes n=101; then na=30.3, m=31, and 31101≈0.3069 lies between them.

Applying the theorem again to (a,q) and to (q,b), and so on, gives as many rationals in (a,b) as you like, so every interval contains infinitely many. The irrationals, which the previous lesson showed are far more numerous than the rationals, are dense too.

Example. Prove that for all real a<b there is an irrational x with a<x<b.

Let a<b. Then a−2<b−2, so by the density of the rationals there is a rational q with a−2<q<b−2. Put x=q+2; adding 2 throughout gives a<x<b. Suppose x were rational. Then 2=x−q would be a difference of rationals, hence rational, which it is not. So x is irrational.

The proof shifts the whole problem by one known irrational, solves it with a rational, and shifts back. It needed the existence of 2 as a real number, from the previous section, and its irrationality, from the lesson on contradiction. Between 0.3 and 0.31 it finds q between 0.3−1.41421… and 0.31−1.41421…, for instance q=−1.11, and the irrational 2−1.11=0.30421….

Now you. Prove that every real number x is the supremum of the rationals below it: x=sup{q∈ℚ:q<x}.

Answer

Let x be real and Qx={q∈ℚ:q<x}. By the density of the rationals there is a rational between x−1 and x, so Qx is nonempty, and it is bounded above by x by its definition. So its supremum exists, and x is an upper bound. Let ε>0. By density there is a rational q with x−ε<q<x; then q∈Qx and q>x−ε. By the characterisation of the supremum, supQx=x.

This says every real number is pinned down by the rationals below it, which is exactly the idea behind Dedekind's construction: the set Qx is the cut that represents x.

Density settles the last claim of the lesson on order, that T={q∈ℚ:q2<2} has supremum 2 in ℝ. Every q∈T has q<2, since a rational q≥2 would be positive, and squaring preserves order on positive numbers, so it would have q2≥2. And for any b<2, density gives a rational q strictly between the larger of b and 0 and 2, which lies in T and exceeds b. So the set that had no supremum in ℚ has one in ℝ, and it is the number the rationals were missing.

Density is a strange property to hold alongside countability. The rationals are dense, so every interval contains infinitely many, and yet they can be listed, so they are, in the sense of the previous lesson, a vanishingly small part of the line. Both facts are true at once, and neither contradicts the other.

Nested intervals

Completeness has several equivalent forms, and one of them is geometric. Picture a sequence of closed intervals, each inside the one before, shrinking down. In ℝ something is always left.

Theorem (nested intervals). Let [a1,b1]⊇[a2,b2]⊇[a3,b3]⊇⋯ be closed bounded intervals, with an≤bn for every n. Then there is a real number c lying in every one of them. If, in addition, for every ε>0 some n has bn−an<ε, then there is exactly one such c.

Proof. Nesting means a1≤a2≤a3≤⋯ and b1≥b2≥b3≥⋯. First, am≤bn for all m and n. If m≤n, then am≤an≤bn. If m>n, then am≤bm≤bn.

So the set A={am:m∈ℕ} is nonempty and every bn is an upper bound of it. By completeness it has a supremum c. Since c is an upper bound of A, an≤c for every n; since c is the least upper bound and bn is an upper bound, c≤bn for every n. Hence c∈[an,bn] for every n.

For uniqueness, suppose c and d both lie in every interval, and suppose c≠d. Let ε=|c−d|>0, and choose n with bn−an<ε. Both c and d lie in [an,bn], so |c−d|≤bn−an<ε=|c−d|, which is impossible. So c=d. □

Each hypothesis is needed, and the counterexamples are worth knowing.

  • Closed. The open intervals (0,1n) are nested, but their intersection is empty, as the lesson on sets showed: a positive x in all of them would satisfy x<1n for every n, against the Archimedean property.
  • Bounded. The closed intervals [n,∞) are nested with empty intersection, since a real in all of them would be at least every natural number.
  • In ℝ. In ℚ, take an to be 2 truncated after n decimal places and bn=an+10−n: the intervals [1.4,1.5]⊇[1.41,1.42]⊇[1.414,1.415]⊇⋯ have rational endpoints, and in ℝ their only common point is 2. So the rational intervals {q∈ℚ:an≤q≤bn} are nested, nonempty and shrinking, and share no rational at all.

The theorem is the rigorous form of bisection. To locate a number with some property, start with an interval that contains it, halve the interval, keep the half where the property still holds, and repeat. The lengths b1−a12n−1 shrink below any ε, since 2n−1≥n, so the theorem pins down exactly one point. The intermediate value theorem, that a continuous function negative at one end of an interval and positive at the other has a zero between, is proved this way, and the Calculus lesson on continuity uses the same halving to find roots numerically.

Is there a proof that ℝ is uncountable that avoids decimals?

Yes, and it is older than the diagonal argument. Let x1,x2,x3,… be any sequence of real numbers. We find a real number that is not in the list.

Start with I0=[0,1]. Suppose a closed interval In−1=[a,b] with a<b has been chosen. Cut it into three closed thirds, [a,a+L3], [a+L3,a+2L3] and [a+2L3,b], where L=b−a. The first and third thirds do not meet, so the number xn lies in at most two of the three. Let In be a third that does not contain xn (the leftmost such, to make the choice definite). This defines closed intervals I1⊇I2⊇I3⊇⋯, each of positive length, with xn∉In.

By the nested intervals theorem some c lies in every In. If c=xn for some n, then xn=c∈In, contradicting the choice of In. So c differs from every xn, and no sequence lists every real number in [0,1]. Hence [0,1], and with it ℝ, is uncountable.

Cantor's first proof that the reals are uncountable, published in 1874, seventeen years before the diagonal argument, was built on nested intervals in this spirit. The argument shows where uncountability comes from. Run it in ℚ, with a list of all the rationals (which exists, by the previous lesson), and every step works except the last: the nested intervals close in on a point, but the point is irrational, so the rational intervals have nothing in common. Countability of ℚ and uncountability of ℝ are two faces of the same fact, completeness.

Decimal expansions, and 0.999…=1

The lesson on countability treated real numbers as infinite decimals and used, without proof, that every number in (0,1) has a decimal expansion and that 0.4999…=0.5. Both claims need a definition before they can be proved, because an infinite decimal is an infinite sum, and "add infinitely many numbers" has so far been given no meaning. Completeness gives it one.

Definition. For digits d1,d2,d3,… in {0,1,…,9}, the decimal 0.d1d2d3… denotes the real number

sup{tn:n∈ℕ},wheretn=d110+d2102+⋯+dn10n

The finite decimal tn is the truncation after n places. The supremum exists: the set is nonempty, and every tn≤910+⋯+910n=1−110n<1, the finite geometric sum being checked by induction. So every infinite decimal names a real number in [0,1].

Theorem. 0.999…=1.

Proof. Here tn=1−110n. Every tn<1, so 1 is an upper bound. Let ε>0. By the Archimedean property there is n with 1n<ε, and 10n≥n (by induction), so 110n≤1n<ε and tn>1−ε. By the characterisation of the supremum, sup{tn}=1. □

The same computation gives 0.4999…=0.5: the truncations 0.4, 0.49, 0.499, and so on, are tn=12−110n, all below 12 and eventually above 12−ε for every ε>0.

Existence runs the other way: every number is the value of some decimal, and the floor function produces the digits.

Theorem. Every real x with 0≤x<1 is the value of a decimal 0.d1d2d3…, whose digits are given by dn=⌊10nx⌋−10⌊10n−1x⌋.

Proof. Write Nn=⌊10nx⌋ for n≥0, so N0=0 because 0≤x<1. From Nn−1≤10n−1x<Nn−1+1, multiplying by 10,

10Nn−1≤10nx<10Nn−1+10

Since 10Nn−1 is an integer at most 10nx, and Nn is the greatest such integer, Nn≥10Nn−1; and Nn≤10nx<10Nn−1+10 gives Nn≤10Nn−1+9. So dn=Nn−10Nn−1 is one of 0,1,…,9. Dividing dk=Nk−10Nk−1 by 10k and adding from k=1 to n, the sum telescopes:

tn=∑k=1ndk10k=∑k=1n(Nk10k−Nk−110k−1)=Nn10n−N0=Nn10n

By the definition of the floor, Nn≤10nx<Nn+1, so tn≤x<tn+110n. The first inequality makes x an upper bound of the truncations. For ε>0, choose n with 110n<ε, as in the previous proof; then tn>x−110n>x−ε. By the characterisation, x=sup{tn}=0.d1d2d3…. □

For x=37: N1=⌊307⌋=4, N2=⌊3007⌋=42, N3=⌊30007⌋=428, so the digits begin 4,2,8, and 37=0.428…, as long division says. The floor formula never produces a tail of 9s: its truncations satisfy x<tn+110n strictly, which fails for the expansion 0.4999… of 0.5 at every n, since there tn+110n=12 exactly. So the expansion it gives is the one that the diagonal argument chose, the one not ending in 9s.

Is 0.999… not always just short of 1?

The feeling comes from picturing 0.999… as a process: nines being written one after another, the number creeping towards 1 and never arriving. Every truncation is indeed short of 1, by exactly 110n. But the decimal does not name any truncation, or a process. By definition it names one number, the least number that is at least every truncation, and the proof shows that number is 1.

Suppose someone insists that 0.999… is a number y strictly less than 1. Then 1−y is positive, and the Archimedean property gives an n with 110n<1−y, so the truncation tn=1−110n exceeds y. Then y is not even an upper bound of the truncations. The only way for a number to sit strictly between every truncation and 1 is to be less than 1 by an infinitesimal amount, and in ℝ there are no infinitesimals. In a non-Archimedean field such as the one described earlier, the argument breaks down, which is the precise sense in which the intuition "just short of 1" is about a different number system.

Two popular arguments deserve a word. "13=0.333…, and three times that is 0.999…, so 0.999…=1" is correct in its conclusion, but as a proof it assumes that infinite decimals can be multiplied digit by digit, which needs its own justification from the definition. "Let y=0.999…; then 10y=9.999…, and subtracting, 9y=9" assumes that multiplying by 10 shifts digits and that infinite decimals can be subtracted term by term. Both steps are true, and both follow from the supremum definition (the problem sheet proves the first kind of fact), but they are theorems, not rules of notation. The supremum proof above needs only the definition and the Archimedean property.

Two expansions for one number is not a defect peculiar to base ten. In every base b≥2, a number with a terminating expansion also has one ending in an endless run of the digit b−1; in binary, 0.0111…=0.1. It is the price of describing a complete line with a countable string of digits.

Where completeness is needed next

The Archimedean property, the floor, density, square roots, nested intervals and decimal expansions are facts calculus uses without comment, and each came from one axiom. The rest of analysis leans on it too. The next lesson writes convergence of a sequence with ε and N and proves the monotone convergence theorem: in ℝ, every bounded increasing sequence converges, to the supremum of its terms. That is the theorem Dedekind could not prove in 1858, and the decimal truncations of 2, rational, increasing, bounded by 2 and with no rational limit, show that in ℚ it is false.

In any ordered field, three properties are equivalent: the least upper bound property; the monotone convergence theorem; and the nested intervals theorem together with the Archimedean property. So a course may take any of them as its axiom; this one took the least upper bound, because it is the easiest to state and the one the rationals most visibly lack. The problem sheet proves one of the equivalences.

Problems

Work each problem on paper before opening anything; for Core and Challenge problems, try the hint before the solution. Throughout, "the characterisation" means the ε form of the supremum or infimum proved in the lesson.

Warm-up

1. Find the supremum and infimum of each set, and say whether each is a maximum or minimum: (a) [−2,3); (b) {x∈ℝ:x2≤5}; (c) {nn+1:n∈ℕ}.

Solution

(a) Every x in the set satisfies −2≤x, and −2 is in the set, so inf=min=−2. Every x satisfies x<3, so 3 is an upper bound. Let ε>0, and let x be the larger of 0 and 3−ε2. Then 0≤x<3, so x is in the set, and x≥3−ε2>3−ε. By the characterisation, sup=3. It is not a maximum, since 3 is not in the set.

(b) For x≥0, squaring preserves order on non-negative numbers, so x2≤5 exactly when x≤5. For x<0, x2=(−x)2, so x2≤5 exactly when −x≤5, that is, x≥−5. So the set is [−5,5], with sup=max=5 and inf=min=−5. (Both exist as real numbers by the theorem on square roots.)

(c) Write nn+1=1−1n+1. For n≥1, 1n+1≤12, so every element is at least 12, the element at n=1. So inf=min=12. Every element is less than 1, so 1 is an upper bound, and it is not attained. Let ε>0 and choose n∈ℕ with 1n<ε. Then 1n+1<1n<ε, so the element 1−1n+1 exceeds 1−ε. By the characterisation, sup=1, not a maximum.

2. Using the ordered field axioms and the lemma in the lesson, prove that for all x and y in an ordered field: (a) if x<y then x+z<y+z for every z; (b) if x<y then −y<−x; (c) if x<y then x<x+y2<y.

Solution

(a) Let x<y and let z be any element. By (O1), x+z≤y+z. If x+z=y+z, adding −z to both sides gives x=y, which is false. So x+z<y+z.

(b) By (a), adding −x−y to both sides of x<y gives −y<−x.

(c) By (a), adding x to both sides of x<y gives 2x<x+y, and adding y gives x+y<2y, where 2=1+1. Now 2>0, since 1>0 (the Example) and 1+1>0+1=1>0 by (a). So 12>0 by the Now you after the Example. Multiplying 2x<x+y<2y by the positive element 12 keeps both inequalities, by part (vi) of the lemma, and gives x<x+y2<y.

Part (c) shows that between two elements of an ordered field there is always a third, so no ordered field has "next" elements. Density of ℚ in ℝ says more: the element in between can be chosen rational.

3. Let A be a nonempty bounded set of real numbers. Prove that infA≤supA, with equality if and only if A has exactly one element.

Solution

Since A is nonempty, choose a∈A. Then infA≤a, because the infimum is a lower bound, and a≤supA, because the supremum is an upper bound. So infA≤supA.

If A={a}, then a is both the maximum and the minimum, so infA=a=supA. Conversely, suppose infA=supA=c. Every a∈A satisfies c≤a≤c, so a=c by antisymmetry. So every element of A equals c, and since A is nonempty, A={c}.

4. (a) Find ⌊−3.5⌋, ⌊−3⌋ and ⌊227⌋. (b) Use the formula dn=⌊10nx⌋−10⌊10n−1x⌋ to find the first four decimal digits of 57.

Solution

(a) ⌊−3.5⌋=−4, since −4≤−3.5<−3. ⌊−3⌋=−3, since −3≤−3<−2. ⌊227⌋=3, since 21≤22<28 gives 3≤227<4.

(b) Write Nn=⌊10n⋅57⌋. Since 7×7=49≤50<56, N1=7. Since 7×71=497≤500<504, N2=71. Since 7×714=4998≤5000<5005, N3=714. Since 7×7142=49994≤50000<50001, N4=7142. With N0=0, the digits are d1=7, d2=71−70=1, d3=714−710=4, d4=7142−7140=2. So 57=0.7142…

Core

5. Let A and B be nonempty sets of reals, both bounded above, and let A+B={a+b:a∈A,b∈B}. Prove that sup(A+B)=supA+supB.

Hint

Use the characterisation, and split the tolerance: find a within ε2 of supA and b within ε2 of supB.

Solution

Let s=supA and t=supB. The set A+B is nonempty, since A and B are.

Upper bound. Every element of A+B is a+b with a∈A and b∈B. Then a≤s and b≤t, and adding these inequalities gives a+b≤s+t. So s+t is an upper bound of A+B.

Nothing smaller. Let ε>0. By the characterisation applied to A with tolerance ε2, some a∈A has a>s−ε2, and likewise some b∈B has b>t−ε2. Then a+b∈A+B and a+b>s+t−ε.

By the characterisation, sup(A+B)=s+t. Taking B={c} gives the special case sup(A+c)=supA+c, where A+c={a+c:a∈A}.

6. Let A be a nonempty bounded set of reals, c a real number, and cA={ca:a∈A}. Prove that if c>0 then sup(cA)=csupA, and that if c<0 then sup(cA)=cinfA.

Hint

Multiplying by a positive number keeps inequalities and multiplying by a negative one reverses them. For c<0, a lower bound of A turns into an upper bound of cA.

Solution

Case c>0. Let s=supA. For every a∈A, a≤s, so ca≤cs; thus cs is an upper bound of cA, which is nonempty. Let ε>0. Then εc>0, so some a∈A has a>s−εc, and multiplying by c>0 gives ca>cs−ε. By the characterisation, sup(cA)=cs.

Case c<0. Let t=infA, which exists because A is nonempty and bounded below. For every a∈A, a≥t, and multiplying by the negative number c reverses this: ca≤ct. So ct is an upper bound of cA. Let ε>0. Then −c>0, so ε−c>0, and by the characterisation of the infimum some a∈A has a<t+ε−c. Multiplying by c<0 reverses the inequality: ca>ct+c⋅ε−c=ct−ε. By the characterisation, sup(cA)=ct.

With c=−1 the second case says sup(−A)=−infA, the proposition on infima read backwards.

7. Find the flaw in this proof, show that the claim is false, and state and prove the correct version.

Claim. Let A and B be nonempty sets of reals such that a<b for every a∈A and every b∈B. Then supA<infB.

Proof. Both exist, since A is bounded above by any element of B and B is bounded below by any element of A. Since a<b for all a and b, taking the supremum over a∈A and then the infimum over b∈B gives supA<infB.

Hint

The first sentence is fine. Look at A=(0,1) and B=(1,2).

Solution

The flaw is in the last step: strict inequalities are not preserved by taking suprema or infima. From "a<b for every a∈A" it follows only that b is an upper bound of A, so supA≤b, with ≤ and not <. The set [0,1) has every element below 1 and supremum equal to 1.

The claim is false. Take A=(0,1) and B=(1,2). Every element of A is less than 1, and every element of B is greater than 1, so a<b for all a∈A and b∈B. But supA=1 and infB=1 (the first as in the lesson on order; the second by the mirror argument: 1 is a lower bound, and for ε>0 the smaller of 1+ε2 and 32 lies in B and is less than 1+ε). So supA=infB, and supA<infB fails.

Correct claim. If A and B are nonempty and a≤b for every a∈A and b∈B (in particular if a<b), then supA≤infB.

Proof. Let b∈B. Every a∈A satisfies a≤b, so b is an upper bound of A, and A has a supremum with supA≤b. This holds for every b∈B, so supA is a lower bound of B, and B has an infimum with supA≤infB, because the infimum is the greatest lower bound. □

8. Prove or disprove each claim. (a) If x is rational and y is irrational, then x+y is irrational. (b) If x and y are irrational, then x+y is irrational. (c) If x is a nonzero rational and y is irrational, then xy is irrational. (d) If x and y are irrational, then xy is irrational. (e) If x2 is irrational, then x is irrational.

Hint

Two are false, with counterexamples built from 2. The true ones go by contradiction or contrapositive, using that ℚ is closed under the four operations.

Solution

(a) True; this and (c) were proved in the lesson on contradiction. Suppose x is rational, y irrational, and x+y=r is rational. Then y=r−x is a difference of rationals, hence rational, a contradiction.

(b) False. 2 is irrational, and so is −2 by (c) with x=−1. Their sum is 0, which is rational.

(c) True. Suppose x≠0 is rational, y irrational, and xy=r is rational. Then y=rx is a quotient of rationals with nonzero denominator, hence rational, a contradiction.

(d) False. 2⋅2=2, which is rational.

(e) True, by the contrapositive: if x is rational, x=pq, then x2=p2q2 is rational. The converse fails: 2 is irrational and its square is rational.

9. Prove that there is exactly one positive real number s with s3=2.

Hint

Follow the proof for square roots with S={x≥0:x3<2}. To push up: for 0<h<1, (s+h)3<s3+h(3s2+3s+1). To push down: try k=s3−23s2.

Solution

First a fact used twice: for 0≤x<y, x3<y3. Indeed y3−x3=(y−x)(y2+xy+x2), with y−x>0 and y2+xy+x2≥y2>0.

Let S={x∈ℝ:x≥0andx3<2}. It contains 1, so it is nonempty. It is bounded above by 2: if x≥2 then x3≥8>2 by the fact. By completeness it has a supremum s, and s≥1.

Suppose s3<2. Let h be the smaller of 12 and 2−s33s2+3s+1. Then 0<h<1, so h2<h and h3<h, and since s>0,

(s+h)3=s3+3s2h+3sh2+h3<s3+3s2h+3sh+h=s3+h(3s2+3s+1)≤2

So s+h∈S and s+h>s, contradicting that s is an upper bound.

Suppose s3>2. Let k=s3−23s2>0. Then s−k=2s3+23s2>0, so 0<k<s. Now

(s−k)3=s3−3s2k+3sk2−k3=s3−3s2k+k2(3s−k)>s3−3s2k=2

because k2>0 and 3s−k>2s>0. If some x∈S had x≥s−k, the fact would give x3≥(s−k)3>2, contradicting x∈S. So s−k is an upper bound smaller than s, contradicting that s is the least.

By trichotomy s3=2, and s>0. For uniqueness, if t>0 and t≠s, then either t<s or s<t, and the fact gives t3<2 or t3>2. So s is the only positive cube root of 2.

10. (a) Prove that if a and b are real numbers with a≤b+ε for every ε>0, then a≤b. (b) Prove that if x≥0 and x≤1n for every n∈ℕ, then x=0. (c) Deduce that if |x−y|<1n for every n∈ℕ, then x=y.

Hint

For (a), argue by contradiction and choose ε to fit. For (b), which property of ℝ is being used?

Solution

(a) Suppose a>b. Take ε=a−b2>0. By hypothesis a≤b+a−b2=a+b2, which gives 2a≤a+b, so a≤b, a contradiction. Hence a≤b.

(b) Let x≥0 with x≤1n for all n. Suppose x>0. By the Archimedean property there is n∈ℕ with 1n<x, contradicting the hypothesis. So x=0. This is exactly where the Archimedean property is used; in an ordered field with infinitesimals, a positive infinitesimal would satisfy the hypothesis.

(c) Let x and y satisfy the hypothesis. Then |x−y|≥0 and |x−y|<1n for every n, so by (b), |x−y|=0, and x=y.

Part (a) is the standard way analysts prove an inequality: show that it holds up to an arbitrary positive error. Part (c) is the same idea for equality, and the next lesson's proof that a limit is unique runs on it.

Challenge

11. Let F be an ordered field with the Archimedean property (for every x∈F some n∈ℕ has n>x), in which the nested intervals theorem holds. Prove that F is complete: every nonempty subset of F that is bounded above has a least upper bound.

Hint

Bisect. Start with an element a1 that is not an upper bound and an element b1 that is. At each step look at the midpoint, and keep the half whose left end is not an upper bound and whose right end is. The common point of the intervals is the candidate.

Solution

Let A⊆F be nonempty and bounded above. Choose a∈A and put a1=a−1, which is not an upper bound of A since a>a1, and let b1 be any upper bound. Then a1<b1.

Given an<bn with an not an upper bound and bn an upper bound, let m=an+bn2, so an<m<bn (Problem 2). If m is an upper bound of A, put an+1=an and bn+1=m; otherwise put an+1=m and bn+1=bn. Either way [an+1,bn+1]⊆[an,bn], an+1 is not an upper bound, bn+1 is one, and bn+1−an+1=bn−an2. By induction, bn−an=L2n−1 with L=b1−a1>0.

The lengths become small: given ε>0, the Archimedean property gives n with n>Lε, and 2n−1≥n (by induction), so bn−an=L2n−1≤Ln<ε. By the nested intervals theorem, there is c with an≤c≤bn for every n.

c is an upper bound of A. Suppose some x∈A has x>c. Choose n with bn−an<x−c. Then bn<an+(x−c)≤c+(x−c)=x, so bn is not an upper bound of A, a contradiction.

No upper bound is smaller than c. Suppose v is an upper bound with v<c. Choose n with bn−an<c−v. Then an>bn−(c−v)≥c−(c−v)=v. Any element above an upper bound is an upper bound, so an is an upper bound of A, a contradiction.

Hence c=supA, and F is complete. The Archimedean hypothesis cannot be dropped: there are non-Archimedean ordered fields in which every nested sequence of closed intervals has a common point, and they are not complete, since by the lesson every complete ordered field is Archimedean. (The larger fields of Robinson's non-standard analysis are examples.)

12. Prove that the set {m+n2:m,n∈ℤ} is dense in ℝ: every interval (a,b) with a<b contains an element of it.

Hint

First find an element z of the set with 0<z<b−a. For that, look at the fractional parts k2−⌊k2⌋ for k=0,1,…,N, and use the pigeonhole principle on N subintervals of [0,1). Then use the multiples of z as a ruler, as in the density of the rationals.

Solution

Write G={m+n2:m,n∈ℤ}. It is closed under addition, subtraction and multiplication by integers.

Step 1: small positive elements. Let N∈ℕ. For k=0,1,…,N, let fk=k2−⌊k2⌋, the fractional part, so 0≤fk<1 and fk∈G. Split [0,1) into the N intervals [jN,j+1N) for j=0,…,N−1. There are N+1 numbers fk and N intervals, so by the pigeonhole principle two of them, fk and fl with k<l, lie in the same interval, and |fl−fk|<1N. Now fl−fk=(l−k)2−(⌊l2⌋−⌊k2⌋) is in G, and it is not 0: otherwise 2=⌊l2⌋−⌊k2⌋l−k would be rational. So z=|fl−fk| (which is fl−fk or its negative, both in G) is an element of G with 0<z<1N.

Step 2: the ruler. Let a<b. Choose N with 1N<b−a, and z∈G with 0<z<1N by Step 1. Let j=⌊az⌋+1, an integer. Then j−1≤az<j, and multiplying by z>0 gives jz−z≤a<jz. Hence a<jz≤a+z<a+(b−a)=b. And jz∈G, being an integer multiple of an element of G. So (a,b) contains the element jz of G.

The same argument works with any irrational in place of 2. For a rational pq it fails, since then every m+npq is a multiple of 1q and the set has gaps of length 1q. Step 1 is a form of Dirichlet's approximation theorem: for every irrational α and every N there are integers l>0 and m with |lα−m|<1N and l≤N.

13. Call a decimal 0.d1d2d3… eventually periodic if there are k≥0 and p≥1 with dn+p=dn for every n>k. Prove that a real number x∈[0,1) is rational if and only if the decimal expansion given by the floor formula is eventually periodic.

Hint

(⇐) First prove that 10m⋅0.d1d2…=D+0.dm+1dm+2… where D is the integer with digits d1…dm, using Problems 5 and 6. Then compare 10k+px and 10kx. (⇒) For x=ab, the remainders rn=10na−bNn, with Nn=⌊10nx⌋, lie in {0,…,b−1}, and each determines the next digit and the next remainder.

Solution

(⇐) A shifting lemma. Let y=0.d1d2d3… with truncations tn, let m≥0, let D=∑j=1mdj10m−j (an integer), and let y′=0.dm+1dm+2… with truncations tn′. We claim 10my=D+y′. The truncations increase, t1≤t2≤⋯, so every tn with n≤m is at most tm+1, and y=sup{tn:n>m}. For n>m, multiplying out gives 10mtn=D+tn−m′. By Problem 6 with c=10m, and Problem 5 with B={D},

10my=sup{10mtn:n>m}=sup{D+tj′:j∈ℕ}=D+sup{tj′}=D+y′

Periodic implies rational. Suppose x=0.d1d2… with dn+p=dn for all n>k. The tails 0.dk+1dk+2… and 0.dk+p+1dk+p+2… have the same digits in every place, so they are the same number y′. By the lemma, 10kx=D1+y′ and 10k+px=D2+y′ for integers D1 and D2. Subtracting, (10k+p−10k)x=D2−D1, and 10k+p−10k>0, so x=D2−D110k(10p−1) is rational.

(⇒) Let x=ab with integers 0≤a<b. Let Nn=⌊10nx⌋ and rn=10na−bNn, an integer. From Nn≤10nab<Nn+1, multiplying by b>0 gives 0≤rn<b. The digits are dn=Nn−10Nn−1, and

10rn−1=10na−10bNn−1=b(Nn−10Nn−1)+(10na−bNn)=bdn+rn

with 0≤rn<b. By the uniqueness in the division algorithm, dn and rn are the quotient and remainder of 10rn−1 on division by b, so both are determined by rn−1 alone.

The b+1 remainders r0,r1,…,rb take at most b values, so by the pigeonhole principle rk=rk+p for some k≥0 and p≥1. Then dk+1=dk+p+1 and rk+1=rk+p+1, and by induction dn=dn+p and rn=rn+p for every n>k. So the expansion is eventually periodic.

For 37, the remainders are r0=3, then 30=7×4+2, 20=7×2+6, 60=7×8+4, 40=7×5+5, 50=7×7+1, 10=7×1+3, back to 3. So 37=0.428571428571…, with period 6. The proof also shows the period is at most b, and in fact at most b−1 when no remainder is 0.