WorksMathematics
A quadratic lower bound for intervals in the Hales–Jewett theorem
Abstract
A combinatorial line in is -fold if its wildcard set, the set of coordinates that vary along the line, is a union of at most intervals of consecutive coordinates. Let be the least such that, for large, every -coloring of has a monochromatic -fold line. We show that for every , so grows at least quadratically in for every . This answers Question 3.1 of Conlon and Kamčev, who asked whether some , and admit -colorings of with no monochromatic line whose wildcard set is a union of at most intervals: , and any do, for every . For the value is known, or , by work of Conlon and Kamčev, Leader and Räty, and Kamčev and Spiegel; Kamčev and Spiegel noted that is the best explicit lower bound the known methods give, and Shelah's proof of the Hales–Jewett theorem gives the upper bound . To rule out lines with at most intervals, we color by the parity of , where is the sum of the squared differences of consecutive letters of the word . Along such a line, is a quadratic in the free letter whose values rise through a whole interval of length in smaller steps, so the line meets both colors. This coloring theorem is proved in Lean from the definitions; the step to is a short argument on paper. This work has not yet been reviewed by experts. The proofs, the Lean formalization and the text were produced by AI models, working under the author's direction.
Introduction
For integers let be the set of words of length over the alphabet . We take ; relabeling the letters does not change the quantity defined below, while the coloring we construct uses the letters as integers. A root is a word with at least one , its wildcard set is , and for a letter the word replaces every by . The combinatorial line of is . For example, the root over has wildcard set , and . The Hales–Jewett theorem [3] says that for all and , if is large then every -coloring of has a monochromatic combinatorial line; the least such is .
A run of a root is a maximal interval of positions contained in . The line of is -fold if has at most runs, that is, if its wildcard set is a union of at most intervals; the root above has two runs, so its line is -fold for every . Following Kamčev and Spiegel [2 Section 3], let be the least such that, for all sufficiently large , every -coloring of contains a monochromatic -fold line. Since wildcard sets are nonempty, . For put and
So is the sum of the squared jumps between consecutive letters of , starting from a letter 0 placed before position 1; for example, . The nonnegative integers split into blocks of length , and colors by the parity of the block containing , so consecutive blocks have opposite colors.
Shelah’s proof of the Hales–Jewett theorem [5] finds monochromatic lines with few runs: as Conlon and Kamčev record [1 Section 3], it gives . For alphabets of size at least four they asked, as Question 3.1 of the arXiv version of [1]:
do there exist , and such that there are -colorings of “containing no monochromatic combinatorial line whose wildcard set is the union of at most intervals”?
Main results
Theorem 1. Let and be integers with (for example ), and let . For every , the -coloring of has no monochromatic -fold combinatorial line.
Corollary 2. Let be an integer. If then . Consequently for every , and for every , so as for each fixed .
Corollary 3. For every , the coloring of has no monochromatic -fold combinatorial line. Hence , and any with answer Question 3.1 positively. More generally, for every and , every has, for every , an -coloring of with no monochromatic -fold line, that is, none whose wildcard set is a union of at most intervals.
Theorem 1, and the statement that for every some alphabet size admits, for every , a -coloring of with no monochromatic -fold line, are proved in Lean from the definitions (§ 3). The step from them to is the short argument proving Corollary 2.
Background and prior work
Conlon and Kamčev’s Theorem 1.1 states that for any and any odd there is an -coloring of “containing no monochromatic combinatorial line whose wildcard set is the union of fewer than intervals” [1]; with Shelah’s bound this gives for odd . Leader and Räty [4 Theorem 2] proved that for sufficiently large every -coloring of has a monochromatic line whose wildcard set (their “active coordinate set”) is an interval, disproving a conjecture of Conlon and Kamčev; that is, . Kamčev and Spiegel [2 Theorem 2] proved that for even and large every -coloring of has a monochromatic line whose wildcard set “is a union of at most intervals,” which with Conlon and Kamčev’s coloring gives for even . Conlon and Kamčev added that “even a marginal improvement on either the upper or lower bound would be interesting” [1 Section 3].
Kamčev and Spiegel [2 Section 3] asked, as Question 19, whether one can improve on the bounds , the first of which gives for , adding: “In particular, is the best explicit lower bound that the present methods can give on , which is probably far from the truth.” In 2026 Mouhib restated the question for alphabets of size at least four as open [6 Question 66] (also [7 Question 8.9] and [8 Question 4.21]), noting that “any lower bound requires genuinely asymmetric constructions”: by [6 Proposition 51], colorings invariant under permuting coordinates cannot give one. The coloring is not of that kind, since depends on adjacent pairs of letters.
Corollary 2 gives , a lower bound growing quadratically in that exceeds the previous one whenever , and Corollary 3 answers Question 3.1 as stated. The natural stronger form of Question 3.1, whether for one fixed and all , remains open, as do Question 3.2 of [1], the upper-bound half of Question 19, and the true order of .
Proof overview
A root with runs touches at most fixed letters across a run boundary, and only those boundary terms of depend on the free letter . So for a constant and a multiset of between and letters: a parabola in whose leading coefficient is at most . On one side of its vertex, the alphabet offers consecutive letters along which this parabola rises by at least in total, and up to the first letter at which it has risen by every step is smaller than (below ). A sequence that climbs by at least one block length in steps of at most one block length must enter the next block of , which has the other color. The hard step is to find a coloring whose values along every line are this rigid. Colorings invariant under permuting coordinates cannot work [6 Proposition 51]; because depends on adjacent pairs of letters, only a line’s few run boundaries see the free letter, and this makes its values a parabola.
Proof of Theorem 1
Lemma 1 (values along a line). Let be a root with runs. There are an integer and a multiset of letters in , of size with , such that for every .
Proof. Put and consider the term of for . If neither nor is in , the term does not depend on ; this includes , since position 0 is the letter 0. If both are in , the term is . If and , then is the first position of a run and the term is . If and , then is the last position of a run and the term is . Every run has one first position and at most one following position, so the boundary letters form a multiset of size between and , and is the sum of the constant terms.
Lemma 2 (crossing a block). Let and let be nonnegative integers with for every and . Then and have different parities for some .
Proof. Let . Since , there is a least with . Then , so and .
Lemma 3 (a parabola leaves every block). Let and be integers with , where , and let . Let be a multiset of letters in with , and let . Then there are distinct letters with such that , each increment is at most , and .
Proof. Write , so with vertex and . Since is the same kind of polynomial for the multiset , we may assume , so that . Let and . Then , so for , and because . With , which satisfies ,
Summing the lower bound gives , so . Let be least with . By minimality , so . Each increment up to is then less than
Proof of Theorem 1. Let be a root with runs, . By Lemma 1, , where is as in Lemma 3 with . Lemma 3 gives letters along which satisfies the hypotheses of Lemma 2 with . Hence for some , and the line of is not monochromatic.
Proof of Corollary 2. With , Theorem 1 gives, for every , a 2-coloring of with no monochromatic -fold line, and hence none that is -fold for any , since a -fold line is -fold. So no meets the definition of , and . For let and . If , then and , so . If , then , so and , since wildcard sets are nonempty. Finally, a 2-coloring is an -coloring, so .
Proof of Corollary 3. Take and in Theorem 1: and . If then , so a union of at most intervals is a union of at most two. For general and , take and , and use the 2-coloring as an -coloring.
Remark. The constants are not optimized.
Formal verification
Theorem 1 is proved in Lean 4 with Mathlib as CK18HJ.main : MainStatement, and the statement that for every some admits, for every , a 2-coloring of with no monochromatic -fold line as CK18HJ.unbounded : UnboundedStatement. The two statements read
def MainStatement : Prop :=
∀ Q K m n : ℕ, 1 ≤ Q → 32 * Q ≤ K * K → 2 * K + 2 ≤ m →
∀ w : Fin n → Option (Fin m), (∃ i, w i = none) → runs w ≤ Q →
∃ s t : Fin m, colour (32 * Q) (point w s) ≠ colour (32 * Q) (point w t)
def UnboundedStatement : Prop :=
∀ Q : ℕ, ∃ m : ℕ, ∀ n : ℕ, ∃ c : (Fin n → Fin m) → Bool,
∀ w : Fin n → Option (Fin m), (∃ i, w i = none) → runs w ≤ Q →
∃ s t : Fin m, c (point w s) ≠ c (point w t)
They match the theorem as follows. In MainStatement all four parameters are natural numbers, so as in Theorem 1. Letters are Fin m, that is , and positions are Fin n, numbered from 0 rather than 1. A root is a map Fin n → Option (Fin m) with none for , and the hypothesis says that the wildcard set is nonempty. point w t is . runs w counts the wildcard positions that are first or follow a letter, which is the number of runs. S x is over the integers, with the letter 0 before the first position, and colour B x is decide ((S x / B) % 2 = 1); since , integer division is the floor. The conclusion, two letters of the line with different colors, says that the line is not monochromatic. The step from these statements to the quantity , which is not defined in Lean, is the one-line argument of Corollary 2.
The build also restates both theorems with their full types, checks the examples of the introduction by evaluation in the kernel, and checks that both theorems depend only on the axioms propext, Classical.choice and Quot.sound. The proof uses no compiled evaluation. The Lean files accompany this paper. They pin Lean 4 v4.32.2 and a fixed Mathlib revision; with the Lean toolchain manager elan installed, running lake exe cache get and then lake build in the project’s lean folder downloads Mathlib’s compiled library and checks the proof, the restated statements, the examples and the axioms. The build itself takes under a minute and about 2 GB of memory.
Acknowledgments
The question answered here was posed by David Conlon and Nina Kamčev, and the quantity and the remark on explicit lower bounds are from Nina Kamčev and Christoph Spiegel. Imre Leader and Eero Räty’s theorem shaped the question for larger alphabets, and Younes Mouhib’s 2026 papers and thesis record the question as open and show that symmetric colorings cannot answer it.
References
- [1]D. Conlon and N. Kamčev, Intervals in the Hales–Jewett theorem, European J. Combin. 132 (2026), 104258, doi:10.1016/j.ejc.2025.104258; quotations and the numbering of Question 3.1 follow arXiv:1801.08919v2 (2018). The journal version was revised after that version (its references add [2]), and its wording may differ.DOI
- [2]N. Kamčev and C. Spiegel, Another note on intervals in the Hales–Jewett theorem, Electron. J. Combin. 29(1) (2022), #P1.62, doi:10.37236/9400; quotations and numbering follow this version, while arXiv:1811.04628v1 numbers these results Theorem 1.2 and Question 3.1 and reads “r is the best explicit lower bound”.DOI
- [3]A. W. Hales and R. I. Jewett, Regularity and positional games, Trans. Amer. Math. Soc. 106 (1963), 222–229, doi:10.1090/S0002-9947-1963-0143712-1.DOI
- [4]I. Leader and E. Ráty, A note on intervals in the Hales–Jewett theorem, Electron. J. Combin. 25(3) (2018), #P3.15, doi:10.37236/7664.DOI
- [5]S. Shelah, Primitive recursive bounds for van der Waerden numbers, J. Amer. Math. Soc. 1 (1988), 683–697, doi:10.1090/S0894-0347-1988-0929498-X.DOI
- [6]Y. Mouhib, Lower bounds for the Hales–Jewett numbers via symmetric and one-weight colorings, arXiv:2606.22155v2 (2026).arxiv.org/abs/2606.22155
- [7]Y. Mouhib, One-weight colorings, the symmetric class, and lower bounds for Hales–Jewett numbers, arXiv:2607.02226v1 (2026).arxiv.org/abs/2607.02226
- [8]Y. Mouhib, Improving bounds on Hales–Jewett numbers: symmetric colorings, SAT solvers, line-family variants, and forcing structures, master’s thesis, ETH Zürich (2026), ys-mouhib.github.io/Mouhib_Master_Thesis.pdf.