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.
Between two consecutive primes and , how large can be under the Riemann Hypothesis? Cramér’s 1936 conditional bound gave , and in 2019 Carneiro, Milinovich, and Soundararajan (CMS) translated the search for the sharpest leading constant into an extremal problem in 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 and .
1. The Extremal Constant
For a parameter , define the CMS functional over admissible even functions satisfying , for (or dualized via Fourier support constraints):
Two special values govern landmark conditional prime-gap bounds:
- : Controls the size of prime gaps under RH.
- : Controls primes in arithmetic progressions 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 whose Fourier transform satisfies the pointwise box constraint
yields a rigorous upper bound via weak duality. On , the elementary pointwise inequality
integrates directly into a certified dual barrier. Because is built as a convex superposition of shifted dyadic piecewise-linear Fejér kernels across knots, checking the box inequality 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) |
|---|---|---|---|
| tighter | |||
| tighter |
Taking reciprocals establishes absolute barriers that no Fourier test function in the CMS–Iwaniec class can cross:
Conditionally on GRH modulo , our constructive bound on also sharpens Theorem 1 of Chirre–Pereira Júnior–de Laat (2021) from down to .
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.