The integers 1 to 2187 drawn as a grid of 81 columns and 27 rows, with the members of the greedy progression-free set 1, 2, 4, 5, 10, 11, 13, 14, ... marked as pale squares, which form a self-similar pattern
Unit 15 · Advanced + Ramsey Theory · 85 min

Ramsey Theory in the Integers

Schur, van der Waerden, Szemerédi, and the progressions of primes
Image: Own rendering

Schur's theorem that every finite colouring of the integers contains a monochromatic solution of x + y = z, proved from Ramsey's theorem on graphs, and van der Waerden's theorem on monochromatic arithmetic progressions, with W(2, 3) = 9 proved by hand and the colour focusing argument in full. Then density instead of colouring: Roth's theorem, Behrend's construction, the 2023 bound of Kelley and Meka, Szemerédi's theorem, the Green and Tao theorem that the primes contain progressions of every length, and Rado's criterion for a single equation.

Preview: the beginning of the unit

Ramsey’s theorem of Unit 13 says that a large enough complete graph with two-coloured edges contains a monochromatic triangle, whatever the colouring. This unit asks the same kind of question about the integers. Colour the numbers \(1, 2, 3, \ldots\) with finitely many colours, as irregularly as you like; must one colour still contain two numbers together with their sum, or three numbers that are equally spaced? Both answers are yes, and the first is a corollary of Ramsey’s theorem itself. The unit proves these two theorems, found by Schur in 1916 and by van der Waerden in 1927, works out the smallest cases by hand, and then changes the question from colours to sizes: how large can a set of integers be if no three of its members are equally spaced? There the reader meets the theorems of Roth and Szemerédi, the progressions of primes found by Green and Tao, and a breakthrough of 2023; these are stated with the shape of their ideas, since their proofs need tools beyond this masterclass.

1 Schur’s theorem

An \(r\)-colouring of the set \(\{1, \ldots, N\}\) assigns to each of its numbers one of \(r\) colours; it is the same thing as a partition of the set into \(r\) classes, some of which may be empty. A set of numbers is monochromatic if all of them have the same colour, and a solution of the equation \(x + y = z\) is monochromatic if \(x\), \(y\), and \(z\) have the same colour. The numbers \(x\) and \(y\) may be equal, so \(1 + 1 = 2\) counts as a solution. A set that contains no solution at all, such as the odd numbers, since two odd numbers add up to an even number, is called sum-free, and a colouring without a monochromatic solution is one whose colour classes are all sum-free.

With two colours a reader can try to avoid a monochromatic solution for a while: give 1 and 4 one colour and 2 and 3 the other, and the numbers 1 to 4 are safely coloured. The number 5 cannot be added, as the worked example below shows. Issai Schur (1875-1941) proved in 1916 that this failure is not an accident of small numbers.

Schur’s own proof worked directly with the integers. The proof below, which is the standard one today, deduces the theorem from Ramsey’s theorem on graphs by a trick that turns numbers into edges. It needs Ramsey’s theorem for \(r\) colours, and Unit 13 proved it for two colours and computed \(R(3, 3, 3) = 17\) for three; the first paragraph of the proof shows that the general case follows from the two-colour case in a few lines.

Figure 1 shows the construction for two colours and \(N = 5\). The proof gives more than existence: it says that \(N = R_r(3) - 1\) numbers always suffice, so every two-colouring of \(\{1, \ldots, 5\}\) contains a monochromatic solution. Together with the colouring of 1 to 4 above, this settles the two-colour case completely.

The full unit is part of the program

Want to see a complete unit first? Unit 3, Euler Tours and Hamilton Cycles, is free to read.