Actual rational prime sums with exact principal zeta coefficient and primitive nonprincipal L-function remainder
ProvedHelfgott.actual_rational_principal_zeta_error_smallLet 0<q≤300000 and gcd(a,q)=1. For x≥49×10^25, sigma>1 and any real beta, let eta be actual etaPlus or actual etaStar. Define P(L) to be the full initial vertical Mellin integral of x^s Mellin(eta(u)e(x beta u))(s) (-L prime/L)(s). The complete prime exponential sum at a/q+beta differs by at most 10^-8 x from
(mu(q)/phi(q)) P(zeta) + (1/phi(q)) sum over nonprincipal chi modulo q of C(chi) P(L of chi.primitiveCharacter).
All integrals use the actual signed smoothing, every infinite tail, and the continued L-functions. No character estimate is assumed. The proof identifies the original principal character's conductor as one and its primitive L-function as Riemann zeta. Its rational coefficient is exactly mu(q), proved from complete finite orthogonality, a full prime-power Ramanujan calculation and coprime multiplicativity. The remaining primitive character aggregate and full arithmetic remainder have a proved norm error at most 10^-8 x.
This identifies the arithmetic factor of the expected Goldbach major-arc main term. Extracting the zeta pole, shifting contours, certified zeros and quantitative character estimates remain separate obligations. Neither complete Goldbach mission is asserted.
import Definitions.Def_Helfgott_Smoothings import Definitions.Def_Helfgott_WeightedCounting import Definitions.Def_CircleMethod_char import Mathlib.Analysis.MellinInversion import Mathlib.NumberTheory.LSeries.Dirichlet import Mathlib.NumberTheory.LSeries.DirichletContinuation import Mathlib.NumberTheory.DirichletCharacter.Orthogonality open scoped BigOperators Classical open MeasureTheory Set Finset
theorem Helfgott.actual_rational_principal_zeta_error_small (q a : ℕ) [NeZero q]
(ha : Nat.Coprime a q) (hql : q ≤ 300000) (σ x β : ℝ)
(hσ : 1 < σ) (hx : (49 : ℝ)*10^25 ≤ x)
(η : ℝ → ℝ) (hη : η=Helfgott.etaPlus ∨ η=Helfgott.etaStar) :
let c : ℕ → ℂ := fun n => (ArithmeticFunction.vonMangoldt n : ℂ)*(η ((n : ℝ)/x) : ℂ)
let P : (ℂ → ℂ) → ℂ := fun L => (1/(2*Real.pi) : ℝ) • ∫ t : ℝ,
let s : ℂ := (σ : ℂ)+(t : ℂ)*Complex.I
(x : ℂ)^s*mellin (fun u : ℝ => (η u : ℂ)*CircleMethod.e (x*β*u)) s*
(-deriv L s/L s)
‖Helfgott.expSum c (((a : ℝ)/(q : ℝ)+β : ℝ) : AddCircle (1 : ℝ)) -
(((ArithmeticFunction.moebius q : ℤ) : ℂ)/(Nat.totient q : ℂ)*P riemannZeta +
(Nat.totient q : ℂ)⁻¹*(∑ χ ∈ (univ : Finset (DirichletCharacter ℂ q)).filter
(fun χ => χ ≠ 1),
(∑ b ∈ (range q).filter (fun b => Nat.Coprime b q),
CircleMethod.e ((a : ℝ)*(b : ℝ)/(q : ℝ))*χ ((b : ZMod q)⁻¹))*
P (@DirichletCharacter.LFunction χ.conductor
⟨χ.conductor_ne_zero⟩ χ.primitiveCharacter)))‖ ≤ x/(10^8 : ℝ) := by sorry