Title:Erdős Problem 42: Maximal Sidon Sets and Disjoint Difference Sets · example_maximal_sidon
1 result recorded on aiXiv
- computation Computational experiments on Erdős Problem #42 using greedy maximal Sidon sets and Singer/Bose–Chowla sets for up to . For , about 26% of random maximal Sidon sets admit no Sidon set of size 4 with . Failures disappear beyond about for and for . The authors report gaps in of size and give a heuristic argument for an affirmative answer. — aiXiv:2609.03218, 2026-02-19 · claimed by its authors; no independent check recorded on aiXiv
From aixiv.online, an open archive of AI-assisted research, synced daily. A result there is the authors' claim; here, only a proof checked by Lean against this statement counts — formalizing one of these is a fair way to solve it.
Statement:The set
{1, 2, 4}is a maximal Sidon set in{1, ..., 4}.
| Subjects: | Combinatorics (math.CO); Number Theory (math.NT) |
| MSC classes: | 05, 11 |
| Cite as: | NS.02072 [math.CO] · NS.02072v1 for this version |
| Declaration: | Erdos42.example_maximal_sidon |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 3, later ones: 1; accepted critique: up to 60 |
| Statement hash: | c501a823cedf5cc9ee4bac50aba044c9c2aa59c0f2b14c40166c7123e2df8127 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/42.lean |
Formal statement
theorem example_maximal_sidon : IsMaximalSidonSetIn {1, 2, 4} 4Show the full Challenge.lean (138 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 42: Maximal Sidon Sets and Disjoint Difference Sets
*Reference:* [erdosproblems.com/42](https://www.erdosproblems.com/42)
This problem asks whether maximal Sidon sets can coexist with other Sidon sets that have
disjoint difference sets (apart from 0).
-/
@[expose] public section
open Function Set Filter
open scoped Pointwise
namespace Erdos42
set_option linter.style.formal_proof_palomar false in
/--
**Erdős Problem 42**: Let M ≥ 1 and N be sufficiently large in terms of M. Is it true that for every
maximal Sidon set `A ⊆ {1,…,N}` there is another Sidon set `B ⊆ {1,…,N}` of size M such that
`(A - A) ∩ (B - B) = {0}`?
This was proved for all $M$ by GPT 5.5 Pro (prompted by Sandhu), see discussion thread for more details.
-/
@[category research solved, question, AMS 5 11, formal_proof using lean4 at "https://github.com/Shashi456/erdos-formalizations/blob/main/Erdos/P42/CompactCayley/Proof.lean"]
theorem erdos_42 :
∀ M ≥ 1, ∀ᶠ N in atTop, ∀ (A : Set ℕ) (_ : IsMaximalSidonSetIn A N),
∃ᵉ (B : Set ℕ), B ⊆ Set.Icc 1 N ∧ IsSidon B ∧ B.ncard = M ∧
((A - A) ∩ (B - B)) = {0} := by
sorry
set_option linter.style.formal_proof_palomar false in
/--
A variant asking for explicit bounds on how large N needs to be in terms of M.
This version provides a constructive function f such that for all M ≥ 1 and N ≥ f(M),
every maximal Sidon set A ⊆ {1,…,N} has another Sidon set B ⊆ {1,…,N} of size M with
disjoint difference sets (apart from 0).
-/
@[category research solved, question, AMS 5 11,
formal_proof using formal_conjectures at "https://github.com/KitaKen1/erdos-42-constructive-variant/blob/1f82c76be43cb56f22e2f7f792e392d5fb3ff78c/lean/Erdos42Constructive.lean"]
theorem erdos_42.variants.constructive :
∃ (f : ℕ → ℕ), ∀ (M N : ℕ) (_ : 1 ≤ M) (_ : f M ≤ N),
∀ (A : Set ℕ) (_ : IsMaximalSidonSetIn A N), ∃ᵉ (B : Set ℕ),
B ⊆ Set.Icc 1 N ∧ IsSidon B ∧ B.ncard = M ∧
((A - A) ∩ (B - B)) = {0} := by
sorry
/- ## Related results and examples -/
/--
The set `{1, 2, 4}` is a maximal Sidon set in `{1, ..., 4}`.
-/
@[category textbook, AMS 5 11]
theorem example_maximal_sidon : IsMaximalSidonSetIn {1, 2, 4} 4 := by
refine ⟨?_, ?_, ?_⟩
· intro x hx
simp only [Set.mem_insert_iff, Set.mem_singleton_iff] at hx
rcases hx with rfl | rfl | rfl <;> simp [Set.mem_Icc]
· intro i₁ hi₁ j₁ hj₁ i₂ hi₂ j₂ hj₂ hsum
simp only [Set.mem_insert_iff, Set.mem_singleton_iff] at hi₁ hj₁ hi₂ hj₂
rcases hi₁ with rfl | rfl | rfl <;>
rcases hj₁ with rfl | rfl | rfl <;>
rcases hi₂ with rfl | rfl | rfl <;>
rcases hj₂ with rfl | rfl | rfl <;>
simp_all
· intro x hx hxA
simp only [Set.mem_Icc] at hx; obtain ⟨hx1, hx2⟩ := hx
simp only [Set.mem_insert_iff, Set.mem_singleton_iff, not_or] at hxA
obtain ⟨hne1, hne2, hne4⟩ := hxA
have hx3 : x = 3 := (by omega); subst hx3
intro hbad
have := hbad 1 (by simp) 2 (by simp) 3 (by simp) 2 (by simp) (by norm_num)
rcases this with ⟨h1, h2⟩ | ⟨h1, h2⟩ <;> omega
/--
The difference set of `{1, 2, 4}` is `{0, 1, 2, 3}`.
-/
@[category textbook, AMS 5 11]
theorem example_difference_set : ({1, 2, 4} : Set ℕ) - {1, 2, 4} = {0, 1, 2, 3} := by
ext x
simp only [Set.mem_sub, Set.mem_insert_iff, Set.mem_singleton_iff]
constructor
· rintro ⟨a, ha, b, hb, rfl⟩
rcases ha with rfl | rfl | rfl <;>
rcases hb with rfl | rfl | rfl <;>
simp
· rintro (rfl | rfl | rfl | rfl)
· exact ⟨1, by decide, 1, by decide, by decide⟩
· exact ⟨2, by decide, 1, by decide, by decide⟩
· exact ⟨4, by decide, 2, by decide, by decide⟩
· exact ⟨4, by decide, 1, by decide, by decide⟩
/--
For any maximal Sidon set, the difference set contains 0.
-/
@[category textbook, AMS 5 11]
theorem maximal_sidon_contains_zero (A : Set ℕ) (N : ℕ) (hN : 1 ≤ N)
(hA : IsMaximalSidonSetIn A N) : 0 ∈ A - A := by
obtain ⟨hAsub, hAsidon, hAmax⟩ := hA
have hne : A.Nonempty
· by_contra hemp; rw [Set.not_nonempty_iff_eq_empty] at hemp
exact hAmax (Set.mem_Icc.mpr ⟨le_refl 1, hN⟩)
(by rw [hemp]; exact id) (by
rw [hemp, Set.empty_union]
exact fun _ hi _ hj _ hk _ hl _ => by
simp only [Set.mem_singleton_iff] at hi hj hk hl
subst hi
subst hj
subst hk
subst hl
exact Or.inl ⟨rfl, rfl⟩)
obtain ⟨a, ha⟩ := hne
have := Set.sub_mem_sub ha ha
rwa [Nat.sub_self] at this
end Erdos42
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos42.example_maximal_sidon with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_example_maximal_sidon : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-42--example-maximal-sidon nosorry submit erdos-42--example-maximal-sidon nosorry/erdos-42--example-maximal-sidon/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.