QUANTAVANE

Theorem · Quantavane

GW(r;3,4) = 53 and GW(3;3,5) = 293: exact Gallai–van der Waerden numbers and a residue theorem for every row

53 for three, four and five colours, and r for six colours or more, determined by Quantavane; the values for r = 3, 4 and 5 are proved in Lean and registered in Palomar (PALOMAR-2026-11-13-000005), and the residue theorem behind the lower bounds is registered as PALOMAR-2026-11-12-000003.

The result and how it was checked

Colour 1, 2, ..., n with r colours, using all of them. How long can the list be with no three evenly spaced numbers in three different colours and no l evenly spaced numbers in one colour? This number, GW(r;3,l), was known only for l = 3 (Mao, Ozeki, Robertson and Wang, 2023; Yuan Si, 2026). We determined the next two rows completely: GW(r;3,4) = 53 for r = 3, 4 and 5; GW(3;3,5) = 293 and GW(4;3,5) = GW(5;3,5) = 294; and GW(r;3,l) = r for every r of 6 or more in both rows. The six values for r = 3, 4 and 5 are proved in Lean: Lean writes out the SAT formula itself, and the solver’s proof that the formula has no solution is checked by Lean’s own verified checker; the proof of GW(r;3,4) = 53 for r = 3, 4 and 5 is registered in Palomar as PALOMAR-2026-11-13-000005. The cases with 6 or more colours rest on solver proofs checked by our own strict checker. Then a theorem behind it, for every l: if p is a prime with p = 1 (mod 8) and no l consecutive numbers below p share their quadratic character, colouring by quadratic residues, with the multiples of p coloured apart, gives GW(r;3,l) ≥ (l−1)p + 2; this theorem is proved in Lean for every such prime, using only Lean’s standard axioms. The largest such primes, found exhaustively with Weil’s bound, give 53, 294, 967, 3,704, 6,169 and 19,018 for l = 4 to 9; the first two are exact, and we conjecture the formula is exact for every l. This theorem is registered in Palomar, the registry of machine-checked proofs, as PALOMAR-2026-11-12-000003, after its mechanical verification and an editorial review with no requested changes.

palomar-registry.org, entry PALOMAR-2026-11-12-000003

Questions

What is the Gallai–van der Waerden number GW(r;3,4)?

53 for three, four and five colours, and r for six colours or more, determined by Quantavane; the values for r = 3, 4 and 5 are proved in Lean and registered in Palomar (PALOMAR-2026-11-13-000005), and the residue theorem behind the lower bounds is registered as PALOMAR-2026-11-12-000003.

More theorems and formulas

Every accomplishment