Title:Erdős Problem 357
2 results recorded on aiXiv
- bound Let be the largest with whose consecutive block sums are pairwise distinct. Then for all , so . The proof is verified in Lean 4. — aiXiv:2610.02761, 2026-10-26 · claimed by its authors; no independent check recorded on aiXiv
- bound for , so , improving . The construction uses a periodic residue pattern modulo 42 with one added jump. Also . The proof is verified in Lean 4. — aiXiv:2610.02761, 2026-10-26 · 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 the maximal such that there exist integers such that all sums of the shape are distinct. Is ?
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.01832 [math.NT] · NS.01832v1 for this version |
| Declaration: | Erdos357.erdos_357.parts.i |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | ad58b5d781aa8f20e77e9713cdcaf973e3cfe35e29e68895c676a4beee0bbeba |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/357.lean |
Formal statement
theorem erdos_357.parts.i : (fun n ↦ (f n : ℝ)) =o[atTop] (fun n ↦ (n : ℝ))Show the full Challenge.lean (228 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 357
*References:*
- [erdosproblems.com/357](https://www.erdosproblems.com/357)
- [He86] Hegyvári, Norbert, On consecutive sums in sequences. Acta Math. Hungar. (1986), 193--200.
-/
@[expose] public section
namespace Erdos357
open Filter Asymptotics
def HasDistinctSums {ι α : Type*} [Preorder ι] [AddCommMonoid α] (a : ι → α) : Prop :=
{J : Finset ι | (J : Set ι).OrdConnected}.InjOn (fun J ↦ ∑ x ∈ J, a x)
/-- Let $f(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 < \dotsc < a_k \le n$
such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. -/
noncomputable def f (n : ℕ) : ℕ :=
sSup {k : ℕ | ∃ a : Fin k → ℤ, Set.range a ⊆ Set.Icc 1 n ∧ StrictMono a ∧ HasDistinctSums a}
/-- Let $f(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 < \dotsc < a_k \le n$
such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. Is $f(n)=o(n)$? -/
@[category research open, AMS 11]
theorem erdos_357.parts.i : (fun n ↦ (f n : ℝ)) =o[atTop] (fun n ↦ (n : ℝ)) := by
sorry
/-
Formalisation note: the next 5 formalisations are an attempt at capturing the question "how does
$f(n)$ grow?". In addition to trivial solutions (e.g. setting the `answer` to `0` in some of these),
it is possible that some of these admit easy solutions that shouldn't count as genuine solutions.
As usual in this repo, solving this problem is not simply filling in the `answer` definition
together with a proof of the theorem, but providing a *mathematically interesting* answer.
Note also that there might be other reasonable (and non equivalent) formal statements that capture this
question.
Similar remarks hold for the `variants.monotone` formalisations later in this file.
-/
def erdos_357.parts.ii.bigO_version.answer : ℕ → ℝ := sorry
/-- Let $f(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 < \dotsc < a_k \le n$
such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct.
How does $f(n)$ grow? Can we find a (good) explicit function $g$ such that $g = O(f)$ ? -/
@[category research open, question value, AMS 11]
theorem erdos_357.parts.ii.bigO_version :
erdos_357.parts.ii.bigO_version.answer =O[atTop] (fun n ↦ (f n : ℝ)) := by
sorry
def erdos_357.parts.ii.bigO_version_symm.answer : ℕ → ℝ := sorry
/-- Let $f(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 < \dotsc < a_k \le n$
such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct.
How does $f(n)$ grow? Can we find a (good) explicit function $g$ such that $f = O(g)$ ? -/
@[category research open, question value, AMS 11]
theorem erdos_357.parts.ii.bigO_version_symm :
(fun n ↦ (f n : ℝ)) =O[atTop] erdos_357.parts.ii.bigO_version_symm.answer := by
sorry
def erdos_357.parts.ii.bigTheta_version.answer : ℕ → ℝ := sorry
/-- Let $f(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 < \dotsc < a_k \le n$
such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct.
How does $f(n)$ grow? Can we find a (good) explicit function $g$ such that $f = \Theta(g)$ ? -/
@[category research open, question value, AMS 11]
theorem erdos_357.parts.ii.bigTheta_version :
(fun n ↦ (f n : ℝ)) =Θ[atTop] erdos_357.parts.ii.bigTheta_version.answer := by
sorry
def erdos_357.parts.ii.littleO_version.answer : ℕ → ℝ := sorry
/-- Let $f(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 < \dotsc < a_k \le n$
such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct.
How does $f(n)$ grow? Can we find a (good) explicit function $g$ such that $g = o(f)$ ? -/
@[category research open, question value, AMS 11]
theorem erdos_357.parts.ii.littleO_version :
erdos_357.parts.ii.littleO_version.answer =o[atTop] (fun n ↦ (f n : ℝ)) := by
sorry
def erdos_357.parts.ii.littleO_version_symm.answer : ℕ → ℝ := sorry
/-- Let $f(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 < \dotsc < a_k \le n$
such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct.
How does $f(n)$ grow? Can we find a (good) explicit function $g$ such that $f = o(g)$ ? -/
@[category research open, question value, AMS 11]
theorem erdos_357.parts.ii.littleO_version_symm :
(fun n ↦ (f n : ℝ)) =o[atTop] erdos_357.parts.ii.littleO_version_symm.answer := by
sorry
/-- Let $f(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 < \dotsc < a_k \le n$
such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct.
It is known that $f(n) \geq (2+o(1))\sqrt{n}$.
Source: See comment by Desmond Weisenberg here: https://www.erdosproblems.com/forum/thread/357.
-/
@[category research solved, AMS 11]
theorem erdos_357.variants.weisenberg : ∃ o : ℕ → ℝ, o =o[atTop] (1 : ℕ → ℝ) ∧
∀ᶠ n in atTop, (2 + o n) * √n ≤ f n := by
sorry
/-- Suppose $A$ is an infinite set such that all finite sums of consecutive terms of $A$ are distinct.
Then $A$ has lower density 0. -/
@[category research solved, AMS 11]
theorem erdos_357.variants.infinite_set_lower_density (A : ℕ → ℕ) (hA : StrictMono A)
(hA : HasDistinctSums A) : (Set.range A).lowerDensity = 0 := by
sorry
/-- Suppose $A$ is an infinite set such that all finite sums of consecutive terms of $A$ are distinct.
Then it is conjectured that $A$ has density 0. -/
@[category research open, AMS 11]
theorem erdos_357.variants.infinite_set_density (A : ℕ → ℕ) (hA : StrictMono A)
(hA : HasDistinctSums A) :
(Set.range A).HasDensity 0 := by
sorry
/-- Suppose $A$ is an infinite set such that all finite sums of consecutive terms of $A$ are distinct.
Then it is conjectured that the sum $\sum_k \frac{1}{a_k}$ converges. -/
@[category research open, AMS 11]
theorem erdos_357.variants.infinite_set_sum (A : ℕ → ℕ) (hA : StrictMono A)
(hA : HasDistinctSums A) :
Summable (fun i ↦ (1 : ℝ) / A i) := by
sorry
/-- Let $g(n)$ be the maximal $k$ such that there exist integers $1 \le a_1, \dotsc, a_k \le n$
such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. -/
noncomputable def g (n : ℕ) : ℕ :=
sSup {k : ℕ | ∃ a : Fin k → ℕ, (Set.range a ⊆ Set.Icc 1 n) ∧ HasDistinctSums a}
/-- Let $g(n)$ be the maximal $k$ such that there exist integers $1 \le a_1, \dotsc, a_k \le n$
such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. Hegyvári [He86] proved
that
$$\left(\frac 1 3 + o(1) \right)n \leq g(n) \leq \left(\frac 2 3 + o(1) \right)n.$$ -/
@[category research solved, AMS 11]
theorem erdos_357.variants.hegyvari : ∃ (o o' : ℕ → ℝ), o =o[atTop] (1 : ℕ → ℝ) ∧
o' =o[atTop] (1 : ℕ → ℝ) ∧
∀ᶠ n in atTop, (g n : ℝ) ∈ Set.Icc ((1 / 3 + o n) * n) ((2 / 3 + o' n)*n) := by
sorry
/-- Let $h(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 \leq \dotsc \leq a_k \le n$
such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. -/
noncomputable def h (n : ℕ) : ℕ :=
sSup {k : ℕ | ∃ a : Fin k → ℤ, Set.range a ⊆ Set.Icc 1 n ∧ Monotone a ∧ HasDistinctSums a}
-- The analogous question assuming only monotonicity of the $a_i$. The wording of the website
-- suggests that this is open, though it's not clear whether the difficulty is the same as for the
-- strictly monotone case.
/-- Let $h(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 \leq \dotsc \leq a_k \le n$
such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. Is $h(n)=o(n)$? -/
@[category research open, AMS 11]
theorem erdos_357.variants.monotone.parts.i : (fun n ↦ (h n : ℝ)) =o[atTop] (fun n ↦ (n : ℝ)) := by
sorry
def erdos_357.variants.monotone.parts.ii.bigO_version.answer : ℕ → ℝ := sorry
/-- Let $h(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 \leq \dotsc \leq a_k \le n$
such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. How does $h(n)$ grow?
Can we find a (good) explicit function $g$ such that $g = O(h)$ ? -/
@[category research open, question value, AMS 11]
theorem erdos_357.variants.monotone.parts.ii.bigO_version :
erdos_357.variants.monotone.parts.ii.bigO_version.answer =O[atTop] (fun n ↦ (h n : ℝ)) := by
sorry
def erdos_357.variants.monotone.parts.ii.bigO_version_symm.answer : ℕ → ℝ := sorry
/-- Let $h(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 \leq \dotsc \leq a_k \le n$
such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. How does $h(n)$ grow?
Can we find a (good) explicit function $g$ such that $h = O(g)$ ? -/
@[category research open, question value, AMS 11]
theorem erdos_357.variants.monotone.parts.ii.bigO_version_symm :
(fun n ↦ (h n : ℝ)) =O[atTop] erdos_357.variants.monotone.parts.ii.bigO_version_symm.answer
:= by
sorry
def erdos_357.variants.monotone.parts.ii.bigTheta_version.answer : ℕ → ℝ := sorry
/-- Let $h(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 \leq \dotsc \leq a_k \le n$
such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. How does $h(n)$ grow?
Can we find a (good) explicit function $g$ such that $h = \Theta(g)$ ? -/
@[category research open, question value, AMS 11]
theorem erdos_357.variants.monotone.parts.ii.bigTheta_version :
(fun n ↦ (h n : ℝ)) =Θ[atTop] erdos_357.variants.monotone.parts.ii.bigTheta_version.answer := by
sorry
def erdos_357.variants.monotone.parts.ii.littleO_version.answer : ℕ → ℝ := sorry
/-- Let $h(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 \leq \dotsc \leq a_k \le n$
such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. How does $h(n)$ grow?
Can we find a (good) explicit function $g$ such that $g = o(h)$ ? -/
@[category research open, question value, AMS 11]
theorem erdos_357.variants.monotone.parts.ii.littleO_version :
erdos_357.variants.monotone.parts.ii.littleO_version.answer =o[atTop] (fun n ↦ (h n : ℝ)) := by
sorry
def erdos_357.variants.monotone.parts.ii.littleO_version_symm.answer : ℕ → ℝ := sorry
/-- Let $h(n)$ be the maximal $k$ such that there exist integers $1 \le a_1 \leq \dotsc \leq a_k \le n$
such that all sums of the shape $\sum_{u \le i \le v} a_i$ are distinct. How does $h(n)$ grow?
Can we find a (good) explicit function $g$ such that $h = o(g)$ ? -/
@[category research open, question value, AMS 11]
theorem erdos_357.variants.monotone.parts.ii.littleO_version_symm :
(fun n ↦ (h n : ℝ)) =o[atTop] erdos_357.variants.monotone.parts.ii.littleO_version_symm.answer
:= by
sorry
-- TODO(Paul-Lez): add results from last paragraph of the page.
end Erdos357
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos357.erdos_357.parts.i with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_i : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-357 nosorry submit erdos-357 nosorry/erdos-357/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-357-parts-ii-bigo-version — open
- erdos-357-parts-ii-bigo-version-symm — open
- erdos-357-parts-ii-bigtheta-version — open
- erdos-357-parts-ii-littleo-version — open
- erdos-357-parts-ii-littleo-version-symm — open
- erdos-357-variants-weisenberg — known result
- erdos-357-variants-infinite-set-lower-density — known result
- erdos-357-variants-infinite-set-density — open
- erdos-357-variants-infinite-set-sum — open
- erdos-357-variants-hegyvari — known result
- erdos-357-variants-monotone-parts-i — open
- erdos-357-variants-monotone-parts-ii-bigo-version — open
- erdos-357-variants-monotone-parts-ii-bigo-version-symm — open
- erdos-357-variants-monotone-parts-ii-bigtheta-version — open
- erdos-357-variants-monotone-parts-ii-littleo-version — open
- erdos-357-variants-monotone-parts-ii-littleo-version-symm — open
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.