{
  "id": "2998",
  "ident": "NS.02998",
  "slug": "erdos-721",
  "title": "Erdős Problem 721",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Erdős Problem 721, upper bound: prove that $W(3,k) < \\exp(k^c)$ for some\nconstant $c<1$.\n\nThe first to show that $W(3,k) < \\exp(k^c)$ for some $c<1$ was Schoen [Sc21].\nSource: [erdosproblems.com/721](https://www.erdosproblems.com/721).\nThe exponent is fixed independently of $k$, and the bound holds for all\nsufficiently large $k$.",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos721.erdos_721.upper_bound",
  "statement_lean": "theorem erdos_721.upper_bound : SubexponentialUpperBound",
  "challenge_source": "/-\nCopyright 2026 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Erdős Problem 721\n\n*References:*\n- [erdosproblems.com/721](https://www.erdosproblems.com/721)\n- [Gr22] Green, B., *New lower bounds for van der Waerden numbers*.\n  [arXiv:2102.01543](https://arxiv.org/abs/2102.01543).\n- [Hu22] Hunter, Z., *Improved lower bounds for van der Waerden numbers*.\n  [arXiv:2111.01099](https://arxiv.org/abs/2111.01099).\n- [Sc21] Schoen, T., *A subexponential upper bound for van der Waerden numbers W(3,k)*.\n  [arXiv:2006.02877](https://arxiv.org/abs/2006.02877).\n-/\n\n@[expose] public section\n\nnamespace Erdos721\n\n/-- A nonconstant arithmetic progression of length `n` and color `b` in `[1,N]`.\nOnly positive lengths are used in the research targets. -/\ndef HasColorAP (f : ℕ → Bool) (b : Bool) (n N : ℕ) : Prop :=\n  ∃ a d : ℕ, 1 ≤ a ∧ 0 < d ∧\n    ∀ i : ℕ, i < n → a + i * d ≤ N ∧ f (a + i * d) = b\n\n/-- Every coloring has either a red three-term or a blue `k`-term progression.\nHere `false` denotes red and `true` denotes blue. -/\ndef Forces (N k : ℕ) : Prop :=\n  ∀ f : ℕ → Bool, HasColorAP f false 3 N ∨ HasColorAP f true k N\n\n/-- Enlarging the interval preserves a progression. -/\n@[category API, AMS 5 11]\ntheorem hasColorAP_mono {f : ℕ → Bool} {b : Bool} {n N M : ℕ}\n    (hNM : N ≤ M) (h : HasColorAP f b n N) : HasColorAP f b n M :=\n  match h with\n  | ⟨a, d, ha, hd, hp⟩ =>\n    ⟨a, d, ha, hd, fun i hi =>\n      ⟨Nat.le_trans (hp i hi).1 hNM, (hp i hi).2⟩⟩\n\n/-- Enlarging a forcing interval preserves its forcing property. -/\n@[category API, AMS 5 11]\ntheorem forces_mono {N M k : ℕ} (hNM : N ≤ M) (h : Forces N k) : Forces M k :=\n  fun f => (h f).elim\n    (fun hr => Or.inl (hasColorAP_mono hNM hr))\n    (fun hb => Or.inr (hasColorAP_mono hNM hb))\n\n/-- An eventual upper bound by `exp(k^c)`, for one fixed exponent `0 < c < 1`.\nExistence of a forcing interval is included explicitly. -/\ndef SubexponentialUpperBound : Prop :=\n  ∃ c : ℝ, 0 < c ∧ c < 1 ∧\n    ∃ K : ℕ, 3 ≤ K ∧ ∀ k : ℕ, K ≤ k →\n      ∃ N : ℕ, Forces N k ∧ (N : ℝ) < Real.exp ((k : ℝ) ^ c)\n\n/-- Hunter's eventual lower bound, in a nonforcing-interval formulation.\nThe successor `N + 1` is intentional: failure at `N` means the least forcing\ninteger, when it exists, is at least `N + 1`. The cutoff excludes the\nsmall-input singularities of `log(log k)`. -/\ndef HunterLowerBound : Prop :=\n  ∃ c : ℝ, 0 < c ∧\n    ∃ K : ℕ, 3 ≤ K ∧ ∀ k : ℕ, K ≤ k →\n      ∃ N : ℕ, ¬ Forces N k ∧\n        Real.exp (c * (Real.log (k : ℝ)) ^ (2 : ℕ) /\n          Real.log (Real.log (k : ℝ))) ≤ ((N + 1 : ℕ) : ℝ)\n\n/-- The conjunction of Hunter's lower bound and the subexponential upper bound. -/\ndef BoundsTarget : Prop := HunterLowerBound ∧ SubexponentialUpperBound\n\n/-- Erdős Problem 721, upper bound: prove that $W(3,k) < \\exp(k^c)$ for some\nconstant $c<1$.\n\nThe first to show that $W(3,k) < \\exp(k^c)$ for some $c<1$ was Schoen [Sc21].\nSource: [erdosproblems.com/721](https://www.erdosproblems.com/721).\nThe exponent is fixed independently of $k$, and the bound holds for all\nsufficiently large $k$. -/\n@[category research solved, AMS 5 11]\ntheorem erdos_721.upper_bound : SubexponentialUpperBound := by\n  sorry\n\n/-- Erdős Problem 721, lower bound: Hunter [Hu22] improved this to\n$W(3,k) \\geq \\exp\\left(c\\frac{(\\log k)^2}{\\log\\log k}\\right)$\nfor some constant $c>0$.\n\nSource: [erdosproblems.com/721](https://www.erdosproblems.com/721).\nThis eventual bound uses a nonforcing interval of length $N$ and the\nsuccessor $N+1$ as a lower bound for the least forcing integer. -/\n@[category research solved, AMS 5 11]\ntheorem erdos_721.lower_bound : HunterLowerBound := by\n  sorry\n\nend Erdos721\n",
  "statement_hash": "8e34caa91010b76198120c4116d548b85255f05491f5cbcdbe27aa1327dd9af1",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}