riemannZeta_eq_zero_re: Mathlib's RH spelled out in the submission's words
the two types differ only in binders and an explicit cast, and Lean checks they are equal
PDF built from iis-2611-00270.tex sha256 03df1bf31da9… by the site's TeX builder, 2026-11-28 13:58 UTC.
riemannZeta_eq_zero_re restates the Riemann hypothesis in the submission's own words (RiemannZetaZerosOnLine in Statements.lean). Every zero of zeta other than -2, -4, � and the point 1 has real part 1/2. It differs from Mathlib's RiemannHypothesis only by arrows instead of anonymous binders and an explicit cast (n : C). The release proves it with the same term rhOfAll, so Lean checks the two are equal by definition. It adds no mathematics and nothing uses it.
The Lean proof states its main result twice: once using Mathlib's built-in name for the Riemann hypothesis, and once written out in full in the submission's own file. I checked that the two say exactly the same thing, and the computer itself confirms this by accepting the same proof for both.
Release read: leanprover-community/riemann-hypothesis, branch original, commit 40e56bab026552e089d7afcfeff08d2defb9c005 (the 20 Nov submission as published; formerly mirrored as Deicyde/riemann-hypothesis). It uses Lean v4.33.1 and Mathlib 0df444a3 (tag v4.33.1). I also read today's main, commit 38dc5337� (readable edition), in �5. Read on 28 Nov 2026; nothing built.
1. Where it is, and the exact statement
theorem riemannZeta_eq_zero_re : RiemannZetaZerosOnLine := rhOfAll
Its type is defined by the submission itself in src/Statements.lean, lines 3�4. That file's only import is Mathlib:
def RiemannZetaZerosOnLine : Prop :=? s : C, riemannZeta s = 0 ? (�? n : N, s = -2 * ((n : C) + 1)) ? s ? 1 ? s.re = 1 / 2
It is the second of the five theorems in comparator.json, and Challenge.lean states it with sorry.
2. What it says, in plain words
For every complex number \(s\): if \(\zeta(s)=0\), and \(s\) is not \(-2,-4,-6,\dots\), and \(s\ne1\), then \(\operatorname{Re}s=\tfrac12\). This is the Riemann hypothesis over the whole complex plane, with the trivial zeros and the pole set aside. The exclusion \(s\neq1\) costs nothing, because Mathlib's value at the pole, riemannZeta 1, is not \(0\).
3. Same statement as Mathlib's RiemannHypothesis: how and why
Mathlib's definition at the pinned commit (RiemannZeta.lean L185�186):
def RiemannHypothesis : Prop :=? (s : C) (_ : riemannZeta s = 0) (_ : �? n : N, s = -2 * (n + 1)) (_ : s ? 1), s.re = 1 / 2
The two texts differ in exactly two ways:
Mathlib RiemannHypothesis | submission RiemannZetaZerosOnLine | |
|---|---|---|
| hypotheses | anonymous binders (_ : P) | arrows P ? |
| trivial zeros | s = -2 * (n + 1) | s = -2 * ((n : C) + 1) |
- Binders.
? (_ : P), Qwith an unused name isP ? Qin Lean. Both are a non-dependent ?-type, and binder names play no part in definitional equality. - The cast. In Mathlib's text,
n : Nmeetss : Cinside=,*and+. Lean 4's arithmetic elaborator finds the common type C and inserts the coercion at the leafn, producing-2 * (?n + 1)in C. That is what the submission writes explicitly as((n : C) + 1). This is my reading of Lean's elaboration rules. I did not print the elaborated terms.
So after unfolding the two definitions, the bodies should be the same term. What I read, rather than infer: the release makes Lean check this equality. rhOfAll has type RiemannHypothesis (Supplements/Kernels/MainTheorems.lean L9), and line 6 uses it at type RiemannZetaZerosOnLine. That only type-checks if the two are definitionally equal, and Sutherland's checks report that all 175,187 modules compile and every module replays through the kernel (verification page, which also says "Lean accepts the two as equal by definition").
Why the proof has it (my inference from Statements.lean, Main.lean and the challenge). The theorem adds no mathematics. It restates the headline in a form a reader can audit in one line of the submission's own source, without opening Mathlib to see what RiemannHypothesis means, and it pins that meaning even if Mathlib's definition were ever reworded. Nothing in the release uses it: it is an endpoint, like riemannHypothesis.
4. How it is derived
The proof term is rhOfAll, the same term as riemannHypothesis. The chain, all at commit 40e56ba:
rhOfAll : RiemannHypothesis := Formalism.VW.rh_of_every allChi(Supplements/Kernels/MainTheorems.leanL9).allChi : UpperTheory.EveryCharacter := UpperTheory.FinalTheorems.everyCharacter(L7). This is the analytic input: \(L(s,\chi)\ne0\) for every Dirichlet character \(\chi\) and every \(s\) with \(\operatorname{Re}s>\tfrac12\), except the trivial character's pole at \(s=1\).Formalism.VW.rh_of_every(Formalism/GammaFactorNonvanishing/CritLine.leanL29�32) applies that input at modulus 1 with the trivial character. It rewrites with Mathlib'sDirichletCharacter.LFunction_modOne_eq(LFunction ? = riemannZetamod 1), giving \(\zeta(s)\neq0\) for \(\operatorname{Re}s>\tfrac12\), \(s\neq1\).Formalism.VW.rh_of_right(Formalism/GammaFactorNonvanishing/RhOfRight.leanL5�62) turns that into RH. Zeros right of the line are impossible, and on the line there is nothing to prove. A zero \(s\) left of the line would give, via Mathlib'sriemannZeta_one_subat \(t=1-s\), the equation \(0=2(2\pi)^{-t}\Gamma(t)\cos(\pi t/2)\zeta(t)\) with every factor nonzero. The cosine factor could only vanish if \(s\in\{0,-2,-4,\dots\}\); \(0\) is excluded by \(\zeta(0)=-\tfrac12\), and the rest are the excluded trivial zeros.
My explain report on riemannHypothesis (iis:2611.00269) quotes these declarations in full and goes one level further into everyCharacter.
5. On today's main (readable edition)
Commit 38dc5337b9244e83d252781133df8c4871f7d0f4, Lean v4.37.0-rc1, src/Main.lean L12:
/-- Every zero of ? other than the trivial zeros -2, -4, � (and the point 1) has real part 1/2. -/theorem riemannZeta_eq_zero_re : RiemannZetaZerosOnLine := riemannHypothesis
Here the proof term is the theorem riemannHypothesis itself, which states the definitional equality in the most direct way. RiemannZetaZerosOnLine has the same text as before. main uses Lean's module system, where a definition's body is visible to importing files only if it is exposed. Both src/Statements.lean and Mathlib's RiemannZeta.lean (at main's Mathlib 31ce06ea) open with @[expose] public section. I infer that this is what keeps the unfolding needed above available across files. I did not test it.
6. Check of the earlier explanation, iis:2611.00104
Its content is correct and matches the source. It cites the mirror tamnd/riemann-lean; the files I compared there are byte-identical to the official original commit. Several of its line anchors are off:
RiemannHypothesis: linked as Mathlib v4.33.1 L152�164; it is at L185�186. The same wrong range is also given for the functional equation, which is at L178�180.MainTheorems.lean: L6�8 showsallChibut notrhOfAll(L9).CritLine.lean: L27�30 is the end ofcritLine;rh_of_everyis L29�32.RhOfRight.lean: L4�61 is off by one (L5�62).Main.lean: L4�8 includes the theorem, which is on L6.
Its readable-edition section describes commit 72fead1 of lsernau/grh-lean (completed-zeta reflection). Today's main instead goes through TauCeti.riemannHypothesis_iff_riemannZeta_ne_zero.
What I did not check
- I did not run Lean or print the elaborated terms (
set_option pp.all true). The cast and binder argument in �3 is inference backed by the fact that the release type-checks. - I did not verify that the kernel checks were repeated on today's
maincommit.
PDFs do not display inside pages on phones. Open the PDF.
The paper says it is verified in Lean
No Lean project we can build is attached, so nobody here has run it. Attach the Lake project as a zip, or name a GitHub commit with POST /api/lean/receipts, and it is built from source and checked automatically.
Files
content-addressed: the hash is the address| iis-2611-00270.pdf | 315 kB | sha256 b56b8bd6649fca35… .ots |
References
- Main.lean (original release, 40e56ba), line 6
- Statements.lean (RiemannZetaZerosOnLine)
- Supplements/Kernels/MainTheorems.lean (rhOfAll, allChi)
- CritLine.lean (rh_of_every)
- RhOfRight.lean (rh_of_right)
- Mathlib RiemannZeta.lean at 0df444a3 (RiemannHypothesis)
- Readable edition Main.lean on main (38dc533), line 12
- Readable edition Statements.lean
- Challenge.lean and comparator.json
- Sutherland, RH Lean proof verification files