{
  "id": "3115",
  "ident": "NS.03115",
  "slug": "erdos-764",
  "title": "Erdős Problem 764",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $A\\subseteq \\mathbb{N}$. Can there exist some constant $c>0$ such that\n$$\\sum_{n\\leq N} 1_A\\ast 1_A\\ast 1_A(n) = cN+O(1)?$$\n\nThe case of $1_A\\ast 1_A(n)$ is the subject of [763](https://www.erdosproblems.com/763).\n\nThe answer is no, proved in a strong form by Vaughan [Va72], who showed that in fact\n$$\\sum_{n\\leq N} 1_A\\ast 1_A\\ast 1_A(n) = cN+o\\left(\\frac{N^{1/4}}{(\\log N)^{1/2}}\\right)$$\nis impossible. Vaughan proves a more general result that applies to any $h$-fold convolution,\nwith different main terms permitted.",
  "subjects": [
    "math.NT",
    "msc:11"
  ],
  "tags": [
    "question",
    "formal_proof"
  ],
  "collection": "erdos",
  "source_url": null,
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Erdos764.erdos_764",
  "statement_lean": "theorem erdos_764 : ¬ ∃ (A : Set ℕ) (c : ℝ), 0 < c ∧\n    (fun N : ℕ ↦ (∑ n ∈ Finset.range (N + 1), tripleRep A n : ℝ) - c * N) =O[atTop]\n      fun _ ↦ (1 : ℝ)",
  "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 764\n\n*References:*\n- [erdosproblems.com/764](https://www.erdosproblems.com/764)\n- [Er65b] Erdős, Paul, *Some recent advances and current problems in number theory*. Lectures on\n  Modern Mathematics, Vol. III (1965), 196-244.\n- [Er70c] Erdős, P., *Some problems in additive number theory*. Amer. Math. Monthly (1970),\n  619-621.\n- [Va72] Vaughan, R. C., *On the addition of sequences of integers*. J. Number Theory (1972),\n  1-16.\n-/\n\n@[expose] public section\n\nopen Filter Asymptotics AdditiveCombinatorics Set\n\nnamespace Erdos764\n\n/-- The number of representations of `n` as an ordered sum of three elements of `A`,\n$1_A\\ast 1_A\\ast 1_A(n)$. -/\nnoncomputable def tripleRep (A : Set ℕ) : ℕ → ℕ := 𝟙_A ∗ 𝟙_A ∗ 𝟙_A\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $A\\subseteq \\mathbb{N}$. Can there exist some constant $c>0$ such that\n$$\\sum_{n\\leq N} 1_A\\ast 1_A\\ast 1_A(n) = cN+O(1)?$$\n\nThe case of $1_A\\ast 1_A(n)$ is the subject of [763](https://www.erdosproblems.com/763).\n\nThe answer is no, proved in a strong form by Vaughan [Va72], who showed that in fact\n$$\\sum_{n\\leq N} 1_A\\ast 1_A\\ast 1_A(n) = cN+o\\left(\\frac{N^{1/4}}{(\\log N)^{1/2}}\\right)$$\nis impossible. Vaughan proves a more general result that applies to any $h$-fold convolution,\nwith different main terms permitted.\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at\n  \"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos764.lean#L3760\"]\ntheorem erdos_764 : ¬ ∃ (A : Set ℕ) (c : ℝ), 0 < c ∧\n    (fun N : ℕ ↦ (∑ n ∈ Finset.range (N + 1), tripleRep A n : ℝ) - c * N) =O[atTop]\n      fun _ ↦ (1 : ℝ) := by\n  sorry\n\n/--\nVaughan [Va72] showed that\n$\\sum_{n\\leq N} 1_A\\ast 1_A\\ast 1_A(n) = cN+o\\left(\\frac{N^{1/4}}{(\\log N)^{1/2}}\\right)$ is\nimpossible.\n-/\n@[category research solved, AMS 11]\ntheorem erdos_764.variants.vaughan : ¬ ∃ (A : Set ℕ) (c : ℝ), 0 < c ∧\n    (fun N : ℕ ↦ (∑ n ∈ Finset.range (N + 1), tripleRep A n : ℝ) - c * N) =o[atTop]\n      fun N ↦ (N : ℝ) ^ (1 / 4 : ℝ) / √(Real.log N) := by\n  sorry\n\nend Erdos764\n",
  "statement_hash": "78d287ed4da5a8762fab3d97cb1d51a4f4445d19f165caafca2ef25778ea43ec",
  "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."
}