
On 20 November 2026, Levent Alpöge (a number theorist, Junior Fellow at the Harvard Society of Fellows and researcher at Anthropic) announced that he and Claude had found and formalized a proof of the Riemann Hypothesis. There is no preprint and no journal submission: just a four-page PDF on his own site, and the proof itself as Lean source code in 14 split archive parts.
This page is a mirror, made on 21 November 2026, because a split archive on a personal website is a fragile way to keep 239 MB of mathematics. Everything below is either a copy of the original files or a measurement recorded here.
Status: built and verified. The complete development compiled on
21 November 2026 in 12.4 hours with no errors, and #print axioms confirms the
Riemann Hypothesis depends only on Lean's three standard axioms; see
the result. This establishes that the Lean code is sound and complete. It
says nothing about whether the mathematics is understood. On 22 November the exported proof
terms were also read line by line, looking for an extra axiom, a circular reference or a
swapped-out statement, and none was found; see the audit.
The PDF is titled simply “Remark” and carries no author name; the metadata author field is empty too. The text removes any doubt: he writes that “this all happened for me late Sunday night, and I messaged Dario” before asking about announcing.
I believe I have, working with Claude, discovered a proof of the Riemann Hypothesis. In fact, the method easily extends much further, resolving the so-called Generalized Riemann Hypothesis … Claude and I have also formalized the arguments without assumptions.
On why there is no paper: “It being obviously inappropriate to attempt to post some massive unreadable travesty of ‘slop’, I decided to only present Lean.” A footnote adds that he generated the readable version anyway and “hit 250,000+ pages”. He intends to write it up properly later, and expects the argument to be “massively simplified, likely immediately”.
The sketch he gives describes the argument as a descendant of Stepanov's proof of the Riemann Hypothesis over function fields. Stepanov's method needs a divisor with multiplicity, and multiplicity is hard to come by over the integers, “something like differentiating whole numbers”. The replacement is a chain of iterated theta lifts between totally definite unitary groups, each buying one more order of multiplicity. The line he expects will make “fellow mathematicians fall out of their chairs” is its length: for the von Mangoldt sum of length X, the chain has length about √X. “And yet, what else could it be?”
The last two pages are a dated timeline of 20 steps, from 6 October 2026 (“Stepanov determinant”) to 16 November 2026 (“GRH”).
3fc97784b71ddd44ff8aa0a177e99622a1c61b13cfa843a0989ee4a7a0cfeb8d2ccef81773d8e7b8f98ed757a0a6ff76c3dcc7ae6fe1cf41b756e16d7fd4131d,
178,806 entries, unzip -t clean.riemannHypothesis, 61.57 GB and 1,080,767,112 lines uncompressed.
9,354,908,729 bytes zipped, SHA-256 0d80784ec4f482c583027162ee49f93b94fe71953ededed4e62d81718b592e5c. Unlike the
oleans this is architecture- and version-neutral plain text, readable by a checker containing no
Lean code, and the input format for
nanoda and
lean4lean.leanchecker, which ships with the Lean toolchain (see
what these verify; running #print axioms against them
does not verify anything). 33,670,029,568 bytes, SHA-256 11267c219a66ed479952588e7f85a87cb271857af81d8f3f5d24a2ff122335d0, 879,551
entries (175,187 .olean plus the .ilean, .trace and hash
companions Lake needs), 100.2 GB uncompressed. Requires Lean v4.33.1 exactly, on a
64-bit little-endian machine. Mathlib's own oleans are not included; lake exe cache get fetches those.The zip is larger than the 239 MB original despite holding the same files: a
.tar.gz compresses one concatenated stream, so 175,000 repetitive Lean files share
a dictionary, while a zip compresses each file separately. For the smaller download, take the
parts and reassemble.
Originals on Alpöge's site: remark.pdf · part01 02 03 04 05 06 07 08 09 10 11 12 13 14; the note's footnote lists only part01 and part14, eliding the rest; they are at the addresses you would guess.
for i in $(seq -w 1 14); do curl -O "https://alpo.ge/lean.tar.gz.part$i"; done cat lean.tar.gz.part* > lean.tar.gz sha256sum lean.tar.gz # 9631b4f020199e580ba86178cb56c6e9b09f690c2369a80dc4334aa93f49c7fc tar xzf lean.tar.gz
Parts 01–13 are exactly 18,000,000 bytes, part14 is 5,275,554, totalling 239,275,554.
gzip -t passes and it unpacks to 1.03 GB of source (1.4 GB on disk, being 175,000
small files). No official checksums are published; the SHA-256 above is of the archive as
retrieved on 21 November 2026.
175,187 .lean files, 17,374,215 lines, no build artifacts:
| Directory | Files | Lines |
|---|---|---|
Development/ | 141,928 | 12,232,663 |
Formalism/ | 18,254 | 3,200,748 |
GroundTheory/ | 8,507 | 1,119,138 |
ReciprocityTheory/ | 3,845 | 563,016 |
CompanionTheory/ | 2,027 | 194,218 |
PositivityTheory/ | 449 | 55,130 |
Lemmata/ | 167 | 9,232 |
Supplements/, BuildAid/, roots | 10 | 42 |
About 725,000 theorem, 26,000 lemma and 201,000 def.
Median file is 58 lines; two thirds are under 100. That is an architecture, not sloppiness:
small modules mean isolated failures and heavy build parallelism. Only 14 files out of 175,187
are exact duplicates.
There is, however, not one comment or docstring in the entire 17.5 million
lines: no file contains -- or /-. Mathlib, for
comparison, runs 5.1% comment lines and 81,587 docstrings. The statements are readable; nothing
anywhere says why a definition is the right one.
The toolchain is pinned: leanprover/lean4:v4.33.1, with Mathlib at commit
0df444a360eaa60ab8c11dca51a86af692955474. lakefile.toml also sets
maxHeartbeats = 4000000, 20× Lean's default, and --tstack=400000, a fair warning about how expensive some of these elaborations are.
For a claim this size the thing to read first is not the proof but the statement, and it is
twelve lines. src/Main.lean, in full:
import Statements import Supplements.Kernels.MainTheoremsAll theorem riemannHypothesis : RiemannHypothesis := rhOfAll theorem riemannZeta_eq_zero_re : RiemannZetaZerosOnLine := rhOfAll theorem LFunction_ne_zero_of_half_lt_re : DirichletLNonvanishingRightOfHalf := allChi theorem LFunction_eq_zero_re : DirichletLZerosOnLine := claimAll.2.1 theorem LFunction_eq_zero_re_of_isPrimitive : PrimitiveDirichletLZerosOnLine := critAll
The load-bearing detail is in the first line: RiemannHypothesis is
Mathlib's definition, written years earlier by other people and tagged
@[wikidata Q205966]:
def RiemannHypothesis : Prop := ∀ (s : ℂ) (_ : riemannZeta s = 0) (_ : ¬∃ n : ℕ, s = -2 * (n + 1)) (_ : s ≠ 1), s.re = 1 / 2
That is the usual place for a formalization to go quietly wrong, by proving a subtly
weakened statement that still reads like the real thing, and using the upstream
definition closes it off. The author cannot have tilted it in his favour. Nor is it shadowed:
the project contains zero redefinitions of
RiemannHypothesis, riemannZeta or
DirichletCharacter.LFunction. That is a check of the source text;
the audit of the export confirms the same thing from the proof terms,
for every definition the statement is built from.
src/Statements.lean restates the zeta case and adds three Dirichlet L-function
statements. Mathlib has no Generalized Riemann Hypothesis definition, so those three are the
author's own and do need a human read. They check out: they use
DirichletCharacter.LFunction, the genuine meromorphic continuation, not
LSeries, which Mathlib's own docstring warns is defined to be 0 when
Re(s) ≤ 1 and would have made every statement vacuous inside the critical strip.
Everything funnels through one lemma, so that is where an audit starts:
theorem allChi : UpperTheory.EveryCharacter := UpperTheory.FinalTheorems.everyCharacter theorem rhOfAll : RiemannHypothesis := Formalism.VW.rh_of_every allChi
Note what that means structurally: the entire development aims at a single target: no zeros of any Dirichlet L-function to the right of the critical line. The symmetric critical-line statement then follows from the functional equation.
A Lean development can be complete and still prove nothing, if it admits its hard steps or
reaches outside the kernel. Grepping the whole tree finds no escape hatches: zero
sorry, no axiom declarations, no native_decide, no
@[implemented_by], @[extern] or unsafe.
Classical.choice appears, which is ordinary classical reasoning.
The tree is not free of metaprogramming, though, and for a claim like this it is worth
saying what is there. Four custom elaborators are defined: the tactics kexactB
and kcopy, and the commands #kcopy_probe and
cpt_copy_thms. kexactB (234 lines in 50 files, mostly through the
macro kc%) elaborates a term and assigns it to the goal without asking the
elaborator whether its type fits; kcopy rebuilds a structure value field by field
and assigns it the same way; 32 lines of inline run_tac in 16 files do similar
small things. cpt_copy_thms copies a set of existing definitions and theorems
under new names with some constants substituted, adding each through the ordinary
addDecl. The five BuildAid files use run_cmd to put
namespace names on the library-suggestion deny list, which touches no declaration. There are
also 87 macro definitions, which only rewrite syntax.
None of this is an escape hatch. Skipping the elaborator's check is not skipping the
kernel's: every term these tactics produce still passes through the kernel when the
surrounding theorem is added, and that is the only check that counts. What would matter is
code that adds declarations around the kernel, or that touches files during the build, and
there is none: no debug.skipKernelTC, no addDeclWithoutChecking, no
#eval, no file or process IO. The two partial defs in the tree are
helpers inside these tactics, not part of the proof. And the
independent re-check below does not depend on any of this being
right.
Built on an AMD EPYC Milan machine (24 cores, 48 threads, 192 GB of RAM) in
12.4 hours:
EXIT=0, all 175,187 of 175,187 modules, zero
errors. #print axioms on the five headline theorems:
'riemannHypothesis' depends on axioms: [propext, Classical.choice, Quot.sound] 'riemannZeta_eq_zero_re' depends on axioms: [propext, Classical.choice, Quot.sound] 'LFunction_ne_zero_of_half_lt_re' depends on axioms: [propext, Classical.choice, Quot.sound] 'LFunction_eq_zero_re' depends on axioms: [propext, Classical.choice, Quot.sound] 'LFunction_eq_zero_re_of_isPrimitive' depends on axioms: [propext, Classical.choice, Quot.sound]
Enumerating every axiom in the finished environment returns 15, every one
from Lean core Init.Prelude or Init.Core. Across 17.5 million lines
the development declares no axiom of its own. sorryAx appears in that list
because it exists in every Lean environment; what matters is that no theorem uses it, which is
what the five lines above establish.
The check was repeated on a second machine (Intel Xeon) against the transferred oleans, with identical results.
In Lean there is no compile-then-check split: elaborating a module produces proof terms
the kernel type-checks on the spot, so a module that builds has had every derivation in it
verified, provided no metaprogram adds declarations around the kernel, and
none here does. The axiom list is therefore the complete set of
assumptions behind the theorem.
propext is propositional extensionality, Classical.choice is the
axiom of choice (which via Diaconescu also yields excluded middle), and Quot.sound
says quotients identify related elements: ordinary classical mathematics, with no continuum
hypothesis and nothing added to Lean's own logic. Function extensionality is
absent because Lean derives it from Quot.sound.
“Nothing added” is not the same as “plain set theory”. Lean's logic has a built-in hierarchy of universes, which makes it somewhat stronger than ZFC: in consistency strength it matches ZFC with n inaccessible cardinals for every n (Carneiro, The Type Theory of Lean, 2019). Every Mathlib theorem rests on the same base and this development adds no axiom to it, but “no large cardinals” would claim more than has been checked.
Combined with the statement being Mathlib's rather than the author's, this means the development proves the Riemann Hypothesis from Lean's standard logic with choice and nothing else.
Lean installs through elan, which reads lean-toolchain and fetches
the version the project asks for. You do not pick a version yourself:
curl https://elan.lean-lang.org/elan-init.sh -sSf | sh source "$HOME/.elan/env" cd lean lake exe cache get # prebuilt Mathlib oleans, a download, not an hours-long build lake build Main --log-level=error
Building Main does not build a convenient subset: following imports from
src/Main.lean gives a closure of 174,764 of the 175,187 modules,
99.76% of the archive. The theorem rests on essentially the whole tree.
Lake prints [done/total], but that total is only the jobs it has
discovered so far, and it climbs as Lake walks deeper into the import graph. Early on
it reads something like [8802/13339], which looks like two-thirds finished and is
nothing of the kind: the first ~8,700 are already-built Mathlib modules whose traces are
merely checked. The denominator trails the numerator for the entire build, so it will read
~99% throughout. Count .olean files instead.
Lake writes a ~5.9 MB .setup.json per module. Left alone that projects to about
1.08 TB, 87% of all build output, dwarfing the ~143 GB of actual oleans.
They are disposable. Deleting a module's .setup.json and re-running
lake build completes in seconds without rebuilding: the olean keeps its timestamp
and checksum, and the file is not regenerated. A janitor running alongside the build therefore keeps
total usage near 150–200 GB rather than 1.2 TB:
while true; do
find .lake/build/ir -name "*.setup.json" -mmin +5 | while read -r f; do
rel="${f#.lake/build/ir/}"; mod="${rel%.setup.json}"
[ -f ".lake/build/lib/lean/$mod.olean" ] && rm -f "$f"
done
sleep 120
done
The -mmin +5 and the olean check together ensure nothing in flight is touched.
Do not size a machine from ps or free. Lean memory-maps the Mathlib
oleans, so that shared mapping is counted in every process. Measured across 24
concurrent builds:
| Metric | Per process | Total |
|---|---|---|
RSS, what ps shows | 6,231 MB | 146 GB |
| PSS, real footprint | 630 MB | 14 GB |
| USS, private only | 455 MB | 10 GB |
A 48-thread build of this project sits at about 30 GB of real usage. Budget roughly 1 GB per parallel job, not 6.
Lake 5.0 has no -j flag; it simply uses every core. To cap it,
restrict CPU affinity; nproc honours that, and Lake follows:
taskset -c $(seq -s, 0 2 46) lake build Main --log-level=error
Even CPUs only, to get one thread per physical core rather than hyperthread pairs. Given the memory figures above you will rarely need this.
| Machine | Cores × threads | Rate | Full build |
|---|---|---|---|
| Intel Xeon W-2245, 125 GB | 8 × 2 = 16 | 65/min | ~45 h |
| AMD EPYC Milan, 192 GB (Hetzner CCX63) | 24 × 2 = 48 | 258/min | ~11 h |
Hetzner advertises the CCX63 as “48 vCPU”, which counts threads;
lscpu inside it reports 24 cores with 2 threads each. Likewise the 192 GB of
provisioned RAM shows as 184 GiB in free, the remainder going to firmware and
kernel reservations. Both pairs of numbers describe the same machine.
The dependency graph is 203 levels deep with a mean width of 863 modules, so there is ample parallelism; a 96-core machine should scale further. The last dozen levels are width 1, a strictly serial tail no core count can shorten.
The build emits an enormous volume of warnings, all style and hygiene linters, never
errors: linter.style.haveILetI, linter.unusedVariables,
linter.unusedSectionVars, and linter.deprecated for renamed Mathlib
lemmas. That profile is what you would expect from code written at this scale and speed.
The --log-level=error flag shown above is the way to hide them: it is an
output filter, so it changes nothing about the build and invalidates nothing already
compiled. To silence specific linters instead, the options work as -D flags
(-Dlinter.style.haveILetI=false), including Mathlib-defined ones. You can also put
them in lakefile.toml under [leanOptions], but those feed into build
traces, so editing them forces a rebuild of everything already built.
A Lean proof is not run, it is checked, and nothing is printed when a build succeeds.
To reproduce the axiom check in the result, put this beside
lakefile.toml and run it; lake env puts the project on Lean's
search path without rebuilding:
import Main #print axioms riemannHypothesis #print axioms LFunction_eq_zero_re_of_isPrimitive
lake env lean Check.lean
This reports what the build recorded. Run against a project you compiled yourself it is meaningful; run against oleans obtained from elsewhere it is not; see what these verify. To enumerate every axiom in the environment:
open Lean Elab Command
run_cmd do
let env ← getEnv
for (n, ci) in env.constants.toList do
if let .axiomInfo _ := ci then
logInfo m!"{n} [{(env.getModuleFor? n).getD `«?»}]"
lake clean with no argument deletes the build directory of every
package including Mathlib, costing you a multi-GB re-download. This project's package is named
tree, so lake clean tree is the targeted version.
Oleans are portable. A module compiled on AMD EPYC, copied to an Intel Xeon, loads and
answers #print axioms correctly. They are not byte-identical across machines
(56,584 vs 56,592 bytes for the same module) but they interoperate.
The constraints are the Lean version, which must match exactly, and 64-bit little-endian, which covers x86-64 and ARM64 alike. Mathlib's cache serving one set of oleans to every
platform is the same fact in practice. This matters because
leanchecker, built into the Lean toolchain since v4.28.0, can re-run the kernel over
a compiled environment far faster than re-elaborating, but needs oleans as input.
#print axioms does not traverse the proof. Lean computes each module's axiom
dependencies while that module is compiled and stores them in its .olean; a later
query binary-searches those tables rather than walking any proof term. From
Lean/Util/CollectAxioms.lean:
Entries are computed once by
beforeExportFnwhen the olean is serialized, not during elaboration. … Downstream modules look up pre-computed entries for imported declarations, so axiom collection never crosses module boundaries.
That is why the check above returns in under a minute against a 94.6 GB environment, and it
has an important consequence: importing an olean does not re-check it. An olean
could carry an axiom table claiming the three standard axioms while its proof term used
sorryAx, and #print axioms would repeat the claim. So:
| What you do | What it establishes |
|---|---|
Build from source, then #print axioms | Full verification: the tables are computed by your own build |
Download oleans, run lake env leanchecker | Full kernel re-verification, hours rather than days |
Download oleans, run #print axioms | Nothing: it reads a cached claim |
| Export the terms and count axioms | Confirms the axiom set from the proof terms, independent of the cache; see below |
| Check the export with a non-Lean kernel | Removes Lean's kernel from the trusted base entirely; see below |
| Scan the export and compare its statement with one exported from Mathlib alone | Confirms the theorem is about Mathlib's definitions and that nothing odd is in the file; see below |
The result on this page is of the first kind: the archive's checksum was checked against the
published parts, the build was run from that source, and the axiom tables were produced by that
run. lean-oleans.zip is offered for the second kind, not the third.
The axiom check above reads a table Lean computed at build time. A stronger check is to traverse the proof terms themselves, which is what lean4export does: it walks the dependency closure of a declaration and writes every name, universe level, expression and declaration as flat NDJSON, with integer indices instead of structural sharing. The result is architecture- and version-neutral text that a checker with no Lean code in it can read.
lake env lean4export Main -- riemannHypothesis > rh.ndjson
For riemannHypothesis that closure is:
| Declaration kind | Count |
|---|---|
axiom | 3 |
thm | 1,246,092 |
def | 214,231 |
inductive | 7,969 |
opaque | 91 |
quot | 4 |
61.57 GB and 1,080,767,112 lines. The three axiom declarations resolve, via the export's own
name table, to propext, Quot.sound and Classical.choice.
sorryAx does not appear anywhere in the closure: not as a declaration, not
even as a name.
This is the result that does not depend on Lean's cached axiom tables: the encoding was
produced by traversing the terms, and any fourth axiom would have appeared as a fourth
"axiom" entry. The 91 opaque declarations are not a loophole; an opaque has a kernel-checked value and merely refuses to unfold, so it adds no
assumption.
Hardware: the export is single-threaded and must hold an index of every distinct
subterm in memory (1,065,212,063 of them in the finished file) while the oleans stay mapped. It
peaked above 116 GB of resident memory and wants a machine with 256 GB or more; below that the
index and the mapped oleans cannot both stay resident and it slows by more than an order of
magnitude. It was produced on an AWS r7i.12xlarge (48 vCPU, 384 GB) in
79 minutes.
The export is plain text that a checker containing no Lean code can read, so the obvious next step is to have one read it. nanoda is a Lean type checker written from scratch in Rust, about 8,800 lines, sharing no code with Lean. It was configured to permit only the three standard axioms and to abort outright on a fourth:
{
"export_file_path": "rh.ndjson",
"permitted_axioms": ["Quot.sound", "Classical.choice", "propext"],
"unpermitted_axiom_hard_error": true,
"nat_extension": true,
"string_extension": true,
"pp_declars": ["RiemannHypothesis", "riemannHypothesis", "riemannZeta"]
}
It read all 61.57 GB, rebuilt the environment, and type-checked every declaration:
Checked 1484705 declarations with no errors
86 minutes, 65.6 GB peak memory, exit code 0. The count exceeds the 1.47 million declarations listed earlier because it includes constructors and recursors, which the export emits grouped with their inductive types.
Asked to print the statement back, nanoda reconstructs it from the export; this is its own rendering, not Lean's:
def RiemannHypothesis : Prop :=
forall (s : Complex),
Eq (riemannZeta s) (OfNat.ofNat 0) → Not
(Exists (fun (n : Nat) =>
Eq s (HMul.hMul (Neg.neg (OfNat.ofNat 2)) (HAdd.hAdd (Nat.cast n) (OfNat.ofNat 1))))) →
Ne s (OfNat.ofNat 1) → Eq (Complex.re s) (HDiv.hDiv (OfNat.ofNat 1) (OfNat.ofNat 2))
theorem riemannHypothesis : RiemannHypothesis := _
def riemannZeta : Complex → Complex := HurwitzZeta.hurwitzZetaEven (OfNat.ofNat 0)
axiom propext {a b : Prop} : Iff a b → Eq a b
axiom Quot.sound.{u} {α : Sort u} {r : α → α → Prop} {a b : α} :
r a b → Eq (Quot.mk r a) (Quot.mk r b)
axiom Classical.choice.{u} {α : Sort u} : Nonempty α → α
In words: for every complex s, if ζ(s) = 0, and s is not −2(n+1) for any natural n, and s ≠ 1, then Re(s) = ½. That is the Riemann Hypothesis. Three axioms are printed because three are all the file contains.
Unlike the export, this step is not memory-hungry: peak was 65.6 GB, and resident memory was flat through the check because nanoda allocates its inference and definitional-equality caches per declaration and frees them. A 128 GB machine is enough.
A kernel answers one question: is every step in this file valid? It does not ask whether the file is what it appears to be: whether its last theorem is really about the zeta function, or whether it contains anything a careful reader would object to. On 22 November 2026 the export was therefore read once more, by a scanner written for the purpose: rhaudit.rs, about 1,600 lines of Rust using only the standard library, with no Lean and no nanoda code in it. It parses every line, keeps the whole term graph in memory (29 bytes per expression, a little over 30 GB) and takes nine minutes per pass. Two passes gave identical reports:
| Check | Result |
|---|---|
| Lines parsed | 1,080,767,112 of 1,080,767,112; none malformed, every index in sequence, every reference pointing backwards |
| Declarations | 1,484,705, the number nanoda reported: the counts above, with the inductive blocks holding 7,970 types, 8,342 constructors and 7,972 recursors |
| Axioms | 3, with exactly the statements nanoda printed |
Declarations flagged unsafe or partial | 0 |
| Names declared twice, or two names that print alike | 0 |
| References to a constant that is never declared | 0 |
| Constants used with the wrong number of universe arguments | 0 |
| Declarations that refer to themselves or to a later line | 0 |
sorryAx, ofReduceBool, trustCompiler anywhere in the file | 0 occurrences |
| Last line | theorem riemannHypothesis, whose type is the bare constant RiemannHypothesis |
| Reachable from that theorem | 1,478,219 declarations; the other 6,486 are recursors that are written out with their inductive types and never used |
The row about later lines is the circularity check. A file in which theorem A cites B and B cites A would get past any checker that looked at one declaration at a time; here every declaration uses only what stands above it. nanoda enforces the same order on its own.
The unzipped rh.ndjson that was scanned has CRC-32 47822f86, the
value stored for it in lean-export.zip, and SHA-256
64f6c9d5e217834e0d06cc6fbb5d4a2591fd25793b9b5089ba2aceb4ec4b77eb.
The statement section argues from the source that
RiemannHypothesis is Mathlib's. The export allows a stronger version of that
check. Unfolding the type of riemannHypothesis, following definitions into their
bodies and theorems only as far as their statements (a proof cannot change what a statement
means), reaches 4,991 declarations: 2,123 definitions, 2,062 theorem
statements, 364 inductive types with 395 constructors and 20 recursors, 22 opaque constants,
3 of the quot primitives and 2 of the axioms. Those 4,991 are everything the sentence
“the Riemann Hypothesis holds” is made of in this file, from the natural numbers
through the reals, measure theory and the Mellin transform up to
riemannZeta.
A second export was then made from Mathlib alone: the same exporter, importing only
Mathlib, with a search path that does not contain the project, asked for every
name in rh.ndjson that exists there. Both files were hashed with the same randomly
keyed 128-bit hash over the full structure of every term, with names resolved rather than
indices, and compared declaration by declaration:
Part of rh.ndjson | Declarations | Against Mathlib alone |
|---|---|---|
| What the statement means | 4,991 | all identical, down to the names of bound variables |
| All of Mathlib and Lean core in the file | 214,544 | all identical, up to the names of bound variables |
| The project's own | 1,270,161 | not in Mathlib: 1,075,015 theorems, 178,298 definitions, 5,569 inductive types with 5,710 constructors and 5,569 recursors; no axiom, no opaque |
So nothing the author wrote takes part in what the statement means. All 1.27 million declarations of the project are on the proof side, where the kernel is the judge.
1,650 of the 214,544 differ if bound-variable names are included in the hash.
That is an artifact of the exporter, not a difference in content: lean4export deduplicates
terms with Lean's own Expr equality, which ignores binder names, so which of two
spellings is written out depends on what was exported before. The kernel works with de Bruijn
indices and never looks at those names.
“Mathlib alone” was itself checked rather than assumed. The pinned commit
0df444a is the upstream tag v4.33.1. The Lean release and
Mathlib's CI-built oleans were downloaded again into an empty directory and compared byte for
byte with the copies used here: all 17,493 files of the toolchain and all 26,080 olean files
of Mathlib and its dependencies are identical. The only files that differ are build logs,
which record local paths, and five hash sidecars whose numbers are zero-padded differently.
The conclusion has to carry the clause “unless Mathlib's
definition of the zeta function is wrong”. The export narrows that too. Among the
Mathlib theorems the proof uses, and therefore among those nanoda checked, are
zeta_eq_tsum_one_div_nat_cpow, which says ζ(s) =
∑ 1/ns whenever Re(s) > 1, and
differentiableAt_riemannZeta, which says ζ is complex-differentiable at
every s ≠ 1. By the identity theorem only one function has both properties, so
riemannZeta is the textbook function and not merely something of that name.
riemannZeta_neg_two_mul_nat_add_one (the trivial zeros, exactly the ones the
statement excludes) and riemannZeta_one_sub (the functional equation) are in
the file as well. What is left to trust is Mathlib's notion of a complex number, of an
infinite sum and of a derivative, on which most of its analysis rests.
The export format is easiest to see on a proof small enough to read. Take modus ponens:
theorem modus_ponens (p q : Prop) (hp : p) (hpq : p → q) : q := hpq hp
It exports to 26 lines (mp.ndjson). Leaving out those that only introduce names and intermediate terms:
{"in":1,"str":{"pre":0,"str":"modus_ponens"}}
{"ie":0,"sort":0}
{"forallE":{"binderInfo":"default","body":6,"name":2,"type":0},"ie":7}
{"app":{"arg":1,"fn":8},"ie":9}
{"ie":13,"lam":{"binderInfo":"default","body":12,"name":2,"type":0}}
{"thm":{"all":[1],"levelParams":[],"name":1,"type":7,"value":13}}
Name 1 is the theorem's name. Expression 0 is Prop. Expression 7 is the
statement, ∀ p q, p → (p → q) → q,
built up from smaller numbered expressions. Expression 9 is hpq applied to
hp, and expression 13 is the whole proof,
fun p q hp hpq => hpq hp. The last line declares a theorem whose statement is
expression 7 and whose proof is expression 13. A checker computes the type of expression 13
from a handful of fixed rules and accepts the line only if the result is expression 7. nanoda
on this file: Checked 1 declarations with no errors.
Three ways to cheat in this format, each a small edit to that file, and what nanoda does with them:
| Edit | Result |
|---|---|
Return hp, a proof of p, where a proof of q is due ("body":9 becomes "body":1 in expression 10) | rejected, the types do not match: assertion failed: self.def_eq(u, v) |
Replace the thm line by an axiom with the same statement | rejected: export file declares unpermitted axiom "modus_ponens" |
| Two theorems A and B, both stating “every proposition is true”, each citing the other as its proof | rejected: declaration A depends on B which was not found in the environment |
rh.ndjson is the same format, a billion lines longer. Its last three
lines:
{"in":14065054,"str":{"pre":0,"str":"riemannHypothesis"}}
{"const":{"name":14065053,"us":[]},"ie":1065212062}
{"thm":{"all":[14065054],"levelParams":[],"name":14065054,"type":6490658,"value":1065212062}}
Expression 6490658 is the constant RiemannHypothesis, and the proof,
expression 1065212062, is a reference to name 14065053, the theorem rhOfAll
just above it: exactly the last step of Main.lean.
The scanner is one file with no dependencies. The Mathlib-only export needs
ExportNames.lean, a 46-line driver that goes into a
lean4export checkout as a second lean_exe and reads the names to export from a
file; compare.py joins the two reports.
rustc -C opt-level=3 -o rhaudit rhaudit.rs KEY=$(head -c 32 /dev/urandom | xxd -p -c 64) ./rhaudit rh.ndjson out/rh $KEY --alpha --root riemannHypothesis # LEAN_PATH: the lib directories of Mathlib and its dependencies, not the project's exportnames out/rh/names.jsonl missing.jsonl Mathlib > mathlib-only.ndjson ./rhaudit mathlib-only.ndjson out/mathlib $KEY --alpha python3 compare.py out/rh/decls.tsv out/mathlib/decls.tsv cmp
The key seeds the hash, so a file cannot have been prepared in advance to collide under
it. --alpha leaves bound-variable names out of the hash; without it the first
row of the table above still comes out identical and the second shows the 1,650 differences
described in the note.
| Step | Machine | Time | Cost |
|---|---|---|---|
| Full build and axiom check | Hetzner CCX63 (24×2 cores, 192 GB) | 12.4 h | ~€16 |
| Proof-term export | AWS r7i.12xlarge spot (48 vCPU, 384 GB) | 79 min | $3.09 |
| Independent re-check (nanoda) | local, 8 cores / 128 GB | 86 min | n/a |
| Audit of the export (two scans, Mathlib-only export) | local, 8 cores / 128 GB | 25 min | n/a |
So machine-checking a claimed proof of the Riemann Hypothesis, and independently confirming its axiom dependencies from the proof terms, costs about €20 and runs overnight on rented hardware.
Machine-checked, not peer-reviewed, as of 21 November 2026. Andrew Sutherland at MIT compiled the Lean code and called it “indeed an historic moment”, while adding there is “much work to be done to understand the mathematical details of the proof”. The build above is a second, independent compile reaching the same conclusion.
A clean compile plus a clean axiom list settles correctness. It does not settle comprehension: with no comments anywhere in 17.5 million lines, extracting the mathematical ideas means reverse-engineering intent from statement shapes alone. The ideas are recoverable; the cost of recovery is the problem, and it is why the author's promised write-up matters.
The development compiles from source without a single error. Its axiom dependency has been confirmed three ways: Lean's own record, a traversal of the exported proof terms, and a kernel written in Rust that shares no code with Lean and accepted all 1,484,705 declarations. The theorem proved is Mathlib's definition of the Riemann Hypothesis, written years earlier by other people, and the statement has been printed back from the export in a form anyone can read. A separate scan of all 1.08 billion lines found no fourth axiom, no unsafe declaration and no circular reference, and matched each of the 4,991 declarations the statement is built from against Mathlib exported on its own.
So unless Mathlib's definition of the zeta function is wrong, which the file's own theorems about it leave very little room for, or two independently written kernels share the same bug, or Lean's logic is itself inconsistent, the Riemann Hypothesis is proven.
The hard part now is understanding it. The archive is 17.5 million lines without a single comment in them.