{
  "id": "1597",
  "ident": "NS.01597",
  "slug": "erdos-3",
  "title": "Erdős Problem 3",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "If $A \\subset \\mathbb{N}$ has $\\sum_{n \\in A}\\frac 1 n = \\infty$, then must $A$ contain arbitrarily\nlong arithmetic progressions?\n\nYes. This was proved by an internal OpenAI model in September 2026 [OAI26]; see the linked Lean\nproof.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos3.erdos_3",
  "statement_lean": "theorem erdos_3 : ∀ A : Set ℕ,\n    (¬ Summable fun a : A ↦ 1 / (a : ℝ)) →\n    ∃ᶠ (k : ℕ) in Filter.atTop, ∃ S ⊆ A, S.IsAPOfLength k",
  "challenge_source": "/-\nCopyright 2025 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 3\n\n*References:*\n- [erdosproblems.com/3](https://www.erdosproblems.com/3)\n- [BlSi20] Bloom, Thomas F. and Sisask, Olof, *Breaking the logarithmic barrier in Roth's theorem\n  on arithmetic progressions*. arXiv:2007.03528 (2020).\n- [Go01] Gowers, W. T., *A new proof of Szemerédi's theorem*. Geom. Funct. Anal. (2001), 465-588.\n- [GrTa17] Green, Ben and Tao, Terence, *New bounds for Szemerédi's theorem, III: a\n  polylogarithmic bound for $r_4(N)$*. Mathematika (2017).\n- [KeMe23] Kelley, Zander and Meka, Raghu, *Strong bounds for 3-progressions*. 2023 IEEE 64th\n  Annual Symposium on Foundations of Computer Science (FOCS) (2023).\n- [LSS24] Leng, James, Sah, Ashwin and Sawhney, Mehtaab, *Improved bounds for Szemerédi's\n  theorem*. arXiv:2402.17995 (2024).\n- [OAI26] OpenAI, *Quasipolynomial Bounds for Arithmetic Progressions*. OpenAI Math Release\n  preprint (2026).\n  https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/Quasipolynomial-Bounds-for-Arithmetic-Progressions-September-23-2026/paper.pdf\n-/\n\n@[expose] public section\n\nopen Asymptotics Filter\n\nnamespace Erdos3\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIf $A \\subset \\mathbb{N}$ has $\\sum_{n \\in A}\\frac 1 n = \\infty$, then must $A$ contain arbitrarily\nlong arithmetic progressions?\n\nYes. This was proved by an internal OpenAI model in September 2026 [OAI26]; see the linked Lean\nproof.\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at\n  \"https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Combinatorics/Progressions/Results/Conclusions.lean#L38\"]\ntheorem erdos_3 : ∀ A : Set ℕ,\n    (¬ Summable fun a : A ↦ 1 / (a : ℝ)) →\n    ∃ᶠ (k : ℕ) in Filter.atTop, ∃ S ⊆ A, S.IsAPOfLength k := by\n  sorry\n\n/--\n$r_k(N)$ is the largest size of a subset of $\\{1, \\dots, N\\}$ that does not contain a non-trivial\n$k$-term arithmetic progression.\n-/\nnoncomputable abbrev r := Set.IsAPOfLengthFree.maxCard\n\n/--\nThere are $\\beta > 0$ and $c > 0$ such that $r_3(N) \\ll N \\exp(-c (\\log N)^{\\beta})$.\n\nProved by Kelley and Meka [KeMe23].\n-/\n@[category research solved, AMS 11]\ntheorem erdos_3.variants.kelley_meka : ∃ β > (0 : ℝ), ∃ c > (0 : ℝ),\n    (fun N ↦ (r 3 N : ℝ)) ≪ fun N : ℕ ↦ (N : ℝ) * Real.exp (-c * Real.log N ^ β) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nThe case of $3$-term progressions: if $A \\subset \\mathbb{N}$ has $\\sum_{n \\in A}\\frac 1 n = \\infty$,\nthen $A$ contains a non-trivial $3$-term arithmetic progression.\n\nProved by Bloom and Sisask [BlSi20].\n-/\n@[category research solved, AMS 11,\n  conditional formal_proof using lean4 at\n    \"https://github.com/wilsonwu-ai/sundai-erdos-3/blob/8a58287a16558bf1e708eaa2d0f7cba4c86566a3/lean/Erdos3ThreeCase.lean#L96-L97\"\n    assuming erdos_3.variants.kelley_meka]\ntheorem erdos_3.variants.three : ∀ A : Set ℕ,\n    (¬ Summable fun a : A ↦ 1 / (a : ℝ)) → ∃ S ⊆ A, S.IsAPOfLength 3 := by\n  sorry\n\n/--\nThere is $c > 0$ such that $r_4(N) \\ll N (\\log N)^{-c}$.\n\nProved by Green and Tao [GrTa17].\n-/\n@[category research solved, AMS 11]\ntheorem erdos_3.variants.green_tao : ∃ c > (0 : ℝ),\n    (fun N ↦ (r 4 N : ℝ)) ≪ fun N : ℕ ↦ (N : ℝ) * Real.log N ^ (-c) := by\n  sorry\n\n/--\nFor every $k \\geq 3$ there is $c_k > 0$ such that $r_k(N) \\ll_k N (\\log \\log N)^{-c_k}$.\n\nProved by Gowers [Go01].\n-/\n@[category research solved, AMS 11]\ntheorem erdos_3.variants.gowers (k : ℕ) (hk : 3 ≤ k) : ∃ c > (0 : ℝ),\n    (fun N ↦ (r k N : ℝ)) ≪ fun N : ℕ ↦ (N : ℝ) * Real.log (Real.log N) ^ (-c) := by\n  sorry\n\n/--\nFor every $k \\geq 5$ there is $c_k > 0$ such that $r_k(N) \\ll_k N \\exp(-(\\log \\log N)^{c_k})$.\n\nProved by Leng, Sah and Sawhney [LSS24].\n-/\n@[category research solved, AMS 11]\ntheorem erdos_3.variants.leng_sah_sawhney (k : ℕ) (hk : 5 ≤ k) : ∃ c > (0 : ℝ),\n    (fun N ↦ (r k N : ℝ)) ≪\n      fun N : ℕ ↦ (N : ℝ) * Real.exp (-Real.log (Real.log N) ^ c) := by\n  sorry\n\nend Erdos3\n",
  "statement_hash": "ed3a9d58e44f5ac42d0678afb03051b483682474e83bb74508e95c44faf442f4",
  "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."
}