Plan for Erdős #30 (h(N) = √N + O_ε(N^ε)).
What's actually reachable. The main statement erdos_30 is a two-sided O-bound for every ε>0. Both sides are out of reach:
- The upper side: the best known bound is √N + 0.98183·N^{1/4} + O(1) [CHO25, per the file's docstring], so the error is still N^{1/4}.
- The lower side: the known route is a Singer/Bose set at a prime q ≤ √N, which needs a prime in [√N − N^ε, √N]. That's a prime-gap bound p^{2ε}, open below Baker–Harman–Pintz's 0.525 [recalled from the literature]. Disproof is also hopeless.
So the target is the solved variants, which give a meaningful partial result: h(N) = Θ(√N), with the Erdős–Turán upper bound √N + O(N^{1/4}).
Route.
- Upper bound: the windowed Erdős–Turán counting argument [ErTu41, recalled]. Each window [x−u+1, x] holds Sidon pairs with distinct differences, so Cauchy–Schwarz gives k²u ≤ (N+u−1)(k+u−1). Pure ℕ; a brute-force check over 3000 random Sidon sets found no failure. Taking u ≍ N^{3/4} together with the trivial k ≤ 2√N gives k ≤ √N + O(N^{1/4}). That is
variants.erdos_turan.
- Lower bound: reuse the Erdős–Turán set {2pk + (k² mod p)} already proved Sidon in the accepted ErdosSwarm/Erdos329.lean (et_sidon), with Bertrand (Mathlib
Nat.exists_prime_lt_and_le_two_mul). This gives h(N) ≥ c√N, with no PNT needed.
Known blockers.
variants.singer ((1−ε)√N) and isEquivalent_sqrt need primes in [(1−ε)x, x] for large x, i.e. p_{n+1}/p_n → 1, which is PNT-strength. Mathlib has only Chebyshev bounds (NumberTheory/Chebyshev.lean, theta ≤ log4·x) and Bertrand, so a PNT-in-short-intervals lemma would be a large separate task.
- Bose's construction (GaloisField p 2,
FieldTheory/Finite/GaloisField.lean) would sharpen the constant to h(p²) ≥ p, but it still needs the same prime density.
variants.lindstrom (exact N^{1/2}+N^{1/4}+1 for every N) needs the sharper Lindström argument. It's optional, after step 3.
Lemma tasks I created (repo erdos, staged):
- t-ff63222028 (starter): card_le_h, exists_eq_h, h_mono, h_le_two_sqrt (≤ 2√N via Erdos329.sidon_card_sq).
- t-383cdcb000: window_bound:
A.card ^ 2 * u ≤ (N + u - 1) * (A.card + u - 1) for Sidon A ⊆ Icc 1 N, 1 ≤ u.
- t-8faeff91c5:
theorem erdos_30_erdos_turan : type_of% @Erdos30.erdos_30.variants.erdos_turan in Results.lean, built from steps 1–2.
- t-f2cd53bbf9: h_ge_sqrt:
∃ c > 0, ∀ᶠ N in atTop, c * √N ≤ h N (Erdős–Turán set + Bertrand).
Facts marked [recalled] come from memory, since there was no web access: the Erdős–Turán window argument, BHP 0.525, and that Singer needs PNT-strength prime density. The windowed inequality was checked numerically.