{
  "id": "3389",
  "ident": "NS.03389",
  "slug": "erdos-847",
  "title": "Erdős Problem 847",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $A \\subset \\mathbb{N}$ be an infinite set for which there exists some $\\epsilon > 0$ such that\nin any subset of $A$ of size $n$ there is a subset of size at least $\\epsilon n$ which contains no\nthree-term arithmetic progression.\n\nIs it true that $A$ is the union of a finite number of sets which contain no three-term arithmetic\nprogression?\n\nA negative answer was given by Reiher, Rödl, and Sales [RRS24], who proved that, for any\n$0<\\mu<1/2$, there exists $A\\subseteq \\mathbb{N}$ such that every finite colouring of $A$ contains\na three-term arithmetic progression, and yet every subset of $A$ of size $n$ contains a subset of\nsize $\\geq \\mu n$ without a three-term arithmetic progression.",
  "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": "Erdos847.erdos_847",
  "statement_lean": "theorem erdos_847 : ¬ ∀ (A : Set ℕ), Infinite A → HasFew3APs A →\n    ∃ n, ∃ (S : Fin n → Set ℕ), (∀ i, ThreeAPFree (S i)) ∧ A = ⋃ i : Fin n, S i",
  "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 847\n\n*References:*\n- [erdosproblems.com/847](https://www.erdosproblems.com/847)\n- [RRS24] Reiher, Christian and R\\\"odl, Vojt\\v ech and Sales, Marcelo, Colouring versus density in integers and {H}ales-{J}ewett cubes. J. Lond. Math. Soc. (2) (2024)\n  [arXiv:2311.08556](https://arxiv.org/abs/2311.08556)\n-/\n\n@[expose] public section\n\nnamespace Erdos847\n\n/--\n`HasFew3APs A` means that $A \\subset \\mathbb{N}$ is a set for which there exists some $\\epsilon > 0$ such that\nin any subset of $A$ of size $n$ there is a subset of size at least $\\epsilon n$ which contains no\nthree-term arithmetic progression.\n-/\ndef HasFew3APs (A : Set ℕ) := ∃ (ε : ℝ), ε > 0 ∧ ∀ (B : Set ℕ), B ⊆ A → Finite B →\n  ∃ (C : Set ℕ), C ⊆ B ∧ C.ncard ≥ ε * B.ncard ∧ ThreeAPFree C\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $A \\subset \\mathbb{N}$ be an infinite set for which there exists some $\\epsilon > 0$ such that\nin any subset of $A$ of size $n$ there is a subset of size at least $\\epsilon n$ which contains no\nthree-term arithmetic progression.\n\nIs it true that $A$ is the union of a finite number of sets which contain no three-term arithmetic\nprogression?\n\nA negative answer was given by Reiher, Rödl, and Sales [RRS24], who proved that, for any\n$0<\\mu<1/2$, there exists $A\\subseteq \\mathbb{N}$ such that every finite colouring of $A$ contains\na three-term arithmetic progression, and yet every subset of $A$ of size $n$ contains a subset of\nsize $\\geq \\mu n$ without a three-term arithmetic progression.\n-/\n@[category research solved, question, AMS 11,\n  formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/dfe2d78128b493c572cf525b1b8edf4897fb7664/src/latest/ErdosProblems/Erdos847.lean#L113\"]\ntheorem erdos_847 : ¬ ∀ (A : Set ℕ), Infinite A → HasFew3APs A →\n    ∃ n, ∃ (S : Fin n → Set ℕ), (∀ i, ThreeAPFree (S i)) ∧ A = ⋃ i : Fin n, S i := by\n  sorry\n\nend Erdos847\n",
  "statement_hash": "c631afa25e171f7f3c03114765955ad8625e655668681afe3b3809f761d3a71b",
  "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."
}