MiaAInow
How AI Works·

Claude's Riemann Hypothesis Proof Checks Out. Nobody Can Read It.

Copy-paste commands to download it, verify it, count the files and search for sorry; the two files a person can actually read; the prompt for handing a random file to an AI; and where to go if you want to build it.

Check it yourself

Runs in a Mac or Linux terminal; you don’t need Lean installed. Every number below is what I got on my own machine.

Download, verify, count, search
# 1. Download the 14 parts (about 240 MB in all), join them, check the fingerprint
for i in $(seq -w 1 14); do curl -fsSO https://alpo.ge/lean.tar.gz.part$i; done
cat lean.tar.gz.part?? > lean.tar.gz
shasum -a 256 lean.tar.gz      # on Linux: sha256sum
# should be 9631b4f020199e580ba86178cb56c6e9b09f690c2369a80dc4334aa93f49c7fc

# 2. Unpack, count files and lines
tar -xzf lean.tar.gz && cd lean
find . -name '*.lean' | wc -l                           # 175187
find . -name '*.lean' -print0 | xargs -0 cat | wc -l    # 17374215

# 3. Search for sorry and the usual ways around the checker (takes a minute or two)
grep -rhowE --include='*.lean' 'sorry|admit|axiom|native_decide|implemented_by|extern|unsafe|opaque|skipKernelTC' . | sort | uniq -c
# no output means not a single hit

Read the statement first: the two readable files

Of the 175,187 files, two can be read start to finish. src/Statements.lean writes out what is being proved, importing nothing but Mathlib:

src/Statements.lean
import Mathlib

def RiemannZetaZerosOnLine : Prop :=
  ∀ s : ℂ, riemannZeta s = 0 → (¬∃ n : ℕ, s = -2 * ((n : ℂ) + 1)) → s ≠ 1 → s.re = 1 / 2

def DirichletLNonvanishingRightOfHalf : Prop :=
  ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N) (s : ℂ),
    1 / 2 < s.re → (χ ≠ 1 ∨ s ≠ 1) → DirichletCharacter.LFunction χ s ≠ 0

def DirichletLZerosOnLine : Prop :=
  ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N) (s : ℂ),
    0 < s.re → s.re < 1 → DirichletCharacter.LFunction χ s = 0 → s.re = 1 / 2

def PrimitiveDirichletLZerosOnLine : Prop :=
  ∀ (N : ℕ) [NeZero N] (χ : DirichletCharacter ℂ N), χ.IsPrimitive →
    ∀ s : ℂ, 0 < s.re → s.re < 1 → DirichletCharacter.LFunction χ s = 0 → s.re = 1 / 2

src/Main.lean, 12 lines, says each of them is proved. The first, RiemannHypothesis, is Mathlib’s own definition, not one the project wrote:

src/Main.lean
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

Pick a random file and ask an AI to read it

Sort the paths of all the .lean files and pick one with the seed 20261121, and everyone gets the same file: the 169-line ExistsDivClass.lean. Change the seed to get another.

Pick the file, start a fresh session
# Still inside the lean folder: pick a file at random with the same seed
python3 -c "import os, random; fs = sorted(os.path.relpath(os.path.join(r, f), 'src') for r, _, n in os.walk('src') for f in n if f.endswith('.lean')); random.seed(20261121); print(random.choice(fs))"
# Development/WeilBound/CoreStatements/EulerCharacteristicCounts/ExistsDivClass.lean

# Put it alone in an empty folder and ask Claude there (prompt saved as prompt.txt)
mkdir ../pick && cp src/Development/WeilBound/CoreStatements/EulerCharacteristicCounts/ExistsDivClass.lean ../pick/ && cd ../pick
claude -p --model claude-opus-5-5 < prompt.txt
Prompt for Claude
The file ExistsDivClass.lean in this folder was picked at random from a Lean 4 project (175,187 files in total) that claims to prove the Generalized Riemann Hypothesis. Please read the first theorem in the file, card_pow_le, and answer in plain English:

1. In two or three sentences a high-school student could follow, what does this theorem say? (An everyday analogy is welcome.)
2. The idea of its proof, in a sentence or two.
3. From this one file alone, can you tell what role it plays in the overall proof of the Riemann Hypothesis? Just be honest.

Keep the whole answer under 200 words.

I used Claude Opus 5.5; this one question came to $0.41 at API prices. Its answer:

Watch the video first

1. What it says. Imagine some objects arranged on a d-dimensional grid. Each object gets a label from a finite set, and two objects can share a label only if their grid coordinates differ by multiples of some number a. The theorem says you then need at least (number of remainders mod a)^d different labels. With ordinary integers and a = 10, that's 10^d: one label for every possible "last digit in each coordinate" pattern. In the actual theorem the grid is a finitely generated module of rank d over a principal ideal ring.

2. Proof idea. Throw away the torsion part, write each element in coordinates, and keep only each coordinate's remainder mod a. Every remainder pattern actually occurs, and two objects with the same label always have the same pattern. So the labels must cover all (remainders)^d patterns, and the pigeonhole principle gives the bound.

3. Role in the Riemann Hypothesis proof? Honestly, no, I can't tell. Within this file, card_lower_bound uses it to show that a certain Galois-cohomology quotient is at least a certain size. It's a generic counting lemma, true and standard-looking. Nothing in this file connects it to zeta zeros or to GRH. That link, if there is one, would be somewhere in the other 175,186 files.

Mia's tips

  • Finding no sorry or axiom only rules out the most obvious problems; it isn’t verification. What counts is the comparator: it checks that Main.lean proves exactly what Statements.lean states, that nothing beyond Lean’s three standard axioms (propext, Quot.sound, Classical.choice) is used, and that both Lean’s own kernel and the independently written nanoda accept the proof.
  • In Lean, 1 / 2 on natural numbers is 0. Statements.lean compares against s.re, a real number, so here it really is 0.5. When you read someone’s formalization, check first that the statement wasn’t quietly changed by something like this.
  • The original takes a big machine to build: MIT’s Andrew Sutherland needed 163 GB of memory for the export, and the reviewers’ machine (48 cores, 503 GB) was expected to take 7 to 10 hours. There are ready-made caches now: riemann-hypothesis-original keeps the code exactly as published and adds a cache and a comparator setup, and the Lean community is cleaning up a shorter, more readable version in riemann-hypothesis, whose README gives the two commands to fetch the cache and build.
  • Asked about a single file, the AI can explain that one lemma but not what it does in the whole proof; that takes following the imports and the final theorem down the dependency chain. Other files will most likely give you the same answer.

Since the video

Watch the video first

On November 25 the main branch of that community repository switched to a condensed, readable version; the original release stays on the original branch.

Questions? Join the discussion on YouTube