Arithmetic and NumbersDeeper

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 2 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 2 as 577408; 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: 2, π, 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: p2=2q2 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 2 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 (t2−2 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 (π, e, 2). 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 pq with whole p,q No fraction; a symbol (2, π) or an infinite decimal
Decimal Ends or repeats Never ends, never repeats
Examples 227, 0.125, 0.3―, −4 2, 53, π, e, log102
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).

  1. Take intervals [a1,b1]⊇[a2,b2]⊇⋯ whose widths shrink to zero, such as the bisection intervals for 2.
  2. For each number of decimal places k, the widths eventually fall below 10−k. After that, all the intervals agree on the first k decimal places of their points (allowing for the 0.4999… = 0.5 ambiguity, which only affects numbers that end).
  3. Define a decimal c by taking, for each k, the kth digit that the late intervals agree on. This is an infinite decimal, so it's a real number.
  4. c lies in every interval: if it were outside [an,bn], 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.
  5. There can't be two such numbers c≠d: 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
2 is irrational Theorem The parity proof; also from unique factorisation
n is a whole number or irrational Theorem Unique factorisation (ch05)
π and e 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 π+e 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 2−52 Convention IEEE 754 binary64 format

Still open

Basic questions about famous numbers remain open: whether π+e, πe, πe 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.