A complete explicit prime exponential-sum bound combining quadratic and prime-sieve Type II estimates
ProvedHelfgott.etaTwo_vonMangoldt_sieve_upperexplicit-boundsgoldbachminor-arcsselberg-sievevaughan-identity
Let be natural numbers with , , , and . Suppose , , , and with . Define
where the natural-number logarithm is zero at zero. For a block put
Then the complete smoothed von Mangoldt sum satisfies
Here for and zero otherwise. All prime-sieve errors, phase perturbations and higher prime powers are included explicitly; the parameters remain available for further optimization.
Preamble
import Definitions.Def_Helfgott_VaughanData import Mathlib.Algebra.Order.Floor.Ring import Mathlib.Analysis.SpecialFunctions.Sqrt import Mathlib.Data.Nat.Log import Mathlib.Data.Nat.Totient open Helfgott Finset ArithmeticFunction open scoped BigOperators
Formal statement
theorem Helfgott.etaTwo_vonMangoldt_sieve_upper (U V R q a : ℕ)
(hU : 1≤U) (hR : 2≤R) (hRV : R≤V) (hq : 2≤q) (ha : Nat.Coprime a q)
(y theta beta : ℝ) (hy : 8≤y) (hUy : 8*(U:ℝ)≤y) (hVy : 4*(V:ℝ)≤y)
(htheta : theta=(a:ℝ)/(q:ℝ)+beta) (hbeta : |beta|≤1/(q:ℝ)^2) :
let B := min (U*V) ⌊y⌋₊
let J := Nat.log 2 (⌊y/(V+1:ℕ)⌋₊/(U+1))+1
let Q : ℕ → ℕ → ℝ := fun C D =>
let T := ⌊y/(C:ℝ)⌋₊
let A := (4*Real.log 2)^2*y/(C:ℝ)
let B := 224*Real.log 2*(D:ℝ)/y
(Real.log (T+1:ℕ)*(Real.log 4*(T+1:ℕ)+2*Real.sqrt (T+1:ℕ)*Real.log (T+1:ℕ)))*
((D:ℝ)*(∑ d ∈ Icc 1 U, ∑ e ∈ Icc 1 U,
((moebius d:ℤ):ℝ)*((moebius e:ℤ):ℝ)/(Nat.lcm d e:ℝ))+(U:ℝ)^2)*
(((D-C)/q+1:ℕ):ℝ)*(2*A+min (2*B*(q:ℝ)^2) (A+2*(q:ℝ)*Real.sqrt (A*B)))
let S : ℕ → ℕ → ℝ := fun C D =>
let N := ⌊y/(C:ℝ)⌋₊+1
let E := (D:ℝ)*(∑ d ∈ Icc 1 U, ∑ e ∈ Icc 1 U,
((moebius d:ℤ):ℝ)*((moebius e:ℤ):ℝ)/(Nat.lcm d e:ℝ))+(U:ℝ)^2
let A := 16*(Real.log 2)^2*(q:ℝ)*(((D-C)/q+1:ℕ):ℝ)*
((N:ℝ)/((Nat.totient q:ℝ)*Real.log (R:ℝ))+(R:ℝ)^4)*
(1+2*Real.pi*(N:ℝ)*(D:ℝ)*|beta|)^2
Real.sqrt (A*(Real.log (N:ℝ)*Real.log 4*(N:ℝ))*E)+
8*Real.log 2*Real.sqrt (N:ℝ)*Real.log (N:ℝ)*Real.sqrt ((D-C:ℕ):ℝ)*Real.sqrt E
‖expSum (fun n => ((vonMangoldt n*etaTwo ((n:ℝ)/y):ℝ):ℂ)) (theta:AddCircle (1:ℝ))‖ ≤
(4*Real.log (y+2))*(9*(q:ℝ)^4/y+24*y/(q:ℝ)*(1+Real.log (U+q:ℕ))+30*(U+q:ℕ))+
Real.log (B+q:ℕ)*(9*(q:ℝ)^4/y+24*y/(q:ℝ)*(1+Real.log (B+q:ℕ))+30*(B+q:ℕ))+
∑ j ∈ range J, min (Real.sqrt (Q ((U+1)*2^j) ((U+1)*2^(j+1))))
(S ((U+1)*2^j) ((U+1)*2^(j+1))) := by sorrySource
Vaughan identity, quadratic rational kernels, classical finite Selberg sieve and Fourier orthogonality, in the setting of H. A. Helfgott, Minor arcs for Goldbach, https://arxiv.org/html/1205.5252v4. Retained source proofs carry Apache 2.0 attribution to raresbuhai, marwahaha and Gershon Bialer in the standalone certificate. New smoothing factorization, sieve weights, complete phase perturbation and prime-power assembly formalized by Codex.