ANK:: --:--:-- GMT+3 FPS:: -- LCP:: -- PROOFS:: 0 SORRY LEDGER:: PUBLIC ONLY
← All Writing / Mathematics & Proofs 2026-11-27 · 3 min read

Closing 94% of the Fourier Gap on Prime-Gap Constants with Interval Arithmetic and Lean 4

How dyadic Fejér spline multipliers, 75-digit mpmath interval certification, and machine-checked weak duality tighten the Carneiro–Milinovich–Soundararajan constants.

Number TheoryFourier AnalysisLean 4Prime Gaps

Between two consecutive primes pnp_n and pn+1p_{n+1}, how large can pn+1−pnp_{n+1} - p_n be under the Riemann Hypothesis? Cramér’s 1936 conditional bound gave O(pnlog⁡pn)O(\sqrt{p_n}\log p_n), and in 2019 Carneiro, Milinovich, and Soundararajan (CMS) translated the search for the sharpest leading constant into an extremal problem in L1(R)L^1(\mathbb{R}) Fourier analysis.

In Paper II, we construct paired primal test functions and dual spline certificates that close more than 94% of the gap between previously known constructive lower bounds and analytical upper bounds for both C+(36/11)C^+(36/11) and C+(4)C^+(4).

1. The Extremal Constant C+(A)C^+(A)

For a parameter A>1A > 1, define the CMS functional over admissible even functions F∈L1(R)F \in L^1(\mathbb{R}) satisfying F(0)=1F(0) = 1, F(x)≤0F(x) \le 0 for ∣x∣≥1|x| \ge 1 (or dualized via Fourier support constraints):

C+(A)=sup⁡F(F^(0)−A∫∣t∣≥1max⁡(F^(t),0) dt)C^+(A) = \sup_{F} \left( \widehat{F}(0) - A \int_{|t|\ge 1} \max\bigl(\widehat{F}(t), 0\bigr)\,dt \right)

Two special values govern landmark conditional prime-gap bounds:

  • A=36/11A = 36/11: Controls the size of prime gaps lim sup⁡pn+1−pnpnlog⁡pn≤1C+(36/11)\limsup \frac{p_{n+1}-p_n}{\sqrt{p_n}\log p_n} \le \frac{1}{C^+(36/11)} under RH.
  • A=4A = 4: Controls primes in arithmetic progressions (modq)\pmod q under GRH (Chirre–Pereira Júnior–de Laat, Math. Comp. 2021).

Previously, constructive bounds left a wide gap relative to numerical approximations: tightening both sides rigorously requires exact arithmetic certification, not floating-point optimization.

2. Dual Certification via Dyadic Fejér Splines

Any even integrable multiplier ΦA\Phi_A whose Fourier transform satisfies the pointwise box constraint

1−A≤Φ^A(t)≤1(∀t∈R)1 - A \le \widehat{\Phi}_A(t) \le 1 \qquad (\forall t \in \mathbb{R})

yields a rigorous upper bound via weak duality. On ∣t∣≥1|t| \ge 1, the elementary pointwise inequality

−Amax⁡(f^(t),0)≤f^(t)(Φ^A(t)−1)-A \max(\widehat{f}(t), 0) \le \widehat{f}(t)\bigl(\widehat{\Phi}_A(t) - 1\bigr)

integrates directly into a certified dual barrier. Because Φ^A\widehat{\Phi}_A is built as a convex superposition of shifted dyadic piecewise-linear Fejér kernels across 9292 knots, checking the box inequality [1−A,1][1-A, 1] at the knots automatically guarantees it across every affine segment in between—with zero discretization error.

Outside the compact spline knots, Paley–Wiener second-derivative tail bounds are evaluated in 75-digit mpmath.iv interval arithmetic.

3. Certified Enclosures & Method Barriers

Combining rational Gaussian superpositions on the primal side with the Fejér-spline dual yields unconditional, interval-certified enclosures:

Constant Certified Lower Bound Certified Upper Bound Uncertainty Compression vs. CMS (2019)
C+(36/11)C^+(36/11) 1.199018171.19901817 1.206308711.20630871 18.6×18.6\times tighter
C+(4)C^+(4) 1.174861511.17486151 1.182975911.18297591 14.9×14.9\times tighter

Taking reciprocals establishes absolute L1(R)L^1(\mathbb{R}) barriers that no Fourier test function in the CMS–Iwaniec class can cross:

1C+(36/11)≥0.82897520,1C+(4)≥0.84532575.\frac{1}{C^+(36/11)} \ge 0.82897520, \qquad \frac{1}{C^+(4)} \ge 0.84532575.

Conditionally on GRH modulo qq, our constructive bound on C+(4)C^+(4) also sharpens Theorem 1 of Chirre–Pereira Júnior–de Laat (2021) from 0.8531 φ(q)0.8531\,\varphi(q) down to 0.85116416 φ(q)0.85116416\,\varphi(q).

4. Machine-Checked Duality in Lean 4

Alongside the 75-digit Python interval certificates, the algebraic core of the weak-duality step, spline convex-hull invariance, and the exact rational reciprocal bounds are verified with zero sorry axioms in FourierPrimalDualComplete.lean:

theorem cms_weak_duality_pointwise
    {A f_hat phi_hat : ℝ} (hlo : 1 - A ≤ phi_hat) (hhi : phi_hat ≤ 1) :
    -A * max f_hat 0 ≤ f_hat * (phi_hat - 1) := by
  by_cases hf : 0 ≤ f_hat
  · rw [max_eq_left hf]
    have hsub : -A ≤ phi_hat - 1 := by linarith
    have hmul := mul_le_mul_of_nonneg_right hsub hf
    linarith
  · rw [max_eq_right (by linarith)]
    simp only [mul_zero]
    exact mul_nonneg_of_nonpos_of_nonpos (by linarith) (by linarith)

Pairing high-precision interval arithmetic with formal proof assistants turns classical analytic inequalities into reproducible, machine-auditable artifacts. You can read the full preprint in Research.