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 1213

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,K≥1a,K\geq 1. Does there exist f(a,K)f(a,K) such that if a=a1<⋯<asa=a_1<\cdots <a_s is a sequence of integers with as>f(a,K)a_s> f(a,K) and with bounded gaps ai+1−ai≤Ka_{i+1}-a_i\leq K then there are two distinct intervals II and JJ such that ∑i∈Iai=∑j∈Jaj?\sum_{i\in I}a_i=\sum_{j\in J}a_j?

Hegyvári [He86] has proved the answer is yes, and gives an explicit bound of the shape f(a,K)≪aeO(K)f(a,K) \ll ae^{O(K)}. Hegyvári believes that the exponential dependence on KK here is not best possible.

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

Formal statement

theorem erdos_1213 : ∀ a K : ℕ, 1 ≤ a → 1 ≤ K → ∃ f : ℕ,
    ∀ (s : ℕ) (A : ℕ → ℕ), 0 < s → A 0 = a → StrictMonoOn A (Set.Iio s) →
      (∀ i, i + 1 < s → A (i + 1) - A i ≤ K) → f < A (s - 1) → HasEqualIntervalSums A s
Show the full Challenge.lean (69 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 1213

*References:*
- [erdosproblems.com/1213](https://www.erdosproblems.com/1213)
- [He86] Hegyvári, N., *On consecutive sums in sequences*. Acta Math. Hungar. (1986), 193-200.
-/

@[expose] public section

namespace Erdos1213

/--
A finite sequence `A 0, …, A (s - 1)` has two distinct (nonempty) index intervals
`[u, v)` and `[x, y)` with the same sum.
-/
def HasEqualIntervalSums (A : ℕ → ℕ) (s : ℕ) : Prop :=
  ∃ u v x y : ℕ, u < v ∧ v ≤ s ∧ x < y ∧ y ≤ s ∧ (u, v) ≠ (x, y) ∧
    ∑ i ∈ Finset.Ico u v, A i = ∑ i ∈ Finset.Ico x y, A i

set_option linter.style.formal_proof_palomar false in
/--
Let $a,K\geq 1$. Does there exist $f(a,K)$ such that if $a=a_1<\cdots <a_s$ is a sequence of
integers with $a_s> f(a,K)$ and with bounded gaps $a_{i+1}-a_i\leq K$ then there are two distinct
intervals $I$ and $J$ such that
$$\sum_{i\in I}a_i=\sum_{j\in J}a_j?$$

Hegyvári [He86] has proved the answer is yes, and gives an explicit bound of the shape
$f(a,K) \ll ae^{O(K)}$. Hegyvári believes that the exponential dependence on $K$ here is not best
possible.
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at
  "https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1213.lean#L495"]
theorem erdos_1213 : ∀ a K : ℕ, 1 ≤ a → 1 ≤ K → ∃ f : ℕ,
    ∀ (s : ℕ) (A : ℕ → ℕ), 0 < s → A 0 = a → StrictMonoOn A (Set.Iio s) →
      (∀ i, i + 1 < s → A (i + 1) - A i ≤ K) → f < A (s - 1) → HasEqualIntervalSums A s := by
  sorry

/--
Hegyvári [He86] proved that one can take $f(a,K) \ll ae^{O(K)}$.
-/
@[category research solved, AMS 11]
theorem erdos_1213.variants.hegyvari : ∃ C : ℝ, 0 < C ∧ ∀ a K : ℕ, 1 ≤ a → 1 ≤ K →
    ∀ (s : ℕ) (A : ℕ → ℕ), 0 < s → A 0 = a → StrictMonoOn A (Set.Iio s) →
      (∀ i, i + 1 < s → A (i + 1) - A i ≤ K) → C * a * Real.exp (C * K) < A (s - 1) →
        HasEqualIntervalSums A s := by
  sorry

end Erdos1213

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

nosorry fetch erdos-1213
nosorry submit erdos-1213 nosorry/erdos-1213/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.