Logic

Countable, and everywhere

The numbers a polynomial can catch arrive in finite batches, so they can be listed. They are also in every interval, however short. Being listable turns out to say nothing whatever about being sparse.

Worth reading first: The arithmetic that loses subtraction · Which roots refuse to be fractions.

A listing is a very restrictive-sounding thing to have. Every member gets a place, the places run first, second, third, and there is no room for anything else — so a listable collection ought to be thin.

It is not, and the cleanest demonstration is a collection that is both listable and present in every interval however short: the numbers that are roots of polynomials with whole-number coefficients.

The algebraic numbers, arriving in finite batches. A stretch of the number line with the roots of integer polynomials marked, each at the height of the smallest polynomial that catches it, and the count of polynomials at each height.
Fig. 1 The algebraic numbers arriving in finite batches. A polynomial’s height is its degree plus the sizes of its coefficients, only finitely many polynomials have any given height, and each has finitely many roots — so the roots can be swept up height by height, which is a listing. Every batch drawn is enumerated rather than counted from a formula, and the landmarks the enumeration has to contain are checked for.

The listing, built rather than asserted

That the algebraic numbers are countable is usually established in one sentence — each is named by a finite tuple of whole numbers, and those are countable — and the sentence is correct and hides the construction. Here is the construction.

Give a polynomial adxd++a0a_d x^d + \dots + a_0 the height d+ad++a0d + |a_d| + \dots + |a_0|. Then:

  • only finitely many polynomials have any given height, because the degree is bounded by the height and each coefficient is bounded by it too;
  • a polynomial with a rational root has that root among the divisors of its constant term, so the low batches can be checked by hand;
  • each polynomial of degree dd has at most dd real roots;
  • so only finitely many numbers are roots of a polynomial of a given height.

Sweep the heights in order — 22, then 33, then 44 — listing at each height the roots that have not already appeared. Every algebraic number appears, because it is a root of some whole-number polynomial and that polynomial has some height. The list is a listing.

The figure runs exactly that: it generates every integer polynomial of each height, finds its real roots by bisection on sign changes, and reports the batch. The counts under the drawing are the lengths of lists the figure built, not values looked up.

And it is in every interval

Now the other half. Between any two real numbers, however close, there is a fraction — and every fraction p/qp/q is a root of qxpqx - p, which is a whole-number polynomial. The Stern–Brocot tree produces all of them and is the cleanest evidence that they leave no gap. So the algebraic numbers are dense: every interval of the line, of any length, contains infinitely many of them.

That is the whole of the second half and it takes two lines. Its consequence is worth stating slowly:

A listable collection can be present in every interval. So being listable says nothing about being sparse, nothing about occupying little of the line, and nothing about there being gaps.

The picture makes it visible: the marks on the line thicken as the heights are swept, and every stretch of the axis fills. If the sweep were continued the marks would come arbitrarily close to every point drawn, and the whole of that is compatible with the collection being a list.

The algebraic numbers, arriving in finite batches. A stretch of the number line with the roots of integer polynomials marked, each at the height of the smallest polynomial that catches it, and the count of polynomials at each height.
Fig. 2 One height further. The batches grow — a larger height admits more polynomials, and the figure asserts that they do — and the new roots land between the old ones rather than beyond them. Density is what that infilling is, and it is compatible with every root having a place on one list.

Two properties that keep being confused

The result separates a pair of ideas that everyday language runs together, and the separation is the point of the essay.

Countable is about how many: the members can be paired with the whole numbers.

Dense is about where: every interval contains one.

Of measure zero is about how much: the members can be covered by intervals of total length as small as desired.

Nowhere dense is about how sparse: the closure has an empty interior.

The algebraic numbers are countable, dense, and of measure zero. The Cantor set is uncountable, nowhere dense, and of measure zero. The irrationals are uncountable, dense, and of full measure. Every combination that is not outright contradictory occurs, and no two of the four notions determine a third.

That the algebraic numbers have measure zero follows from countability directly, which is the one implication in the list that does hold: cover the nn-th member by an interval of length ε/2n\varepsilon/2^n and the total is ε\varepsilon. So countable does imply measure zero — and implies nothing else on the list.

The tower of sizes, and the gap in it. A ladder of infinite sizes, each the number of sub-collections of the one below, with the space between the first two marked as the one no proof decides.
Fig. 3 Where the two collections sit relative to each other. The sizes above the first, with the gap between them that no proof closes: the algebraic numbers are on the bottom rung, the same size as the whole numbers, and the line is on the next one. Uncountable is not one thing that the algebraic numbers fail to be; it is a rung, and what the middle of this picture contains cannot be settled from the axioms — which is drawn as an open gap rather than filled in.

The third notion, which is neither of the first two

Countability, density and measure are three questions and there is a fourth, of a different kind, that this collection also answers unexpectedly.

A set is meagre when it is a countable union of sets that are nowhere dense. Baire’s theorem says the line is not meagre, so a meagre set is small in a sense that has nothing to do with length: it is small in the sense of being a countable union of things with no interior.

The algebraic numbers are meagre — each single point is nowhere dense, and they are a countable union of points. So they are small by measure and small by category, and dense all the same.

That gives a fourth combination and a fourth independence. There are sets of full measure that are meagre, and sets of measure zero that are not meagre, and each of the two notions of smallness has cases the other misses. Nothing about a set’s size in one sense determines its size in another, which is the general form of what this rung is about.

Where the notions do agree is on the specific fact that started all of this: a countable set is small by every one of the four measures. Countable implies measure zero, implies meagre, implies not the whole line. What it does not imply is anything about where the members are, and density is entirely a question about where.

A countable field, closed under everything

The collection has more structure than a listing suggests, and the structure is worth stating because it is not obvious and because it is proved by the tower law rather than by anything about enumeration.

The algebraic numbers are closed under addition, subtraction, multiplication and division. The sum of two of them is one; so is the product; so is the reciprocal of a non-zero one. They form a field.

That is not obvious from the definition. Given that α\alpha satisfies a polynomial of degree mm and β\beta one of degree nn, there is no evident polynomial satisfied by α+β\alpha + \beta — and writing one down directly means eliminating between two equations, which is a page of resultants. The dimension argument avoids all of it. The field Q(α,β)\mathbb{Q}(\alpha, \beta) has degree at most mnmn over the rationals, because degrees multiply along a tower; every element of a finite extension is algebraic, since its powers cannot be independent forever in a finite-dimensional space; and α+β\alpha + \beta is an element of it. Three lines, no elimination, and the degree bound comes out as a by-product.

For 2+3\sqrt2 + \sqrt3 that bound is four, and the quartic it satisfies has degree exactly four. The enumeration by height is consistent with this: adding two numbers of small height gives one of bounded height, so the field operations move about within the listing in a controlled way rather than escaping it.

There is a stronger closure still. The roots of a polynomial whose coefficients are themselves algebraic are algebraic — so the collection is algebraically closed, the same property the complex numbers have. It is the algebraic closure of the rationals, and it is the smallest field with that property.

That produces an object worth pausing on: a countable, algebraically closed field, dense in the line, in which every polynomial factors completely into linear pieces. The fundamental theorem of algebra is usually met as a statement about the complex numbers, which are uncountable; the same statement holds inside this countable subfield, and the uncountability of the complex numbers is doing none of the work.

So the algebraic numbers answer the essay’s question twice over. They are countable and dense, which is the surprise the enumeration was built for; and they are countable and complete for algebra, which says that everything polynomial equations can reach fits inside a list. Whatever the transcendental numbers are for, they are not for solving equations — every equation with whole-number coefficients has all its solutions among the countably many, and the overwhelming majority of the line is untouched by any of them.

The consequence Cantor drew

Put the listing beside the fact that the reals cannot be listed and something falls out immediately: there are real numbers that are roots of no whole-number polynomial.

That is the counting proof of the existence of transcendental numbers, from 1874, and it is thirty years later than Liouville’s construction and enormously stronger. Liouville exhibits one number and shows it is transcendental. Cantor shows that the transcendental numbers cannot be listed while the algebraic ones can, so the transcendentals are the overwhelming majority — and names none of them.

The strength and the weakness are the same feature. The argument sees only sizes, so it reaches a conclusion about all numbers at once and cannot say anything about any particular one. Whether π\pi is transcendental is not a question this argument can even approach; it was settled eight years later by machinery with no counting in it.

A number picked at random from an interval is transcendental with probability one, which is the measure-theoretic reading of the same fact, and is the sentence that makes clear how unusual the numbers anybody can name really are.

What the batches actually contain

It is worth looking at the low heights by hand, because the enumeration’s first few stages are recognisable and the recognition is what makes the construction believable.

Height 2 allows degree one with the coefficients summing in size to one: xx, giving 00; and ±x±1\pm x \pm 1 is height three, not two. So the first batch is a single number.

Height 3 allows x±1x \pm 1 and 2x2x and ±2x\pm 2x: the roots are ±1\pm 1 and 00 again. New: ±1\pm 1.

Height 4 brings 2x±12x \pm 1 and x21x^2 - 1 and their relatives, so ±1/2\pm 1/2 and ±2\pm 2 arrive.

Height 5 is where it becomes interesting: x22x^2 - 2 has height five, so ±2\pm\sqrt2 appears — the first number in the enumeration that is not a fraction, and the one the bottom of the irrationality ladder is about.

Height 6 brings x2x1x^2 - x - 1, so the golden ratio arrives, along with ±3\pm\sqrt3, ±1/3\pm 1/3 and ±3\pm 3.

The figure asserts that each of those landmarks is among the roots its enumeration found, rather than trusting that a search over polynomials will happen to produce the numbers everybody expects. That is the site’s standing check on a computed list: a listing that has silently lost a case looks exactly like one that has not, and naming the members it must contain is the only thing that would notice.

Two squares of side 70 inside one of side 99. Two overlapping squares laid into opposite corners of a larger one, with the overlap and the two uncovered corners marked.
Fig. 4 The fifth batch’s first arrival, argued rather than listed. 2\sqrt2 enters the enumeration at height five because x22x^2 - 2 has degree two and coefficients summing in size to three — and that it is not already in an earlier batch is the descent, which is a proof rather than a search.

Two enumerations of the same collection

The height sweep is one listing of the algebraic numbers and it is not the only one, and comparing two makes clear how little a listing determines.

By height, as above: sweep the polynomials in order of degree plus coefficient size, and take the new roots at each stage. The batches are natural and the arithmetic of the enumeration is the arithmetic of the numbers.

By the grid, as the rung below does it: a polynomial is a finite tuple of whole numbers, finite tuples of whole numbers can be listed by a zig-zag, and a root is a polynomial together with an index. The batches are meaningless and the construction is shorter.

Both are listings and they visit the numbers in wildly different orders. Nothing distinguishes them from the point of view of countability, which is exactly the point: countability is the existence of some pairing, and a collection with one pairing has infinitely many.

That is why the question which is the natural listing? has no answer, and why the height version was introduced above as a construction rather than as the definition. The height matters because it measures complexity, not because it enumerates; the enumeration would work just as well with a measure that meant nothing.

The fractions, put in a line. A grid whose rows are numerators and columns denominators, walked by antidiagonals, with the place each fraction takes in the list written in its cell and the repeats left blank.
Fig. 5 The other route: finite tuples of whole numbers walked by antidiagonals, which lists every polynomial and therefore every algebraic number. It is shorter than the height sweep, its batches say nothing about the numbers, and it establishes exactly the same fact — which is what makes the choice of enumeration a matter of what else is wanted from it.

The listing is not an order

There is a trap in the construction and it is worth naming, because it is where the intuition that listable means sparse actually comes from.

The list built above is not increasing. Height 22 contributes ±1\pm 1 and 00; height 33 contributes ±2\pm 2 and ±1/2\pm 1/2; the list jumps about the line rather than sweeping along it, and it must, because the algebraic numbers in their own order have no first member above zero and no next member after any of them.

So a listing imposes an order that has nothing to do with the line’s order, and every intuition about a list — that it starts somewhere, that it proceeds, that its members can be visited in turn along the axis — is an intuition about the wrong order.

A listing is a pairing, not a walk. The rung below makes the same point about the fractions, where the listing is a walk over a grid and the fractions come out in an order no reader would call natural. Here the disorder is more visible because the members are marked on the line and the sweep colours them by batch: the colours interleave completely.

A square's worth of points, on a line. A unit square with a point marked, the decimal places of its two coordinates woven into one number, and that number marked on a line beneath.
Fig. 6 A pairing with no walk in it at all, so that the two ideas come apart completely. Weaving the decimal places of 0.31415920.3141592 and 0.27182810.2718281 alternately makes 0.321741185298210.32174118529821, and taking every other place back out recovers both — so the square injects into the line and the line into the square, which is a pairing of two collections nobody would call similarly arranged. It is not continuous, either: 0.20000000.2000000 and 0.19999990.1999999 are one number written two ways, and their images land 0.0910.091 apart. A pairing answers a question about size and nothing about order.

Where the height ordering is genuinely useful

The height is not only a device for proving countability. It is the standard way to do arithmetic with algebraic numbers, and it is worth saying so because it makes the construction less artificial than it looks.

Every algebraic number has a unique monic minimal polynomial with rational coefficients, and the height of that polynomial is a measure of the number’s complexity. Bounding the height bounds the number of candidates, which turns many questions into finite searches: whether a given number is a root of some polynomial of bounded degree and coefficient size is decidable by exhaustion, and the algorithms that identify a decimal as an algebraic number work exactly that way.

The same measure appears in Liouville’s theorem as the source of the constant. How well a fraction can approach an algebraic number depends on the polynomial’s coefficients, and the height is the natural way to bound them — so the enumeration used here for counting is the same quantity used there for approximation.

A device introduced to make a set countable turns out to be its natural complexity measure. That is not a coincidence: an enumeration by increasing complexity is what a listing of a structured set almost always is, and the useful part is the complexity rather than the listing.

What the picture cannot show

The figure draws finitely many heights and the argument needs all of them. It cannot show density, which is a statement about every interval, and the visible thickening is suggestive rather than evidential — a collection could thicken in the drawn window and leave a gap outside it.

It cannot show the numbers that are missing, which is the whole conclusion. Between any two marks there are continuum-many transcendental numbers and the drawing has no way of indicating them; the picture of almost every number is a blank stretch of axis, and a blank stretch of axis looks exactly like an unpopulated one.

And the roots are found by bisection on sign changes, which finds real roots and misses complex ones. The algebraic numbers include roots that are not on the line at all, and the figure is a window on the real ones — a restriction it has to make and one that hides most of the collection.

Where the ladder goes next

Above: the size beyond the continuum, and the question of what if anything sits between it and the countable. That is the last rung and it is the one where the answer turns out not to exist.

One debt. Every algebraic number here is real, and the complex ones are the majority — a degree-dd polynomial has dd roots in the plane and may have none on the line. The picture of the algebraic numbers as a countable dense subset of the plane, with the same height enumeration, is a better figure than this one and is not drawn.

What listability turned out not to mean

A collection can be countable and still meet every interval, so being listable is not being sparse.

The confusion the result dispels is a real one and it comes from finite intuition: a finite set has gaps, and a list feels like a finite set that keeps going. It is not. A listing is a pairing with the whole numbers, it destroys the order the collection had, and the resulting arrangement can be spread through the line as thoroughly as anything is — while still being, from the point of view of counting, as small as an infinite collection can be.

What links here

Computed from the collection, not written here: the essays that point at this one.

Reads more easily once this is understood

Essays that name this one as worth reading first.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A dashed tag is an object no other essay names yet.

Algebraic numberBaire categoryCountabilityDensityEnumerationHeightListingMeasure zeroOrderingTranscendence