Title:Erdős Problem 340
Statement:Let be the greedy Sidon sequence: we begin with and iteratively include the next smallest integer that preserves the Sidon property (i.e. there are no non-trivial solutions to ). What is the order of growth of ? Is it true that for all and large ?
| Subjects: | Combinatorics (math.CO) |
| MSC classes: | 05 |
| Cite as: | NS.01765 [math.CO] · NS.01765v1 for this version |
| Declaration: | Erdos340.erdos_340 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | f946f83d51e7c1dede868cf41b2ea6c3ab6389fd8c477c38f3a28546b76efd50 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/340.lean |
Formal statement
theorem erdos_340 (ε : ℝ) (hε : ε > 0) :
(fun n : ℕ ↦ √n / n ^ ε) =O[atTop]
fun n : ℕ ↦ ((Set.range greedySidon ∩ Set.Icc 1 n).ncard : ℝ)Show the full Challenge.lean (164 lines) — definitions included
module
public import FormalConjecturesUtil
meta import FormalConjecturesForMathlib.Combinatorics.Basic
/-!
# Erdős Problem 340
*Reference:* [erdosproblems.com/340](https://www.erdosproblems.com/340)
-/
@[expose] public section
open Filter Finset
open scoped Real Pointwise
namespace Erdos340
@[category test, AMS 5]
theorem greedySidon_go_singleton_two : (greedySidon.go {1} (by simp [IsSidon]) 2).val = 2 := by
norm_num [greedySidon, greedySidon.aux, greedySidon.go, Nat.find_eq_iff, IsSidon]
lia
@[category test, AMS 5]
theorem greedySidon_go_pair_three : (greedySidon.go {1, 2} (by simp [IsSidon]) 3).val = 4 := by
norm_num [greedySidon, greedySidon.aux, greedySidon.go, Nat.find_eq_iff, IsSidon]
lia
@[category test, AMS 5]
theorem greedySidon_zero : greedySidon 0 = 1 := rfl
@[category test, AMS 5]
theorem greedySidon_one : greedySidon 1 = 2 := by
simp [greedySidon, greedySidon.aux, greedySidon.go]
norm_num [Nat.find_eq_iff, IsSidon]
lia
@[category test, AMS 5]
theorem greedySidon_two : greedySidon 2 = 4 := by
decide +native
@[category test, AMS 5]
theorem greedySidon_three : greedySidon 3 = 8 := by
decide +native
@[category test, AMS 5]
theorem greedySidon_four : greedySidon 4 = 13 := by
decide +native
@[category test, AMS 5]
theorem greedySidon_five : greedySidon 5 = 21 := by
decide +native
@[category test, AMS 5]
theorem greedySidon_ten : greedySidon 10 = 97 := by
decide +native
/--
Let $A = \{1, 2, 4, 8, 13, 21, 31, 45, 66, 81, 97, \ldots\}$ be the greedy Sidon sequence:
we begin with $1$ and iteratively include the next smallest integer that preserves the
Sidon property (i.e. there are no non-trivial solutions to $a + b = c + d$). What is the
order of growth of $A$? Is it true that $|A \cap \{1, \ldots, N\}| \gg N^{1/2 - \varepsilon}$
for all $\varepsilon > 0$ and large $N$?
-/
@[category research open, AMS 5]
theorem erdos_340 (ε : ℝ) (hε : ε > 0) :
(fun n : ℕ ↦ √n / n ^ ε) =O[atTop]
fun n : ℕ ↦ ((Set.range greedySidon ∩ Set.Icc 1 n).ncard : ℝ) := by
sorry
def erdos_340.variants.isTheta.answer : ℕ → ℝ := sorry
/--
Let $A = \{1, 2, 4, 8, 13, 21, 31, 45, 66, 81, 97, \ldots\}$ be the greedy Sidon sequence:
we begin with $1$ and iteratively include the next smallest integer that preserves the
Sidon property (i.e. there are no non-trivial solutions to $a + b = c + d$). What is the
order of growth of $A$? Is it true that $|A \cap \{1, \ldots, N\}| \gg N^{1/2 - \varepsilon}$
for all $\varepsilon > 0$ and large $N$?
-/
@[category research open, question value, AMS 5]
theorem erdos_340.variants.isTheta (ε : ℝ) (hε : ε > 0) :
(fun n : ℕ ↦ ((Set.range greedySidon ∩ Set.Icc 1 n).ncard : ℝ)) =Θ[atTop]
erdos_340.variants.isTheta.answer := by
sorry
/--
It is trivial that this sequence grows at least like $\gg N^{1/3}$.
-/
@[category textbook, AMS 5]
theorem erdos_340.variants.third (ε : ℝ) (hε : ε > 0) :
(fun n : ℕ ↦ (n : ℝ) ^ ((1 : ℝ) / 3)) =O[atTop]
fun n : ℕ ↦ ((Set.range greedySidon ∩ Set.Icc 1 n).ncard : ℝ) := by
sorry
/--
Erdős and Graham [ErGr80] also asked about the difference set $A - A$ and whether this has
positive density.
[ErGr80] Erdős, P. and Graham, R., Old and new problems and results in combinatorial number
theory. Monographies de L'Enseignement Mathematique (1980).
-/
@[category research open, AMS 5]
theorem erdos_340.variants.sub_hasPosDensity :
Set.HasPosDensity (Set.range greedySidon - Set.range greedySidon) := by
sorry
/--
Erdős and Graham [ErGr80] also asked about the difference set $A - A$ and whether this
contains $22$, which it does.
[ErGr80] Erdős, P. and Graham, R., Old and new problems and results in combinatorial number
theory. Monographies de L'Enseignement Mathematique (1980).
-/
@[category research solved, AMS 5]
theorem erdos_340.variants._22_mem_sub :
22 ∈ Set.range greedySidon - Set.range greedySidon := by
have h : (22 : ℕ) = greedySidon 14 - greedySidon 13 := by decide +native
rw [h]
exact Set.sub_mem_sub (Set.mem_range_self 14) (Set.mem_range_self 13)
/--
The smallest integer which is unknown to be in $A - A$ is $33$.
-/
@[category research open, question, AMS 5]
theorem erdos_340.variants._33_mem_sub :
33 ∈ Set.range greedySidon - Set.range greedySidon := by
sorry
-- Formalisation note: there is some slight ambiguity in the meaning of
-- "almost all" so we provide two variants for "all but finitely many"
-- and "outside of a set of density zero"; there may be other reasonable
-- interpretations
/--
It may be true that all or almost all integers are in $A - A$.
-/
@[category research open, question, AMS 5]
theorem erdos_340.variants.cofinite_sub :
∀ᶠ n in cofinite, n ∈ Set.range greedySidon - Set.range greedySidon := by
sorry
/--
It may be true that all or almost all integers are in $A - A$.
-/
@[category research open, question, AMS 5]
theorem erdos_340.variants.co_density_zero_sub :
∃ S : Set ℕ, S.HasDensity 0 ∧ ∀ n ∈ Sᶜ, n ∈ Set.range greedySidon - Set.range greedySidon := by
sorry
end Erdos340
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos340.erdos_340 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_340 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-340 nosorry submit erdos-340 nosorry/erdos-340/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-340-variants-istheta — open
- erdos-340-variants-third — textbook
- erdos-340-variants-sub-hasposdensity — open
- erdos-340-variants-22-mem-sub — known result
- erdos-340-variants-33-mem-sub — open
- erdos-340-variants-cofinite-sub — open
- erdos-340-variants-co-density-zero-sub — 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.