The one-sided bound for the prime error R_{N₀}(x) ≤ x^{8ε − 1/2} (GRHLean)
ProvedGRHLean.eventually_primeError_le_rpowStatement. Let be a parameter record (GRHLean.Parameters): natural numbers and with , prime, and (that is, ; such a is ). Let be a real number with and . Then for all sufficiently large real ,
where is GRHLean.primeError d M x with and , the real-power exponent being .
The prime error. For a prime and , put when and otherwise, with von Mangoldt's function and the Legendre symbol (lambdaClass). Then
with , the sum over all Dirichlet characters mod ; is entireL, equal to for non-principal and to Mathlib's entire continuation of for the principal character, and is the character mod (quadTwist). In Lean the two sums are lambdaSum d M 0 x and lambdaSum d M 1 x, the logarithmic derivative is Mathlib's logDeriv (which is where its argument vanishes), and is the real power Real.rpow. Only large matter here.
Role. This is the deep half of the compact GRH proof: with the analytic criterion GRHLean.entireL_ne_zero_of_primeError_le it gives the goal GRH.dirichlet_zero_free_bound. In the source it is deduced from the inequality (⋆) (star_inequality) and the existence of admissible data, which rest on the proof's Theorems A–C; later levels of this carve publish those steps.
Source: eventually_primeError_le_rpow in grh-compact/src/New/Main.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.Group.Action.Units import Mathlib.Algebra.Group.Units.Hom 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.Pointwise.Stabilizer import Mathlib.Algebra.Polynomial.Eval.Irreducible import Mathlib.Algebra.Ring.Action.Basic import Mathlib.Algebra.Ring.Action.End import Mathlib.Algebra.Ring.BooleanRing import Mathlib.Algebra.Ring.CentroidHom import Mathlib.AlgebraicTopology.FundamentalGroupoid.SimplyConnected import Mathlib.Analysis.CStarAlgebra.Classes import Mathlib.Analysis.Complex.ExponentialBounds import Mathlib.Analysis.Complex.Polynomial.Basic import Mathlib.Analysis.InnerProductSpace.Calculus import Mathlib.Analysis.InnerProductSpace.Reproducing import Mathlib.Analysis.Matrix.Order 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.Complex.Basic 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.Data.SetLike.Basic import Mathlib.Data.ZMod.Units import Mathlib.FieldTheory.Galois.IsGaloisGroup import Mathlib.FieldTheory.Galois.Profinite import Mathlib.FieldTheory.IsAlgClosed.Basic import Mathlib.FieldTheory.Perfect import Mathlib.FieldTheory.PurelyInseparable.Basic import Mathlib.GroupTheory.DoubleCoset import Mathlib.GroupTheory.GroupAction.Defs 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.Lagrange 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.Cyclotomic.CyclotomicCharacter import Mathlib.NumberTheory.Cyclotomic.Gal 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.JacobiSymbol import Mathlib.NumberTheory.LegendreSymbol.QuadraticReciprocity import Mathlib.NumberTheory.Multiplicity import Mathlib.NumberTheory.NumberField.Basic 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.Embeddings import Mathlib.NumberTheory.NumberField.InfinitePlace.TotallyRealComplex import Mathlib.NumberTheory.NumberField.Norm import Mathlib.NumberTheory.NumberField.Units.Basic import Mathlib.NumberTheory.RamificationInertia.Valuation import Mathlib.Order.CompletePartialOrder import Mathlib.Probability.Moments.ComplexMGF import Mathlib.RepresentationTheory.Basic import Mathlib.RepresentationTheory.Invariants import Mathlib.RingTheory.Algebraic.Integral import Mathlib.RingTheory.Artinian.Module import Mathlib.RingTheory.Bialgebra.Hom import Mathlib.RingTheory.Coalgebra.Hom import Mathlib.RingTheory.DedekindDomain.AdicValuation import Mathlib.RingTheory.DedekindDomain.Basic import Mathlib.RingTheory.DedekindDomain.Different import Mathlib.RingTheory.DedekindDomain.FiniteAdeleRing import Mathlib.RingTheory.DedekindDomain.Ideal.Lemmas import Mathlib.RingTheory.Etale.Weakly import Mathlib.RingTheory.Finiteness.ModuleFinitePresentation import Mathlib.RingTheory.Flat.TorsionFree 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.IsGaloisGroup.Defs import Mathlib.RingTheory.LittleWedderburn import Mathlib.RingTheory.PicardGroup import Mathlib.RingTheory.Polynomial.UniversalFactorizationRing import Mathlib.RingTheory.PowerSeries.Derivative import Mathlib.RingTheory.PowerSeries.Order import Mathlib.RingTheory.RegularLocalRing.Defs import Mathlib.RingTheory.RootsOfUnity.AlgebraicallyClosed 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.RingTheory.Valuation.ValuationSubring import Mathlib.Tactic.Algebra.Basic import Mathlib.Tactic.Bound import Mathlib.Tactic.Have import Mathlib.Tactic.Monotonicity.Basic import Mathlib.Tactic.NormNum.Prime import Mathlib.Tactic.Qify import Mathlib.Topology.Algebra.ContinuousMonoidHom import Mathlib.Topology.Algebra.Group.Basic import Mathlib.Topology.Algebra.Group.TopologicalAbelianization 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.Instances.AddCircle.Defs import Mathlib.Topology.Separation.CompletelyRegular import Definitions.Def_GRHLeanT001
section
set_option maxHeartbeats 4000000
set_option maxSynthPendingDepth 3
namespace GRHLean
open GRHLean
section Main
open _root_.DirichletCharacter _root_.Real _root_.GRHLean.Finset _root_.Finset _root_.Filter _root_.GRHLean.Parameters _root_.ZMod _root_.Module
lemma eventually_primeError_le_rpow (P : Parameters) {ε : ℝ} (h : 0 < ε / 6 ∧ ε < 1 / 100) :
∀ᶠ x in atTop, primeError P.d P.N₀ x ≤ x ^ (8 * ε + 2⁻¹ - 1) := by
sorry
end Main
end GRHLean
end