Claude and the Riemann hypothesis claim: what a Lean-checked proof does and does not prove
On 20 November an Anthropic mathematician posted a claimed proof of the Riemann hypothesis, found with Claude and written as about 17 million lines of Lean code. Here is how machine proof checking works, what has really been verified so far, and which Claude models suit this kind of long, checkable work.
- Reading time
- 15 min
- Sections
- 7
- Code examples
- 4
- Tables
- 2
- Sources
- 10
- Published
- 24 Nov 2026
- What changed
- Claude raises a bound on Riemann zeta zeros
- Why it matters
- For mathematicians, the November claim is a test of process more than of AI.
- What to do
- Read the primary sources
On the morning of 20 November 2026, Levent Alpöge, a mathematician who works at Anthropic, posted a short paper on his personal website claiming a proof of the Riemann hypothesis. He says he found it while working with Claude. The evidence is not a long human-written paper. It is a formal proof written in Lean, a programming language in which a computer checks every logical step. Quanta Magazine reports the Lean code runs to about 17 million lines.
If it holds, this would settle a question open since 1859 and one of the Clay Mathematics Institute's seven Millennium Prize Problems. Within hours, outside mathematicians had compiled the code. Yet nobody yet understands the proof, and Alpöge's own write-up has drawn sharp criticism.
This article does not judge the mathematics. It explains the technology that makes the claim checkable at all: how a proof assistant like Lean decides that a proof is correct, what "it compiles" does and does not mean, and how Claude has been used for this kind of work. It ends with the current Claude line-up and prices for teams that want to try long, verifiable tasks of their own.
What happened
Claude raises a bound on Riemann zeta zeros (10 August 2026)
Anthropic's Science team reported that an unreleased research version of Claude had improved a long-standing result about the Riemann zeta function. The known lower bound on the share of zeros that satisfy the Riemann hypothesis rose from 41.6% to 67.2%, according to Anthropic. A staff member had asked Claude to "Take a real stab at the Riemann hypothesis." Claude did not prove it; the better bound came out as a side result.
Anthropic says the work ran over two sessions in Claude Code and used about 31 million output tokens. The first attempt produced about 650 ideas, none of which worked. The second took about a day and a half, with roughly 60 subagents, 2,400 shell commands and thousands of numerical checks against known zeros. Anthropic mathematicians Levent Alpöge and Ralph Furman validated the paper, and Claude also produced a Lean formalization, published by Anthropic on GitHub.
Alpöge posts a claimed proof of the Riemann hypothesis (20 November 2026)
Alpöge uploaded a four-page paper and a set of Lean files split into 14 archive parts. He writes: "I believe I have, working with Claude, discovered a proof of the Riemann Hypothesis." He says the method also covers the generalized Riemann hypothesis. Quanta reports that he obtained the result on Monday 16 November and waited several days to share it.
His note is candid about its limits. He calls the argument "incredibly long at the moment" and says parts outside his expertise are paraphrased from Claude's summaries and "might make zero sense". Quanta reports that his attempts to get Claude to produce human-readable text led to drafts of over 250,000 pages. Neither the note nor the press reports name the Claude model used.
Mathematicians compile the code (20 and 21 November 2026)
Andrew Sutherland of MIT was the first to compile the Lean code, shortly before noon on 20 November, according to Quanta. Simon DeDeo of Carnegie Mellon succeeded a few hours later. Sutherland also compiled it with a variant of Lean, and told Bloomberg he had seen at least three other checks by professional mathematicians, The Next Web reports. When Quanta published, a further check called the comparator, which tests whether key concepts had been quietly redefined, was still running.
Other mathematicians urged caution. Maksym Radziwiłł of NYU said the four-page write-up contains "nonsensical statements" and argued that valid symbols still do not explain why the result holds. Kevin Buzzard of Imperial College London said nobody yet understands what the proof shows, according to The Next Web. Anthropic declined to comment to Bloomberg, and Quanta says it had seen no official Anthropic announcement.
How a proof assistant checks a proof
To see why a computer check matters, start with what a proof assistant is. Lean is a programming language where a theorem is a type and a proof is a program of that type. If the program type-checks, the proof is correct, in the same way that a compiler refuses code that adds a number to a word.
The part that does the final check is the kernel: a small, carefully reviewed program that accepts or rejects each proof step. Everything else (tactics, automation, the AI that wrote the proof) can be wrong or even hostile, and the kernel will still catch an invalid step. Think of it like a bank's final teller. Many people may prepare a cheque, but only one person checks the signature, and that person follows a short, strict rulebook.
That is why a 17-million-line proof can be checked even if no human reads it. The kernel does not get tired or skip pages.
The four levels of checking
The Lean language reference lists checks from weakest to strongest. Each one closes a gap the previous one leaves open.
| Check | What it confirms | What it can miss |
|---|---|---|
lake build succeeds (the editor's double tick marks) |
The kernel accepted the proof of each theorem in the project | A sorry (an "I owe you" placeholder) hidden in a dependency |
#print axioms |
The theorem relies only on the standard axioms propext, Classical.choice and Quot.sound; sorryAx would reveal an unfinished proof |
Whether the statement itself means what you think |
lean4checker --fresh |
Replays the compiled declarations through the kernel again | Crafted compiled files that fool the replay |
comparator |
Builds the proof in a sandbox, replays it through the kernel outside the sandbox, and checks the proved statement matches a trusted challenge file | Errors in the challenge statement written by humans |
The Lean reference calls the comparator the "gold standard". It is the check that was still running when Quanta reported.
Why "it compiles" is not the end of the story
A Lean proof proves exactly the statement it states. If the statement is wrong, the proof proves the wrong thing. Two risks matter here.
Redefinition. Lean is extensible. A malicious or careless proof could redefine a symbol, so that "the zeta function" in the file is not the real zeta function, and the theorem becomes trivially true. Quanta describes this risk directly, and the comparator exists to catch it.
The challenge statement. The comparator works by separating two files. A trusted Challenge module states the theorem, written or checked by humans. A Solution module, treated as possibly adversarial, must prove that exact statement using only permitted axioms. The comparator's own documentation says the challenge module and build files "must be trustworthy". So the final question is a human one: does the Lean statement of the Riemann hypothesis say what mathematicians mean by it?
Here is the shape of a comparator configuration, taken from its documentation:
{
"challenge_module": "Challenge",
"solution_module": "Solution",
"theorem_names": ["todo1"],
"permitted_axioms": ["propext", "Quot.sound", "Classical.choice"]
}
The comparator has since been merged into Lean itself as lake comparator, starting with Lean v4.35.0, according to its repository.
Anthropic's public formal-maths repository follows this pattern. Each project keeps its headline statements in Challenge.lean and its proofs in Solution.lean, and it passes only when lake build succeeds with no sorry outside the trusted statement files and the comparator prints "Your solution is okay!".
How Claude was used, and why checking changes the picture
Large language models make mistakes. In mathematics, a fluent but wrong argument is worse than none, because it wastes experts' time. The August and November episodes show a different way to use a model: put a strict checker in the loop, and let the model try many things cheaply.
The August workflow in numbers
Anthropic's account of the zeta-zero bound gives the clearest public picture of the method. It is self-reported, but detailed:
- Breadth first. The first session generated about 650 ideas. None worked. That is normal in research; the value is in trying many routes fast.
- Many agents with roles. In the second session, Anthropic's footnote lists 2 subagents that developed key ideas, 13 that contributed ideas, 30 that tried and failed, 13 that validated arguments and 2 that wrote the first paper. Our guide to multi-agent systems explains this supervisor pattern.
- Constant checking. Subagents reviewed proofs, searched for counterexamples, downloaded 54 arXiv papers to check prior work and re-proved the result from scratch.
- Light human steering. Staff member Jarred Sumner, not a mathematician, mostly sent encouragement such as "keep going". Anthropic says this helped overcome Claude's initial scepticism about its own finding.
- Formal proof at the end. Claude produced a Lean formalization that passes the comparator.
The November claim: same shape, bigger scale
Alpöge's note describes a long collaboration. He guided the direction and the analogies, and Claude supplied much of the technical argument. The Next Web quotes him: "This time Claude far outpaced me near the finish line." The output is far larger than in August: about 17 million lines of Lean against a four-page explanation.
This gap is the crux. The Lean files can be checked by machine. The explanation cannot yet be checked by people, because it does not exist in full. Radziwiłł's point, as Quanta reports it, is that mathematics is really about the question "why?". A proof that is certainly correct but impossible to understand would settle the question and still leave mathematicians with work to do.
The lesson for builders
The general idea reaches well beyond number theory. When a model's output can be checked automatically, you can let it work long and wide, because wrong attempts are cheap and caught. Code with a test suite, SQL against a known result, a configuration validated by a schema: all follow the same rule. Without a checker, the same long autonomy produces long, confident errors. Our article on measuring AI that builds AI looks at the same principle for engineering tasks, and evals covers how to build the checker.
Continue learning
How this article connects
10 pages link to or from it. Drag to turn, click a dot to open it.
The Claude line-up today
Anthropic does not say which model produced the November proof, and the August result came from an unreleased research model. For teams that want to run long, checkable tasks, these are the current models listed on Anthropic's model overview, with prices from its pricing page.
| Model | API ID | Context window | Max output | Inputs → output | Price per 1M tokens (input / output) | Licence |
|---|---|---|---|---|---|---|
| Claude Fable 5.2 | claude-fable-5-2 |
1M | 128K | Text, image → text | $8 / $40 | Proprietary, API |
| Claude Opus 5.5 | claude-opus-5-5 |
1M | 128K | Text, image → text | $4 / $20 | Proprietary, API |
| Claude Sonnet 5.5 | claude-sonnet-5-5 |
1M | 128K | Text, image → text | $2 / $10 | Proprietary, API |
| Claude Haiku 5.5 | claude-haiku-5-5 |
1M | 128K | Text, image → text | $0.10 / $0.50 up to 100K prompt; $0.50 / $2.50 above | Proprietary, API |
A few pricing rules matter for long agent runs:
- Full 1M context at standard price. Anthropic's pricing page says Fable 5.2, Opus 5.5 and Sonnet 5.5 include the full 1M-token window at standard per-token prices: a 900,000-token request costs the same per token as a 9,000-token one.
- Haiku 5.5 is tiered. A request over 100,000 prompt tokens pays the higher rate for the whole request, and cache reads and writes count toward that length.
- Caching and batch stack. Prompt caching reads cost $0.20 per million tokens on Fable 5.2 and Opus 5.5 and $0.10 on Sonnet 5.5. The Batch API halves prices, and the two discounts combine.
- US-only inference costs 10% more. Setting
inference_geo: "us"applies a 1.1x multiplier to all token types on the first-party API.
A minimal call with the Python SDK looks like this:
import anthropic
client = anthropic.Anthropic() # reads ANTHROPIC_API_KEY
msg = client.messages.create(
model="claude-opus-5-5",
max_tokens=4096,
messages=[{
"role": "user",
"content": "Write a Lean 4 proof that the sum of two even naturals is even. "
"Use only Mathlib and no sorry.",
}],
)
print(msg.content[0].text)
To see which models your key can use, Anthropic's docs show a List Models call filtered to active models:
curl "https://api.anthropic.com/v1/models?lifecycle=active" \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2023-06-01"
For real proof work, the model is only half the system. Pair it with a Lean toolchain in an agent loop, so every attempt runs through lake build and #print axioms before a human looks at it.
What it means in practice
For mathematicians, the November claim is a test of process more than of AI. The Lean kernel can say whether the steps are valid. The comparator can say whether the proof matches a trusted statement. Only people can say whether that statement is the right one, and only people can turn 17 million lines into understanding.
For engineers, the episode is a strong example of reasoning models used with a verifier. The results Anthropic reports in August came from many attempts, many agents and constant automatic checks, not from one brilliant answer. That design transfers to software, data pipelines and any task where a machine can say "pass" or "fail".
What to do now
- Read the primary sources. Start with Alpöge's note and Anthropic's August post rather than headlines, and note what each actually claims.
- Separate "compiles" from "proves the right thing". When you see a formal proof claim, ask whether the comparator passed and who wrote the challenge statement.
- Learn the Lean checks. Try
lake build,#print axiomsandlean4checker --freshon a small project to see what each catches. - Put a verifier in your agent loop. For code, that is a test suite; for data, a reconciliation query; for maths, Lean. Let the model iterate only against the checker.
- Give agents roles. Copy the August pattern: some agents propose, some try, some validate, one writes up.
- Budget tokens for breadth. The August run used about 31 million output tokens. Use caching and batch pricing to make wide searches affordable.
- Watch Haiku's 100,000-token tier. If you use Haiku 5.5 for many small checks, keep prompts under the threshold to stay on the lower price.
- Keep humans on the statement. Whatever the model writes, a person who understands the problem should own the formal statement it is asked to prove.
Risks and open questions
The comparator result was pending. Quanta reported the comparator check still running when it published. Until it passes and the statement is reviewed, treat the claim as unconfirmed.
The statement could be subtly wrong. A Lean proof of a slightly different statement would be valid and useless. This is the central question experts are now examining.
No human-readable proof exists yet. Alpöge has said he plans to write one up properly. The Next Web reports that mathematicians expect understanding the proof could take years.
The process accounts are self-reported. Anthropic's description of the August workflow and Alpöge's description of the November one are first-person accounts, not independent audits.
Timing invites scepticism. The claim landed in the same week as Anthropic's stock market debut. Alpöge himself told Quanta: "The precise timing is horrible."
Watch next: the comparator outcome, review of the Lean statement by number theorists, Alpöge's promised write-up, any statement from Anthropic, and whether the separate human-written proof by Alessandro Masullo holds up under review.
Frequently asked questions
Has the Riemann hypothesis been proved?
Not officially. Outside mathematicians have compiled the Lean code, and some are confident in it, but the proof has not been formally accepted, the comparator check was still running when Quanta reported, and nobody yet understands the argument.
What is Lean?
Lean is a programming language and proof assistant. A theorem is written as a type and a proof as a program; a small kernel checks every step, so a proof that compiles with no placeholders and standard axioms is logically valid for the statement it states.
Which Claude model was used?
Neither Alpöge's note nor the press reports name a model for the November claim. Anthropic says the August zeta-zero bound came from an unreleased research version of Claude.
Why does the comparator matter?
Compiling shows the steps are valid, but not that the theorem means what it claims. The comparator checks that the proof matches a trusted challenge statement, uses only permitted axioms and passes the kernel outside a sandbox, which guards against redefined symbols.
Can I use Claude for formal proofs today?
Yes. Any current Claude model can be asked to write Lean code through the API, and Claude Code can run a Lean toolchain in a loop. Expect many failed attempts; the value comes from letting the checker reject them automatically.
Summary
On 20 November 2026, Anthropic mathematician Levent Alpöge posted a claimed proof of the Riemann hypothesis, found with Claude and expressed as about 17 million lines of Lean. Outside mathematicians compiled it within hours, but the comparator check was still pending, the formal statement still needs expert review and no human-readable proof exists. The episode follows Anthropic's August report that an unreleased Claude improved a bound on zeta zeros using many subagents and constant checks. The common thread is a verifier in the loop: Lean's kernel, #print axioms and the comparator let people trust machine-written proofs without reading every line. Teams can apply the same pattern with the current Claude models, from Haiku 5.5 at $0.10 per million input tokens to Fable 5.2 at $8.
Sources
- Web Quanta Magazine: update on the claimed Riemann hypothesis proof
- News TechCrunch: AI claimed a solution to the 167-year-old Riemann hypothesis, and a human did too
- Web The Next Web: Anthropic researcher claims Claude helped him prove the Riemann hypothesis
- Web Levent Alpöge: note on the Riemann hypothesis
- Official Anthropic: Claude has improved on a longstanding lower bound for zeros of the Riemann zeta function
- Code GitHub: Anthropic formal mathematics repository
- Web Lean Language Reference: Validating proofs
- Web GitHub: leanprover/comparator README
- Web Claude Docs: Models overview
- Web Claude Docs: Pricing
Cite this article
Kelahmet, Ö. C. (2026, November 24). Claude and the Riemann hypothesis claim: what a Lean-checked proof does and does not prove. Özer Cem KELAHMET. https://www.ozercemkelahmet.com/articles/claude-riemann-hypothesis-lean-proof-claim
BibTeX
@online{kelahmet2026claude,
author = {Kelahmet, {\"O}zer Cem},
title = {{Claude and the Riemann hypothesis claim: what a Lean-checked proof does and does not prove}},
year = {2026},
month = {nov},
url = {https://www.ozercemkelahmet.com/articles/claude-riemann-hypothesis-lean-proof-claim}
}Version historyfirst version
- Published
Factual corrections are listed here with what changed. Wording and formatting edits are not listed.