The destination: from a half-plane to the five endpoints#

The destination Euler factors, conductors and functional equations turn the half-plane theorem into the five exported statements, including Mathlib’s RiemannHypothesis.

The last stratum is classical. Write \(\mathrm{HalfPlane}\) for the assertion

\[\begin{split} \begin{gathered} L(s,\chi)\neq 0\quad\text{for every Dirichlet character }\chi\bmod N,\ N\ge1, \\ \text{and every } s \text{ with } \Re s>\tfrac12,\ (\chi,s)\neq(\mathbf 1_N,1). \end{gathered} \end{split}\]

The archive calls it DirichletLNonvanishingRightOfHalf. Everything on this page explains how the five exported theorems follow from it, and how it follows from its restriction to primitive characters. These deductions are short, standard and machine-checked; their only role in the architecture is to make sure that nothing is lost between the analytic statement that the rest of the argument produces and the statements in Mathlib’s language.

1 · The five endpoints#

The destination ✓✓ Checked by two kernels Main.lean

The gist

Ordinary RH in Mathlib’s own formulation, and Dirichlet GRH for every character of every positive modulus.

Statement (paraphrase of the archive’s Lean statements in standard notation):

\[\begin{split} \begin{gathered} \zeta(s)=0,\ s\notin\{-2,-4,\dots\},\ s\neq1 \\ \Longrightarrow\ \operatorname{Re}s=\tfrac12; \\ L(s,\chi)=0,\ 0<\operatorname{Re}s<1 \\ \Longrightarrow\ \operatorname{Re}s=\tfrac12 . \end{gathered} \end{split}\]

The first export has exactly Mathlib’s type RiemannHypothesis. The other four state the zeta zeros in expanded form, nonvanishing of \(L(s,\chi)\) for \(\operatorname{Re}s>\tfrac12\) away from the principal pole, and the critical-line conclusion in the open strip for all characters and for primitive ones.

All five pass through one assertion: the half-plane theorem for every Dirichlet character. The extension to further \(L\)-functions mentioned in the announcement has no endpoint in the archive.

Critical strip, reflection and the half-plane theorem

Fig. 2 Critical strip, reflection and the half-plane theorem. Schematic plane with the computed first zeta zeros on the critical line; a hypothetical off-line zero rho and its mirror image 1 - conj(rho) under the functional equation.#

Lean declaration (archive, pinned at the mirror commit)

Note

riemannHypothesis

type: RiemannHypothesis (Mathlib)

riemannZeta_eq_zero_re

the same statement, quantifiers written out

LFunction_ne_zero_of_half_lt_re

half-plane nonvanishing, all characters

LFunction_eq_zero_re

critical-strip zeros, all characters

LFunction_eq_zero_re_of_isPrimitive

critical-strip zeros, primitive characters

Statements (target types)

Mathlib RiemannHypothesis

Mathlib 0df444a3

Verification. ✓✓ Checked by two kernels Accepted by two independent proof checkers in runs of the reading project: a Lean replay or verified-mode comparison, and the Rust kernel NanoDA. The ledger names the runs and their receipts.

Status in the imported record (20 November 2026, 23:51 UTC). Two independent kernels accepted the complete proof, and all five theorems matched the canonical Mathlib challenge. Andrew Sutherland and Simon DeDeo each report independently building and replaying all 175,187 original modules with Lean 4.33.1. DeDeo reports zero errors and crashes. Sutherland additionally records a con-leche comparison of the five targets and a lean4lean check of every original module. Five modules required higher reduction limits. The individual logs identify the names, flags and successful reruns. (Status recorded by the reading project at 2026-11-20 23:51 UTC.)

What remains to check. What machine checking cannot settle: that the five Lean statements say what is meant (they are compared with an independently written Mathlib challenge), the soundness of the checkers and of Mathlib’s definitions, and the mathematical community’s own reading of the argument.

Blueprint. 13 of the reading project’s declarations belong to this component (5 checked by two kernels, 8 source-read); see 1 · The five endpoints.

Receives from 2 · Reflection: critical line (Claim.zeta · Claim.strip).

Verified cuts: this component lies outside both machine-checked implications (see The two verified cuts).

Announcement entries: 20 (16 Nov: Dirichlet GRH) — see The announcement’s twenty entries.

Open this component in the interactive atlas ↗

What exactly is exported#

The archive’s Main.lean exports five theorems. Their contracts, as recorded in the reading project’s blueprint, are:

Declaration

Contract

Tier

riemannHypothesis

Every nontrivial zeta zero distinct from the pole has real part one half.

✓✓ Checked by two kernels

riemannZeta_eq_zero_re

Every zero other than the negative even integers and the point one has real part one half.

✓✓ Checked by two kernels

LFunction_ne_zero_of_half_lt_re

For all positive moduli and all characters, L(s,χ) is nonzero for Re(s)>1/2, excluding the principal pole.

✓✓ Checked by two kernels

LFunction_eq_zero_re

For every character of positive modulus, any zero with 0<Re(s)<1 satisfies Re(s)=1/2.

✓✓ Checked by two kernels

LFunction_eq_zero_re_of_isPrimitive

For every primitive character of positive modulus, all zeros in the open critical strip have real part one half.

✓✓ Checked by two kernels

Three conventions matter when one compares these types with the classical statements.

  • Total functions. Lean’s riemannZeta and DirichletCharacter.LFunction are total functions on \(\mathbb C\); at the pole they take some value. Mathlib’s RiemannHypothesis therefore excludes \(s=1\) explicitly, and the half-plane statement excludes the single pair \((\chi,s)=(\mathbf 1_N,1)\). Mathlib’s value of the totalized \(\zeta\) at \(s=1\) is \((\gamma-\log 4\pi)/2\), which it proves to be nonzero (Mathlib, pinned); that is why the archive’s primitive predicate ZeroFreeAll can include \(s=1\) for the character of modulus one without any exception.

  • Trivial zeros. The negative even integers are actual zeros of \(\zeta\) and are excluded; \(\zeta(0)=-\tfrac12\neq0\).

  • The open strip. The all-character critical-line statement quantifies over \(0<\Re s<1\), and the strict left inequality is necessary: for the principal character modulo \(2\), \(L(s,\mathbf 1_2)=(1-2^{-s})\zeta(s)\) vanishes at \(s=2\pi i k/\log 2\) for every integer \(k\neq0\), on the line \(\Re s=0\), and also at \(s=0\).

Matching these types with the classical statements is a matter of reading definitions, and the three conventions above are the whole difference. The announcement’s further expectation about other \(L\)-functions has no endpoint in the archive.

2 · Reflection#

The destination ✓ Kernel-checked at the archive pin functional equations

The gist

A zero left of the critical line reflects to a zero right of it, so the right half-plane is all one has to clear.

Statement (paraphrase of the archive’s Lean statements in standard notation):

\[\begin{split} \begin{gathered} \zeta(s)=2(2\pi)^{-w}\,\Gamma(w)\cos\!\big(\tfrac{\pi w}{2}\big)\,\zeta(w),\quad w=1-s; \\ \Lambda(s,\chi)=\varepsilon(\chi)\,\Lambda(1-s,\chi^{-1})\ \ (\chi\ \text{primitive}). \end{gathered} \end{split}\]

For zeta, put \(w=1-s\) with \(\operatorname{Re}w>\tfrac12\). The power and Gamma factors do not vanish, and a zero of the cosine would make \(s\) an even integer, i.e. \(0\) or a trivial zero. Hence a nontrivial zero on the left gives a zero on the right.

For a primitive character the completed functional equation sends a strip zero at \(s\) to a zero of \(L(\cdot,\chi^{-1})\) at \(1-s\); the Gamma factors are regular and nonzero for \(0<\operatorname{Re}s<1\). Taking \(\chi^{-1}\) matters when \(\chi\) is complex.

Critical strip, reflection and the half-plane theorem

Fig. 3 Critical strip, reflection and the half-plane theorem. Schematic plane with the computed first zeta zeros on the critical line; a hypothetical off-line zero rho and its mirror image 1 - conj(rho) under the functional equation.#

Lean declaration (archive, pinned at the mirror commit)

Note

Formalism.VW.rh_of_right

reflect a zeta zero

Claim.prim_reflect

transfer a primitive zero to 1 − s

Claim.strip

half-plane ⇒ critical-strip zeros on the line

Claim.zeta

half-plane ⇒ the zeta statement

Formalism.VW.gammaFactor_ne_zero

Gamma factors do not vanish in the strip

Verification. ✓ Kernel-checked at the archive pin Named declarations passed type, transitive-axiom (only propext, Classical.choice, Quot.sound) and kernel-replay checks at Lean 4.33.1.

Status in the imported record (20 November 2026, 23:51 UTC). Claim.strip, Claim.zeta and Formalism.VW.rh_of_right passed type, axiom and kernel checks at Lean 4.33.1 (Helios job 26639692).

What remains to check. None for the deduction itself; it is classical and machine-checked.

Blueprint. 8 of the reading project’s declarations belong to this component (3 kernel-checked at the archive pin, 1 inside a checked closure, 4 source-read); see 2 · Reflection.

Receives from 3 · Conductor descent: every χ, Re s > ½ (UpperTheory.Top.imprimitive).

Delivers to 1 · The five endpoints: critical line (Claim.zeta · Claim.strip).

Verified cuts through this component: One-sided prime windows imply RH and TopG and the cohomological windows imply RH and Dirichlet GRH.

Open this component in the interactive atlas ↗

The two functional equations in use#

For \(\zeta\) the archive’s deduction Formalism.VW.rh_of_right uses the asymmetric form

\[ \zeta(s)=2(2\pi)^{-w}\,\Gamma(w)\cos\!\Big(\frac{\pi w}{2}\Big)\zeta(w),\qquad w=1-s . \]

If \(\zeta(s)=0\) with \(\Re s<\tfrac12\), then \(\Re w>\tfrac12\); the factors \((2\pi)^{-w}\) and \(\Gamma(w)\) do not vanish, and \(\cos(\pi w/2)=0\) forces \(w\) to be an odd integer, i.e. \(s\) an even integer \(\le 0\) — the excluded trivial zeros or \(s=0\), where \(\zeta(0)\neq0\). Hence \(\zeta(w)=0\) with \(\Re w>\tfrac12\), which the half-plane statement forbids. (The archive also contains a second route through Mathlib’s completed zeta function; the two zeta exports use the first.)

For a primitive character \(\chi\) modulo \(q\) with parity \(\mathfrak a\in\{0,1\}\), put \(\Lambda(s,\chi)=(q/\pi)^{(s+\mathfrak a)/2}\,\Gamma\big(\tfrac{s+\mathfrak a}2\big)L(s,\chi)\). Then

\[ \Lambda(s,\chi)=\varepsilon(\chi)\,\Lambda(1-s,\bar\chi),\qquad |\varepsilon(\chi)|=1 . \]

In the open strip the Gamma factor is finite and nonzero, so a zero of \(L(s,\chi)\) at \(\rho\) gives a zero of \(L(s,\bar\chi)\) at \(1-\rho\). The archive’s Claim.prim_reflect records exactly this, with \(\bar\chi=\chi^{-1}\). The inverse matters when \(\chi\) is complex: the reflected zero belongs to a different \(L\)-function, which is why the half-plane statement must hold for all characters at once (or at least for a set closed under inversion).

The deduction, abstractly#

The logical skeleton is a trichotomy argument: a zero in the strip lies left of, on, or right of the critical line; on the right it contradicts the half-plane statement directly, on the left its reflection does. This repository’s Lean skeleton states it over abstract types (Atlas.strip_of_halfPlane, Atlas.rh_of_halfPlane), with the analytic facts as fields of a structure Reflection; the build reports both theorems as depending on no axioms at all (see The skeleton: Atlas/Architecture.lean).

3 · Conductor descent#

The destination ✓ Kernel-checked at the archive pin Euler factors

The gist

An imprimitive character differs from its primitive inducing character by finitely many Euler factors, none of which vanishes for \(\operatorname{Re}s>0\).

Statement (paraphrase of the archive’s Lean statements in standard notation):

\[\begin{split} \begin{gathered} L(s,\chi)=L(s,\chi^{*})\prod_{p\mid N}\bigl(1-\chi^{*}(p)p^{-s}\bigr), \\ \bigl|\chi^{*}(p)p^{-s}\bigr|\le p^{-\sigma}<1\quad(\sigma>0). \end{gathered} \end{split}\]

Primes dividing the conductor have \(\chi^*(p)=0\); for the others the second term of the factor has modulus less than one. So nonvanishing passes from primitive characters to all characters, with the single exception of the principal character’s pole at \(s=1\).

The strict left boundary of the strip matters: \(1-2^{-s}\) vanishes on \(\operatorname{Re}s=0\), so \(L(s,\mathbf 1_2)=(1-2^{-s})\zeta(s)\) has extra zeros on the imaginary axis.

Lean declaration (archive, pinned at the mirror commit)

Note

UpperTheory.Top.imprimitive

primitive ⇒ all characters

Claim.prim_zero

remove the imprimitive Euler factors

Claim.factor_ne_zero

a removed Euler factor is nonzero

Verification. ✓ Kernel-checked at the archive pin Named declarations passed type, transitive-axiom (only propext, Classical.choice, Quot.sound) and kernel-replay checks at Lean 4.33.1.

Status in the imported record (20 November 2026, 23:51 UTC). UpperTheory.Top.imprimitive passed its type, axiom and defining-module checks in the 1,421-module Dirichlet closure (Helios job 26647685).

What remains to check. None for the deduction; classical and machine-checked.

Blueprint. 4 of the reading project’s declarations belong to this component (1 kernel-checked at the archive pin, 2 inside a checked closure, 1 source-read); see 3 · Conductor descent.

Receives from 7 · The order of choices: ZeroFreeAll (primitive) (zeroFreeAll_of_topG).

Delivers to 2 · Reflection: every χ, Re s > ½ (UpperTheory.Top.imprimitive).

Verified cuts through this component: TopG and the cohomological windows imply RH and Dirichlet GRH.

Open this component in the interactive atlas ↗

Why finitely many Euler factors are harmless#

Let \(\chi\) be a character modulo \(N\) induced by the primitive \(\chi^*\) of conductor \(f\mid N\). Then

\[ L(s,\chi)=L(s,\chi^*)\prod_{p\mid N}\bigl(1-\chi^*(p)\,p^{-s}\bigr), \]

where only primes \(p\mid N\), \(p\nmid f\) contribute nontrivially. For \(\sigma=\Re s>0\) every factor is nonzero, since \(|\chi^*(p)p^{-s}|\le p^{-\sigma}<1\). So in \(\Re s>\tfrac12\) the zeros of \(L(s,\chi)\) and of \(L(s,\chi^*)\) coincide, and the half-plane statement for primitive characters implies it for all characters. The principal character is the one case where a pole intervenes: the level-change formula is used under the side condition \(\chi\neq\mathbf 1\) or \(s\neq1\), which is exactly the exception carried by the exported statement.

In the strip the same identity transports zeros down to the primitive character, where the functional equation applies; this is the step Claim.prim_zero. The boundary example of the previous section shows what the strict inequality \(\Re s>0\) protects: the factor \(1-2^{-s}\) has its zeros on \(\Re s=0\).

How the destination is checked#

The archive’s deductions Formalism.VW.rh_of_right, Claim.strip, Claim.zeta and UpperTheory.Top.imprimitive passed the reading project’s type, transitive-axiom and replay checks at the archive’s toolchain; the imported statuses, with their scopes, are on the cards above. Independently, this repository mirrors them in an axiom-free abstract form (Atlas.halfPlane_of_primitive, Atlas.strip_of_halfPlane, Atlas.rh_of_halfPlane), quoted in The skeleton: Atlas/Architecture.lean. The abstract version is not a proof about \(\zeta\): it shows which properties of \(\zeta\) and of the \(L\)-functions the closing deductions use, and that nothing else is needed.