{
  "id": "2233",
  "ident": "NS.02233",
  "slug": "erdos-477",
  "title": "Erdős Problem 477",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Is there a polynomial $f:\\mathbb{Z}\\to \\mathbb{Z}$ of degree at least $2$ and a set\n$A\\subset \\mathbb{Z}$ such that for any $n\\in \\mathbb{Z}$ there is exactly one $a\\in A$ and\n$b\\in \\{ f(k) : k\\in\\mathbb{Z}\\}$ such that $n=a+b$?\n\nThe answer is yes, contrary to the expectation of Erdős and Graham: such an `A` exists whenever\n$f(n) = n^d$ for even $d \\ge 6$.\n\nThe linked formal proof (Codex, following Price's exposition) exhibits a complement of\n$\\{k^6 : k \\in \\mathbb{Z}\\}$; it states uniqueness as `∃! p : ℤ × ℤ, p.1 ∈ A ∧ p.2 ∈ B ∧ p.1 + p.2 = n`\nand the degree condition as `2 ≤ f.natDegree`.",
  "subjects": [
    "math.AC",
    "msc:12"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos477.erdos_477",
  "statement_lean": "theorem erdos_477 :\n    ∃ f : ℤ[X], 2 ≤ f.degree ∧ ∃ A : Set ℤ,\n      ∀ z, ∃! ab ∈ A ×ˢ (Set.range f.eval), z = ab.1 + ab.2",
  "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 477\n\n*References:*\n- [erdosproblems.com/477](https://www.erdosproblems.com/477)\n- [Sek59](http://dml.cz/dmlcz/100376) Milan Sekanina, Замечания к фактoризации беcкoнечнoй цикличеcкoй группы, Czechoslovak Mathematical Journal, Vol. 9 (1959), No. 4, 485–495\n- The resolution is recorded at [erdosproblems.com/477](https://www.erdosproblems.com/477), with a\n  proof exposition by T. F. Bloom of a construction found independently by several provers.\n-/\n\n@[expose] public section\n\nopen Polynomial Set\n\nnamespace Erdos477\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIs there a polynomial $f:\\mathbb{Z}\\to \\mathbb{Z}$ of degree at least $2$ and a set\n$A\\subset \\mathbb{Z}$ such that for any $n\\in \\mathbb{Z}$ there is exactly one $a\\in A$ and\n$b\\in \\{ f(k) : k\\in\\mathbb{Z}\\}$ such that $n=a+b$?\n\nThe answer is yes, contrary to the expectation of Erdős and Graham: such an `A` exists whenever\n$f(n) = n^d$ for even $d \\ge 6$.\n\nThe linked formal proof (Codex, following Price's exposition) exhibits a complement of\n$\\{k^6 : k \\in \\mathbb{Z}\\}$; it states uniqueness as `∃! p : ℤ × ℤ, p.1 ∈ A ∧ p.2 ∈ B ∧ p.1 + p.2 = n`\nand the degree condition as `2 ≤ f.natDegree`.\n-/\n@[category research solved, question, AMS 12, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos477.lean#L54\"]\ntheorem erdos_477 :\n    ∃ f : ℤ[X], 2 ≤ f.degree ∧ ∃ A : Set ℤ,\n      ∀ z, ∃! ab ∈ A ×ˢ (Set.range f.eval), z = ab.1 + ab.2 := by\n  sorry\n\n/--\nThere is no such $A$ for the polynomial $f(x) = X^2$.\n\nThis is shown in [Sek59].\n-/\n@[category research solved, AMS 12]\ntheorem erdos_477.variants.S_sq :\n    letI f := X ^ 2\n    ∀ A : Set ℤ, ∃ z, ¬ ∃! a ∈ A ×ˢ (Set.range f.eval), z = a.1 + a.2 := by\n  sorry\n\n/--\nThere is no such $A$ for any polynomial $f(x) = aX^2 + bX + c$, if $a | b$\nwith $a \\ne 0$ and $b \\ne 0$.\nThis was found be AlphaProof for the specific instance $X^2 - X + 1$ and then generalised.\n -/\n@[category research solved, AMS 12]\ntheorem erdos_477.variants.degree_two_dvd_condition_b_ne_zero {a b c : ℤ} (ha : a ≠ 0) (hb : b ≠ 0)\n    (hab : a ∣ b) :\n    let f := a • X ^ 2 + b • X + C c\n    ∀ A : Set ℤ, ∃ z, ¬ ∃! a ∈ A ×ˢ (Set.range f.eval), z = a.1 + a.2 := by\n  sorry\n\n/--\nProbably there is no such $A$ for the polynomial $X^3$.\n-/\n@[category research open, AMS 12]\ntheorem erdos_477.variants.X_pow_three :\n    letI f := X ^ 3\n    ∀ A : Set ℤ, ∃ z, ¬ ∃! a ∈ A ×ˢ (Set.range f.eval), z = a.1 + a.2 := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nSekanina [Sek59] asked whether there is no such $A$ for $X^k$, for every $k \\ge 2$.\nThis is false: a complement exists for every even $k \\ge 6$. The linked formal proof gives the\ncase $k = 6$.\n-/\n@[category research solved, question, AMS 12, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos477.lean#L42\"]\ntheorem erdos_477.variants.monomial :\n    ¬ ∀ (k : ℕ), 2 ≤ k →\n      letI f := X ^ k\n      ∀ A : Set ℤ, ∃ z, ¬ ∃! a ∈ A ×ˢ (Set.range f.eval), z = a.1 + a.2 := by\n  sorry\n\nend Erdos477\n",
  "statement_hash": "54cc1d0df650de5c8c20f756acf5756f2e15f908ed8262a29e419a341b9413c3",
  "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."
}