Actual rational prime sums represented by primitive-conductor L-function integrals with total error at most 10^-8 x
ProvedHelfgott.actual_rational_primitive_LFunction_error_smallFor every positive q≤300000, every natural numerator a, x≥49×10^25, sigma>1 and every real beta, let eta be either actual etaPlus or actual etaStar. The complete rational-arc von Mangoldt exponential sum at a/q+beta differs in complex norm by at most 10^-8 x from the full finite character sum of the initial Mellin integrals of the associated primitive characters, exactly as displayed. Each L-function is explicitly at chi's conductor, with the derived nonzero witness supplied in the statement.
The full proof includes all actual smoothing and additive-phase convergence, exact rational character decomposition, complete primitive-character correction and coefficient orthogonality. Parseval gives sum |C(chi)|²=phi(q)², and Cauchy–Schwarz gives sum |C(chi)|≤phi(q) sqrt(phi(q))≤548 phi(q). Each primitive-character correction is at most 10^-11 x; the original non-coprime error is also at most 10^-11 x. Their sum is at most 549×10^-11 x, hence 10^-8 x. Every signed and infinite tail remains.
This directly reduces the actual Goldbach prime sums to primitive-conductor L-functions relevant to certified zero inputs. No smoothing, coefficient or primitive-conductor error estimate is assumed. Contour shifts, verified zeros and quantitative prime-model errors 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 open MeasureTheory Set Finset
theorem Helfgott.actual_rational_primitive_LFunction_error_small (q a : ℕ) [NeZero 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) : ℂ)
‖Helfgott.expSum c (((a : ℝ)/(q : ℝ)+β : ℝ) : AddCircle (1 : ℝ)) -
(Nat.totient q : ℂ)⁻¹*(∑ χ : DirichletCharacter ℂ q,
(∑ b ∈ (range q).filter (fun b => Nat.Coprime b q),
CircleMethod.e ((a : ℝ)*(b : ℝ)/(q : ℝ))*χ ((b : ZMod q)⁻¹))*
((1/(2*Real.pi) : ℝ) • ∫ t : ℝ,
let s : ℂ := (σ : ℂ)+(t : ℂ)*Complex.I
let L : ℂ → ℂ := @DirichletCharacter.LFunction χ.conductor
⟨χ.conductor_ne_zero⟩ χ.primitiveCharacter
(x : ℂ)^s*mellin (fun u : ℝ => (η u : ℂ)*CircleMethod.e (x*β*u)) s*
(-deriv L s/L s)))‖ ≤ x/(10^8 : ℝ) := by sorry