{
  "id": "1729",
  "ident": "NS.01729",
  "slug": "erdos-332",
  "title": "Erdős Problem 332",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $A\\subseteq \\mathbb{N}$ and $D(A)$ be the set of those numbers which occur infinitely often as\n$a_1 - a_2$ with $a_1, a_2\\in A$. What conditions on $A$ are sufficient to ensure $D(A)$ has bounded\ngaps?\n\nThe sufficient conditions are the unknown `erdos_332.answer`. In order to solve this problem one\nhas to provide what the sufficient conditions are, and proof that they imply the desired condition.\nIf the condition is a solution to the problem is up to human judgement.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/332",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos332.erdos_332",
  "statement_lean": "theorem erdos_332 (A : Set ℕ) : erdos_332.answer A → HasBoundedGaps (D_A A)",
  "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 332\n\n*Reference:* [erdosproblems.com/332](https://www.erdosproblems.com/332)\n-/\n\n@[expose] public section\n\nnamespace Erdos332\n\nopen Set\n\n/--\nThe set of numbers $D(A)$ which occur infinitely often as $a_1 - a_2$ with $a_1, a_2 \\in A$.\n-/\nnoncomputable def D_A (A : Set ℕ) : Set ℤ :=\n  { d : ℤ | Set.Infinite { (a, b) : ℕ × ℕ | a ∈ A ∧ b ∈ A ∧ (a : ℤ) - (b : ℤ) = d } }\n\n/--\nA set $S \\subseteq \\mathbb{Z}$ has bounded gaps if it is syndetic, meaning there is a uniform\nbound $M$ such that every interval of length $M$ contains an element of $S$.\n-/\ndef HasBoundedGaps (S : Set ℤ) : Prop :=\n  ∃ M : ℕ, M > 0 ∧ ∀ z : ℤ, ∃ s ∈ S, z ≤ s ∧ s < z + (M : ℤ)\n\ndef erdos_332.answer : Set ℕ → Prop := sorry\n\n/--\nLet $A\\subseteq \\mathbb{N}$ and $D(A)$ be the set of those numbers which occur infinitely often as\n$a_1 - a_2$ with $a_1, a_2\\in A$. What conditions on $A$ are sufficient to ensure $D(A)$ has bounded\ngaps?\n\nThe sufficient conditions are the unknown `erdos_332.answer`. In order to solve this problem one\nhas to provide what the sufficient conditions are, and proof that they imply the desired condition.\nIf the condition is a solution to the problem is up to human judgement.\n-/\n@[category research open, question value, AMS 11]\ntheorem erdos_332 (A : Set ℕ) : erdos_332.answer A → HasBoundedGaps (D_A A) := by\n  sorry\n\n-- TODO(firsching): formalize additional statements\n\nend Erdos332\n",
  "statement_hash": "a809067e1ad9a6f5d07ac0f7764bbf6d904e5436cf308a686a42d0b4b14530ae",
  "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."
}