Free · Daily brief + weekly playbookDaily 60-sec AI Voice Brief + Weekly Production AI Agent PlaybookGet the brief →

Riemann Hypothesis Proved With Claude: Lean Checked 17M Lines, Experts Are Almost Sure It Holds

Anthropic mathematician Levent Alpöge published a proof of the Riemann hypothesis in Lean, a language that checks every step the way a compiler checks code. What is being proved is visible in 14 lines that DeepMind published in advance, while the proof itself runs to 17M lines. Experts consider it almost certainly correct, even though nobody has read the whole thing. For agents working on critical code, you need a short specification and independent checks.

AI-processed from TG: @seeallochnaya (Сиолошная); edited by Hamidun News
Riemann Hypothesis Proved With Claude: Lean Checked 17M Lines, Experts Are Almost Sure It Holds
Source: TG: @seeallochnaya (Сиолошная). Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceTG: @seeallochnaya (Сиолошная) ↗
Editor-in-Chief
Key metric #1OpenAI found 6 bugs in Lean before the Astra release, all fixed
Key metric #2The Lean kernel has been rewritten in different languages, so fooling every version is hard
Key metric #3Claude did not solve the problem on its own: Alpöge steered the process for more than a month

Imagine an AI agent wrote 17 million lines of code for you, and nobody has the time or the ability to read all of it. How do you know the code does exactly what you need? The mathematical community is in roughly that situation.

About a week and a half ago, Anthropic mathematician Levent Alpöge published a proof of the Riemann hypothesis, one of the seven Millennium Prize Problems, which mathematicians have been fighting with for decades. The proof is written as a program in the Lean language and runs to more than 17 million lines. This comes from the author of the Telegram channel "Sioloshnaya" (a Russian-language AI channel): by his observation, the consensus in the professional community is that the proof is almost certainly correct.

This is one author's opinion, and the source text contains no independent confirmation, but the logic of the verification is useful to anyone who trusts machines with complex work.

How to verify a result without reading millions of lines

Lean is a language for writing formal proofs of theorems. It works like a strict compiler: if the program is accepted, every logical step is formally justified. That leaves the question of whether the right problem was solved. A short specification helps here: the statement of the Riemann hypothesis in Lean takes only 14 lines. DeepMind published them in advance, together with the descriptions of all the Millennium Prize Problems, and those lines were checked many times before any solution appeared. So the question "is this the actual hypothesis or a similar one?" does not arise.

A software analogy: you have a 14-line test that cannot be swapped out. The implementation behind it may run to millions of lines, but if the test passes, the problem has not been substituted.

What if the bug is in Lean itself

The second risk is a bug in Lean's checking kernel that lets mathematically invalid steps through. The author of the post considers this unlikely:

  • frontier models actively hunt for such bugs: OpenAI reported 6 errors before the Astra release, all fixed;
  • the Lean kernel has been rewritten by different working groups and vibe coders, including in other programming languages; there is even a Lean verified through Lean;
  • a proof might exploit a bug in one implementation, possibly two, but hardly in all of them at once.

To fool every version, you would need either the same bug everywhere or a clever combination of different bugs that each trip up a different implementation. It is like several independent CI servers: if all three are green, an error in one of them is unlikely to have hidden anything. The author compares this to how human mathematicians work: several scholars check a result independently, compare notes and conclude the solution is correct. The longest proofs are fully understood by only a handful or a few dozen people, so in practical terms cross-checking by machines is not very different from cross-checking by humans.

What is still missing

The main limitation is size. Nobody has yet worked through all 17 million lines. Compression projects are already under way: there are versions of 70–200 thousand lines that prove the same five theorems, including the ordinary and the generalized Riemann hypotheses. The author expects full papers with a step-by-step solution suitable for manual checking "the old-fashioned way" to appear soon.

For now, one has to write "an almost certainly correct proof" and add footnotes. The author guesses the footnotes could be dropped in a year. More powerful models will clean more bugs out of Lean and its implementations, and the community will have more context. For example, so far no high-profile proof produced largely by LLMs has been refuted because of a bug found in the verifier.

An important caveat: Claude did not prove the hypothesis on its own. Alpöge steered the process, set the course and the intermediate results, and the iterative work took more than a month. The model was a necessary tool, but not yet a sufficient one. The source has no data on the cost of the work in tokens or compute, so the economics of the process cannot be assessed.

What this means in practice

For developers and founders, the takeaway reaches beyond mathematics. First: the pairing of "the model generates, a formal verifier checks" already works on millions of lines that nobody reads by hand. Second: trust rests on a short, checkable specification and several independent verifiers. Third: the human stays the pilot and sets intermediate goals. If you are building agents for critical code, plan for the same setup: a short specification, independent checks and a human in the loop.

Story

Key Questions Answered

How to verify a result without reading millions of lines?

Lean is a language for writing formal proofs of theorems. It works like a strict compiler: if the program is accepted, every logical step is formally justified. That leaves the question of whether the right problem was solved. A short specification helps here: the statement of the Riemann hypothesis in Lean takes only 14 lines. DeepMind published them in advance, together with the descriptions of all the Millennium Prize Problems, and those lines were checked many times before any solution appeared.

What if the bug is in Lean itself?

The second risk is a bug in Lean's checking kernel that lets mathematically invalid steps through. The author of the post considers this unlikely: frontier models actively hunt for such bugs: OpenAI reported 6 errors before the Astra release, all fixed; the Lean kernel has been rewritten by different working groups and vibe coders, including in other programming languages; there is even a Lean verified through Lean; a proof might exploit a bug in one implementation, possibly two, but hardly in all of them at once.

What is still missing?

The main limitation is size. Nobody has yet worked through all 17 million lines. Compression projects are already under way: there are versions of 70–200 thousand lines that prove the same five theorems, including the ordinary and the generalized Riemann hypotheses. The author expects full papers with a step-by-step solution suitable for manual checking "the old-fashioned way" to appear soon. For now, one has to write "an almost certainly correct proof" and add footnotes.

ZK
Zhemal Khamidun — Head of AI at Alpina Digital · MIPT (academic supervisor of the Tech Entrepreneurship department). Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Unified AI Workspace · Nomad

Test Frontier LLMs & Autonomous Agents in One Workspace

Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.

Try Nomad AI →Launch Nomad Agent
Jemal Hamidun

Editor-in-chief · Cite this analysis

Jemal Hamidun

Head of AI at Alpina Digital · Academic Supervisor of the Tech Entrepreneurship Department at MIPT

Head of AI & CPO of AlpinaGPT at Alpina Digital, Academic Lead of Tech Entrepreneurship at MIPT. Founder of Hamidun News and Vibe Academy.

Ready-to-paste citation for journalists, blogs and Telegram channels

Source: Hamidun News — Riemann Hypothesis Proved With Claude: Lean Checked 17M Lines, Experts Are Almost Sure It Holds https://news.hamidun.com/en/news/18839/riemann-hypothesis-proved-with-claude-lean-checked-17m-lines

What do you think?
Loading comments…