Monochromatic solutions, Rado numbers and polynomial van der Waerden numbers
DefinitionKumthekarGasarch2026_Defsrado-numbersramsey-theoryvan-der-waerden
A 2-colouring is .
HasMonoSol a P N f: there are with , , , and .rado2 a P: the least such that every has a monochromatic solution in (Definition 1.1;sInf, junk value if no such ).HasMonoDiff Q N f: there are and with and .vdW2 Q: the least such that every has such a pair in (Definition 1.3).
Definition code
import Mathlib
/-!
# Definitions for Kumthekar and Gasarch (2026), "Exact Rado Numbers for Polynomial Difference
Equations" (arXiv:2611.40205)
A 2-colouring is a function `f : ℕ → Bool`; only its values on `[1, N]` matter. `P : ℕ → ℕ` plays
the role of the integer-valued polynomial `P(z)` of the paper.
-/
namespace KumthekarGasarch2026
/-- A colouring `f` of `[1, N]` has a monochromatic solution of `x - y = a P(z)`. -/
def HasMonoSol (a : ℕ) (P : ℕ → ℕ) (N : ℕ) (f : ℕ → Bool) : Prop :=
∃ x y z, 1 ≤ y ∧ 1 ≤ z ∧ x ≤ N ∧ z ≤ N ∧ x = y + a * P z ∧ f x = f y ∧ f y = f z
/-- `R₂(x - y = a P(z))`: the least `N` such that every 2-colouring of `[1, N]` has a monochromatic
solution. -/
noncomputable def rado2 (a : ℕ) (P : ℕ → ℕ) : ℕ := sInf {N | ∀ f : ℕ → Bool, HasMonoSol a P N f}
/-- A colouring `f` of `[1, N]` has two integers `u < v` of the same colour with `v - u = Q t`,
`t ≥ 1`. -/
def HasMonoDiff (Q : ℕ → ℕ) (N : ℕ) (f : ℕ → Bool) : Prop :=
∃ u v t, 1 ≤ u ∧ u < v ∧ v ≤ N ∧ 1 ≤ t ∧ v = u + Q t ∧ f u = f v
/-- The 2-colour polynomial van der Waerden number `W(Q(z), 2)` (Definition 1.3). -/
noncomputable def vdW2 (Q : ℕ → ℕ) : ℕ := sInf {N | ∀ f : ℕ → Bool, HasMonoDiff Q N f}
end KumthekarGasarch2026
Source
I. Kumthekar and W. Gasarch, Exact Rado Numbers for Polynomial Difference Equations, arXiv:2611.40205v1 (30 Nov 2026), https://arxiv.org/abs/2611.40205 pp. 1-2, Definitions 1.1 and 1.3
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Defs. Namespace KumthekarGasarch2026. Colourings are arbitrary ; is an arbitrary function (no polynomial structure is imposed anywhere).
HasMonoSol a P N f. Since , all three of lie in , so only matters. need not be distinct.rado2 a P, i.e. the least such that every 2-colouring of has a monochromatic solution of .HasMonoDiff Q N f. is NOT bounded by (only is forced).vdW2 Q: least such that every 2-colouring of has a monochromatic pair at difference , .
Both sets are upward closed in (a solution in is one in , ), so sInf is a genuine threshold when the set is nonempty. is never in either set.
Flags:
- Junk value: if no works,
sInf ∅ = 0. E.g.vdW2 Q = 0when every , , is odd (parity colouring) or ;rado2would be if the equation is not 2-regular. An upper boundrado2 … ≤ Bis then trivially satisfied by the junk . - Degenerate equation: if , or for some with , then gives a trivial monochromatic solution (e.g. : , so
rado2 0 P = 1). The paper's notion may require nontrivial solutions; the Lean one does not. In all theorems below this is harmless because and is strictly increasing with , so for . HasMonoSollets coincide with or ; this matches the usual Rado-number convention (no distinctness).vdW2docstring says ; that is enforced, so is implicitly required for a witness.- is a general function, not an integer-valued polynomial; every theorem is therefore stated for a broader class than 'polynomial' (see per-theorem flags).
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.