Choose a statement on the pages, or with the arrows above, to see its structured proof and its Lean text here.
The Riemann hypothesis, in Mathlib's formulation RiemannHypothesis: 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's riemannZeta). Proof in the source (one line): New.zeta_zeros_on_line (unit 154) applied to New.grh (unit 154); this is accepted because Mathlib's RiemannHypothesis and the artifact's RiemannZetaZerosOnLine (unit 153) unfold to the same proposition.
Main.lean · line 4theorem riemannHypothesis : RiemannHypothesis := New.zeta_zeros_on_line New.grh
RiemannZetaZerosOnLine holds: 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 term riemannHypothesis itself, i.e. the two definitions agree up to unfolding.
Main.lean · line 6theorem riemannZeta_eq_zero_re : RiemannZetaZerosOnLine := riemannHypothesis
DirichletLNonvanishingRightOfHalf holds: for every natural number N \ne 0 (instance NeZero 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's DirichletCharacter.LFunction χ s and \zeta is Mathlib's riemannZeta. Proof in the source: the term New.grh (unit 154).
Main.lean · line 8theorem LFunction_ne_zero_of_half_lt_re : DirichletLNonvanishingRightOfHalf := New.grh
DirichletLZerosOnLine holds: for every natural number N \ne 0 (instance NeZero 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's DirichletCharacter.LFunction χ s and \zeta is Mathlib's riemannZeta. Proof in the source: New.zeros_on_line (unit 154) applied to New.grh (unit 154).
Main.lean · line 10theorem LFunction_eq_zero_re : DirichletLZerosOnLine := New.zeros_on_line New.grh
PrimitiveDirichletLZerosOnLine holds: for every natural number N \ne 0 (instance NeZero 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's DirichletCharacter.LFunction χ s and \zeta is Mathlib's riemannZeta. Proof in the source (two lines): given N, the instance, \chi and the primitivity hypothesis, the term LFunction_eq_zero_re N χ, i.e. the previous theorem for the same N and \chi; primitivity is not used.
Main.lean · the statement, line 12theorem LFunction_eq_zero_re_of_isPrimitive : PrimitiveDirichletLZerosOnLine :=
DirichletLNonvanishingRightOfHalf holds: for every natural number q \ne 0 (instance NeZero 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's DirichletCharacter.LFunction).
New/Main.lean · the statement, line 174lemma New.grh : DirichletLNonvanishingRightOfHalf := fun q _ χ ρ hρ pole zero ↦ by
If DirichletLNonvanishingRightOfHalf holds (hypothesis h), then DirichletLZerosOnLine holds: for every natural number N \ne 0 (instance NeZero 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.
New/Main.lean · the statement, line 194lemma New.zeros_on_line (h : DirichletLNonvanishingRightOfHalf) : DirichletLZerosOnLine :=
If DirichletLNonvanishingRightOfHalf holds (hypothesis h), then RiemannZetaZerosOnLine holds: 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's riemannZeta).
New/Main.lean · the statement, lines 200–201lemma New.zeta_zeros_on_line (h : DirichletLNonvanishingRightOfHalf) : RiemannZetaZerosOnLine := fun s ↦ by
The proposition RiemannZetaZerosOnLine (the Riemann hypothesis): for every complex number s, if \zeta(s) = 0, if s is not of the form -2(n + 1) for any natural number n (that is, s is none of the trivial zeros -2, -4, -6, \ldots), and if s \ne 1, then \operatorname{Re} s = 1/2. Here \zeta is Mathlib's riemannZeta, the meromorphic continuation of \sum_{n\ge 1} n^{-s} to \mathbb{C}; Mathlib defines it at every complex number, also at the pole s = 1, where it takes a conventional finite value.
Statements.lean · the statement, line 3def RiemannZetaZerosOnLine : Prop :=
The proposition DirichletLNonvanishingRightOfHalf (the generalised Riemann hypothesis for Dirichlet L-functions, in half-plane form): for every natural number N with N \ne 0 (Lean's instance argument NeZero N), every Dirichlet character \chi modulo N with complex values, and every complex number 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's DirichletCharacter.LFunction χ s, the meromorphic continuation of \sum_{n\ge 1} \chi(n) n^{-s} (for the principal character it has a pole at s = 1, where Mathlib assigns a conventional value); a Dirichlet character modulo N is Mathlib's DirichletCharacter ℂ N, a multiplicative map \mathbb{Z}/N \to \mathbb{C} that vanishes off the units, and 1 is the principal character modulo N (1 on the units, 0 elsewhere).
Statements.lean · the statement, line 6def DirichletLNonvanishingRightOfHalf : Prop :=
The proposition DirichletLZerosOnLine (the generalised Riemann hypothesis for Dirichlet L-functions, critical-strip form): for every natural number N with N \ne 0 (instance NeZero N), every Dirichlet character \chi modulo N with complex values, and every complex number s with 0 < \operatorname{Re} s and \operatorname{Re} s < 1 and L(s, \chi) = 0, one has \operatorname{Re} s = 1/2. Here L(s, \chi) is Mathlib's DirichletCharacter.LFunction χ s, the meromorphic continuation of \sum_{n\ge 1} \chi(n) n^{-s} (for the principal character it has a pole at s = 1, where Mathlib assigns a conventional value); a Dirichlet character modulo N is Mathlib's DirichletCharacter ℂ N, a multiplicative map \mathbb{Z}/N \to \mathbb{C} that vanishes off the units, and 1 is the principal character modulo N (1 on the units, 0 elsewhere).
Statements.lean · the statement, line 10def DirichletLZerosOnLine : Prop :=
The proposition PrimitiveDirichletLZerosOnLine (the same for primitive characters only): for every natural number N with N \ne 0 (instance NeZero N) and every Dirichlet character \chi modulo N with complex values that is primitive (Mathlib's DirichletCharacter.IsPrimitive: the conductor of \chi equals N), and for every complex number s with 0 < \operatorname{Re} s and \operatorname{Re} s < 1 and L(s, \chi) = 0, one has \operatorname{Re} s = 1/2. Here L(s, \chi) is Mathlib's DirichletCharacter.LFunction χ s, the meromorphic continuation of \sum_{n\ge 1} \chi(n) n^{-s} (for the principal character it has a pole at s = 1, where Mathlib assigns a conventional value); a Dirichlet character modulo N is Mathlib's DirichletCharacter ℂ N, a multiplicative map \mathbb{Z}/N \to \mathbb{C} that vanishes off the units, and 1 is the principal character modulo N (1 on the units, 0 elsewhere).
Statements.lean · the statement, line 14def PrimitiveDirichletLZerosOnLine : Prop :=