Van der Waerden's theorem, with nine numbers Image: Unbekannt, public domain

Van der Waerden's theorem, with nine numbers

Colour the numbers 1, 2, 5, 6 red and 3, 4, 7, 8 blue. Three numbers in arithmetic progression are three equally spaced numbers, such as 2, 5, 8 or 3, 4, 5. There are 16 such triples in 1 to 8, and none of them is all one colour: 1, 2, 3 has two reds and a blue, 2, 5, 8 has two reds and a blue, 3, 4, 5 has two blues and a red, and so on through the list. Now add the number 9. Whichever colour it gets, a monochromatic triple appears, and no other colouring of 1 to 9 does any better. Nine is the threshold, and mathematicians write W(2,3) = 9.

The proof for nine

A proof that every two-colouring of 1 to 9 contains a monochromatic three-term progression can be done by hand. Among 4, 5, 6 two numbers share a colour, say red (the blue case is the same with the words swapped). If 4 and 5 are red, then 3 and 6 must be blue, so 9 must be red to avoid 3, 6, 9, and 7 must be blue to avoid 5, 7, 9, which with 6 blue forces 8 red to avoid 6, 7, 8, and then 2 is blue to avoid 2, 5, 8, so 1 must be red to avoid 1, 2, 3, and now 1, 5, 9 is red. The cases 5 and 6 red, and 4 and 6 red, run the same way. Unit 15 of the Graph Theory Masterclass writes out all three.

The theorem

Bartel van der Waerden proved in 1927 that the same holds for any number of colours and any length of progression: for every r and k there is a number W(r,k) such that every colouring of 1 to W(r,k) with r colours contains a monochromatic arithmetic progression of k terms. He proved it in Hamburg, at a blackboard, in an afternoon with Emil Artin and Otto Schreier, and wrote an account of that afternoon in 1971. The conjecture was Baudet's, a Dutch mathematician who had died in 1921, and the proof is a double induction on r and k that builds long progressions out of shorter ones in more colours. Unit 15 proves the case of three terms and any number of colours by the argument called colour focusing, and describes the shape of the general proof.

The theorem is a statement in the spirit of Ramsey's: in any colouring, however designed to avoid structure, some structure survives. Its cousin is Schur's theorem of 1916, which says that any colouring of 1 to N with r colours contains numbers x, y, and z of one colour with x + y = z, once N is large enough, and Schur's theorem follows from Ramsey's theorem on graphs in four lines, which Unit 15 gives.

The numbers

The proof gives bounds on W(r,k) so enormous that they cannot be written in ordinary notation, and the true values are tiny by comparison. W(2,3) = 9, as above. W(2,4) = 35, W(2,5) = 178, and W(3,3) = 27 were found by computer searches in the 1970s. W(2,6) = 1132 was found by Michal Kouril and Jerome Paul in 2008, using a SAT solver running for months on special hardware. There the list ends: W(2,7) is unknown, and the best known lower bound is 3,704. Timothy Gowers proved in 2001 that W(r,k) is at most a tower of exponentials of height 5, with 2 at the bottom and r and k in the exponents, which is unimaginably large and still the best general upper bound.

The Schur numbers are S(1) = 1, S(2) = 4, S(3) = 13, S(4) = 44, and S(5) = 160, where S(r) is the largest N such that 1 to N can be r-coloured with no monochromatic x + y = z. The colouring of 1 to 4 for two colours is 1 and 4 red, 2 and 3 blue: 1 + 1 = 2, 1 + 2 = 3, 2 + 2 = 4, 1 + 3 = 4 all mix colours. S(4) = 44 was known in 1965. S(5) = 160 was proved by Marijn Heule in 2017.

A proof of two petabytes

Heule's proof is a computation, and the computation produced a certificate. He encoded the statement that 1 to 161 can be five-coloured with no monochromatic x + y = z as a Boolean satisfiability problem, ran a SAT solver that found it unsatisfiable, and had the solver write down a proof of unsatisfiability in a standard format that an independent, simple program can check line by line. The proof file was about two petabytes, two million gigabytes, and it was checked. The paper describes the encoding and the symmetry breaking that made the search feasible. A year earlier Heule, Oliver Kullmann, and Victor Marek had used the same approach to show that every two-colouring of 1 to 7825 contains a monochromatic Pythagorean triple, a, b, c with a squared + b squared = c squared, with a proof of 200 terabytes that was then the largest in mathematics.

Whether such a thing is a proof is the question raised by the four colour theorem in 1976, with the same answer: it is, if one trusts the checker, and the checker is small. What nobody has is an explanation. The certificate shows that no five-colouring of 1 to 161 avoids a monochromatic sum, and gives no reason why 160 is the number rather than 159 or 161.

Density, not colour

Van der Waerden's theorem says that one colour class, whichever it is, contains a long progression. Erdős and Turán conjectured in 1936 that the reason is size alone: any set containing a fixed positive fraction of the numbers 1 to N contains a progression of length k, once N is large. Klaus Roth proved it for k = 3 in 1953, and Endre Szemerédi proved it for every k in 1975, which earned him the Abel Prize in 2012. Ben Green and Terence Tao proved in 2004 that the primes, whose density tends to 0, contain progressions of every length; the longest known progression of primes has 27 terms. Unit 15 states these results, and its research spotlight is the 2023 theorem of Zander Kelley and Raghu Meka on how large a set without three-term progressions can be. The nine numbers at the top of this post are where that story starts.

Study graph theory properly

The Graph Theory Masterclass: weekly units, quizzes, a final exam, and a certificate.
About the program