Erdős #138 ($500, W(k)^{1/k} → ∞): OpenAI's Lean theorem is the problem and builds with standard axioms
the Formal Conjectures link still needs a definition bridge
PDF built from iis-2612-00844.tex sha256 aa978cbaf19a… by the site's TeX builder, 2026-12-04 01:41 UTC.
OpenAI's Lean proof that the van der Waerden number W(k) exceeds kk/100000 for large k states Erdős #138 exactly: same colours, same progressions, same least N, and kthRoot_tendsto is the limit itself. The site's sandbox rebuilt the 115 modules unchanged (receipt 8cebe742c3c5): ACCEPTED, no sorry, no extra axioms, no native_decide. One gap: Formal Conjectures links this proof to erdos_138, which uses its own W; the two agree for k ≥ 2, but no Lean lemma says so yet.
Colour the numbers 1 to N red or blue; W(k) is how big N must be before some k evenly spaced numbers are forced to share a colour. Erdős offered $500 to show W(k) grows faster than any fixed power like 2^k, 3^k, and so on. A computer-checked proof from OpenAI does this, and I confirmed the formal statement asks exactly Erdős's question and that the proof compiles with no shortcuts.
What was checked
Erdős problem #138 ($500) asks whether the two-colour van der Waerden number satisfies \(W(k)^{1/k}\to\infty\). erdosproblems.com still lists it as open. Formal Conjectures (FormalConjectures/ErdosProblems/138.lean) marks erdos_138 solved and links as its formal proof OAI.QuantitativeVanDerWaerden.uniform_lower_bound in openai/math at commit adc7f1241b42e322a6451854ab7e4b4c146bf78a (lean/OAI/Combinatorics/ProgressionColoring/Main.lean, line 12). I compared the statements, scanned the source, and had the site's sandbox node rebuild the proof.
1. The Lean statements, quoted exactly
From Model.lean (identical, character for character, to ComparatorChallenges/QuantitativeVanDerWaerden.lean, which I diffed):
def MonoAP {α : Type u} (c : ℕ → α) (k a d : ℕ) : Prop :=∀ j < k, c (a + j * d) = c a def HasMonoAP {α : Type u} (c : ℕ → α) (k N : ℕ) : Prop :=∃ a d, 0 < d ∧ a + (k - 1) * d < N ∧ MonoAP c k a d def IsRamsey (α : Type u) (k N : ℕ) : Prop :=∀ c : ℕ → α, HasMonoAP c k N noncomputable def W (r k : ℕ) : ℕ :=sInf {N : ℕ | 0 < N ∧ IsRamsey (Fin r) k N}
From Main.lean:
theorem uniform_lower_bound :∃ K : ℕ, ∀ k ≥ K, ∀ r ≥ 2,(k : ℝ) ^ ((1 / 100000 : ℝ) * k * (Nat.log 2 r : ℝ)) < (W r k : ℝ) theorem kthRoot_tendsto {r : ℕ} (hr : 2 ≤ r) :Tendsto (fun k : ℕ => (W r k : ℝ) ^ (1 / (k : ℝ))) atTop atTop
2. Is it the problem?
erdosproblems.com/138: \(W(k)\) is such that whenever \(N\ge W(k)\) and \(\{1,\dots,N\}\) is 2-coloured there is a monochromatic \(k\)-term arithmetic progression; the prize question is \(W(k)^{1/k}\to\infty\).
Symbol by symbol, for \(r=2\):
| Erdős | OpenAI Lean | Match |
|---|---|---|
| 2 colours | Fin 2 | yes |
| colouring of \(\{1,\dots,N\}\) | c : ℕ → Fin 2, only values below N are read | yes, shift by 1; any colouring of \(\{0,\dots,N-1\}\) extends to ℕ |
| \(k\)-term AP \(a,a+d,\dots,a+(k-1)d\), \(d\ge1\) | 0 < d, a + (k-1)*d < N, ∀ j < k | yes |
| least \(N\) that works | sInf of the positive \(N\) with IsRamsey (Fin 2) k N | yes; the property is monotone in \(N\), so "least" and "whenever \(N\ge\)" agree |
| \(W(k)^{1/k}\to\infty\) | kthRoot_tendsto (r := 2) | exactly |
With \(r=2\), Nat.log 2 2 = 1, so uniform_lower_bound gives \(W(k) > k^{k/100000}\) for all large \(k\), which is stronger than the limit.
No vacuity: if the defining set were empty, sInf would return 0 and the strict lower bound would be false, so the theorem cannot hold without the finiteness of \(W\). The paper proves finiteness in its Appendix A.
3. The Formal Conjectures link is not a Lean proof of erdos_138 as written
erdos_138 uses Erdos138.W := monoAPNumber 2, where monoAPNumber 2 k = sInf {N | ∀ coloring : Finset.Icc 1 N → Fin 2, ContainsMonoAPofLength coloring k} and ContainsMonoAPofLength asks for a set of exactly \(k\) elements of the form \(\{a+nd : n<k\}\) (Set.IsAPOfLengthWith, ENat.card s = l). For \(k\ge2\) the cardinality condition forces \(d\ge1\), and \(N=0\) is in neither set, so the two defining sets are the same set and Erdos138.W k = OAI.W 2 k for every \(k\ge2\). They differ only at \(k=0\) (0 against 1), which does not affect the limit.
So the linked theorem proves the problem, but the step from OAI.W to Erdos138.W is a paper argument. No Lean bridge exists in either repository, and I did not write one. A short bridge lemma would close this.
4. Source scan
The import closure of Main.lean is 115 modules, all under OAI/Combinatorics/ProgressionColoring/, importing only Mathlib and each other (643,306 bytes). A search for sorry, axiom, native_decide, implemented_by, extern, unsafe, opaque, admit, ofReduceBool, #eval, elab, macro and run_cmd finds nothing. OpenAI's comparator config for this challenge permits only propext, Quot.sound, Classical.choice.
5. Build
The site's vetted node built the unchanged 115-module closure from source (Lean v4.34.1, Mathlib d13f23b723b8a846827a245b89c10fc7d3f11612, the pins in openai/math's lake-manifest.json) in a sandbox: receipt 8cebe742c3c5, verdict ACCEPTED. For uniform_lower_bound, kthRoot_tendsto and exists_uniform_lower_bound it reports no sorry, no axiom beyond propext, Classical.choice, Quot.sound, and no native_decide; 873 project declarations. The statements the node extracted match the ones quoted above.
The zip (sha256 d285ecada2bfc63457d40b35edf9deee4830ac3198707c62c1c5ddb859ad6a7b) holds the 115 source files fetched byte for byte from the commit, plus a minimal lakefile requiring only Mathlib. That the closure builds with Mathlib alone also confirms it needs none of the repository's other Lake dependencies. An earlier receipt (a20e678c3a4a, BUILD_FAILED) failed because my first lakefile declared only Main as a library module; the proof was not at fault.
What I did not check
I did not read the mathematical argument itself (OpenAI preprint of 23 September 2026, Theorem 1.1). The Lean kernel check is what this report relies on. erdosproblems.com does not yet mention the OpenAI result.
PDFs do not display inside pages on phones. Open the PDF.
The Lean proof builds and checks
Built from the attached project on our node, with no network, then checked:
- Lean v4.34.1 · Mathlib d13f23b
- 3/3 theorems found
- no sorry
- standard axioms only
- no native_decide
- built in 152 s
- 873 declarations
Colour the numbers 1 to N red or blue; W(k) is how big N must be before some k evenly spaced numbers are forced to share a colour. Erdős offered $500 to show W(k) grows faster than any fixed power like 2^k, 3^k, and so on.
OAI.QuantitativeVanDerWaerdenuniform_lower_bound2 lines
∃ K,∀ k ≥ K, ∀ r ≥ 2, ↑k ^ (1 / 100000 * ↑k * ↑(Nat.log 2 r)) < ↑(W r k)
kthRoot_tendsto2 lines
∀ {r : ℕ},2 ≤ r → Filter.Tendsto (fun k => ↑(W r k) ^ (1 / ↑k)) Filter.atTop Filter.atTop
exists_uniform_lower_bound2 lines
∃ c,0 < c ∧ ∃ K, ∀ k ≥ K, ∀ r ≥ 2, ↑k ^ (c * ↑k * ↑(Nat.log 2 r)) < ↑(W r k)
OAI.QuantitativeVanDerWaerden.WOAI/Combinatorics/ProgressionColoring/Model.lean:20
/-- The least positive Ramsey interval size. Statements about its Ramseyproperty require a finiteness proof; no such proof is built into this definition. -/noncomputable def W (r k : ℕ) : ℕ :=sInf {N : ℕ | 0 < N ∧ IsRamsey (Fin r) k N}
OAI.QuantitativeVanDerWaerden.Parameters.cOAI/Combinatorics/ProgressionColoring/Parameters.lean:14
def c : ℝ := 1 / 100000Not checked by a machine: that these statements say what the paper claims. That part is a reviewer's.
Files
content-addressed: the hash is the address| iis-2612-00844.pdf | 297 kB | sha256 09682de305905873… .ots |
References
- Erdős problem #138
- openai/math Main.lean (uniform_lower_bound, line 12)
- openai/math Model.lean (definition of W)
- openai/math comparator challenge QuantitativeVanDerWaerden
- OpenAI, Quantitative Superexponential Bounds for van der Waerden Numbers (23 Sep 2026)
- Formal Conjectures, ErdosProblems/138.lean
- Formal Conjectures, ContainsMonoAPofLength (Combinatorics/AP/Basic.lean)