{
  "id": "3330",
  "ident": "NS.03330",
  "slug": "erdos-829",
  "title": "Erdős Problem 829",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "**Erdős Problem 829 (open).**  Let $A \\subseteq \\mathbb{N}$ be the set of perfect cubes.  Is\nit true that $(1_A \\ast 1_A)(n) \\ll (\\log n)^{O(1)}$?  That is, does there exist a natural\nnumber $C$ such that the number of representations of $n$ as a sum of two cubes is\n$O((\\log n)^C)$ as $n \\to \\infty$?",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos829.erdos_829",
  "statement_lean": "theorem erdos_829 :\n    ∃ C : ℕ, (fun n : ℕ => (sumRep cubes n : ℝ)) =O[atTop]\n      (fun n : ℕ => (Real.log n) ^ C)",
  "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 829\n\n*References:*\n- [erdosproblems.com/829](https://www.erdosproblems.com/829)\n- [Er83] Erdős, P. and Dudley, U., _Some remarks and problems in number theory related to the\n  work of Euler_. Math. Mag. (1983), 292-298.\n-/\n\n@[expose] public section\n\nopen AdditiveCombinatorics Asymptotics Filter\n\nnamespace Erdos829\n\n/-- The set of perfect cubes in $\\mathbb{N}$. -/\ndef cubes : Set ℕ := {n | ∃ k, k ^ 3 = n}\n\n/-- Membership in `cubes` can be witnessed by a bounded cube root, which makes it\ndecidable for concrete values. -/\n@[category API, AMS 11]\nlemma mem_cubes_iff (m : ℕ) : m ∈ cubes ↔ ∃ k, k < m + 1 ∧ k ^ 3 = m := by\n  constructor\n  · rintro ⟨k, rfl⟩\n    refine ⟨k, ?_, rfl⟩\n    have : k ≤ k ^ 3 := Nat.le_self_pow (by norm_num) k\n    omega\n  · rintro ⟨k, _, rfl⟩\n    exact ⟨k, rfl⟩\n\n/--\n**Erdős Problem 829 (open).**  Let $A \\subseteq \\mathbb{N}$ be the set of perfect cubes.  Is\nit true that $(1_A \\ast 1_A)(n) \\ll (\\log n)^{O(1)}$?  That is, does there exist a natural\nnumber $C$ such that the number of representations of $n$ as a sum of two cubes is\n$O((\\log n)^C)$ as $n \\to \\infty$?\n-/\n@[category research open, question, AMS 11]\ntheorem erdos_829 :\n    ∃ C : ℕ, (fun n : ℕ => (sumRep cubes n : ℝ)) =O[atTop]\n      (fun n : ℕ => (Real.log n) ^ C) := by\n  sorry\n\n/-- There is exactly one ordered pair of cubes summing to $0$, namely $(0, 0)$. -/\n@[category test, AMS 11]\ntheorem sumRep_cubes_zero : sumRep cubes 0 = 1 := by\n  simp only [sumRep_def, mem_cubes_iff]\n  decide\n\n/-- The only ordered pair of cubes summing to $2$ is $(1, 1)$. -/\n@[category test, AMS 11]\ntheorem sumRep_cubes_two : sumRep cubes 2 = 1 := by\n  simp only [sumRep_def, mem_cubes_iff]\n  decide\n\n/-- The integer $3$ is not the sum of two cubes. -/\n@[category test, AMS 11]\ntheorem sumRep_cubes_three : sumRep cubes 3 = 0 := by\n  simp only [sumRep_def, mem_cubes_iff]\n  decide\n\n/-- The Hardy-Ramanujan taxicab number satisfies $1729 = 1^3 + 12^3 = 9^3 + 10^3$, giving\nthe four ordered representations $(1, 1728), (1728, 1), (729, 1000), (1000, 729)$. -/\n@[category test, AMS 11]\ntheorem sumRep_cubes_taxicab : sumRep cubes 1729 = 4 := by\n  simp only [sumRep_def, mem_cubes_iff]\n  decide +native\n\nnamespace variants\n\n/--\nMordell proved $\\limsup_{n \\to \\infty} (1_A \\ast 1_A)(n) = \\infty$, where $A$ is the set of\nperfect cubes.  Equivalently, the number of representations of $n$ as a sum of two cubes is\nunbounded.\n-/\n@[category research solved, AMS 11]\ntheorem mordell : limsup (fun n : ℕ => (sumRep cubes n : ℕ∞)) atTop = (⊤ : ℕ∞) := by\n  sorry\n\n/--\nMahler proved $(1_A \\ast 1_A)(n) \\gg (\\log n)^{1/4}$ for infinitely many $n$, where $A$ is\nthe set of perfect cubes.\n\n[Ma35b] Mahler, K., _On the lattice points on curves of genus 1_. Proc. London Math. Soc.\n  (2) (1935), 431-466.\n-/\n@[category research solved, AMS 11]\ntheorem mahler : ∃ C > (0 : ℝ),\n    ∃ᶠ (n : ℕ) in atTop, C * (Real.log n) ^ ((1 : ℝ) / 4) ≤ (sumRep cubes n : ℝ) := by\n  sorry\n\n/--\nStewart improved Mahler's lower bound to $(1_A \\ast 1_A)(n) \\gg (\\log n)^{11/13}$ for\ninfinitely many $n$, where $A$ is the set of perfect cubes.\n\n[St08] Stewart, C. L., _Cubic Thue equations with many solutions_. Int. Math. Res. Not.\n  IMRN (2008), Art. ID rnn040, 11.\n-/\n@[category research solved, AMS 11]\ntheorem stewart : ∃ C > (0 : ℝ),\n    ∃ᶠ (n : ℕ) in atTop, C * (Real.log n) ^ ((11 : ℝ) / 13) ≤ (sumRep cubes n : ℝ) := by\n  sorry\n\nend variants\n\nend Erdos829\n",
  "statement_hash": "b23bcfa974e99c08b02351e2dacd7207f1850012b95f9b5726bc71518b3492a2",
  "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."
}