500xEngineer.

All postsLONG-FORM6 min read

Did AI Prove the Riemann Hypothesis? What's Actually Been Checked

As of November 21, 2026, Lean and Mathlib communities express full confidence in the claimed proof. I inspect the archive and run five small Lean tests to explain what checking covers.

As of November 21, 2026, machine checkers accept the code behind Levent Alpöge's claimed proof, according to the Lean and Mathlib communities and Andrew Sutherland's verification ledger. The communities say they have "full confidence" in its correctness. A complete human-readable proof remains unavailable in the sources reviewed for this episode, including Alpöge's note and the November 21 working drafts.

For Episode 26 of 500x Engineer, I downloaded the archive and counted 17,374,215 lines of Lean. I also ran five tiny experiments to understand what a checker accepts. The engineering question is familiar: when AI produces more code than I can read, what exactly does a green check let me trust?

Video not loading? Watch the video on YouTube

The claim

In his November 20, 2026 note, Alpöge says he believes his collaboration with Claude discovered a proof of the Riemann Hypothesis. He released Lean code and described an attempted readable version reaching 250,000+ pages. That page count is his anecdote about an attempted write-up.

Clay describes the hypothesis as concerning deviations from the average distribution of prime numbers. The formal statement concerns the location of the zeta function's nontrivial zeros. Understanding what that statement means is part of evaluating any claimed proof.

Alpöge's November 20 account describes both his guidance and Claude's substantial contribution near the finish. His note also says he had not mastered much of the surrounding mathematics and promises a proper explanation. Terence Tao's November 20 post describes a large Lean-only argument whose mathematical digestion will take time.

What I downloaded and measured

On November 21, 2026, I downloaded all fourteen parts. The joined compressed archive measured 239,275,554 bytes, and its gzip integrity check passed. Streaming the contents on my Mac, I counted 175,187 Lean files and 17,374,215 lines: approximately 17 million lines. The Lean text occupied 1,030,531,854 bytes, approximately 1.03 decimal GB.

I inspected the source without building or executing the claimed proof. The verification results below come from the communities and Sutherland; my executable work was the separate small-test experiment.

My inspection found Statements.lean had 16 physical lines and four definitions. Main.lean had five headline theorems. The small statement file imports Mathlib, so understanding those lines includes understanding the library definitions they use. File length alone tells me little about that semantic burden.

My November 21 text scan found zero matches for sorry, admit, leading axiom declarations, native_decide and unsafe. That is a text-search result. Establishing formal dependencies requires actual checking.

What a checker proves

A checker establishes that the supplied conclusion follows under its logical rules and allowed assumptions. The exact statement and imported definitions determine the conclusion. To make those boundaries visible, I ran these separate toy files with official Lean on November 21, 2026; the results are recorded in lab/lean-test/results.txt.

File What it does Result
01_true.lean Proves 2 + 2 = 4 using rfl Exit 0; no axioms
02_false.lean Tries 2 + 2 = 5 using the same proof Exit 1; rejected
03_sorry.lean Leaves the false statement's proof as sorry Exit 0; warning; sorryAx dependency
04_axiom.lean Adds trust_me, assuming 2 + 2 = 5 Exit 0; no warning; trust_me dependency
05_statement.lean Names 2 + 2 = 4 as RiemannHypothesis and proves it Exit 0; no axioms

The third file shows why a successful process exit can hide an admitted statement. The fourth shows why I need an assumption audit: #print axioms exposes the invented premise. The fifth shows why a reassuring theorem name cannot substitute for reading its definition. These are demonstrations I wrote, separate from Alpöge's archive.

The four questions and their dated status

Kevin Buzzard's November 12, 2026 guidance supplies four questions for AI-generated Lean repositories. It predates this claim and gives a useful framework for reading the later reports.

Does the statement mean what I think it means? As of November 21, 2026, the Lean and Mathlib communities say the statement is Mathlib's own, vetted by experts in Lean and number theory. They report isolating it in a file importing only Mathlib and using two independent tools to confirm that the theorem reached through the proof imports matches that statement.

Does the code compile? As of November 21, 2026, at 10:10 PM Eastern, Sutherland's MIT ledger reports all 175,187 modules compile with zero errors. That matches my file count. The communities' November 21 statement reports dozens of successful reproductions.

Does it prove that statement with only permitted assumptions? As of November 21, 2026, Sutherland reports the five headline theorems depend only on the three standard axioms: propext, Classical.choice and Quot.sound. The communities report successful statement comparisons. These are the checks that address the traps illustrated by my admitted-proof and invented-axiom examples.

Could it exploit a checker bug? As of November 21, 2026, Sutherland reports independent kernels accepting the export and an independent rebuild reproducing its 61,570,595,788 bytes byte for byte. The communities say checks ran on an inert export and that two checkers, con-leche and con-ron, have formal soundness proofs relative to set theory.

As of November 21, 2026, the communities certify all four criteria satisfied. At his 10:10 PM Eastern update, Sutherland still lists his end-to-end comparator run and Lean-kernel replay as in progress. Other statement comparisons and kernel checks had passed. Each report describes its own completed work and remaining runs.

What's still open

As of November 21, 2026, the readable explanations remain incomplete in the reviewed sources. A working draft prepared with AI models at Michael O. Rubinstein's behest explicitly leaves its main inequality unproved. Robin Zhang's November 21 AI-assisted summary says he cannot claim a faithful translation of the Lean code. Alpöge's November 20 note promises further explanation. Quanta's November 20 reporting describes the gap in human understanding of the many steps.

Scope also matters. As of November 21, 2026, Sutherland describes the checked endpoints as RH and the generalized statements for Dirichlet L-functions. His ledger excludes broader families, including general automorphic L-functions. Alpöge's November 20 expectation of Extended RH is an expectation beyond those checks.

Through a third-party post, I learned a November 21 preprint argues the proof is invalid. I confirmed def anyGeometry : GeoP := fun _ _ _ => True and 24 files mentioning it in my copy. All 24 are import-reachable from Main.lean, and so are 174,767 of all 175,187 files, so reachability doesn't establish theorem dependency. Shortly after midnight Eastern, November 22, I found no public answer from the author or Lean community. My read: a definition adds no assumption, so the reported kernel results concern the final statements.

As of the November 21, 2026 saved fetch, Clay's page still labels RH "Unsolved". That is a dated page observation; the reviewed evidence establishes no prize determination.

What this means for your code — opinion

My take: keep the part a human must read small, and write that part deliberately. Start with the requirement, interface contract or test assertion. Ask whether its actual words describe the behavior you need. My fifth file demonstrates how easily a convincing name can cover a convenient definition.

I would also make verification independent of the generator and record its assumptions beside the result. For ordinary code, that means reviewing mocks, skipped tests and default flags, then checking behavior against the real services where needed. A second reviewer or tool helps assess whether the acceptance check itself deserves confidence.

The analogy has limits. Ordinary tests sample cases; a formal proof covers its formal statement under its assumptions. I want every green result to come with a clear account of its scope.

Disclosure

This channel's pipeline runs on Claude subscriptions from Anthropic and Codex subscriptions from OpenAI. The claimed proof was made with Claude. Sutherland's verification page, as of November 21, 2026, says his checks ran with Claude Code; the kernel verdicts come from the checkers.

What's the smallest thing you actually read before you trust AI-written code?

Daily email

Get each breakdown in your inbox.

One email each evening, right after the Short goes live: the AI tool it covers, the full write-up with sources, and how to get paid for it. Free, and you can unsubscribe anytime.

Read past emails on Substack

Sources

All postsWatch on YouTube