Chapter I · Unit 155
The five final theorems: the Riemann hypothesis and the generalised Riemann hypothesis for Dirichlet L-functions
RiemannHypothesis; the same as RiemannZetaZerosOnLine; non-vanishing of every Dirichlet L-function on \operatorname{Re} s > 1/2 (the pole s = 1 of a principal character excepted); zeros of Dirichlet L-functions in the critical strip lie on \operatorname{Re} s = 1/2, for all characters and for primitive ones. Everything is New.grh (unit 154) and its two consequences by the functional equation, New.zeros_on_line and New.zeta_zeros_on_line .Notes
What it holds · 5 declarations
theorem
riemannHypothesisline 4assemblyThe Riemann hypothesis, in Mathlib's formulationRiemannHypothesis: for 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, one has \operatorname{Re} s = 1/2 (\zeta is Mathlib'sriemannZeta). Proof in the source (one line):New.(unit 154) applied tozeta_zeros_on_line New.(unit 154); this is accepted because Mathlib'sgrh RiemannHypothesisand the artifact'sRiemannZetaZerosOnLine(unit 153) unfold to the same proposition.Theorem 1, p. 1 of The five final theorems, and what one must trust
The Lean statement
Main.lean · line 4 theorem riemannHypothesis : RiemannHypothesis := New.zeta_zeros_on_line New.grhtheorem
riemannZeta_eq_zero_reline 6restatementRiemannZetaZerosOnLineholds: for 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, one has \operatorname{Re} s = 1/2. Proof in the source: the termriemannHypothesisitself, i.e. the two definitions agree up to unfolding.Theorem 2, p. 1 of The five final theorems, and what one must trust
The Lean statement
Main.lean · line 6 theorem riemannZeta_eq_zero_re : RiemannZetaZerosOnLine := riemannHypothesistheorem
LFunction_ne_zero_of_half_lt_reline 8aliasDirichletLNonvanishingRightOfHalfholds: for every natural number N \ne 0 (instanceNeZero N), every Dirichlet character \chi modulo N with complex values and every complex s with 1/2 < \operatorname{Re} s, if \chi is not the principal character modulo N or s \ne 1, then L(s, \chi) \ne 0; here L(s, \chi) is Mathlib'sDirichletCharacter.and \zeta is Mathlib'sLFunction χ s riemannZeta. Proof in the source: the termNew.(unit 154).grh Theorem 3, p. 2 of The five final theorems, and what one must trust
The Lean statement
Main.lean · line 8 theorem LFunction_ne_zero_of_half_lt_re : DirichletLNonvanishingRightOfHalf := New.grhtheorem
LFunction_eq_zero_reline 10assemblyDirichletLZerosOnLineholds: for every natural number N \ne 0 (instanceNeZero N), every Dirichlet character \chi modulo N with complex values 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; here L(s, \chi) is Mathlib'sDirichletCharacter.and \zeta is Mathlib'sLFunction χ s riemannZeta. Proof in the source:New.(unit 154) applied tozeros_on_line New.(unit 154).grh Theorem 4, p. 2 of The five final theorems, and what one must trust
The Lean statement
Main.lean · line 10 theorem LFunction_eq_zero_re : DirichletLZerosOnLine := New.zeros_on_line New.grhtheorem
LFunction_eq_zero_re_of_isPrimitivelines 12–13restatementPrimitiveDirichletLZerosOnLineholds: for every natural number N \ne 0 (instanceNeZero N) and every primitive Dirichlet character \chi modulo N with complex values (conductor 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; here L(s, \chi) is Mathlib'sDirichletCharacter.and \zeta is Mathlib'sLFunction χ s riemannZeta. Proof in the source (two lines): given N, the instance, \chi and the primitivity hypothesis, the termLFunction_eq_zero_re N χ, i.e. the previous theorem for the same N and \chi; primitivity is not used.Theorem 5, p. 2 of The five final theorems, and what one must trust
The Lean statement
Main.lean · line 12 theorem LFunction_eq_zero_re_of_isPrimitive : PrimitiveDirichletLZerosOnLine :=
What it takes for granted
Unit 153 · The statements: the Riemann hypothesis and the generalised Riemann hypothesis for Dirichlet L-functions, in three forms, 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
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 · 3 declarations
New.unit 154zeta_zeros_on_line If DirichletLNonvanishingRightOfHalf holds, then RiemannZetaZerosOnLine holds (L(s, 1) = ζ(s) for the character modulo 1; the functional equation of the completed zeta function reflects the nontrivial zeros, s ↦ 1 − s, and the Lean proof accounts separately for s = 0 and for the exceptional points of the gamma factor, so that the trivial zeros −2(n + 1) are excluded, as the statement says; corrected after the second reading, a second-reader message).
DirichletLNonvanishingRightOfHalf holds: the main theorem of the artifact (unit 154).
If DirichletLNonvanishingRightOfHalf holds, then DirichletLZerosOnLine holds (the functional equation moves a zero with 0 < Re s < 1/2 to the zero 1 − s of L(·, χ⁻¹)).
Unit 153 · The statements: the Riemann hypothesis and the generalised Riemann hypothesis for Dirichlet L-functions, in three forms · 4 declarations
RiemannZetaZerosOnLineunit 153The proposition: every zero s of ζ with s ∉ {−2, −4, …} and s ≠ 1 has Re s = 1/2.
DirichletLNonvanishingRightOfHalfunit 153The proposition: for N ≠ 0, χ a Dirichlet character mod N, and Re s > 1/2 with χ ≠ 1 or s ≠ 1, L(s, χ) ≠ 0.
DirichletLZerosOnLineunit 153The proposition: for N ≠ 0, χ a Dirichlet character mod N, and 0 < Re s < 1 with L(s, χ) = 0, Re s = 1/2.
PrimitiveDirichletLZerosOnLineunit 153The proposition: for N ≠ 0, χ a primitive Dirichlet character mod N, and 0 < Re s < 1 with L(s, χ) = 0, Re s = 1/2.
From Lean's own library · 1 fact
RiemannHypothesisMathlib's statement of the Riemann hypothesis: every zero s of ζ that is not −2(n + 1) for a natural n and is not 1 has real part 1/2. That it agrees with
RiemannZetaZerosOnLineup to unfolding is what Lean's acceptance ofriemannZeta_eq_zero_re : RiemannZetaZerosOnLine := riemannHypothesisshows, on the authors' reported build.
Where it is used
nothing in the ledger
Its files
1 module
The program check
5 of 5 statements stand at the lines the dossier gives; 0 structured proofs with 0 steps, 0 of them leaves, the longest of 0 lines; 0 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.