Chapter I · Unit 154
The inequality (⋆), the one-sided bound for the remainder of the weighted prime sum, the generalised Riemann hypothesis, and the passage to the critical line
Notes
What it holds · 5 declarations
lemma
star_inequalitylines 121–145argumentThe inequality (\star ). For parameters P and admissible data D for P (Lean'sData P): m_D\cdot \operatorname{rem}(D) \le (\log b_D)^{2}\cdot \mathcal{B}(D), where m_D =D.is the number of theta lifts, \operatorname{rem}(D) =m D.is the remainder of the weighted prime sum (unit 151: the sum over the tops \tau ofremainder D.(a_D, \tau ) -primeSum D.), b_D = \exp(mainAsk D.) is the third scale of D, and \mathcal{B}(D) =logB D.= f_D\cdot a_D\cdot (\log b_D)^{3} is the error budget (f_D the number of infinite places of the field E of D, a_D =budget D.the least multiple of N_1 that is at least x_D\cdot b_D).a Structured proof, 13 steps Theorem 1, p. 2 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Main.lean · line 121 lemma star_inequality {P} {D : Data P} : D.m * D.remainder ≤ D.logB ^ 2 * D.budget :=lemma
eventually_primeError_le_rpowlines 149–167argumentOne-sided bound. For parameters P, with N_0 =P.and the prime d =N₀ P., and for every real \varepsilon with 0 < \varepsilon /6 and \varepsilon < 1/100 (hypothesis h): for all sufficiently large real x (Lean's ∀ᶠ x ind atTop: there is X_0 such that the bound holds for every x \ge X_0), R_{d,N_0}(x) \le x^{(8\varepsilon + 1/2 - 1)}, that is x^{(8\varepsilon - 1/2)}; here R_{d,N_0}(x) =primeErrord N_0 x is the remainder of the smoothed sum \sum _{\nu \le x, \nu \equiv 1 \bmod N_0} \Lambda (\nu )(1 - (\nu /d))(1/\nu - 1/x) over the integers \nu \equiv 1 \bmod N_0, prime powers included (at a prime p with (p/d) = -1 the factor 1 - (\nu /d) is 2 at odd powers of p and 0 at even ones; wording corrected after the second reading, a second-reader message) (unit 151), and x^y is the real power.Structured proof, 10 steps Theorem 2, p. 2 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Main.lean · lines 149–150 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) := bylemma
New.lines 174–190argumentgrh DirichletLNonvanishingRightOfHalfholds: for every natural number q \ne 0 (instanceNeZero q), every Dirichlet character \chi modulo q with complex values and every complex number \rho with 1/2 < \operatorname{Re} \rho, if \chi is not the principal character or \rho \ne 1, then L(\rho , \chi ) \ne 0 (Mathlib'sDirichletCharacter.).LFunction Structured proof, 6 steps Input 1, p. 3 of The five final theorems, and what one must trust Theorem 3, p. 2 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Main.lean · line 174 lemma New.grh : DirichletLNonvanishingRightOfHalf := fun q _ χ ρ hρ pole zero ↦ bylemma
New.lines 194–196argumentzeros_on_line IfDirichletLNonvanishingRightOfHalfholds (hypothesis h), thenDirichletLZerosOnLineholds: for every natural number N \ne 0 (instanceNeZero N), every Dirichlet character \chi modulo N and every complex s with 0 < \operatorname{Re} s, \operatorname{Re} s < 1 and L(s, \chi ) = 0, one has \operatorname{Re} s = 1/2.Structured proof, 1 step Input 2, p. 3 of The five final theorems, and what one must trust Theorem 4, p. 2 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Main.lean · line 194 lemma New.zeros_on_line (h : DirichletLNonvanishingRightOfHalf) : DirichletLZerosOnLine :=lemma
New.lines 200–204argumentzeta_zeros_on_line IfDirichletLNonvanishingRightOfHalfholds (hypothesis h), thenRiemannZetaZerosOnLineholds: every complex number s with \zeta (s) = 0, s not of the form -2(n + 1) for a natural number n, and s \ne 1, has \operatorname{Re} s = 1/2 (\zeta is Mathlib'sriemannZeta).Structured proof, 4 steps Input 3, p. 3 of The five final theorems, and what one must trust Theorem 5, p. 2 of The main inequality, the bound for the primes, and the zero-free half-plane
The Lean statement
New/Main.lean · lines 200–201 lemma New.zeta_zeros_on_line (h : DirichletLNonvanishingRightOfHalf) : RiemannZetaZerosOnLine := fun s ↦ by
What it takes for granted
Unit 54 · Period lattices and complex uniformization of polarized abelian varieties, Unit 102 · Adelic cusp forms, algebraic modular forms and the Petersson pairing, Unit 106 · Class numbers and adelic fundamental domains of number fields, Unit 112 · Matrix determinant estimates and simultaneous eigenvectors, Unit 121 · Minkowski bounds and adelic reduction of Hermitian forms, Unit 140 · Good idempotents, labels and the transfer of traces between unitary groups, Unit 141 · The seesaw identity for the chain of theta lifts, and the index types of the data, Unit 143 · The rows: target forms on an indefinite U(r), the volume of the chain of lifts as a product of lift volumes, and the height of each lift volume, Unit 147 · The exchange identity: theta integrals of complementary rank agree up to a constant, and cruder forms complete a family to a basis in the lower bound, Unit 148 · Translates of Poincaré series fill the rows: a Petersson-type second moment along a Bessel subgroup, Unit 150 · Theta functions of the CM curve: periods and scales, tight frames, the integral vacuum, Galois conjugates of jets, and divisibility of jets at non-split primes, Unit 151 · The endgame: the weighted prime sum and its remainder, the one-sided criterion (Landau), the choice of the second scale, and the statements and assembly of Theorems A, B and C, Unit 152 · The data of the proof: the parameters N₀ and d, the CM field E = K(ζ) and its places, the scales x, x₁, b, the ranks m, k, r, t, the order a, the comparison of sizes on the logarithmic scale, and the existence of admissible data at every large x, Unit 153 · The statements: the Riemann hypothesis and the generalised Riemann hypothesis for Dirichlet L-functions, in three forms
Unit 151 · The endgame: the weighted prime sum and its remainder, the one-sided criterion (Landau), the choice of the second scale, and the statements and assembly of Theorems A, B and C · 10 declarations
Data.unit 151exists_family_covolumeSq_le (Theorems A and B together.) For admissible data D there are a natural number n and rows y : Fin n → rows(D), linearly independent over ℂ, with (1 − 4/b_D²)·dim rows(D) ≤ n, with IndexLe(D, y, δ) for some δ ≤ 5·dim rows(D)·log(1 + b_D²)·𝓑(D), and with squared covolume of the untwisted lifts Θ_D(1)∘y at most exp(n·(h_main(D) − m_D·rem(D) + log b_D·𝓑(D))) at every automorphism σ of ℂ.
IndexLe(D, y, δ) for rows y : Fin n → rows(D) and a real δ: some function e from primes to reals has ∑_{l∈U} e(l) ≤ δ for every finite set U, and for every prime l, every embedding ι above l and every twist ϑ with l prime to the level of ϑ there is an integral matrix u at ι with |det u|_ι ≥ exp(−e(l)) such that every row ∑_k u_{ik}·y_k has ι-integral lift Θ_D(ϑ)(∑_k u_{ik}·y_k).
h_main(D) = m_D·k_D·𝖴(D), the main amount (𝖴 = D.dirCost, the cost of one direction).
rem(D) = ∑_{τ ∈ tops(D)} (D.primeSum(a_D, τ) − D.mainAsk): the weighted prime sums at the tops less their expected value.
Data.unit 151abs_mainHeight_add_remainder_le Crude bound: |h_main(D)| + m_D·|rem(D)| ≤ b_D²·x_D⁹⁹.
Data.unit 151integral_forms_long (Theorem C.) For admissible data D, rows y : Fin n → rows(D), reals δ and V: if y is linearly independent, (1 − 4/b_D²)·dim rows(D) ≤ n, IndexLe(D, y, δ), and the squared covolume of Θ_D(1)∘y is at most exp(V) at every automorphism σ of ℂ, then dim rows(D)·(h_main(D) − 3·log b_D·𝓑(D)) ≤ V + 2δ.
For a prime d ≡ 7 mod 8 and M ≥ 1 coprime to d, the function v ↦ R_{d,M}(e^v) is polar (
IsPolar), with residue at s equal to ∑_ξ (ord_s L̃(s, ξ) − ord_s L̃(s, ξ·(·/d)))/(φ(M)·s(1 − s)), ξ over the Dirichlet characters modulo M.IsPolar.unit 151exists_window_sub_mul_le If E and E′ are polar, then for all large t and every X ∈ [0, e^t] there is u ∈ [t, t²] with E(u) − X·E′(u) ≤ e^(−t).
rem(D) = a_D·(#thick(D)·(R_{d,N₀}(x_D) − R_{d,N₀}(x₁_D)) + #tops(D)·R_{d,1}(x₁_D)).
entireL_ne_zero_of_primeError_leunit 151One-sided criterion: for M ≥ 1, a unit a modulo M and β > 1/2 such that every prime d ≡ a mod M is ≡ 7 mod 8, coprime to M, and has R_{d,M}(x) ≤ x^(β − 1) for all large x: L̃(ρ, χ) ≠ 0 for every complex ρ with Re ρ > β and every Dirichlet character χ modulo M.
Unit 102 · Adelic cusp forms, algebraic modular forms and the Petersson pairing · 1 declaration
LevelPlaces.unit 102LevelForm. covolumeSq The squared covolume of a finite family y of forms at an automorphism σ of ℂ: the absolute value of the determinant of the matrix of products ⟨y_i, y_l⟩_σ of the σ-conjugated values.
Unit 143 · The rows: target forms on an indefinite U(r), the volume of the chain of lifts as a product of lift volumes, and the height of each lift volume · 1 declaration
Unit 148 · Translates of Poincaré series fill the rows: a Petersson-type second moment along a Bessel subgroup · 1 declaration
Data.unit 148finrank_rows_ne_zero For admissible data D, the space of rows has non-zero (finite) dimension over ℂ.
Unit 140 · Good idempotents, labels and the transfer of traces between unitary groups · 1 declaration
dim rows(D) = D.rowDim: the complex dimension of the space of rows of D.
Unit 152 · The data of the proof: the parameters N₀ and d, the CM field E = K(ζ) and its places, the scales x, x₁, b, the ranks m, k, r, t, the order a, the comparison of sizes on the logarithmic scale, and the existence of admissible data at every large x · 14 declarations
𝓑(D) = f_D·a_D·(log b_D)³, the error budget.
If a real F has a lower size bound exp(l) ≤ F for the data D, then F > 0.
Data.unit 152le_of_hasLogBound Size comparison for the data D: if |F| ≤ exp(l) and exp(l′) ≤ G (bounds found by instance search from the sizes of the factors on the logarithmic scales of D) and l < l′ (by default proved from the scale conditions of D), then F ≤ G.
For parameters P and a real ε with 0 < ε/6 and ε < 1/100: for all large x there are admissible data D for P with x_D = x, log x₁_D = x^(ε/6), (10⁶·log x)² ≤ log x₁_D, log log b_D = ε·log x and towerDeg(s_D)/log b_D ≤ #thick(D).
Parameters.unit 152coprime_N₁_d For every s, N₁(P, s) = N₀·towerDeg(s) is coprime to d.
Data.unit 152hasLogLower_of_le If G ≤ F and exp(l′) ≤ G is a lower size bound of G for the data D, then exp(l′) ≤ F (a lower size bound of F).
Admissible data for parameters P (the structure Data P): real numbers log x, log b, log x₁ and natural numbers s, m, r with s ≤ 32·log x; a finite set thick of infinite places of E(P, s); a map g : {0, 1} → ℕ; an integer π_g of K(P); subject to: (scale) 10¹²·c(P) ≤ log log b, 100·log log b ≤ log x, 10⁶·log x ≤ log x₁, 10⁶·log x₁ ≤ log b and 6·log log x₁ ≤ log log b (the only conditions that mention log x₁); √x ≤ m ≤ 2√x and x⁵ ≤ r ≤ 3x⁵, where x = exp(log x); m = 2^(e+1) and s = 22(e + 1) for some natural e, and r = 3^(e′+1) for some natural e′; (class condition) for every divisor m′ of N₁(P, s) with m′ ∣ N₀·3^(⌊log₃ s⌋+5), every place σ ∈ thick has class −1 modulo m′; (three-term condition) with φ the class of a place modulo the power of 2 dividing N₁(P, s) given by
P.: for all naturals 0 < i < j ≤ 324·s and all σ, τ, ρ ∈ thick, φ(τ/σ)^j = φ(ρ/σ)^i implies φ(τ/σ) = 1; g₀ = g(0) and g₁ = g(1) are distinct primes with g_i ≡ 1 mod N₁(P, s)·d, M_ω(P, s)² ∣ g_i − 1 and b¹⁰ ≤ g_i ≤ b¹¹, where b = exp(log b); π_g·π̄_g = g₀g₁; (prime windows) for every real U with 100·log b ≤ U ≤ 2^s there is a prime p ≡ 1 mod M_ω(P, s)² with U ≤ log p ≤ U + √(log b). (Completed after the writer of Chapter I found s ≤ 32·log x and M_ω² ∣ g_i − 1 missing; read against AdmissibleData.lean, lines 22–45.)two_pow_dvd_N₁ towerDeg(s) = 3^(⌊log₃ s⌋ + 5)·2^s.
tops(D): the infinite places of E whose class in (ℤ/N₁)^× is ≡ 1 mod N₀.
Parameters.unit 152card_placeClass_eq Exactly towerDeg(s) of the infinite places of E (read in (ℤ/N₁)^×) are ≡ 1 mod N₀.
Parameters: natural numbers N₀ and d with 18480 ∣ N₀, d prime, N₀ ∣ 2(d + 1) and N₀ ∤ d + 1 (that is, d ≡ N₀/2 − 1 mod N₀).
For parameters P, d = P.d is a prime ≡ 7 mod 8 (instance PrimeSevenModEight).
For parameters P: 64 ≤ c(P), N₀ ≤ c(P), d ≤ c(P) and φ(N₀) ≤ c(P), where c(P) is the constant of the parameters (
Parameters.). Used through instance search (the comparisons of sizes), not by name.c Parameters.unit 152card_infinitePlace_E For parameters P and every natural s, the number of infinite places of E(P, s) is towerDeg(s)·φ(N₀). Used through instance search, not by name.
Unit 106 · Class numbers and adelic fundamental domains of number fields · 3 declarations
The class PrimeSevenModEight d: d is prime and d % 8 = 7.
L̃(s, χ) = entireL χ s: L(s, χ) if χ is not principal, and the entire function (s − 1)·L(s, χ) (with its limit at s = 1) if χ is principal.
LFunction_one_sub_eq_zerounit 106Symmetry of zeros: for N ≠ 0, a Dirichlet character χ modulo N and s with L(s, χ) = 0, Re s ≠ 0 and s ≠ 1: the gamma factor of χ vanishes at s (a pole of Γ, where Mathlib's Γ is 0) or L(1 − s, χ⁻¹) = 0.
Unit 153 · The statements: the Riemann hypothesis and the generalised Riemann hypothesis for Dirichlet L-functions, in three forms · 3 declarations
DirichletLNonvanishingRightOfHalfunit 153The proposition: for N ≠ 0, χ a Dirichlet character modulo N, and Re s > 1/2 with χ ≠ 1 or s ≠ 1, L(s, χ) ≠ 0.
DirichletLZerosOnLineunit 153The proposition: for N ≠ 0, χ modulo N, and 0 < Re s < 1 with L(s, χ) = 0, Re s = 1/2.
RiemannZetaZerosOnLineunit 153The proposition: every zero s of ζ with s ∉ {−2, −4, …} and s ≠ 1 has Re s = 1/2.
From Lean's own library · 26 facts
neg_le_abs−a ≤ |a| for every real a.
le_abs_selfa ≤ |a| for every real a.
LinearIndependent.fintype_card_le_finrank A linearly independent family indexed by a finite type in a finite-dimensional space has at most as many members as the dimension.
Fintype.card_fin The finite type Fin n has n elements.
Real.tendsto_log_atTop log x → ∞ as x → ∞.
Filter.Tendsto. const_mul_atTop If f → ∞ and r > 0, then r·f → ∞.
Filter.filter_upwards To show that a property holds eventually, it suffices to show it at every point where finitely many eventually-true properties hold.
Real.log_exp log(e^x) = x.
Real.exp_mul e^(x·y) = (e^x)^y.
DirichletCharacter.LFunction_changeLevel For M ∣ N and χ modulo M with χ ≠ 1 or s ≠ 1: L(s, χ induced to modulus N) = L(s, χ)·∏_{p ∣ N prime}(1 − χ(p)p^(−s)).
DirichletCharacter.changeLevel_eq_one_iff The induced character is principal iff χ is.
DirichletCharacter.LFunctionTrivChar₁ For N ≠ 0, the entire function equal to (s − 1)·L(s, 1_N) for s ≠ 1 (with its limit at s = 1).
IsUnit.of_mul_eq_one If a·b = 1 in a commutative monoid, then a is a unit.
ZMod.natCast_self The natural number n is 0 in ℤ/n.
ZMod.natCast_eq_zero_iff A natural number is 0 in ℤ/n iff n divides it.
Nat.mul_dvd_mul_iff_right For k > 0: m·k ∣ n·k iff m ∣ n.
Nat.Coprime. coprime_mul_right If a product is coprime to n, so is each of its factors (here the factor N₀).
DirichletCharacter.gammaFactor The gamma factor of χ: Γ_ℝ(s) if χ is even and Γ_ℝ(s + 1) if χ is odd, Γ_ℝ(s) = π^(−s/2)Γ(s/2).
Complex.Gammaℝ_ne_zero_of_re_pos Γ_ℝ(s) ≠ 0 when Re s > 0.
Complex.ext_iff Two complex numbers are equal iff their real and imaginary parts are.
Nat.or_exists_add_one Every natural number is 0 or n + 1 for some natural n.
riemannZeta_zeroζ(0) = −1/2.
DirichletCharacter.LFunction_modOne_eq For the character modulo 1, L(s, χ) = ζ(s).
riemannZeta_def_of_ne_zeroFor s ≠ 0, ζ(s) = Λ(s)/Γ_ℝ(s), Λ the completed zeta function.
completedRiemannZeta_one_subΛ(1 − s) = Λ(s) (the functional equation).
Complex.Gammaℝ_eq_zero_iff Γ_ℝ(s) = 0 iff s = −2n for a natural number n (Mathlib's Γ is 0 at its poles).
Where it is used
Its files
1 module
The program check
5 of 5 statements stand at the lines the dossier gives; 5 structured proofs with 34 steps, 27 of them leaves, the longest of 4 lines; 34 steps quote exactly their lines. Checked 2026-11-26T07:36Z.
The check shows that the dossier describes the lines it cites. Whether the English is right is read when a note is written.