{
  "id": "1820",
  "ident": "NS.01820",
  "slug": "erdos-351",
  "title": "Erdős Problem 351",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $p(x) \\in \\mathbb{Q}[x]$ be a non-constant rational polynomial with positive leading\ncoefficient. Is it true that $$A=\\{ p(n)+1/n : n \\in \\mathbb{N}\\}$$ is strongly complete,\nin the sense that, for any finite set $B$,\n$$\\left\\{\\sum_{a \\in X} a : X \\subseteq A \\setminus B, X \\textrm{ is finite}\\right\\}$$\ncontains all sufficiently large integers?",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/351",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos351.erdos_351",
  "statement_lean": "theorem erdos_351 :\n    ∀ P : ℚ[X], 0 < P.natDegree → 0 < P.leadingCoeff → HasCompleteImage P",
  "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 351\n\n*Reference:* [erdosproblems.com/351](https://www.erdosproblems.com/351)\n-/\n\n@[expose] public section\n\nopen Polynomial\n\nnamespace Erdos351\n\n/-- The set of rational numbers of the form `P(n) + 1 / n` where `n` is a natural number\nand `P` is a polynomial with rational coefficients.\n\nNote: We include `P 0` in there (since `1 / 0 = 0`), but this doesn't change the validity of the\nconjecture -/\ndef imageSet {α : Type*} [Semifield α] (P : α[X]) : Set α :=\n  Set.range (fun (n : ℕ) ↦ P.eval ↑n + 1 / n)\n\n/-- The predicate that a set `A` is strongly complete, i.e. that for every finite set `B`, every sufficiently\nlarge integer is a sum of elements of the set `A \\ B`. -/\ndef IsStronglyComplete {α : Type*} [Semiring α] (A : Set α) : Prop :=\n  ∀ B : Finset α,\n    ∀ᶠ (m : ℕ) in Filter.atTop,\n      ↑m ∈ { ∑ n ∈ X, n | (X : Finset α) (_ : ↑X ⊆ A \\ B) }\n\n/-- The predicate that the rational polynomial `P` has a complete image. -/\ndef HasCompleteImage (P : ℚ[X]) : Prop := IsStronglyComplete (imageSet P)\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $p(x) \\in \\mathbb{Q}[x]$ be a non-constant rational polynomial with positive leading\ncoefficient. Is it true that $$A=\\{ p(n)+1/n : n \\in \\mathbb{N}\\}$$ is strongly complete,\nin the sense that, for any finite set $B$,\n$$\\left\\{\\sum_{a \\in X} a : X \\subseteq A \\setminus B, X \\textrm{ is finite}\\right\\}$$\ncontains all sufficiently large integers? -/\n@[category research solved, question, AMS 11, formal_proof using lean4 at \"https://github.com/plby/lean-proofs/blob/main/src/v4.29.1/ErdosProblems/Erdos351.lean\"]\ntheorem erdos_351 :\n    ∀ P : ℚ[X], 0 < P.natDegree → 0 < P.leadingCoeff → HasCompleteImage P := by\n  sorry\n\n/--\nLet $p(x) = x \\in \\mathbb{Q}[x]$. It has been shown that\n$$A=\\{ p(n)+1/n : n \\in \\mathbb{N}\\}$$\nis strongly complete, in the sense that, for any finite set $B$,\n$$\\left\\{\\sum_{a \\in X} a : X \\subseteq A \\setminus B, X \\textrm{ is finite}\\right\\}$$\ncontains all sufficiently large integers.\n-/\n@[category research solved, AMS 11]\nprotected theorem erdos_351.variants.X : HasCompleteImage X := by\n  sorry\n\n/-- Let $p(x) = x ^ 2 \\in \\mathbb{Q}[x]$. It has been shown that\n$$A=\\{ p(n)+1/n : n \\in \\mathbb{N}\\}$$\nis strongly complete, in the sense that, for any finite set $B$,\n$$\\left\\{\\sum_{a \\in X} a : X \\subseteq A \\setminus B, X \\textrm{ is finite}\\right\\}$$\ncontains all sufficiently large integers. -/\n@[category research solved, AMS 11]\ntheorem erdos_351.variants.X_sq : HasCompleteImage (X ^ 2) := by\n  sorry\n\nend Erdos351\n",
  "statement_hash": "4c188bea3cdb515fcbd76f6ef1834ca31ba33ca4d492379e6c15981ebfc18686",
  "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."
}