The distribution of prime numbers in arithmetic progressions is governed by the zeros of Dirichlet -functions. The generalized Riemann hypothesis (GRH) asserts that these zeros lie as far left as the functional equation permits: on the critical line . It is the central unproved statement about primes: it turns Dirichlet's qualitative theorem — every coprime progression contains infinitely many primes — into sharp effective counting, and it underwrites the running-time guarantees of classical algorithms in computational number theory. Number theorists care because GRH marks the boundary between what is known unconditionally and what is believed about primes; algorithm designers care because under GRH, primality testing, generator search and the search for quadratic non-residues become deterministic and fast (Wikipedia).
Fix an integer . A Dirichlet character modulo is a map that is multiplicative, sends non-units to , and is not identically zero; equivalently it is a group homomorphism extended by zero. Its -function is
continued meromorphically to ; in Lean this continuation is DirichletCharacter.LFunction, constructed as a linear combination of Hurwitz zeta functions. It is entire unless is principal (equal to on units), when there is a simple pole at . For the unique character is principal and .
The conductor of is the least modulus through which it factors; is primitive when its conductor equals . Every character is induced by a unique primitive one, and the two -functions differ by finitely many Euler factors , , whose zeros lie on . For primitive the functional equation (already in Mathlib) relates to through a gamma factor and a root number of absolute value ; its gamma poles define the trivial zeros (negative integers, of parity determined by , and possibly ), and all other zeros — the nontrivial ones — lie in the critical strip , symmetric about the critical line .
This is the campaign template instantiated at the limiting value (i.e. ), uniform in modulus, character and height. It is equivalent to the classical critical-line statement for primitive characters; the equivalence is itself a milestone.
The result itself. GRH gives square-root cancellation in the error term of the prime number theorem for every arithmetic progression, and with it effective forms of essentially every qualitative theorem about primes in progressions: least primes, least quadratic non-residues, small generators of , deterministic polynomial-time primality testing, and completeness of Gauss's class-number-one list. Without it, the best unconditional error terms are of Siegel–Walfisz type, with ineffective constants and moduli restricted to powers of ; possible Siegel zeros block uniformity.
Formalizing it. The analytic foundations are already machine-checked: Mathlib contains the analytic continuation of Dirichlet -functions, the functional equation for primitive characters, nonvanishing on away from the principal pole, and Dirichlet's theorem; Prove2Me additionally carries a machine-checked Siegel–Walfisz theorem and the verified zero-free half-planes and . What remains open is the goal itself and the two conditional consequences; the equivalence bridge is provable from the existing Mathlib API. Contributions building reusable infrastructure — zero-counting functions , the explicit formula, zero-density estimates, large-sieve inequalities for characters — are welcome as lemmas and proof sketches.
The Euler product controls only for , and the functional equation gives symmetry of zeros about but no information about their real parts. Every known method of excluding zeros — positivity arguments, zero-density estimates, mollification — loses a fixed amount away from the line, and classical zero-free regions shrink with the modulus (of shape ); the verified fixed half-planes above are recent machine-checked developments, and the gap from down to is precisely the content of GRH. For real characters, a possible Siegel zero near is the classical obstruction to uniformity. Two tempting shortcuts do not qualify: numerical verification cannot cover all moduli and all heights, and results for alone, finitely many moduli, or bounded heights do not establish the uniform claim.
DirichletCharacter ℂ q with [NeZero q] (so ; is excluded). LFunction is the meromorphic continuation, equal to the Dirichlet series for and defined at every ; the goal excludes exactly the principal pole pair and makes no claim there.hGRH. The counting function is GRH.primeCountingAP (new, reusable); reuses the published LandauFunction.logIntegral; is Nat.totient.Asymptotics.IsBigO along atTop on ; implied constants may depend on but not on . Values of auxiliary total functions outside their intended domains (e.g. for , where the integral crosses the singularity at ) are irrelevant to the asymptotic claims.0df444a (continuation, functional equation).namespace GRH
theorem dirichlet_zero_free_bound
{q : ℕ} [NeZero q]
(χ : DirichletCharacter ℂ q) {s : ℂ}
(hs : (1 / 2 : ℝ) < s.re)
(hpole : ¬ (χ = 1 ∧ s = 1)) :
DirichletCharacter.LFunction χ s ≠ 0 := by
sorry
end GRHThe generalized Riemann hypothesis (GRH), in the uniform zero-free form tracked by the Prove2Me campaign Towards the Generalized Riemann Hypothesis, at the limiting boundary (i.e. ).
Let be an integer, let be a Dirichlet character modulo (a multiplicative map sending non-units to ), and let denote the analytic continuation of the Dirichlet series . For every complex number with
one has , except at the pole when is the principal character. The boundary is uniform: it is independent of the modulus, the character, and the height .
This statement is equivalent to the classical formulation of GRH: every nontrivial zero of every Dirichlet -function lies on the critical line . For primitive characters the nontrivial zeros are exactly the zeros in the open critical strip ; imprimitive characters contribute only additional Euler-factor zeros on the line . The case is the Riemann hypothesis for .
Formalization Note. DirichletCharacter.LFunction is Mathlib's meromorphic continuation, constructed as a linear combination of Hurwitz zeta functions; it agrees with the Dirichlet series for and is defined at every complex . Positivity of the modulus is carried by [NeZero q]. The hypothesis hpole excludes exactly the pair , the simple pole of the principal character's -function; no assertion is made at that pair. All characters are quantified, primitive and imprimitive alike.
No open leaves. Every sub-goal is proved or awaiting decomposition.