{
  "id": "3851",
  "ident": "NS.03851",
  "slug": "erdos-979",
  "title": "Erdős Problem 979",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Let $k ≥ 2$, and let $f_k(n)$ count the number of solutions to $n = p_1^k + \\dots + p_k^k$,\nwhere the $p_i$ are prime numbers. Is it true that $\\limsup f_k(n) = \\infty$?",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": "https://www.erdosproblems.com/979",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos979.erdos_979",
  "statement_lean": "theorem erdos_979 :\n    ∀ k ≥ 2, Filter.limsup (fun n => (solutionSet n k).encard) Filter.atTop = ⊤",
  "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 979\n\n*Reference:* [erdosproblems.com/979](https://www.erdosproblems.com/979)\n-/\n\n@[expose] public section\n\nnamespace Erdos979\n\ndef solutionSet (n k : ℕ) : Set (Multiset ℕ) :=\n  {P | P.card = k ∧ (∀ p ∈ P, Nat.Prime p) ∧ n = (P.map (. ^ k)).sum}\n\n/--\nLet $k ≥ 2$, and let $f_k(n)$ count the number of solutions to $n = p_1^k + \\dots + p_k^k$,\nwhere the $p_i$ are prime numbers. Is it true that $\\limsup f_k(n) = \\infty$?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_979 :\n    ∀ k ≥ 2, Filter.limsup (fun n => (solutionSet n k).encard) Filter.atTop = ⊤ := by\n  sorry\n\n/--\nErdős [Er37b] proved that if $f_2(n)$ counts the number of solutions to $n = p_1^2 + p_2^2$, where $p_1$ and $p_2$ are prime numbers, then $\\limsup f_2(n) = \\infty$.\n\n[Er37b] Erdős, Paul, On the Sum and Difference of Squares of Primes. J. London Math. Soc. (1937), 133--136.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_979.variants.k2 :\n    Filter.limsup (fun n => (solutionSet n 2).encard) Filter.atTop = ⊤ := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nErdős (unpublished)\n-/\n@[category research solved, AMS 11,\n  formal_proof using lean4 at\n    \"https://github.com/KitaKen1/erdos-979-k3/blob/930fcc877fa4a2b4fc7c59614cbbab04a6d834ca/lean/K3Lean/Erdos979K3Final.lean#L46-L47\"]\ntheorem erdos_979.variants.k3 :\n    Filter.limsup (fun n => (solutionSet n 3).encard) Filter.atTop = ⊤ := by\n  sorry\n\nend Erdos979\n",
  "statement_hash": "f37d7c1f20850fd913bda22725a9f93ffbe994a28e73f21405c6643beccddf19",
  "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."
}