Title:Erdős Problem 34
Statement:For any permutation of let count the number of distinct consecutive sums, that is, sums of the shape . Is it true that for all ?
Hegyvári [He86] gave a counterexample.
| Subjects: | Combinatorics (math.CO); Number Theory (math.NT) |
| MSC classes: | 05, 11 |
| Tags: | question, formal_proof |
| Cite as: | NS.01755 [math.CO] · NS.01755v1 for this version |
| Declaration: | Erdos34.erdos_34 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | e6d7460169e7af35c850c2ada67d867d1c4ba70e037fec44eb847cfef3abe333 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/34.lean |
Formal statement
theorem erdos_34 :
¬ ∀ c : ℝ, 0 < c → ∃ N : ℕ, ∀ n ≥ N, ∀ p : Equiv.Perm (Fin n),
((consecutiveSums n p).card : ℝ) < c * (n : ℝ) ^ 2Show the full Challenge.lean (64 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 34
*References:*
- [erdosproblems.com/34](https://www.erdosproblems.com/34)
- [Er77c] Erdős, Paul, *Problems and results on combinatorial number theory. III*. Number theory day
(Proc. Conf., Rockefeller Univ., New York, 1976) (1977), 43-72.
- [ErGr80] Erdős, P. and Graham, R., *Old and new problems and results in combinatorial number
theory*. Monographies de L'Enseignement Mathematique (1980).
- [He86] Hegyvári, N., *On consecutive sums in sequences*. Acta Math. Hungar. (1986),
193--200.
- [Ko15] Konieczny, J., *On consecutive sums in permutations*. arXiv:1504.07156 (2015).
-/
@[expose] public section
namespace Erdos34
open scoped BigOperators
/-- The set of consecutive sums of a permutation `p` of `{1,…,n}`, where position `k` holds the
value `p k + 1`: the sums `∑_{u ≤ k ≤ v} (p k + 1)`. -/
def consecutiveSums (n : ℕ) (p : Equiv.Perm (Fin n)) : Finset ℕ :=
(Finset.univ.filter (fun x : Fin n × Fin n => x.1 ≤ x.2)).image
(fun x => ∑ k ∈ Finset.Icc x.1 x.2, ((p k : ℕ) + 1))
set_option linter.style.formal_proof_palomar false in
/--
For any permutation $\pi\in S_n$ of $\{1,\ldots,n\}$ let $S(\pi)$ count the number of distinct consecutive sums, that is, sums of the shape $\sum_{u\leq i\leq v}\pi(i)$. Is it true that
$$
S(\pi) = o(n^2)
$$
for all $\pi\in S_n$?
Hegyvári [He86] gave a counterexample.
-/
@[category research solved, question, AMS 5 11,
formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob/main/src/v4.29.1/ErdosProblems/Erdos34.lean"]
theorem erdos_34 :
¬ ∀ c : ℝ, 0 < c → ∃ N : ℕ, ∀ n ≥ N, ∀ p : Equiv.Perm (Fin n),
((consecutiveSums n p).card : ℝ) < c * (n : ℝ) ^ 2 := by
sorry
end Erdos34
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos34.erdos_34 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_34 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-34 nosorry submit erdos-34 nosorry/erdos-34/Solution.lean --wait
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.