{
  "id": "1716",
  "ident": "NS.01716",
  "slug": "erdos-328",
  "title": "Erdős Problem 328",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Suppose $A\\subseteq\\mathbb{N}$ and $C>0$ is such that $1_A\\ast 1_A(n)\\leq C$ for all\n$n\\in\\mathbb{N}$. Can $A$ be partitioned into $t$ many subsets $A_1,\\ldots,A_t$ (where\n$t=t(C)$ depends only on $C$) such that $1_{A_i}\\ast 1_{A_i}(n)<C$ for all $1\\leq i\\leq t$\nand $n\\in \\mathbb{N}$?\n\nThe answer is no. Asked by Erdős and Newman. Nešetřil and Rödl [NeRo85] have shown the\nanswer is no for all $C$ (even if $t$ is also allowed to depend on $A$).\n\nErdős [Er80e] had previously shown the answer is no for $C=3,4$ and infinitely many other\nvalues of $C$.\n\nSee also [774].\n\nThe linked proof writes the representation function as\n`Set.ncard {p : ℕ × ℕ | p.1 ∈ A ∧ p.2 ∈ A ∧ p.1 + p.2 = n}`, which counts the same ordered\npairs as `sumRep`, and states the partition condition as a named definition with the same two\nconjuncts used below. Its `∃ t` additionally carries `1 ≤ t`, which costs nothing: `t = 0`\nforces `A = ∅`, and `A = {1}` has all representation counts at most `C` for `C ≥ 1`.",
  "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": "Erdos328.erdos_328",
  "statement_lean": "theorem erdos_328 :\n    ¬ ∀ C : ℕ, 0 < C →\n      ∃ t : ℕ, ∀ A : Set ℕ, (∀ n, sumRep A n ≤ C) →\n        ∃ P : Fin t → Set ℕ, (⋃ i, P i) = A ∧\n          Set.univ.PairwiseDisjoint P ∧\n          ∀ i, ∀ n, sumRep (P i) 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 328\n\n*References:*\n- [erdosproblems.com/328](https://www.erdosproblems.com/328)\n- [Er80] Erdős, Paul, *A survey of problems in combinatorial number theory*.\n  Ann. Discrete Math. (1980), 89-115.\n- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial\n  number theory*. Monographies de L'Enseignement Mathématique (1980).\n- [Er80e] Erdős, P., *Some applications of Ramsey's theorem to additive number theory*.\n  European J. Combin. (1980), 43-46.\n- [NeRo85] J. Nešetřil and V. Rödl, *Two proofs in combinatorial number theory*.\n  Proc. Amer. Math. Soc. (1985), 185-188.\n-/\n\n@[expose] public section\n\nopen AdditiveCombinatorics\n\nnamespace Erdos328\n\nset_option linter.style.formal_proof_palomar false in\n/--\nSuppose $A\\subseteq\\mathbb{N}$ and $C>0$ is such that $1_A\\ast 1_A(n)\\leq C$ for all\n$n\\in\\mathbb{N}$. Can $A$ be partitioned into $t$ many subsets $A_1,\\ldots,A_t$ (where\n$t=t(C)$ depends only on $C$) such that $1_{A_i}\\ast 1_{A_i}(n)<C$ for all $1\\leq i\\leq t$\nand $n\\in \\mathbb{N}$?\n\nThe answer is no. Asked by Erdős and Newman. Nešetřil and Rödl [NeRo85] have shown the\nanswer is no for all $C$ (even if $t$ is also allowed to depend on $A$).\n\nErdős [Er80e] had previously shown the answer is no for $C=3,4$ and infinitely many other\nvalues of $C$.\n\nSee also [774].\n\nThe linked proof writes the representation function as\n`Set.ncard {p : ℕ × ℕ | p.1 ∈ A ∧ p.2 ∈ A ∧ p.1 + p.2 = n}`, which counts the same ordered\npairs as `sumRep`, and states the partition condition as a named definition with the same two\nconjuncts used below. Its `∃ t` additionally carries `1 ≤ t`, which costs nothing: `t = 0`\nforces `A = ∅`, and `A = {1}` has all representation counts at most `C` for `C ≥ 1`.\n-/\n@[category research solved, question, AMS 11, formal_proof using lean4 at \"https://github.com/Jayyhk/erdos-lean/blob/f8a51976fd2e66a52b4928c109fb9ae877a1a507/problems/328/Erdos328.lean\"]\ntheorem erdos_328 :\n    ¬ ∀ C : ℕ, 0 < C →\n      ∃ t : ℕ, ∀ A : Set ℕ, (∀ n, sumRep A n ≤ C) →\n        ∃ P : Fin t → Set ℕ, (⋃ i, P i) = A ∧\n          Set.univ.PairwiseDisjoint P ∧\n          ∀ i, ∀ n, sumRep (P i) n < C := by\n  sorry\n\nend Erdos328\n",
  "statement_hash": "7f25ebdf1edbbbb4722a6f8b7b1ab3c88201bb72b213d99abe1918dd2d0108f1",
  "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."
}