Title:Erdős Problem 254
1 result recorded on aiXiv
- survey Problem page for Erdős Problem #254, with no proof given: if and for every , is every sufficiently large integer a sum of distinct elements of ? Cassels (1960) proved this under the stronger hypotheses that the shell count over tends to and . — aiXiv:2609.00433, 2026-07-13 · claimed by its authors; no independent check recorded on aiXiv
From aixiv.online, an open archive of AI-assisted research, synced daily. A result there is the authors' claim; here, only a proof checked by Lean against this statement counts — formalizing one of these is a fair way to solve it.
Statement:Let be such that $\lvert A\cap [1,2x]\rvert -\lvert A\cap [1,x]\rvert \to \infty\textrm{ as }x\to \infty$ and for every $\theta\in (0,1)$, where is the distance of from the nearest integer. Then every sufficiently large integer is the sum of distinct elements of .
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | formal_proof |
| Cite as: | NS.01463 [math.NT] · NS.01463v1 for this version |
| Declaration: | Erdos254.erdos_254 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | a3899e51dd0e9755812f451c08e06fdb64001839c2bc0c9ff8ebdb03d6f36650 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/254.lean |
Formal statement
theorem erdos_254 :
∀ (A : Set ℕ),
(Tendsto (fun x : ℕ ↦ (A ∩ Icc 1 (2 * x)).ncard - (A ∩ Icc 1 x).ncard) atTop atTop) ∧
(∀ θ : ℝ, 0 < θ → θ < 1 → ¬ Summable (fun n : A ↦ distToNearestInt (θ * (n : ℝ)))) →
∀ᶠ m in atTop, IsSumOfDistinct A mShow the full Challenge.lean (84 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 254
*References:*
- [erdosproblems.com/254](https://www.erdosproblems.com/254)
- [Ca60] Cassels, J. W. S., On the representation of integers as the sums of distinct summands taken
from a fixed set. Acta Sci. Math. (Szeged) (1960), 111-124.
-/
@[expose] public section
open Filter Set
namespace Erdos254
/--
An integer `n` can be written as a sum of distinct elements of `A`.
-/
def IsSumOfDistinct (A : Set ℕ) (n : ℕ) : Prop :=
∃ S : Finset ℕ, (S : Set ℕ) ⊆ A ∧ S.sum (fun x ↦ x) = n
/-- The hypothesis `¬ Summable (fun n : A ↦ distToNearestInt (θ * n))` used below says exactly
that the partial sums of `‖θ n‖` over `n ∈ A` diverge, which is the form the linked proof uses.
`distToNearestInt` is nonnegative, so this is an instance of
`not_summable_subtype_iff_tendsto_sum_indicator`. -/
@[category API, AMS 11]
theorem not_summable_iff_tendsto_partial_sums (A : Set ℕ) (θ : ℝ) :
¬ Summable (fun n : A ↦ distToNearestInt (θ * (n : ℝ))) ↔
Tendsto (fun N : ℕ =>
∑ n ∈ Finset.range N, A.indicator (fun n => distToNearestInt (θ * (n : ℝ))) n)
atTop atTop :=
not_summable_subtype_iff_tendsto_sum_indicator
(f := fun m : ℕ => distToNearestInt (θ * (m : ℝ))) fun _ => distToNearestInt_nonneg _
set_option linter.style.formal_proof_palomar false in
/--
Let $A\subseteq \mathbb{N}$ be such that $\lvert A\cap [1,2x]\rvert -\lvert A\cap [1,x]\rvert \to
\infty\textrm{ as }x\to \infty$ and $\sum_{n\in A} \{ \theta n\}=\infty$ for every $\theta\in
(0,1)$, where $\{x\}$ is the distance of $x$ from the nearest integer. Then every sufficiently large
integer is the sum of distinct elements of $A$.
-/
@[category research solved, AMS 11, formal_proof using lean4 at "https://github.com/williamjblair/lean-proofs/blob/4f915a323443bfb1709a6805a013812016dca88a/starfleet/erdos-254/Research/Basic.lean"]
theorem erdos_254 :
∀ (A : Set ℕ),
(Tendsto (fun x : ℕ ↦ (A ∩ Icc 1 (2 * x)).ncard - (A ∩ Icc 1 x).ncard) atTop atTop) ∧
(∀ θ : ℝ, 0 < θ → θ < 1 → ¬ Summable (fun n : A ↦ distToNearestInt (θ * (n : ℝ)))) →
∀ᶠ m in atTop, IsSumOfDistinct A m := by
sorry
/--
Cassels [Ca60] proved this under the alternative hypotheses $\lim \frac{\lvert A\cap [1,2x]\rvert
-\lvert A\cap [1,x]\rvert}{\log\log x}=\infty$ and $\sum_{n\in A} \{ \theta n\}^2=\infty$ for every
$\theta\in (0,1)$.
-/
@[category research solved, AMS 11]
theorem erdos_254.variants.cassels :
∀ (A : Set ℕ),
(Tendsto (fun x : ℕ ↦ (((A ∩ Icc 1 (2 * x)).ncard : ℝ) -
((A ∩ Icc 1 x).ncard : ℝ)) / Real.log (Real.log x)) atTop atTop) ∧
(∀ θ : ℝ, 0 < θ → θ < 1 → ¬ Summable (fun n : A ↦ (distToNearestInt (θ * (n : ℝ)))^2)) →
∀ᶠ m in atTop, IsSumOfDistinct A m := by
sorry
end Erdos254
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos254.erdos_254 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_254 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-254 nosorry submit erdos-254 nosorry/erdos-254/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-254-variants-cassels — known result
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.