© 2026 NeckPinch · www.neckpinch.com · All rights reserved.
Course 2Book 2A: Numbers, Limits and the IntegralChapter 4
The Real Numbers
Completing ℚ with Cauchy sequences: the least upper bound property and the idea of completion.
Read with Tao, Analysis I, chapter "The real numbers" (Cauchy sequences, equivalent Cauchy sequences, the construction of the reals, ordering, the least upper bound property, real exponentiation part I).
In this chapter · 10 sections
The rationals are dense, but 2A.3 Integers and Rationals found a hole in them at . There are rationals whose squares come as close to as you like, yet none whose square is . This chapter fills every such hole at once and builds the real numbers .
The idea is simple to say. A real number is what an endless process of better and better rational approximations is approximating. The work is in making that precise without referring to the thing being approximated, which doesn't exist yet. The answer combines the two tools of the last two chapters: sequences that settle down (Cauchy sequences), and the quotient construction, so that two processes approximating "the same number" count as the same real.
This construction is called completion. It is the single most reused construction in this guidebook, so the chapter ends by naming it explicitly. The function spaces in which the heat equation and Ricci flow are solved (3A.3 The Lebesgue Integral, 4A.9 Sobolev Spaces) are built in exactly the same way.
By the end of this chapter you will be able to:
- define Cauchy sequences and equivalent sequences of rationals, and test examples;
- explain how the real numbers are constructed and why the operations are well defined;
- state and prove the least upper bound property, and use it to show that exists;
- explain what "completion" means and recognise it later;
- explain why the numbers inside a computer are not real numbers, with a documented case where the difference mattered.
Approximations, ancient and modern
People computed with irrational quantities long before anyone could say what they were. They did it the only way possible: with rational approximations good enough for the task.
The Babylonian tablet known as YBC 7289, in the Yale Babylonian Collection and dated to roughly 1800–1600 BCE, shows a square with its diagonals. Along a diagonal is written, in base-60 notation, the number , meaning
The true value is , so the scribe's figure is correct to about six decimal places, an error of less than one part in two million. It is the closest approximation to possible with three sexagesimal places after the point.
How might such an approximation be found? One method, which may well be the one the scribes used (the tablets don't say), is divide and average. If is a guess for that is too big, then is too small, and their average is a better guess:
Starting from :
Every one of these is rational, and their squares minus are , about , about , and about . The number of correct digits roughly doubles at each step. This is Newton's method for the equation (Figure 4.1), and Newton iteration is still one of the standard ways software computes square roots and reciprocals.
The sequence is a sequence of rational numbers that "wants" to converge, but there is no rational number for it to converge to. The construction of the reals takes that literally: the real number will be (the class of) this sequence. Two things have to be made precise first: what it means for a sequence to want to converge without mentioning its limit, and when two such sequences want to converge to the same place.
Cauchy sequences
A sequence of rationals is a function from the natural numbers (or from the naturals at least some starting index) to . We write it , or just .
The obvious definition of convergence, " gets close to ", needs the limit . The trick, due to Cauchy, is to ask only that the terms get close to each other.
A sequence of rationals is a Cauchy sequence if for every rational there is an such that for all .
In words: however small a tolerance you name, from some point on, all the terms are within that tolerance of each other. Tao builds this up in two steps, calling a sequence -steady if all its terms are -close, and eventually -steady if all terms from some point on are. A Cauchy sequence is then one that is eventually -steady for every .
- Decimal truncations. Let be truncated to decimal places: . (These are rational numbers, computable without knowing exists: is the largest number with decimal places whose square is less than .) For the two truncations agree in the first decimals, so . Given , choose with . Cauchy.
- (for ). For , both terms lie in , so they differ by at most . Cauchy.
- . Any two consecutive terms differ by , so the definition fails for . Not Cauchy.
- . Consecutive terms differ by only , which tends to , so this sequence looks Cauchy. It isn't: for every . Small consecutive differences are not enough; all pairs beyond must be close. (2A.7 Series returns to this, the harmonic series.)
Newton's iterates are Cauchy as well, and the proof never mentions , which is the point.
Let and . Then is a Cauchy sequence of rationals.
Proof. Write . A direct computation gives
Since , induction gives for all , so every , and hence . Then , and : the sequence is decreasing.
Now let . Since and , we have . So lies between and , and
Finally and force for (by induction: ). Given , choose with ; then for all .
One property of Cauchy sequences is needed constantly.
If is Cauchy, there is a rational with for all .
Proof. Take : there is with for all , so for those . The finitely many terms have a largest absolute value. Let be the larger of that and .
When two sequences approximate the same number
The decimal truncations and the Newton iterates are different sequences, but they are approximating the same thing. The sequences and are different too, yet both "are" the number . We need an equivalence relation that identifies them.
Two sequences of rationals and are equivalent if for every rational there is an such that for all .
So is equivalent to the constant sequence , because the difference at stage is . That is the precise content of the slogan : the two decimal expansions are different sequences in the same equivalence class.
Equivalence of sequences is reflexive, symmetric and transitive.
Proof. Reflexivity and symmetry are immediate. For transitivity, suppose and , and let . Apply the definitions with : there are and with for and for . For at least the larger of and , the triangle inequality (2A.3 Integers and Rationals) gives .
The " trick" in this proof, splitting a tolerance between two steps and recombining with the triangle inequality, will be used hundreds of times in this guidebook. It is the rigorous version of the closeness computation in the rehearsal exercise of 2A.3 Integers and Rationals.
The real numbers
A real number is an expression , where is a Cauchy sequence of rationals. Two real numbers and are equal exactly when and are equivalent. Formally, is the set of Cauchy sequences of rationals modulo equivalence.
The notation (a "formal limit") is Tao's. It is a reminder that at this stage nothing converges to anything: is just a name for the class of . In 2A.6 Sequences we will prove that really does converge to the real number , and then can be replaced by the ordinary .
The rationals sit inside the reals. A rational is identified with the constant sequence, . Two rationals are equal as reals exactly when they are equal as rationals, so nothing is lost. So , if it exists, is for the Newton sequence, and also of the decimal truncations, since those two sequences are equivalent (Exercise 4.19).
Arithmetic
Two things must be checked, as for every definition on a quotient (2A.2 Sets, Functions and Equivalence). First, the right-hand sides must be Cauchy sequences, so that they define reals at all. Second, the operations must be well defined: replacing by an equivalent sequence must give an equivalent result.
If and are Cauchy, then so is . If moreover , then .
Proof. The key identity is . By Lemma 4.4 there is with and for all . Given , choose so that and are at most for . Then .
For well-definedness, , and ; choose with for .
Notice why boundedness was needed: a product is close to another product only if the factors that are not being compared are under control. This "split the difference, bound the other factor" step is the template for every product estimate in analysis, including the estimates for Ricci flow, where curvature is multiplied by curvature (11A.2 How Curvature Evolves).
Negation is , and subtraction is . The laws of arithmetic (commutativity, associativity, distributivity) hold because they hold term by term for rationals.
Reciprocals need one more idea. If is not zero, some terms may still be zero, so makes no sense as written. The way out is to choose a better representative.
If , then for some Cauchy sequence and some rational with for every .
Proof. Take any representative . Since , is not equivalent to the zero sequence, so there is some such that for infinitely many . Choose with for , and then some with . For every , . Now let for and for . This sequence is equivalent to (they agree from on), and for every .
For such a representative, is Cauchy, because . Define . It doesn't depend on the representative chosen (Exercise 4.20), and .
With these operations, the real numbers satisfy all the laws of a field, and the inclusion respects addition and multiplication.
Order
A real number is positive if for a Cauchy sequence with for every , for some rational , and negative if is positive. Write if is positive.
Every real number is exactly one of positive, zero or negative. With this order, is an ordered field, and its order agrees with the order of on rationals.
The proof combines Lemma 4.10 with the Cauchy property: once a sequence is bounded away from zero, it eventually keeps one sign, because its terms are eventually within of each other (Exercise 4.21).
Absolute value and distance on are defined as for , and the triangle inequality carries over. Two properties connect to the rationals it was built from.
- For every real there is a natural number . For every real there is a natural number with .
- Between any two reals there is a rational with .
Proof. (1) Write . The sequence is bounded by some rational (Lemma 4.4), so ; by 2A.3 Integers and Rationals there is a natural number . The second statement follows from the first applied to .
(2) By (1) choose with . Then the rationals , for integers , are spaced less than apart. Let be the smallest integer with (it exists by (1) and well-ordering). Then , so .
So every real number can be approximated by rationals to any accuracy. This is what makes the reals usable in practice: in any computation, a real can be replaced by a rational close enough to it.
The least upper bound property
The defining feature of , the property lacks, can be stated without sequences at all.
Let be a set of reals. A real is an upper bound for if for every . A real is a least upper bound, or supremum, of , written , if is an upper bound for and for every upper bound of .
A set has at most one supremum (if and are both least upper bounds, then and ). The supremum need not belong to the set: .
Every nonempty set of real numbers that has an upper bound has a least upper bound.
Proof (By bisection). Let be nonempty, , and an upper bound. We build the supremum as the formal limit of a Cauchy sequence of rationals, by repeatedly halving an interval that contains it.
Fix a positive integer . Among the rationals with an integer, some are upper bounds for (those at least ) and some aren't (those below ). By well-ordering, there is a smallest integer such that is an upper bound. Let . So is an upper bound, but is not.
Claim: is Cauchy. For : is an upper bound and is not, so some element of exceeds , and that element is at most . Hence . By symmetry . So .
Let . is an upper bound: if some had , then since (Exercise 4.22) we would get for large , contradicting that is an upper bound. is the least: if were an upper bound with , then for large , (since also converges to ), so would be an upper bound, contradicting the choice of .
Over the rationals the theorem fails. The set has rational upper bounds (, , , …), but no least rational upper bound, since any rational upper bound has (it can't be by 2A.3 Integers and Rationals), and then the divide-and-average step produces a smaller one. The least upper bound property is precisely the statement that the reals have no gaps.
√2 exists
There is a unique positive real number with . More generally, for every real and positive integer there is a unique real with , written .
Proof (For √2). Let . It contains and is bounded above by (if then ). Let ; then . We rule out and .
If : for , , using and . Choosing with gives , so , contradicting that is an upper bound.
If : for , . Choosing with gives , so every satisfies (since ), making a smaller upper bound, a contradiction.
So . Uniqueness: if then , so two different non-negative reals can't have the same square.
With -th roots in hand, rational powers are defined for , and the usual laws hold (Exercise 4.24). Powers with irrational exponents, such as , need limits and are defined in 2A.6 Sequences (Tao's "real exponentiation, part II").
Completion
The construction in this chapter has a shape that recurs again and again:
- Start with a space that has a notion of distance but has holes: here with .
- Take the sequences that "want to converge": the Cauchy sequences.
- Identify two of them when their distance tends to zero.
- The resulting quotient is a complete space, one in which every Cauchy sequence converges, and it contains the original space as a dense subset.
This is called the completion. The reals are the completion of the rationals.
That last property, completeness, is proved in 2A.6 Sequences: every Cauchy sequence of real numbers converges to a real number. Completing a second time produces nothing new. Completeness is what makes existence theorems possible, because to show something exists, it is enough to build a sequence of better and better approximations and check that it is Cauchy. The approximations needn't converge to anything you can write down.
- 3A.3 The Lebesgue Integral: integrable functions. The Riemann-integrable functions, with the distance , have holes (the limit of a Cauchy sequence of them may not be Riemann integrable). Completing gives the Lebesgue space .
- 4A.1 Banach Spaces and Bounded Operators: Banach spaces are, by definition, complete normed spaces.
- 4A.9 Sobolev Spaces: Sobolev spaces, completions of smooth functions under norms that measure derivatives. Weak solutions of PDE live here.
- 2B.2 Completeness and Contraction: the contraction mapping principle, which proves existence by building a Cauchy sequence. It is used for differential equations (2B.10 Ordinary Differential Equations) and for the short-time existence of Ricci flow (11A.3 Short-Time Existence and Uniqueness).
- 9B.4 Convergence of Manifolds: limits of whole spaces. Sequences of Riemannian manifolds are compared with the Gromov–Hausdorff distance, and their limits are taken in a complete space of metric spaces. This is how Perelman's blow-up limits are formed (12B.3 The Canonical Neighbourhood Theorem).
Computers don't use real numbers
The real numbers are an idealisation: infinitely many digits, infinitely precise. Machines can't store them. What computers use instead is a finite set of rationals, the floating-point numbers, standardised as IEEE 754.1 First published in 1985 and revised since. Almost all hardware today implements its "binary64" (double-precision) format. A double-precision number has a 53-bit binary significand and an exponent: numbers of the form with an integer below .
That finite set lacks almost every property of this chapter:
- It isn't closed under arithmetic. The exact sum or product of two floating-point numbers is usually not a floating-point number, so the machine rounds.
- Familiar decimals aren't representable. has the infinite binary expansion , so the number stored for
0.1is , which exceeds by about . As a result0.1 + 0.2evaluates to0.30000000000000004. - Addition isn't associative. In double precision,
(0.1 + 0.2) + 0.3gives0.6000000000000001, but0.1 + (0.2 + 0.3)gives0.6. - It isn't complete, and has no least upper bounds in general. The numbers are spaced unevenly, closer near and further apart for large values (Figure 4.5).
Numerical analysts manage these errors carefully, and usually they are harmless. The classic case where they were not shows how a tiny representation error can grow with time.
On 25 February 1991, during the Gulf War, a Patriot air-defence battery at Dhahran, Saudi Arabia, failed to track and intercept an incoming Scud missile. The Scud hit an Army barracks and killed 28 American soldiers. A report by the US General Accounting Office (GAO/IMTEC-92-26, February 1992) traced the failure to time-keeping arithmetic. The system's clock counted time in tenths of a second as an integer. To be used in tracking calculations, that count had to be converted to seconds, a real number, in a computer whose registers were only 24 bits long. The conversion lost precision, and the error was proportional to how long the system had been running. The battery had been operating continuously for about 100 hours, and by then the error had moved the "range gate", the region where the radar looked for the target, so far that the Scud was outside it.
The mechanism, analysed by Robert Skeel (SIAM News, 1992), is that has no finite binary expansion, so the constant held in the register was chopped. The stored value was short of by about . After hours, that is tenths of a second, the accumulated error is
which matches the GAO's figure of seconds. A Scud travels at roughly Mach 5, and the GAO computed a shift in the range gate of about 687 metres. Israeli users had noticed the drift after 8 hours of operation, and the Army had prepared corrected software. It reached Dhahran on 26 February, the day after the attack.
The lesson for this guidebook is not about computers. It is that a quantity known only to within a tolerance, multiplied by a large number, can produce a large error. Every estimate in analysis tracks exactly this: how errors in the inputs, multiplied by the sizes of other quantities, combine in the output. Proposition 4.9 did it in miniature, with the bound on the other factor.
History: two ways to fill the gaps
By the 1860s the rigorous foundations of calculus rested on the real numbers, which were still undefined. Within a few years several definitions appeared. Charles Méray (1869) and Georg Cantor (1872) defined reals through sequences of rationals that converge "among themselves", the construction in this chapter. Richard Dedekind's Stetigkeit und irrationale Zahlen ("Continuity and irrational numbers", 1872) took a different route: a real number is a cut, a way of splitting the rationals into a lower set and an upper set, with every element of the lower set less than every element of the upper set. The cut at puts every rational whose square is less than (or which is negative) below, and the rest above. Dedekind's approach makes the least upper bound property almost immediate, while Cantor's makes completeness and the link to approximation natural. Both give the same real numbers, in the sense of Remark 4.18.
Any two complete ordered fields can be matched up by a bijection that respects addition, multiplication and order. So, as with the natural numbers (2A.1 The Natural Numbers), it makes sense to speak of the real numbers, however they are built. From now on we use only the properties: is an ordered field with the least upper bound property, containing as a dense subset.
The real numbers are the completion of the rationals: Cauchy sequences of rationals, identified when their difference tends to zero. They form an ordered field in which the rationals are dense and every bounded nonempty set has a least upper bound. Square roots and rational powers exist. The next chapter, 2A.5 Quantifiers and the Shape of a Proof, gives the quantifier sentences of this chapter ("for every there is an …") a chapter of their own, because from now on every definition is written in them.
Exercises
Show that the decimal truncations of and the Newton sequence of Proposition 4.3 are equivalent Cauchy sequences. (Define the truncations as in Example 4.2, without assuming exists.)
Hint
Let be the truncation and the Newton iterate. Both satisfy a squeeze: and . Show , using that $2/x_n < $ any number whose square exceeds .
Suppose and are equivalent Cauchy sequences, both bounded away from zero (). Show that and are equivalent.
Solution
. Given , choose with for .
Let be Cauchy with for every . Show that from some point on, either all or all . Use this to complete the proof of Proposition 4.13.
Let be a Cauchy sequence of rationals and . Show that for every rational there is with for all , where is computed in . This is the statement that the sequence converges to its own formal limit, used in the proof of Theorem 4.16.
Hint
is the real number , with fixed. For , all its terms with lie in .
Define the infimum (greatest lower bound) of a set, and prove that every nonempty set of reals with a lower bound has one, by applying Theorem 4.16 to .
Show that if and (positive integers ), then , so is well defined. Then show for rational .
In a toy decimal system that keeps only 3 significant digits and rounds to nearest, compute and . Explain why adding many small numbers to a large one, one at a time, can lose all of them, and why summing small numbers first helps. (2A.7 Series returns to this with Kahan's compensated summation.)
Solution
rounds to , and then rounds to again. But , and rounds to . Each small addend on its own is below half the spacing of representable numbers near (which is here), so it is rounded away. Combined first, they cross the threshold.
The Patriot error was seconds per tick, at ticks per second. (a) Find the time error after hours, and check it against the GAO's seconds at 8 hours. (b) If the range gate tolerated a shift equal to 50 percent of its size, and the GAO estimated that this was reached at about 20 hours, how long a run would a register with twice as many bits (about times the error per tick) have tolerated? (c) The same arithmetic, "small error per step × number of steps", governs the accuracy of numerical solutions of differential equations. 2B.10 Ordinary Differential Equations makes it precise with Gronwall's inequality, where the errors can also be amplified at every step.
Solution
(a) seconds; at this is . (b) The error per tick scales by , so the tolerable run time scales by , from hours to roughly hours, about years.
© 2026 NeckPinch (www.neckpinch.com). All content in the guidebook (text, mathematics, figures and exercises) is protected by copyright. All rights reserved. No part may be copied, republished or redistributed without written permission.