v ↦ R_M(e^v) is polar, with residues from the zeros of L(s, ξ) and L(s, ξ·(·/d)) (GRHLean)
ProvedGRHLean.isPolar_primeErrorStatement. Let be a prime with and let be prime to . Then the function of a real variable is polar (GRHLean.IsPolar) with residue function
the sum over all Dirichlet characters mod . Here is the prime error GRHLean.primeError d M x, is GRHLean.entireL, is the character mod GRHLean.quadTwist ξ d, and is Mathlib's analyticOrderNatAt f s.
Unfolded, IsPolar says: is Borel measurable, and there are a real and a function , meromorphic on all of , with for , for , analytic on , and as , , for every with . In words: the Mellin transform of the prime error, a sum of over less its expected value, continues meromorphically, with at most simple poles in at the zeros of these -functions, of the residues above.
The objects. , where for and otherwise, is von Mangoldt's function, the Legendre symbol, and , with Mathlib's logDeriv (value where its argument vanishes). is for a non-principal and Mathlib's entire continuation of for the principal one (at the value ). The bundles Def_GRHLeanT001 (the prime error and ) and Def_GRHLeanT002 (IsPolar) state these definitions.
Junk values and edge cases.
- The orders are natural numbers, cast to before they are subtracted, so a difference can be negative. Mathlib's
analyticOrderNatAtis at a point where the function is not analytic, and also where it vanishes identically near the point. - Division is Lean's: , so . The value is what
IsPolaritself forces (it allows no pole of at ), so the statement asserts in particular that the transform has no pole at . - is defined for every real ; for the prime sums are empty, and the growth bound is asked only for .
- is allowed.
Role. The source uses this lemma twice: in the one-sided criterion GRHLean.entireL_ne_zero_of_primeError_le (level 1), where Landau's lemma turns a one-sided bound for into a zero-free half-plane, and in the proof of GRHLean.eventually_primeError_le_rpow, where GRHLean.IsPolar.exists_window_sub_mul_le is applied to and .
Source: isPolar_primeError in grh-compact/src/New/Endgame/PrimeError.lean of lsernau/grh-lean (Anthropic, Apache-2.0), stated exactly as there, in the port to Lean 4.33.1 and Mathlib 0df444a3 with every declaration under the namespace GRHLean. The proof is Levent Alpöge's, with Claude.
import Mathlib.Algebra.AffineMonoid.Basic import Mathlib.Algebra.Algebra.Rat import Mathlib.Algebra.DirectSum.Internal import Mathlib.Algebra.GradedMonoid import Mathlib.Algebra.Lie.Basic import Mathlib.Algebra.LieRinehartAlgebra.Defs import Mathlib.Algebra.Module.Torsion.Basic import Mathlib.Algebra.NonAssoc.LieAdmissible.Defs import Mathlib.Algebra.NonAssoc.PreLie.Basic import Mathlib.Algebra.Order.Chebyshev import Mathlib.Algebra.Order.Group.Cone import Mathlib.Algebra.Order.Quantale import Mathlib.Algebra.Order.Ring.Cast import Mathlib.Algebra.Order.Ring.Star import Mathlib.Algebra.Order.Star.Real import Mathlib.Algebra.Ring.BooleanRing import Mathlib.Algebra.Ring.CentroidHom import Mathlib.AlgebraicTopology.FundamentalGroupoid.SimplyConnected import Mathlib.Analysis.CStarAlgebra.Classes import Mathlib.Analysis.InnerProductSpace.Calculus import Mathlib.Analysis.InnerProductSpace.Reproducing import Mathlib.Analysis.Meromorphic.Order import Mathlib.Analysis.SpecialFunctions.Complex.Analytic import Mathlib.Analysis.SpecialFunctions.ContinuousFunctionalCalculus.PosPart.Basic import Mathlib.CategoryTheory.Action.Concrete import Mathlib.CategoryTheory.Countable import Mathlib.CategoryTheory.Elements import Mathlib.CategoryTheory.Limits.Shapes.Countable import Mathlib.CategoryTheory.Limits.Shapes.FiniteProducts import Mathlib.CategoryTheory.Limits.Shapes.Products import Mathlib.CategoryTheory.Monoidal.Category import Mathlib.CategoryTheory.Monoidal.Internal.Types.Basic import Mathlib.CategoryTheory.Monoidal.Internal.Types.Grp import Mathlib.Combinatorics.Quiver.ReflQuiver import Mathlib.Data.FinEnum import Mathlib.Data.FunLike.Fintype import Mathlib.Data.Int.Cast.Lemmas import Mathlib.Data.Int.Star import Mathlib.Data.Rat.Star import Mathlib.FieldTheory.IsAlgClosed.Basic import Mathlib.FieldTheory.Perfect import Mathlib.FieldTheory.PurelyInseparable.Basic import Mathlib.GroupTheory.DoubleCoset import Mathlib.GroupTheory.SpecificGroups.KleinFour import Mathlib.LinearAlgebra.Complex.FiniteDimensional import Mathlib.LinearAlgebra.Dimension.StrongRankCondition import Mathlib.LinearAlgebra.FiniteDimensional.Lemmas import Mathlib.LinearAlgebra.FreeModule.PID import Mathlib.LinearAlgebra.Matrix.Charpoly.Basic import Mathlib.LinearAlgebra.Matrix.SchurComplement import Mathlib.LinearAlgebra.RootSystem.Defs import Mathlib.LinearAlgebra.Vandermonde import Mathlib.MeasureTheory.Integral.Bochner.Basic import Mathlib.MeasureTheory.MeasurableSpace.Constructions import Mathlib.NumberTheory.ArithmeticFunction.Misc import Mathlib.NumberTheory.DirichletCharacter.Basic import Mathlib.NumberTheory.Harmonic.EulerMascheroni import Mathlib.NumberTheory.LSeries.DirichletContinuation import Mathlib.NumberTheory.LSeries.Nonvanishing import Mathlib.NumberTheory.LSeries.PrimesInAP import Mathlib.NumberTheory.LSeries.SumCoeff import Mathlib.NumberTheory.LegendreSymbol.Basic import Mathlib.NumberTheory.LegendreSymbol.QuadraticReciprocity import Mathlib.NumberTheory.Multiplicity import Mathlib.NumberTheory.NumberField.CMField import Mathlib.NumberTheory.NumberField.Completion.FinitePlace import Mathlib.NumberTheory.NumberField.Cyclotomic.Basic import Mathlib.NumberTheory.NumberField.Discriminant.Basic import Mathlib.NumberTheory.NumberField.Ideal.Basic import Mathlib.NumberTheory.NumberField.Ideal.KummerDedekind import Mathlib.NumberTheory.NumberField.InfinitePlace.TotallyRealComplex import Mathlib.NumberTheory.NumberField.Norm import Mathlib.NumberTheory.RamificationInertia.Valuation import Mathlib.Order.CompletePartialOrder import Mathlib.Probability.Moments.ComplexMGF import Mathlib.RepresentationTheory.Basic import Mathlib.RingTheory.Algebraic.Integral import Mathlib.RingTheory.Artinian.Module import Mathlib.RingTheory.Bialgebra.Hom import Mathlib.RingTheory.Coalgebra.Hom import Mathlib.RingTheory.DedekindDomain.Basic import Mathlib.RingTheory.DedekindDomain.Different import Mathlib.RingTheory.DedekindDomain.FiniteAdeleRing import Mathlib.RingTheory.Etale.Weakly import Mathlib.RingTheory.Finiteness.ModuleFinitePresentation import Mathlib.RingTheory.Henselian import Mathlib.RingTheory.Ideal.GoingUp import Mathlib.RingTheory.Ideal.Int import Mathlib.RingTheory.Ideal.Operations import Mathlib.RingTheory.Ideal.Span import Mathlib.RingTheory.IdealFilter.Basic import Mathlib.RingTheory.LittleWedderburn import Mathlib.RingTheory.PicardGroup import Mathlib.RingTheory.PowerSeries.Derivative import Mathlib.RingTheory.PowerSeries.Order import Mathlib.RingTheory.RegularLocalRing.Defs import Mathlib.RingTheory.RootsOfUnity.EnoughRootsOfUnity import Mathlib.RingTheory.SimpleRing.Principal import Mathlib.RingTheory.TotallySplit import Mathlib.RingTheory.Valuation.Discrete.Basic import Mathlib.RingTheory.Valuation.Extension import Mathlib.Tactic.Algebra.Basic import Mathlib.Tactic.Have import Mathlib.Tactic.Monotonicity.Basic import Mathlib.Topology.Algebra.IsUniformGroup.Basic import Mathlib.Topology.Algebra.Nonarchimedean.Basic import Mathlib.Topology.Algebra.ProperAction.Basic import Mathlib.Topology.Algebra.ValuativeRel.ValuativeTopology import Mathlib.Topology.Algebra.Valued.ValuationTopology import Mathlib.Topology.Connected.Separation import Mathlib.Topology.Separation.CompletelyRegular import Definitions.Def_GRHLeanT001 import Definitions.Def_GRHLeanT002
section
attribute [-instance] _root_.GRHLean.instCoeFunValuationSubringForallValueGroup_solutions _root_.GRHLean.instCompactSpaceSubtypeMemSubgroup_solutions _root_.GRHLean.instContinuousConstSMul_solutions _root_.GRHLean.instFactIsOpenCoeSubgroup_solutions _root_.GRHLean.instIsClosedCoeSubgroupOfContinuousMul_solutions
set_option maxHeartbeats 4000000
set_option maxSynthPendingDepth 3
namespace GRHLean
open GRHLean
noncomputable section
open _root_.ArithmeticFunction _root_.DirichletCharacter _root_.Complex _root_.GRHLean.Finset _root_.Finset _root_.Filter _root_.MeasureTheory _root_.Nat _root_.Finset.Nat _root_.Filter.Nat _root_.Real _root_.ArithmeticFunction.vonMangoldt
variable (d : ℕ) [Fact d.Prime] (M : ℕ)
variable [NeZero M] {d M}
lemma isPolar_primeError (hd : d % 8 = 7) (h : M.Coprime d) : IsPolar (primeError d M ·.exp) fun s ↦
(∑ ξ, (analyticOrderNatAt (@entireL M _ ξ) s - analyticOrderNatAt (entireL (quadTwist ξ d))
s : ℂ)) / φ M / (s * (1 - s)) := by
sorry
end
end GRHLean
end