Title:Erdős Problem 864
Statement:Let be a set such that there exists at most one with more than one solution to (with ). Estimate the maximal possible size of . In particular, is it true that
A problem of Erdős and Freud [ErFr91] [Er92c]. For the analogous question with they prove that . This is a weaker form of Erdős Problem 840.
The condition on is
HasAtMostOneRepeatedSum. We state the question as follows: for every and all large , every such set satisfies .
| Subjects: | Combinatorics (math.CO); Number Theory (math.NT) |
| MSC classes: | 05, 11 |
| Tags: | question |
| Cite as: | NS.03432 [math.CO] · NS.03432v1 for this version |
| Declaration: | Erdos864.erdos_864 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60 |
| Statement hash: | daf645019ab16c5d48d2c699dac2583ad21755c010062ba4547c667149818c74 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/864.lean |
Formal statement
theorem erdos_864 :
∀ ε : ℝ, 0 < ε → ∀ᶠ N : ℕ in atTop, ∀ A ⊆ Finset.Icc 1 N,
HasAtMostOneRepeatedSum A →
(#A : ℝ) ≤ (1 + ε) * (2 / Real.sqrt 3) * Real.sqrt (N : ℝ)Show the full Challenge.lean (133 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 864
*References:*
- [erdosproblems.com/864](https://www.erdosproblems.com/864)
- [A389182](https://oeis.org/A389182)
- [ErFr91] Erdős, P. and Freud, R., *On sums of a Sidon-sequence*. J. Number Theory 38 (1991),
196--205.
- [Er92c] Erdős, P., *Some of my forgotten problems in number theory*. Hardy-Ramanujan J. 15
(1992), 34-50.
-/
@[expose] public section
open Filter
open scoped Finset
namespace Erdos864
/-- The representations of $n$ as a sum $n = a + b$ with $a \leq b$ and $a, b \in A$, recorded as
the pairs $(a, b)$. The case $a = b$ is allowed. -/
def sumRepresentations (A : Finset ℕ) (n : ℕ) : Finset (ℕ × ℕ) :=
{p ∈ A ×ˢ A | p.1 ≤ p.2 ∧ p.1 + p.2 = n}
/-- There is at most one $n$ with more than one representation $n = a + b$, where $a \leq b$ and
$a, b \in A$. That is, any two integers with more than one representation are equal.
Every Sidon set satisfies this condition, since then no $n$ has more than one representation. -/
def HasAtMostOneRepeatedSum (A : Finset ℕ) : Prop :=
∀ n m : ℕ, 1 < #(sumRepresentations A n) → 1 < #(sumRepresentations A m) → n = m
/--
Let $A\subseteq \{1,\ldots,N\}$ be a set such that there exists at most one $n$ with more than one
solution to $n=a+b$ (with $a\leq b\in A$). Estimate the maximal possible size of $|A|$. In
particular, is it true that
$$|A| \leq (1+o(1))\frac{2}{\sqrt{3}} N^{1/2}?$$
A problem of Erdős and Freud [ErFr91] [Er92c]. For the analogous question with $n=a-b$ they prove
that $\lvert A\rvert\sim N^{1/2}$. This is a weaker form of Erdős Problem 840.
The condition on $A$ is `HasAtMostOneRepeatedSum`. We state the question as follows: for every
$\varepsilon > 0$ and all large $N$, every such set $A$ satisfies
$|A| \leq (1+\varepsilon)\frac{2}{\sqrt{3}} N^{1/2}$.
-/
@[category research open, question, AMS 5 11]
theorem erdos_864 :
∀ ε : ℝ, 0 < ε → ∀ᶠ N : ℕ in atTop, ∀ A ⊆ Finset.Icc 1 N,
HasAtMostOneRepeatedSum A →
(#A : ℝ) ≤ (1 + ε) * (2 / Real.sqrt 3) * Real.sqrt (N : ℝ) := by
sorry
/--
Erdős and Freud [ErFr91] [Er92c] prove that
$$\lvert A\rvert \geq (1+o(1))\frac{2}{\sqrt{3}}N^{1/2}.$$
This is shown by taking a genuine Sidon set $B\subset [1,N/3]$ of size $\sim N^{1/2}/\sqrt{3}$
and taking the union with $\{N-b : b\in B\}$.
That is, for every $\varepsilon > 0$ and all large $N$ there is a set $A\subseteq \{1,\ldots,N\}$
with the property of `Erdos864.erdos_864` and $|A| \geq (1-\varepsilon)\frac{2}{\sqrt{3}}N^{1/2}$.
So the constant $2/\sqrt{3}$ there cannot be replaced by a smaller one.
-/
@[category research solved, AMS 5 11]
theorem erdos_864.variants.lower_bound :
∀ ε : ℝ, 0 < ε → ∀ᶠ N : ℕ in atTop, ∃ A ⊆ Finset.Icc 1 N,
HasAtMostOneRepeatedSum A ∧
(1 - ε) * (2 / Real.sqrt 3) * Real.sqrt (N : ℝ) ≤ #A := by
sorry
/-- A Sidon set has no integer with more than one representation, so it satisfies the condition
of the problem. -/
@[category test, AMS 5 11]
theorem hasAtMostOneRepeatedSum_of_isSidon {A : Finset ℕ} (hA : IsSidon (A : Set ℕ)) :
HasAtMostOneRepeatedSum A := by
intro n m hn _
exfalso
obtain ⟨p, hp, q, hq, hpq⟩ := Finset.one_lt_card.1 hn
simp only [sumRepresentations, Finset.mem_filter, Finset.mem_product] at hp hq
obtain ⟨⟨hp1, hp2⟩, hp3, hp4⟩ := hp
obtain ⟨⟨hq1, hq2⟩, hq3, hq4⟩ := hq
rcases hA p.1 (Finset.mem_coe.2 hp1) q.1 (Finset.mem_coe.2 hq1)
p.2 (Finset.mem_coe.2 hp2) q.2 (Finset.mem_coe.2 hq2) (by omega) with ⟨h1, h2⟩ | ⟨h1, h2⟩
· exact hpq (Prod.ext h1 h2)
· exact hpq (Prod.ext (by omega) (by omega))
/-- The set $\{1,2,3\}$ is not a Sidon set, but it satisfies the condition: only
$4 = 1 + 3 = 2 + 2$ has two representations. -/
@[category test, AMS 5 11]
theorem hasAtMostOneRepeatedSum_one_two_three : HasAtMostOneRepeatedSum {1, 2, 3} := by
have key : ∀ n, 1 < #(sumRepresentations {1, 2, 3} n) → n = 4 := by
intro n hn
obtain ⟨⟨a, b⟩, hp, ⟨c, d⟩, hq, hpq⟩ := Finset.one_lt_card.1 hn
simp only [sumRepresentations, Finset.mem_filter, Finset.mem_product, Finset.mem_insert,
Finset.mem_singleton] at hp hq
have hne : a ≠ c ∨ b ≠ d := by
rw [Ne, Prod.mk.injEq, not_and_or] at hpq
exact hpq
omega
intro n m hn hm
rw [key n hn, key m hm]
/-- The set $\{1,2,3,4\}$ does not satisfy the condition: both $4 = 1 + 3 = 2 + 2$ and
$5 = 1 + 4 = 2 + 3$ have two representations. Without the case $a = b$, $4$ would have only one
representation and the set would satisfy the condition. -/
@[category test, AMS 5 11]
theorem not_hasAtMostOneRepeatedSum_Icc_one_four :
¬ HasAtMostOneRepeatedSum (Finset.Icc 1 4) := by
intro h
have h4 : 1 < #(sumRepresentations (Finset.Icc 1 4) 4) := by decide +kernel
have h5 : 1 < #(sumRepresentations (Finset.Icc 1 4) 5) := by decide +kernel
have := h 4 5 h4 h5
omega
end Erdos864
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos864.erdos_864 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_864 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-864 nosorry submit erdos-864 nosorry/erdos-864/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-864-variants-lower-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.