{
  "id": "1895",
  "ident": "NS.01895",
  "slug": "erdos-362",
  "title": "Erdős Problem 362",
  "status": "solved",
  "statement_status": "reviewed",
  "statement_md": "Let $A\\subseteq \\mathbb{N}$ be a finite set of size $N$. Is it true that, for any fixed $t$,\nthere are\n$$\\ll \\frac{2^N}{N^{3/2}}$$\nmany $S\\subseteq A$ such that $\\sum_{n\\in S}n=t$?\n\nErdős and Moser [Er65] proved the first bound with an additional factor of $(\\log n)^{3/2}$.\nThis was removed by Sárközy and Szemerédi [SaSz65], thereby answering the first question in the\naffirmative. Stanley [St80] has shown that this quantity is maximised when\n$A=\\{-\\lfloor \\frac{N-1}{2}\\rfloor,\\ldots,\\lfloor\\frac{N}{2}\\rfloor\\}$.",
  "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": "Erdos362.erdos_362",
  "statement_lean": "theorem erdos_362 : ∃ C : ℝ, ∀ (A : Finset ℕ) (t : ℕ), A.Nonempty →\n    ({S ∈ A.powerset | ∑ n ∈ S, n = t}.card : ℝ) ≤ C * 2 ^ A.card / (A.card : ℝ) ^ (3 / 2 : ℝ)",
  "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 362\n\n*References:*\n- [erdosproblems.com/362](https://www.erdosproblems.com/362)\n- [Er65] Erdős, P., *Extremal problems in number theory*. Proc. Sympos. Pure Math., Vol. VIII\n  (1965), 181-189.\n- [Er73] Erdős, P., *Problems and results on combinatorial number theory*. A survey of\n  combinatorial theory (Proc. Internat. Sympos., Colorado State Univ., Fort Collins, Colo., 1971)\n  (1973), 117-138.\n- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number\n  theory*. Monographies de L'Enseignement Mathematique (1980).\n- [SaSz65] Sárközi, A. and Szemerédi, E., *Über ein Problem von Erdős und Moser*. Acta Arith.\n  (1965), 205-208.\n- [St80] Stanley, Richard P., *Weyl groups, the hard Lefschetz theorem, and the Sperner property*.\n  SIAM J. Algebraic Discrete Methods (1980), 168-184.\n- [Ha77] Halász, G., *Estimates for the concentration function of combinatorial number theory and\n  probability*. Period. Math. Hungar. (1977), 197-211.\n-/\n\n@[expose] public section\n\nnamespace Erdos362\n\nset_option linter.style.formal_proof_palomar false in\n/--\nLet $A\\subseteq \\mathbb{N}$ be a finite set of size $N$. Is it true that, for any fixed $t$,\nthere are\n$$\\ll \\frac{2^N}{N^{3/2}}$$\nmany $S\\subseteq A$ such that $\\sum_{n\\in S}n=t$?\n\nErdős and Moser [Er65] proved the first bound with an additional factor of $(\\log n)^{3/2}$.\nThis was removed by Sárközy and Szemerédi [SaSz65], thereby answering the first question in the\naffirmative. Stanley [St80] has shown that this quantity is maximised when\n$A=\\{-\\lfloor \\frac{N-1}{2}\\rfloor,\\ldots,\\lfloor\\frac{N}{2}\\rfloor\\}$.\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/Erdos362.lean#L2541\"]\ntheorem erdos_362 : ∃ C : ℝ, ∀ (A : Finset ℕ) (t : ℕ), A.Nonempty →\n    ({S ∈ A.powerset | ∑ n ∈ S, n = t}.card : ℝ) ≤ C * 2 ^ A.card / (A.card : ℝ) ^ (3 / 2 : ℝ) := by\n  sorry\n\nset_option linter.style.formal_proof_palomar false in\n/--\nIf we further ask that $\\lvert S\\rvert=l$ (for any fixed $l$) then is the number of solutions\n$$\\ll \\frac{2^N}{N^2},$$\nwith the implied constant independent of $l$ and $t$?\n\nThe second question was answered in the affirmative by Halász [Ha77], as a consequence of a more\ngeneral multi-dimensional result.\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/Erdos362.lean#L2541\"]\ntheorem erdos_362.variants.fixed_card : ∃ C : ℝ, ∀ (A : Finset ℕ) (l t : ℕ),\n    A.Nonempty →\n      ({S ∈ A.powersetCard l | ∑ n ∈ S, n = t}.card : ℝ) ≤ C * 2 ^ A.card / (A.card : ℝ) ^ 2 := by\n  sorry\n\nend Erdos362\n",
  "statement_hash": "03444d23de8c115f687721289587494c16dbf40231b185ce32252487164b1aeb",
  "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."
}