Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 362

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Let A⊆NA\subseteq \mathbb{N} be a finite set of size NN. Is it true that, for any fixed tt, there are ≪2NN3/2\ll \frac{2^N}{N^{3/2}} many S⊆AS\subseteq A such that ∑n∈Sn=t\sum_{n\in S}n=t?

Erdős and Moser [Er65] proved the first bound with an additional factor of (log⁡n)3/2(\log n)^{3/2}. This was removed by Sárközy and Szemerédi [SaSz65], thereby answering the first question in the affirmative. Stanley [St80] has shown that this quantity is maximised when A={−⌊N−12⌋,…,⌊N2⌋}A=\{-\lfloor \frac{N-1}{2}\rfloor,\ldots,\lfloor\frac{N}{2}\rfloor\}.

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:question, formal_proof
Cite as:NS.01895 [math.NT] · NS.01895v1 for this version
Declaration:Erdos362.erdos_362
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:03444d23de8c115f687721289587494c16dbf40231b185ce32252487164b1aeb
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/362.lean

Formal statement

theorem erdos_362 : ∃ C : ℝ, ∀ (A : Finset ℕ) (t : ℕ), A.Nonempty →
    ({S ∈ A.powerset | ∑ n ∈ S, n = t}.card : ℝ) ≤ C * 2 ^ A.card / (A.card : ℝ) ^ (3 / 2 : ℝ)
Show the full Challenge.lean (79 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 362

*References:*
- [erdosproblems.com/362](https://www.erdosproblems.com/362)
- [Er65] Erdős, P., *Extremal problems in number theory*. Proc. Sympos. Pure Math., Vol. VIII
  (1965), 181-189.
- [Er73] Erdős, P., *Problems and results on combinatorial number theory*. A survey of
  combinatorial theory (Proc. Internat. Sympos., Colorado State Univ., Fort Collins, Colo., 1971)
  (1973), 117-138.
- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number
  theory*. Monographies de L'Enseignement Mathematique (1980).
- [SaSz65] Sárközi, A. and Szemerédi, E., *Über ein Problem von Erdős und Moser*. Acta Arith.
  (1965), 205-208.
- [St80] Stanley, Richard P., *Weyl groups, the hard Lefschetz theorem, and the Sperner property*.
  SIAM J. Algebraic Discrete Methods (1980), 168-184.
- [Ha77] Halász, G., *Estimates for the concentration function of combinatorial number theory and
  probability*. Period. Math. Hungar. (1977), 197-211.
-/

@[expose] public section

namespace Erdos362

set_option linter.style.formal_proof_palomar false in
/--
Let $A\subseteq \mathbb{N}$ be a finite set of size $N$. Is it true that, for any fixed $t$,
there are
$$\ll \frac{2^N}{N^{3/2}}$$
many $S\subseteq A$ such that $\sum_{n\in S}n=t$?

Erdős and Moser [Er65] proved the first bound with an additional factor of $(\log n)^{3/2}$.
This was removed by Sárközy and Szemerédi [SaSz65], thereby answering the first question in the
affirmative. Stanley [St80] has shown that this quantity is maximised when
$A=\{-\lfloor \frac{N-1}{2}\rfloor,\ldots,\lfloor\frac{N}{2}\rfloor\}$.
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos362.lean#L2541"]
theorem erdos_362 : ∃ C : ℝ, ∀ (A : Finset ℕ) (t : ℕ), A.Nonempty →
    ({S ∈ A.powerset | ∑ n ∈ S, n = t}.card : ℝ) ≤ C * 2 ^ A.card / (A.card : ℝ) ^ (3 / 2 : ℝ) := by
  sorry

set_option linter.style.formal_proof_palomar false in
/--
If we further ask that $\lvert S\rvert=l$ (for any fixed $l$) then is the number of solutions
$$\ll \frac{2^N}{N^2},$$
with the implied constant independent of $l$ and $t$?

The second question was answered in the affirmative by Halász [Ha77], as a consequence of a more
general multi-dimensional result.
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos362.lean#L2541"]
theorem erdos_362.variants.fixed_card : ∃ C : ℝ, ∀ (A : Finset ℕ) (l t : ℕ),
    A.Nonempty →
      ({S ∈ A.powersetCard l | ∑ n ∈ S, n = t}.card : ℝ) ≤ C * 2 ^ A.card / (A.card : ℝ) ^ 2 := by
  sorry

end Erdos362

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos362.erdos_362 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_362 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch erdos-362
nosorry submit erdos-362 nosorry/erdos-362/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.