Kayavak / Arithmetic and Numbers / AN·12 The Real Number Line / Deeper
Deeper · Arithmetic and Numbers
The Real Number Line
The questions the chapter doesn't stop for: why this exists, the model to keep in your head, what changes when an assumption does, how sure we are of each claim, and what's still open. Read it after the chapter; back to the chapter.
Why does this exist?
For most of history, mathematicians used numbers like and without saying what they were. Greek geometry kept lengths and numbers apart after the discovery of incommensurable lengths; Indian and Islamic mathematicians computed with irrational quantities freely (the Śulba Sūtras approximate as ; al-Kāshī computed to 16 decimal places in 1424); and the calculus of Newton and Leibniz (late 1600s) depended on limits that nobody could define precisely. Bishop Berkeley's 1734 attack on its "ghosts of departed quantities" was answered only in the nineteenth century, when Bolzano, Cauchy and Weierstrass made limits precise and found that they needed a precise description of the number line itself.
In 1872 several definitions appeared at once: Dedekind's cuts, Cantor's and Méray's sequences of fractions, and Weierstrass's approach. All gave the same real numbers. Cantor then asked how many there are, and his answers (1874, 1891) founded set theory, provoked opposition from mathematicians such as Leopold Kronecker, and led to questions, like the continuum hypothesis, that turned out to be undecidable from the usual axioms (Gödel 1940, Cohen 1963). In 1936 Alan Turing defined computable numbers, connecting the real line to what machines can do, the starting point of computer science.
The mental model
Try it yourself first: write your own model in the Mental Model Explorer, then compare.
The fractions are dense but full of holes; the real numbers fill every hole, so that any nest of shrinking intervals closes on exactly one point. Most real numbers are irrational, most can't be described, and computers work with a finite set of fractions that approximates the line.
| Question | Answer |
|---|---|
| What is it? | The complete number line: every infinite decimal, every limit of fractions |
| Problem it solves | Lengths and limits without gaps: , , and every value calculus needs |
| Parts | Rationals, irrationals (algebraic and transcendental), completeness, countability |
| How it works | Irrationals are pinned down by fractions on both sides, tighter and tighter |
| Assumptions | Completeness is taken as a property (or built from fractions by cuts or sequences) |
| When they change | Computers replace the line with finitely many fractions; constructive mathematics questions some uses |
| Where it fails | Equality of reals can't be decided by computation in general; most reals can't even be named |
| Related ideas | Fractions (ch06), decimals (ch07), roots and Heron (ch10), error and tolerance (ch11) |
What if?
What if √2 were a fraction?
Reason it through, then open
Then unique factorisation would fail: would have the prime 2 an even number of times on the left and an odd number on the right. The whole structure of chapter 5 would collapse, and with it lowest terms, gcds and the tests of chapter 7. So the irrationality of isn't an isolated curiosity: it's a direct consequence of unique factorisation, and as certain as the fact that every number factors into primes in one way.
What if we only ever used fractions?
Reason it through, then open
Every calculation anyone actually performs uses fractions (or floats, which are fractions), so practice would hardly change. Theory would: a function could go from negative to positive without crossing zero ( on the fractions has no zero), bisection could chase a root that isn't there, and the theorems of calculus (that a continuous function on a closed interval reaches a maximum, that limits exist) would fail. The reals are what make those guarantees true; fractions are what we compute with. Constructive mathematicians build analysis using only what can be computed, and get much of it back, at the cost of some classical theorems.
What if every real number could be computed?
Reason it through, then open
They can't: there are countably many programs and uncountably many reals. But suppose we restricted mathematics to computable reals. Arithmetic would still work, and so would most numbers anyone has met (, , ). But even then, no program can decide in general whether two computable reals are equal, because that might need infinitely many digits to be checked. This is why numerical software always compares with a tolerance, and why computer algebra systems sometimes answer "unknown".
Where the boundary is
| Aspect | Rational numbers | Irrational numbers |
|---|---|---|
| Written as | with whole | No fraction; a symbol (, ) or an infinite decimal |
| Decimal | Ends or repeats | Never ends, never repeats |
| Examples | , 0.125, , | , , , , |
| How many | Countably many | Uncountably many |
| Share of the line | Total length zero | Everything else |
| In a computer | Exactly (fraction types), or nearly (floats) | Only approximately |
Derive it
Why every nest of shrinking intervals of decimals pins down exactly one decimal (a sketch of completeness).
- Take intervals whose widths shrink to zero, such as the bisection intervals for .
- For each number of decimal places , the widths eventually fall below . After that, all the intervals agree on the first decimal places of their points (allowing for the 0.4999… = 0.5 ambiguity, which only affects numbers that end).
- Define a decimal by taking, for each , the th digit that the late intervals agree on. This is an infinite decimal, so it's a real number.
- lies in every interval: if it were outside , it would differ from that interval's points by some fixed amount, but by step 2 it agrees with later (smaller) intervals' points to any number of places.
- There can't be two such numbers : they'd differ by some fixed amount, and once the widths are smaller than that, no interval contains both. So exactly one real number lies in all the intervals. In the fractions, step 3 can produce a non-repeating decimal, which is no fraction: the gap.
How sure are we?
| Claim | How it's known | Where from |
|---|---|---|
| is irrational | Theorem | The parity proof; also from unique factorisation |
| is a whole number or irrational | Theorem | Unique factorisation (ch05) |
| and are irrational, and transcendental | Theorem | Lambert 1761, Euler 1737; Lindemann 1882, Hermite 1873 |
| The real numbers are uncountable | Theorem | Cantor's diagonal argument (1891; first proof 1874) |
| Nested shrinking intervals contain exactly one real | Theorem, or axiom | A defining property of the reals; derived above from decimals |
| Whether is irrational | Active research | Unknown |
| The continuum hypothesis | Theorem (independence) | Neither provable nor disprovable from the usual axioms (Gödel 1940, Cohen 1963) |
| A double's spacing near 1 is | Convention | IEEE 754 binary64 format |
Still open
Basic questions about famous numbers remain open: whether , , or Euler's constant are irrational; whether 's digits are normal (every block of digits appearing equally often in the long run). Mathematicians also disagree, philosophically rather than technically, about whether the uncountable real line "exists" or is a useful idealisation: constructivists accept only numbers that can be computed, and classical mathematics accepts them all.
What would change your mind? The chapter treats the real numbers as the right model of the line. If physics showed that space and time are fundamentally discrete at tiny scales (some theories propose it), the real line would remain a superb approximation, as continuous models of fluids are despite atoms, but it would be a model of the world rather than a description of it.
Recall
How does the proof that √2 is irrational go?
If √2 = p/q in lowest terms, p² = 2q² makes p even, then q even: a contradiction.
When is √n rational?
Only when n is a perfect square; otherwise it's irrational (unique factorisation).
What property do the reals have that the fractions don't?
Completeness: nested shrinking intervals always contain exactly one number.
Which can be listed: the fractions or the reals?
The fractions (they're countable); Cantor's diagonal shows the reals can't be.
What is a double-precision float, as a number?
A fraction m / 2^k with a 53-bit m: one of finitely many points on the line.
Who proved π irrational, and when?
Johann Lambert, in 1761.
Reflect
Be honest with yourself; this stays in your browser. Anything you can't tick yet is what to revisit.