betaFeedback

WorksMathematics

A quadratic lower bound for intervals in the Hales–Jewett theorem

Abstract

A combinatorial line in [m]n[m]^n is qq-fold if its wildcard set, the set of coordinates that vary along the line, is a union of at most qq intervals of consecutive coordinates. Let I(m,r)I(m,r) be the least qq such that, for nn large, every rr-coloring of [m]n[m]^n has a monochromatic qq-fold line. We show that I(m,2)>(m−3)2/128I(m,2)>(m-3)^2/128 for every m≥3m\ge3, so I(m,r)≥I(m,2)I(m,r)\ge I(m,2) grows at least quadratically in mm for every r≥2r\ge2. This answers Question 3.1 of Conlon and Kamčev, who asked whether some m≥4m\ge4, r≥2r\ge2 and c>1c>1 admit rr-colorings of [m]n[m]^n with no monochromatic line whose wildcard set is a union of at most crcr intervals: m=18m=18, r=2r=2 and any 1<c<3/21<c<3/2 do, for every nn. For m=3m=3 the value is known, rr or r−1r-1, by work of Conlon and Kamčev, Leader and Räty, and Kamčev and Spiegel; Kamčev and Spiegel noted that r−1r-1 is the best explicit lower bound the known methods give, and Shelah's proof of the Hales–Jewett theorem gives the upper bound HJ(m−1,r)\mathrm{HJ}(m-1,r). To rule out lines with at most QQ intervals, we color xx by the parity of ⌊S(x)/(32Q)⌋\lfloor S(x)/(32Q)\rfloor, where S(x)S(x) is the sum of the squared differences of consecutive letters of the word 0x0x. Along such a line, SS is a quadratic in the free letter whose values rise through a whole interval of length 32Q32Q in smaller steps, so the line meets both colors. This coloring theorem is proved in Lean from the definitions; the step to I(m,r)I(m,r) 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 m,n≥1m,n \ge1 let [m]n[m]^n be the set of words of length nn over the alphabet [m][m]. We take [m]={0,1,…,m−1}[m] = \{0,1,\ldots,m-1\}; relabeling the letters does not change the quantity I(m,r)I(m,r) defined below, while the coloring we construct uses the letters as integers. A root is a word w∈([m]∪{∗})nw \in([m] \cup\{\ast\})^n with at least one ∗\ast, its wildcard set is W={i:wi=∗}W = \{i : w_i = \ast\}, and for a letter tt the word w(t)w(t) replaces every ∗\ast by tt. The combinatorial line of ww is {w(0),…,w(m−1)}\{w(0),\ldots,w(m-1)\}. For example, the root w=∗2∗∗w = \ast2\ast\ast over [5][5] has wildcard set {1,3,4}\{1,3,4\}, and w(3)=3233w(3) = 3233. The Hales–Jewett theorem [3] says that for all mm and rr, if nn is large then every rr-coloring of [m]n[m]^n has a monochromatic combinatorial line; the least such nn is HJ⁡(m,r)\operatorname{HJ}(m,r).

A run of a root is a maximal interval of positions contained in WW. The line of ww is qq-fold if ww has at most qq runs, that is, if its wildcard set is a union of at most qq intervals; the root ∗2∗∗\ast2\ast\ast above has two runs, so its line is qq-fold for every q≥2q \ge2. Following Kamčev and Spiegel [2 Section 3], let I(m,r)I(m,r) be the least qq such that, for all sufficiently large nn, every rr-coloring of [m]n[m]^n contains a monochromatic qq-fold line. Since wildcard sets are nonempty, I(m,r)≥1I(m,r) \ge1. For x∈[m]nx \in[m]^n put x0=0x_0=0 and

S(x)=∑i=1n(xi−xi−1)2,χB(x)=⌊S(x)B⌋ mod 2.S(x)=\sum_{i=1}^{n}(x_i-x_{i-1})^2,\qquad\chi_B(x)=\left\lfloor\frac{S(x)}{B}\right\rfloor\bmod2.

So S(x)S(x) is the sum of the squared jumps between consecutive letters of xx, starting from a letter 0 placed before position 1; for example, S(3233)=32+12+12+02=11S(3233)=3^2+1^2+1^2+0^2=11. The nonnegative integers split into blocks [kB,(k+1)B)[kB,(k+1)B) of length BB, and χB\chi_B colors xx by the parity of the block containing S(x)S(x), 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 I(m,r)≤HJ⁡(m−1,r)I(m,r)\le\operatorname{HJ}(m-1,r). For alphabets of size at least four they asked, as Question 3.1 of the arXiv version of [1]:

do there exist m≥4m\ge4, r≥2r\ge2 and c>1c>1 such that there are rr-colorings of [m]n[m]^n “containing no monochromatic combinatorial line whose wildcard set is the union of at most crcr intervals”?

Main results

Theorem 1. Let Q≥1Q\ge1 and K≥0K\ge0 be integers with K2≥32QK^2\ge32Q (for example K=⌈32Q⌉K=\lceil\sqrt{32Q}\rceil), and let m≥2K+2m\ge2K+2. For every n≥1n\ge1, the 22-coloring χ32Q\chi_{32Q} of [m]n[m]^n has no monochromatic QQ-fold combinatorial line.

Corollary 2. Let Q≥1Q\ge1 be an integer. If m≥2⌈32Q⌉+2m\ge2\lceil\sqrt{32Q}\rceil+2 then I(m,2)≥Q+1I(m,2)\ge Q+1. Consequently I(m,2)>(m−3)2/128I(m,2)>(m-3)^2/128 for every m≥3m\ge3, and I(m,r)≥I(m,2)I(m,r)\ge I(m,2) for every r≥2r\ge2, so I(m,r)→∞I(m,r)\to\infty as m→∞m\to\infty for each fixed rr.

Corollary 3. For every nn, the coloring χ64\chi_{64} of [18]n[18]^n has no monochromatic 22-fold combinatorial line. Hence m=18m=18, r=2r=2 and any cc with 1<c<3/21<c<3/2 answer Question 3.1 positively. More generally, for every r≥2r\ge2 and c>1c>1, every m≥2⌈32⌊cr⌋⌉+2m\ge2\lceil\sqrt{32\lfloor cr\rfloor}\rceil+2 has, for every nn, an rr-coloring of [m]n[m]^n with no monochromatic ⌊cr⌋\lfloor cr\rfloor-fold line, that is, none whose wildcard set is a union of at most crcr intervals.

Theorem 1, and the statement that for every QQ some alphabet size mm admits, for every nn, a 22-coloring of [m]n[m]^n with no monochromatic QQ-fold line, are proved in Lean from the definitions (§ 3). The step from them to I(m,r)I(m,r) is the short argument proving Corollary 2.

Background and prior work

Conlon and Kamčev’s Theorem 1.1 states that for any nn and any odd r>1r>1 there is an rr-coloring of [3]n[3]^n “containing no monochromatic combinatorial line whose wildcard set is the union of fewer than rr intervals” [1]; with Shelah’s bound this gives I(3,r)=rI(3,r)=r for odd rr. Leader and Räty [4 Theorem 2] proved that for nn sufficiently large every 22-coloring of [3]n[3]^n has a monochromatic line whose wildcard set (their “active coordinate set”) is an interval, disproving a conjecture of Conlon and Kamčev; that is, I(3,2)=1I(3,2)=1. Kamčev and Spiegel [2 Theorem 2] proved that for even rr and nn large every rr-coloring of [3]n[3]^n has a monochromatic line whose wildcard set “is a union of at most r−1r-1 intervals,” which with Conlon and Kamčev’s coloring gives I(3,r)=r−1I(3,r)=r-1 for even rr. 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 max⁡{I(m−1,r),I(m,r−1)}≤I(m,r)≤HJ⁡(m−1,r)\max\{I(m-1,r),I(m,r-1)\}\le I(m,r)\le\operatorname{HJ}(m-1,r), the first of which gives I(m,r)≥I(3,r)I(m,r)\ge I(3,r) for m≥3m \ge3, adding: “In particular, r−1r-1 is the best explicit lower bound that the present methods can give on I(m,r)I(m,r), 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 χB\chi_B is not of that kind, since SS depends on adjacent pairs of letters.

Corollary 2 gives I(m,r)≥max⁡{I(3,r),⌊(m−3)2/128⌋+1}I(m,r) \ge\max\{I(3,r), \lfloor(m-3)^2/128 \rfloor+1\}, a lower bound growing quadratically in mm that exceeds the previous one whenever (m−3)2≥128r(m-3)^2 \ge128r, and Corollary 3 answers Question 3.1 as stated. The natural stronger form of Question 3.1, whether I(m,r)≥crI(m,r) \ge cr for one fixed mm and all rr, remains open, as do Question 3.2 of [1], the upper-bound half of Question 19, and the true order of I(m,2)I(m,2).

Proof overview

A root with qq runs touches at most 2q2q fixed letters across a run boundary, and only those boundary terms of SS depend on the free letter tt. So S(w(t))=C+∑c∈N(t−c)2S(w(t)) = C + \sum_{c\in N}(t-c)^2 for a constant CC and a multiset NN of between qq and 2q2q letters: a parabola in tt whose leading coefficient is at most 2Q2Q. On one side of its vertex, the alphabet offers K+1K+1 consecutive letters along which this parabola rises by at least K2≥32QK^2 \ge32Q in total, and up to the first letter at which it has risen by 32Q32Q every step is smaller than 32Q32Q (below 22Q22Q). A sequence that climbs by at least one block length in steps of at most one block length must enter the next block of χ32Q\chi_{32Q}, 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 SS 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 ww be a root with q≥1q \ge1 runs. There are an integer CC and a multiset NN of letters in [m][m], of size AA with q≤A≤2qq \le A \le2q, such that S(w(t))=C+∑c∈N(t−c)2S(w(t)) = C + \sum_{c\in N}(t-c)^2 for every t∈[m]t \in[m].

Proof. Put w0=0w_0=0 and consider the term (xi−xi−1)2(x_i-x_{i-1})^2 of S(w(t))S(w(t)) for 1≤i≤n1 \le i \le n. If neither ii nor i−1i-1 is in WW, the term does not depend on tt; this includes i=1∉Wi=1 \notin W, since position 0 is the letter 0. If both are in WW, the term is (t−t)2=0(t-t)^2=0. If i∈Wi \in W and i−1∉Wi-1 \notin W, then ii is the first position of a run and the term is (t−wi−1)2(t-w_{i-1})^2. If i∉Wi \notin W and i−1∈Wi-1 \in W, then i−1i-1 is the last position of a run and the term is (t−wi)2(t-w_i)^2. Every run has one first position and at most one following position, so the boundary letters form a multiset NN of size between qq and 2q2q, and CC is the sum of the constant terms.

Lemma 2 (crossing a block). Let B≥1B \ge1 and let v0≤v1≤⋯≤vJv_0 \le v_1 \le\cdots\le v_J be nonnegative integers with vi+1−vi≤Bv_{i+1}-v_i \le B for every ii and vJ−v0≥Bv_J-v_0 \ge B. Then ⌊v0/B⌋\lfloor v_0/B \rfloor and ⌊vi/B⌋\lfloor v_i/B \rfloor have different parities for some ii.

Proof. Let k=⌊v0/B⌋k=\lfloor v_0/B \rfloor. Since vJ≥v0+B≥(k+1)Bv_J \ge v_0+B \ge(k+1)B, there is a least i≥1i \ge1 with vi≥(k+1)Bv_i \ge(k+1)B. Then vi−1<(k+1)Bv_{i-1} < (k+1)B, so vi≤vi−1+B<(k+2)Bv_i \le v_{i-1}+B < (k+2)B and ⌊vi/B⌋=k+1\lfloor v_i/B \rfloor=k+1.

Lemma 3 (a parabola leaves every block). Let Q≥1Q \ge1 and K≥0K \ge0 be integers with K2≥BK^2 \ge B, where B=32QB=32Q, and let m≥2K+2m \ge2K+2. Let NN be a multiset of AA letters in [m][m] with 1≤A≤2Q1 \le A \le2Q, and let f(t)=∑c∈N(t−c)2f(t)=\sum_{c\in N}(t-c)^2. Then there are distinct letters t0,…,tJ∈[m]t_0,\ldots,t_J \in[m] with J≥1J \ge1 such that f(t0)≤f(t1)≤⋯≤f(tJ)f(t_0) \le f(t_1) \le\cdots\le f(t_J), each increment f(ti+1)−f(ti)f(t_{i+1})-f(t_i) is at most BB, and f(tJ)−f(t0)≥Bf(t_J)-f(t_0) \ge B.

Proof. Write s=∑c∈Ncs = \sum_{c \in N} c, so f(t)=At2−2st+∑c∈Nc2f(t) = At^2 - 2st + \sum_{c \in N} c^2 with vertex s/As/A and 0≤s≤A(m−1)0 \le s \le A(m-1). Since f(m−1−t)f(m-1-t) is the same kind of polynomial for the multiset {m−1−c:c∈N}\{m-1-c : c \in N\}, we may assume 2s≤A(m−1)2s \le A(m-1), so that s/A≤(m−1)/2s/A \le(m-1)/2. Let t0=⌈s/A⌉t_0 = \lceil s/A\rceil and ti=t0+it_i = t_0+i. Then t0≤⌈(m−1)/2⌉t_0 \le\lceil(m-1)/2\rceil, so ti≤m−1t_i \le m-1 for i≤⌊(m−1)/2⌋i \le\lfloor(m-1)/2\rfloor, and ⌊(m−1)/2⌋≥K\lfloor(m-1)/2\rfloor\ge K because m≥2K+2m \ge2K+2. With di=ti−s/Ad_i = t_i-s/A, which satisfies i≤di<i+1i \le d_i < i+1,

f(ti+1)−f(ti)=A((di+1)2−di2)=A(2di+1)∈[A(2i+1),A(2i+3)).f(t_{i+1})-f(t_i)=A\left((d_i+1)^2-d_i^2\right)=A(2d_i+1)\in[A(2i+1),A(2i+3)).

Summing the lower bound gives f(tj)−f(t0)≥Aj2f(t_j)-f(t_0)\ge Aj^2, so f(tK)−f(t0)≥AK2≥Bf(t_K)-f(t_0)\ge AK^2\ge B. Let J≥1J\ge1 be least with f(tJ)−f(t0)≥Bf(t_J)-f(t_0)\ge B. By minimality A(J−1)2≤f(tJ−1)−f(t0)<BA(J-1)^2\le f(t_{J-1})-f(t_0)<B, so J−1<B/AJ-1<\sqrt{B/A}. Each increment up to tJt_J is then less than

A(2(J−1)+3)<2AB+3A≤22Q⋅32Q+6Q=22Q<B.A(2(J-1)+3)<2\sqrt{AB}+3A\le2\sqrt{2Q\cdot32Q}+6Q=22Q<B.

Proof of Theorem 1. Let ww be a root with qq runs, 1≤q≤Q1\le q\le Q. By Lemma 1, S(w(t))=C+f(t)S(w(t))=C+f(t), where ff is as in Lemma 3 with 1≤A≤2q≤2Q1\le A\le2q\le2Q. Lemma 3 gives letters t0,…,tJt_0,\ldots,t_J along which vi=S(w(ti))=C+f(ti)v_i=S(w(t_i))=C+f(t_i) satisfies the hypotheses of Lemma 2 with B=32QB=32Q. Hence χ32Q(w(t0))≠χ32Q(w(ti))\chi_{32Q}(w(t_0))\ne\chi_{32Q}(w(t_i)) for some ii, and the line of ww is not monochromatic.

Proof of Corollary 2. With K=⌈32Q⌉K=\lceil\sqrt{32Q}\rceil, Theorem 1 gives, for every nn, a 2-coloring of [m]n[m]^n with no monochromatic QQ-fold line, and hence none that is qq-fold for any q≤Qq\le Q, since a qq-fold line is QQ-fold. So no q≤Qq\le Q meets the definition of I(m,2)I(m,2), and I(m,2)≥Q+1I(m,2)\ge Q+1. For m≥3m\ge3 let k=⌊(m−2)/2⌋≥(m−3)/2k=\lfloor(m-2)/2\rfloor\ge(m-3)/2 and Q=⌊k2/32⌋Q=\lfloor k^2/32\rfloor. If Q≥1Q\ge1, then ⌈32Q⌉≤k\lceil\sqrt{32Q}\rceil\le k and m≥2k+2m\ge2k+2, so I(m,2)≥Q+1>k2/32≥(m−3)2/128I(m,2)\ge Q+1>k^2/32\ge(m-3)^2/128. If Q=0Q=0, then k2<32k^2<32, so (m−3)2≤4k2<128(m-3)^2\le4k^2<128 and I(m,2)≥1>(m−3)2/128I(m,2)\ge1>(m-3)^2/128, since wildcard sets are nonempty. Finally, a 2-coloring is an rr-coloring, so I(m,r)≥I(m,2)I(m,r)\ge I(m,2).

Proof of Corollary 3. Take Q=2Q=2 and K=8K=8 in Theorem 1: K2=64=32QK^2=64=32Q and 2K+2=182K+2=18. If 1<c<3/21<c<3/2 then 2<cr<32<cr<3, so a union of at most crcr intervals is a union of at most two. For general rr and cc, take Q=⌊cr⌋≥2Q=\lfloor cr\rfloor\ge2 and K=⌈32Q⌉K=\lceil\sqrt{32Q}\rceil, and use the 2-coloring χ32Q\chi_{32Q} as an rr-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 QQ some mm admits, for every nn, a 2-coloring of [m]n[m]^n with no monochromatic QQ-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 K≥0K \ge0 as in Theorem 1. Letters are Fin m, that is {0,…,m−1}\{0,\ldots,m-1\}, and positions are Fin n, numbered from 0 rather than 1. A root is a map Fin n → Option (Fin m) with none for ∗\ast, and the hypothesis ∃i, w i=none\exists i,\ w\ i = \mathrm{none} says that the wildcard set is nonempty. point w t is w(t)w(t). runs w counts the wildcard positions that are first or follow a letter, which is the number of runs. S x is ∑i(xi−xi−1)2\sum_i (x_i-x_{i-1})^2 over the integers, with the letter 0 before the first position, and colour B x is decide ((S x / B) % 2 = 1); since S(x)≥0S(x) \ge0, 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 I(m,r)I(m,r), 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 I(m,r)I(m,r) 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. [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. [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. [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. [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. [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. [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. [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. [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.

Paper details

vlnc:W_ahq7syer
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

AI models (from OpenAI and Anthropic)

View statement
Looking for related papers…
Contents