{
  "id": "1263",
  "ident": "NS.01263",
  "slug": "erdos-190",
  "title": "Erdős Problem 190",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $H(k)$ be the smallest $N$ such that in any finite colouring of $\\{1,\\ldots,N\\}$ (into\nany number of colours) there is always either a monochromatic $k$-term arithmetic progression\nor a rainbow arithmetic progression (i.e. all elements are different colours). Estimate\n$H(k)$. Is it true that $H(k)^{1/k}/k\\to\\infty$ as $k\\to\\infty$?\n\nThe question was answered affirmatively in [Ba26] (22 April 2026), which gave the first\npublicly available proof, with $H(k)\\geq k^{(2-o(1))k}$.  The subsequent work [FoHu26]\n(1 June 2026) describes [Ba26] as independent work that also resolves the problem, and\nobtains $H(k)\\geq k^{(1-o(1))k\\log k}$.\n\nThe statement is formalised without assuming the existence of $H(k)$: for every $C$, every\ncanonical $N$ exceeds $(Ck)^k$ for all large $k$. Given the existence of $H(k)$ this is\nequivalent to $H(k)^{1/k}/k\\to\\infty$ (see `erdos_190.variants.H`).\n\nThe formal proof (Lean 4 / Mathlib v4.33.0, following [Ba26]) is registered in\nthe Palomar registry as PALOMAR-2026-09-15-000003.  A bridge deriving this exact statement\n(with the definitions above) from the registered proof is available at\n[jbaelaw/erdos190-fc-bridge](https://github.com/jbaelaw/erdos190-fc-bridge).",
  "subjects": [
    "math.CO",
    "math.NT",
    "msc:05",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos190.erdos_190",
  "statement_lean": "theorem erdos_190 :\n    ∀ C : ℕ, ∀ᶠ k in atTop, ∀ N, IsCanonical N k → (C * k) ^ k < N",
  "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 190\n\n*References:*\n- [erdosproblems.com/190](https://www.erdosproblems.com/190)\n- [ErGr79] P. Erdős and R. L. Graham, *Old and new problems and results in combinatorial\n  number theory: van der Waerden's theorem and related topics*, Enseign. Math. (2) 25 (1979),\n  325–344 (p. 333).\n- [ErGr80] P. Erdős and R. L. Graham, *Old and New Problems and Results in Combinatorial\n  Number Theory*, Monogr. Enseign. Math. 28 (1980), p. 17.\n- [Ba26] J. H. Bae, *A resolution of Erdős Problem #190 via Erdős–Lovász, BCT, and\n  Baker–Harman–Pintz*, arXiv:2604.20588 (22 April 2026).\n- [FoHu26] J. Fox and Z. Hunter, *Three-color van der Waerden numbers grow\n  super-exponentially*, arXiv:2606.02541 (1 June 2026).\n-/\n\n@[expose] public section\n\nopen Filter\n\nnamespace Erdos190\n\n/-- `N` is *canonical* for `k` if every colouring of $\\{1, \\ldots, N\\}$ contains a `k`-term\narithmetic progression which is either monochromatic or rainbow (its terms receive pairwise\ndistinct colours). Colours are taken in `ℕ`; since only the finitely many values on\n$\\{1, \\ldots, N\\}$ matter, this covers colourings into any number of colours. -/\ndef IsCanonical (N k : ℕ) : Prop :=\n  ∀ c : ℕ → ℕ, ∃ S ⊆ Set.Icc 1 N, S.IsAPOfLength k ∧ ((∃ γ, ∀ n ∈ S, c n = γ) ∨ S.InjOn c)\n\n/-- The canonical van der Waerden number $H(k)$: the least `N` which is canonical for `k`\n(`0` if there is none). -/\nnoncomputable def H (k : ℕ) : ℕ := sInf {N | IsCanonical N k}\n\n/-- Any two distinct points form a $2$-term progression which is monochromatic or rainbow, so\n$\\{1, 2\\}$ is canonical for $k = 2$. -/\n@[category test, AMS 5 11]\ntheorem isCanonical_two_two : IsCanonical 2 2 := by\n  intro c\n  refine ⟨{1, 2}, ?_, by exact_mod_cast Nat.isAPOfLength_pair (by norm_num : 1 < 2), ?_⟩\n  · rintro x (rfl | rfl) <;> simp\n  · by_cases h : c 1 = c 2\n    · exact Or.inl ⟨c 1, by rintro n (rfl | rfl) <;> simp [h]⟩\n    · refine Or.inr ?_\n      rintro x (rfl | rfl) y (rfl | rfl) hxy <;> simp_all\n\n/-- $\\{1\\}$ contains no $2$-term arithmetic progression, so it is not canonical for $k = 2$. -/\n@[category test, AMS 5 11]\ntheorem not_isCanonical_one_two : ¬ IsCanonical 1 2 := by\n  intro h\n  obtain ⟨S, hS, ⟨a, d, hcard, -⟩, -⟩ := h id\n  have h1 : S.encard ≤ 1 := by\n    calc S.encard ≤ (Set.Icc 1 1 : Set ℕ).encard := Set.encard_le_encard hS\n      _ = 1 := by simp\n  have h2 : S.encard = 2 := by exact_mod_cast hcard\n  rw [h2] at h1\n  exact absurd h1 (by decide)\n\n/-- $H(2) = 2$. -/\n@[category test, AMS 5 11]\ntheorem H_two : H 2 = 2 := by\n  apply le_antisymm (Nat.sInf_le isCanonical_two_two)\n  refine le_csInf ⟨2, isCanonical_two_two⟩ fun N hN => ?_\n  by_contra hlt\n  interval_cases N\n  · obtain ⟨S, hS, ⟨a, d, hcard, -⟩, -⟩ := hN id\n    have : S = ∅ := by\n      ext x; simp only [Set.mem_empty_iff_false, iff_false]; intro hx; simpa using hS hx\n    subst this\n    simp at hcard\n  · exact not_isCanonical_one_two hN\n\n/--\nLet $H(k)$ be the smallest $N$ such that in any finite colouring of $\\{1,\\ldots,N\\}$ (into\nany number of colours) there is always either a monochromatic $k$-term arithmetic progression\nor a rainbow arithmetic progression (i.e. all elements are different colours). Estimate\n$H(k)$. Is it true that $H(k)^{1/k}/k\\to\\infty$ as $k\\to\\infty$?\n\nThe question was answered affirmatively in [Ba26] (22 April 2026), which gave the first\npublicly available proof, with $H(k)\\geq k^{(2-o(1))k}$.  The subsequent work [FoHu26]\n(1 June 2026) describes [Ba26] as independent work that also resolves the problem, and\nobtains $H(k)\\geq k^{(1-o(1))k\\log k}$.\n\nThe statement is formalised without assuming the existence of $H(k)$: for every $C$, every\ncanonical $N$ exceeds $(Ck)^k$ for all large $k$. Given the existence of $H(k)$ this is\nequivalent to $H(k)^{1/k}/k\\to\\infty$ (see `erdos_190.variants.H`).\n\nThe formal proof (Lean 4 / Mathlib v4.33.0, following [Ba26]) is registered in\nthe Palomar registry as PALOMAR-2026-09-15-000003.  A bridge deriving this exact statement\n(with the definitions above) from the registered proof is available at\n[jbaelaw/erdos190-fc-bridge](https://github.com/jbaelaw/erdos190-fc-bridge).\n-/\n@[category research solved, question, AMS 5 11, formal_proof using lean4 at\n  \"https://palomar-registry.org/entry.html?id=PALOMAR-2026-09-15-000003\"]\ntheorem erdos_190 :\n    ∀ C : ℕ, ∀ᶠ k in atTop, ∀ N, IsCanonical N k → (C * k) ^ k < N := by\n  sorry\n\n/-- The same statement in terms of $H(k)$, assuming that a canonical `N` exists for every `k`\n(the Erdős–Graham theorem, via Szemerédi's theorem). -/\n@[category research solved, question, AMS 5 11, formal_proof using lean4 at\n  \"https://palomar-registry.org/entry.html?id=PALOMAR-2026-09-15-000003\"]\ntheorem erdos_190.variants.H :\n    (∀ k, {N | IsCanonical N k}.Nonempty) →\n      ∀ C : ℕ, ∀ᶠ k in atTop, (C * k) ^ k < H k := by\n  sorry\n\nend Erdos190\n",
  "statement_hash": "c241762bfed68379bbeea555711f7b35ae90eb6613146ec433b23b0ccfbfc51f",
  "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."
}