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 329: Maximum Density of Sidon Sets

Source:Erdős Problems
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

Erdős Problem 329. Let A ⊆ ℕ be a Sidon set. How large can lim sup_{N → ∞} |A ∩ {1,…,N}| / N^{1/2} be?

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

Formal statement

theorem erdos_329 : sSup {sidonUpperDensity A | (A : Set ℕ) (_ : IsSidon A)} =
    erdos_329.answer
Show the full Challenge.lean (115 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 329: Maximum Density of Sidon Sets

*References:*
- [erdosproblems.com/329](https://www.erdosproblems.com/329)
- [AlMi25] B. Alexeev and D. G. Mixon, Forbidden Sidon subsets of perfect difference sets, featuring a human-assisted proof. [arXiv:2510.19804](https://arxiv.org/abs/2510.19804) (2025).
- [Ha47] Hall, Jr., Marshall, Cyclic projective planes. Duke Math. J. (1947), 1079--1090.
-/

@[expose] public section

open Function Set Filter

namespace Erdos329

/--
The partial density of a Sidon set `A` up to `N`, normalized by dividing by `√N` instead of `N`.
This measures how close the set comes to the optimal density for Sidon sets.
-/
noncomputable def sqrtPartialDensity (A : Set ℕ) (N : ℕ) : ℝ :=
  (A ∩ Set.Icc 1 N).ncard / (N : ℝ).sqrt

/-- The upper density of a Sidon set `A`, normalized by `√N`. -/
noncomputable def sidonUpperDensity (A : Set ℕ) : ℝ :=
  limsup (fun N => sqrtPartialDensity A N) atTop

def erdos_329.answer : ℝ := sorry

/--
**Erdős Problem 329.**
Let `A ⊆ ℕ` be a Sidon set. How large can
`lim sup_{N → ∞} |A ∩ {1,…,N}| / N^{1/2}`
be?
-/
@[category research open, question value, AMS 5 11]
theorem erdos_329 : sSup {sidonUpperDensity A | (A : Set ℕ) (_ : IsSidon A)} =
    erdos_329.answer := by
  sorry

/--
Erdős proved that upper density `1 / 2` can be attained; in particular,
there exists a Sidon set whose upper density is *at least* `1 / 2`.
-/
@[category research solved, AMS 5 11]
theorem erdos_329.variants.lower_bound : ∃ (A : Set ℕ), IsSidon A ∧ sidonUpperDensity A ≥ 1/2 := by
  sorry

/--
Krückeberg ([Kr61]) exhibited an infinite Sidon set `A` with
`sidonUpperDensity A = 1 / Real.sqrt 2`, improving Erdős’ earlier
`1 / 2` lower bound.

[Kr61] Krückeberg, Fritz, $B\sb{2}$-Folgen und verwandte Zahlenfolgen. J. Reine Angew. Math. (1961), 53-60.
-/
@[category research solved, AMS 5 11]
theorem erdos_329.variants.kruckeberg_1961 : ∃ (A : Set ℕ), IsSidon A ∧
    sidonUpperDensity A = 1 / Real.sqrt 2 := by
  sorry

/--
Erdős and Turán [ErTu41] proved the upper bound of 1.

[ErTu41] Erdős, P. and Turán, P., On a problem of Sidon in additive number theory, and on some related problems. J. London Math. Soc. (1941), 212-215.
-/
@[category research solved, AMS 5 11]
theorem erdos_329.variants.turan_1941 : ∀ (A : Set ℕ), IsSidon A → sidonUpperDensity A ≤ 1 := by
  sorry

/--
The converse: if the maximum density is 1, then any finite Sidon set
can be embedded in a perfect difference set modulo $n > 0$.

Since the consequent is false (due to the counterexamples in [Ha47] and [AlMi25]),
this implication is logically equivalent to the statement that the maximum upper
density of Sidon sets is NOT 1.
Because the maximum upper density problem is still open, the truth value of this
implication is also an open research problem.
-/
@[category research open, AMS 5 11]
theorem erdos_329.variants.converse_implication :
    (sSup {sidonUpperDensity A | (A : Set ℕ) (_ : IsSidon A)} = 1) →
    (∀ (A : Finset ℕ), IsSidon (A : Set ℕ) → ∃ (D : Set ℕ) (n : ℕ) (_ : n > 0),
      ↑A ⊆ D ∧ IsPerfectDifferenceSet D n) := by
  sorry

/-  ## Related results and examples -/

/--
It is possible to construct a Sidon set with positive density.
-/
@[category textbook, AMS 5 11]
theorem exists_sidon_pos_density : ∃ (A : Set ℕ), IsSidon A ∧ 0 < sidonUpperDensity A := by
  sorry

end Erdos329

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

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