Imprimitive-to-primitive reduction:
ProvedDavenport.vmSumChar_sub_primitive_leanalytic-number-theorydirichlet-l-functionnumber-theorysiegel-walfisz
Reduction of to the primitive character (Davenport §19). Let be a Dirichlet character modulo and let be the primitive character modulo the conductor that induces it (Mathlib's primitiveCharacter). With ,
where is the number of distinct prime factors of . Indeed unless , in which case ; the terms that differ are the prime powers with , and for each such they contribute at most . This is the elementary step that lets the explicit formula and the zero-free region, which are stated for primitive characters, be applied to arbitrary characters in the §20 estimate; note .
Preamble
import Definitions.Def_Davenport_siegelWalfisz import Mathlib.NumberTheory.LSeries.DirichletContinuation import Mathlib.NumberTheory.DirichletCharacter.Basic import Mathlib.NumberTheory.ArithmeticFunction.VonMangoldt import Mathlib.NumberTheory.Chebyshev import Mathlib.Analysis.SpecialFunctions.Pow.Real import Mathlib.Analysis.SpecialFunctions.Pow.Complex import Mathlib.Analysis.SpecialFunctions.Log.Basic import Mathlib.Analysis.SpecialFunctions.Exp import Mathlib.Analysis.SpecialFunctions.Sqrt import Mathlib.Algebra.BigOperators.Finprod import Mathlib.Data.Nat.Totient import Mathlib.NumberTheory.EulerProduct.DirichletLSeries open Finset DirichletCharacter Vino
Formal statement
namespace Davenport
theorem vmSumChar_sub_primitive_le (q : ℕ) [NeZero q] (χ : DirichletCharacter ℂ q) (N : ℕ) :
‖vmSumChar q χ N - vmSumChar χ.conductor χ.primitiveCharacter N‖
≤ (q.primeFactors.card : ℝ) * Real.log N := by sorry
end DavenportSource
H. Davenport, Multiplicative Number Theory, 3rd ed. (revised by H. L. Montgomery), GTM 74, Springer, 2000, https://doi.org/10.1007/978-1-4757-5927-3; §19 (The explicit formula for ψ(x,χ)), pp. 115–120: the remark ψ(x,χ) = ψ(x,χ*) + O((log q)(log x)) for an imprimitive character χ induced by χ*
Human review
Confirmed by the mission captain (proposal self-audit).