Title:Erdős Problem 867
Statement:Is it true that if has no solutions to then
In fact this problem is false. Freud [Fr93] constructed a sequence with density . The current best bounds are due to Coppersmith and Phillips [CoPh96], who prove that the maximal size of such an satisfies
| Subjects: | Combinatorics (math.CO); Number Theory (math.NT) |
| MSC classes: | 05, 11 |
| Tags: | question, formal_proof |
| Cite as: | NS.03441 [math.CO] · NS.03441v1 for this version |
| Declaration: | Erdos867.erdos_867 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | cd130052a4b570f3596cc11cf6c58cac9ca200365cacc6ac8f4e84cd7ac0fdc9 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/867.lean |
Formal statement
theorem erdos_867 :
¬ ∃ C : ℝ, ∀ N : ℕ, ∀ A ⊆ Finset.Icc 1 N, ConsecutiveSumFree A →
(A.card : ℝ) ≤ (N : ℝ) / 2 + CShow the full Challenge.lean (137 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 867
*References:*
- [erdosproblems.com/867](https://www.erdosproblems.com/867)
- [CoPh96] Coppersmith, Don and Phillips, Steven, *On a question of Erdős on subsequence sums*.
SIAM J. Discrete Math. (1996), 173-177.
- [Fr93] Freud, R., *Adding numbers - on a problem of P. Erdős*. James Cook Mathematical
Notes (1993), 6199-6202.
-/
@[expose] public section
open Filter
namespace Erdos867
/-- A finite set of naturals $A=\{a_1<\cdots<a_t\}$ is *consecutive-sum-free* if it has no
solutions to $a_i+a_{i+1}+\cdots+a_j\in A$ with $i<j$; equivalently, whenever an interval
$[m,n]$ contains at least two elements of $A$, the sum of the elements of $A$ lying in
$[m,n]$ is not itself an element of $A$. -/
def ConsecutiveSumFree (A : Finset ℕ) : Prop :=
∀ m n : ℕ, 2 ≤ (Finset.Icc m n ∩ A).card → (∑ a ∈ Finset.Icc m n ∩ A, a) ∉ A
set_option linter.style.formal_proof_palomar false in
/--
Is it true that if $A=\{a_1<\cdots <a_t\}\subseteq \{1,\ldots,N\}$ has no solutions to
$$a_i+a_{i+1}+\cdots+a_j\in A$$
then
$$\lvert A\rvert \leq \frac{N}{2}+O(1)?$$
In fact this problem is false. Freud [Fr93] constructed a sequence with density $\geq 19/36$.
The current best bounds are due to Coppersmith and Phillips [CoPh96], who prove that the
maximal size of such an $A$ satisfies
$$\frac{13}{24}N -O(1)\leq \lvert A\rvert \leq \left(\frac{2}{3}-\frac{1}{512}\right)N+\log N.$$
-/
@[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/Erdos867.lean"]
theorem erdos_867 :
¬ ∃ C : ℝ, ∀ N : ℕ, ∀ A ⊆ Finset.Icc 1 N, ConsecutiveSumFree A →
(A.card : ℝ) ≤ (N : ℝ) / 2 + C := by
sorry
/--
Taking $A=(N/2,N]\cap \mathbb{N}$ shows $\lvert A\rvert \geq N/2-O(1)$ is possible.
-/
@[category research solved, AMS 5 11]
theorem erdos_867.variants.lower_bound :
∃ C : ℝ, ∀ N : ℕ, ∃ A ⊆ Finset.Icc 1 N, ConsecutiveSumFree A ∧
((N : ℝ) / 2 - C ≤ (A.card : ℝ)) := by
-- Take `A = (N/2, N]`: any two of its elements already sum to more than `N`.
refine ⟨0, fun N => ⟨Finset.Icc (N / 2 + 1) N, ?_, ?_, ?_⟩⟩
· intro x hx
simp only [Finset.mem_Icc] at hx ⊢
omega
· intro m n hcard hmem
set T := Finset.Icc m n ∩ Finset.Icc (N / 2 + 1) N with hT
have hlow : ∀ x ∈ T, N / 2 + 1 ≤ x := by
intro x hx
simp only [hT, Finset.mem_inter, Finset.mem_Icc] at hx
omega
have hsum : T.card * (N / 2 + 1) ≤ ∑ a ∈ T, a := by
simpa [mul_comm] using Finset.card_nsmul_le_sum T _ _ hlow
have h2 : 2 * (N / 2 + 1) ≤ ∑ a ∈ T, a :=
le_trans (Nat.mul_le_mul_right _ hcard) hsum
simp only [Finset.mem_Icc] at hmem
omega
· rw [Nat.card_Icc, sub_zero]
have h2 : N + 1 - (N / 2 + 1) = N - N / 2 := by omega
rw [h2]
have h3 : N ≤ 2 * (N - N / 2) := by omega
have h4 : (N : ℝ) ≤ ((2 * (N - N / 2) : ℕ) : ℝ) := by exact_mod_cast h3
push_cast at h4
linarith
set_option linter.style.formal_proof_palomar false in
/--
Adenwalla has observed that
$$\lvert A\rvert \leq (\tfrac{2}{3}+o(1))N.$$
-/
@[category research solved, AMS 5 11, formal_proof using lean4 at "https://github.com/anatoliiohorodnyk/lean-fc-proofs/blob/5da9642575b26c2c816a49bcb56b33fed5456619/Proofs/T_Erdos867_erdos_867_variants_adenwalla.lean#L262"]
theorem erdos_867.variants.adenwalla (ε : ℝ) (hε : 0 < ε) :
∀ᶠ N : ℕ in atTop, ∀ A ⊆ Finset.Icc 1 N, ConsecutiveSumFree A →
(A.card : ℝ) ≤ (2 / 3 + ε) * (N : ℝ) := by
sorry
/--
Freud [Fr93] constructed a sequence with density $\geq 19/36$.
-/
@[category research solved, AMS 5 11]
theorem erdos_867.variants.freud :
∀ ε : ℝ, 0 < ε → ∀ᶠ N : ℕ in atTop, ∃ A ⊆ Finset.Icc 1 N, ConsecutiveSumFree A ∧
(((19 / 36 : ℝ) - ε) * (N : ℝ) ≤ (A.card : ℝ)) := by
sorry
/--
The current best bounds are due to Coppersmith and Phillips [CoPh96], who prove that the
maximal size of such an $A$ satisfies
$$\frac{13}{24}N -O(1)\leq \lvert A\rvert.$$
-/
@[category research solved, AMS 5 11]
theorem erdos_867.variants.coppersmith_phillips_lower_bound :
∃ C : ℝ, ∀ N : ℕ, ∃ A ⊆ Finset.Icc 1 N, ConsecutiveSumFree A ∧
((13 / 24 : ℝ) * (N : ℝ) - C ≤ (A.card : ℝ)) := by
sorry
/--
The current best bounds are due to Coppersmith and Phillips [CoPh96], who prove that the
maximal size of such an $A$ satisfies
$$\lvert A\rvert \leq \left(\frac{2}{3}-\frac{1}{512}\right)N+\log N.$$
-/
@[category research solved, AMS 5 11]
theorem erdos_867.variants.coppersmith_phillips_upper_bound :
∀ᶠ N : ℕ in atTop, ∀ A ⊆ Finset.Icc 1 N, ConsecutiveSumFree A →
(A.card : ℝ) ≤ (2 / 3 - 1 / 512) * (N : ℝ) + Real.log (N : ℝ) := by
sorry
end Erdos867
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos867.erdos_867 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_867 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-867 nosorry submit erdos-867 nosorry/erdos-867/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-867-variants-lower-bound — known result
- erdos-867-variants-adenwalla — known result
- erdos-867-variants-freud — known result
- erdos-867-variants-coppersmith-phillips-lower-bound — known result
- erdos-867-variants-coppersmith-phillips-upper-bound — 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.