Blog · 2026-11-22 · Explainer

The Riemann Hypothesis proof made with Claude, explained

The short version

  • On 20 November 2026, the mathematician Levent Alpöge released a proof of the Riemann Hypothesis. He works at Anthropic, and he made the proof with Claude.
  • The proof is not a paper. It is a Lean library of about 17 million lines, plus a four-page note.
  • On 21 November, the Lean and Mathlib communities certified that the Lean statement and the Lean proof are correct.
  • Nobody fully understands the proof yet, and that includes its author. Mathematicians now have to find out why it works.

The Riemann Hypothesis is the most famous open problem in mathematics. Bernhard Riemann stated it in 1859. In 2000 the Clay Mathematics Institute put a prize of one million dollars on it. This page explains what the hypothesis says, what was claimed this week, and what was checked. The three figures below calculate everything in your browser, so you can try the ideas yourself.

1. What the hypothesis says about primes

A prime is a whole number with no divisors except 1 and itself: 2, 3, 5, 7, 11, and so on. The primes look random, but their count is very regular. Let π(x) be the number of primes up to x. Gauss guessed that π(x) is close to a smooth function, the logarithmic integral li(x). This is the Prime Number Theorem, and it was proved in 1896.

The Prime Number Theorem says that the error gets small in relative terms. It does not say how small. The Riemann Hypothesis gives the best possible answer: the error stays below about the square root of x. Move the slider to see how close the two curves are.

Figure 1. Counting primes up to x
π(x), the real prime count li(x), the smooth estimate x / ln x, a simpler estimate
The error π(x) − li(x), and the band the hypothesis allows
 primes up to x
 li(x)
 x / ln x
 actual error
 largest error RH allows

The band is Schoenfeld's bound from 1976: if the hypothesis is true, the error is less than √x · ln(x) / 8π for every x ≥ 2,657. Your browser finds the 78,498 primes below one million with a sieve.

The red line in the lower chart stays well inside the blue band. It does so for every x that anyone has checked. The Riemann Hypothesis says it stays inside for every x, without exception.

2. Where the zeros are

Riemann did not state the hypothesis with primes. He stated it about one function, the zeta function:

ζ(s) = 1 + 1/2s + 1/3s + 1/4s + …

The input s is a complex number, s = σ + it. The function is zero at some points, and these zeros hold the information about the primes. All the important zeros have a real part σ between 0 and 1. The hypothesis says more: every one of them has a real part of exactly 1/2. Mathematicians call this vertical line the critical line.

On the critical line, a real function Z(t) has the same size as zeta. Each time Z(t) crosses zero, zeta has a zero on the line. Move the window up the line and count the crossings.

Figure 2. Hardy's Z(t) on the critical line σ = 1/2
 zeros found up to the window end
 zeros the Riemann-von Mangoldt formula predicts

Zeros in this window (red dots):  

Your browser calculates Z(t) with the Riemann-Siegel formula. The first zero is at t ≈ 14.13. The two counts stay close. A zero off the line does not make a crossing, so it would show as a missing zero. Mathematicians use an exact form of this test, Turing's method, to prove that a range has no zeros off the line.

Computers have checked more than ten trillion zeros this way, and all of them are on the line. Hardy proved in 1914 that infinitely many zeros are on the line. But a check of examples, however many, is not a proof. One zero off the line, anywhere, would make the hypothesis false.

3. Why zeros control primes

Riemann found an exact formula that connects the two. Count each prime p with a weight of ln p, and count its powers too. The total up to x is called ψ(x). It is the "von Mangoldt sum" in Alpöge's note. Riemann's formula writes this staircase as a smooth line x, plus one wave for each zero:

ψ(x) = x − Σρ xρ/ρ − ln 2π − ½ ln(1 − x−2)

Each zero ρ = ½ + iγ adds a wave. Its height grows like x½, because the real part is ½. That is the square root in Figure 1. If one zero had a real part larger than ½, its wave would grow faster, and the prime count would drift outside the band. Add zeros with the slider and watch the primes appear.

Figure 3. The primes rebuilt from the zeros
ψ(x), the real weighted prime count Riemann's formula with the chosen zeros

With 0 zeros you get a straight line. With about 100 zeros, a step appears at each prime and prime power: 2, 3, 4, 5, 7, 8, 9, 11, 13 and so on. The zeros are the ones from Figure 2.

4. What Alpöge claimed

Alpöge's note is personal and short. He writes that he has, "working with Claude, discovered a proof of the Riemann Hypothesis". He also writes that the method "easily extends much further", to the Generalized Riemann Hypothesis. The Generalized Riemann Hypothesis makes the same claim for a large family of related functions.

The note gives a timeline of about six weeks. The first entry is on 6 October 2026 and the last is "11/16/26: GRH". Alpöge writes that he guided the work to the right setting, and that then "Claude began to leave me in awe". He also writes that he does not yet understand all of the argument. Some parts use automorphic forms on higher rank groups, and he says that he has little mastery of that field.

He did not publish a written proof. A written version from Claude exists, but he did not want to post "some massive unreadable travesty". A footnote says that it "hit 250,000+ pages". Theorem 1 of that text starts with the fact that if σ ≠ ½, then σ > ½ or σ < ½. So he published only the Lean files, and he plans a readable account later.

The idea, as far as the note explains it

The Riemann Hypothesis has a version for curves over finite fields. André Weil proved that version in the 1940s. In 1969 Sergei Stepanov found a more elementary proof for many cases. His method builds a polynomial that is zero at each point you want to count, and zero many times over at each point. Mathematicians call this repeated zero "multiplicity". A polynomial of limited degree cannot have too many zeros of high multiplicity, so the count of points has a limit.

The problem is that the whole numbers have no multiplicity. In the note's words, multiplicity over the integers would be "something like differentiating whole numbers". Alpöge's argument gets a substitute from a chain of "theta lifts", a tool that moves information between groups of symmetries. Each lift in the chain gives one more level of multiplicity. For the von Mangoldt sum up to X, Claude suggested a chain of length √X. Alpöge writes that this one line "will suffice to make fellow mathematicians fall out of their chairs".

We cannot judge this part, and we do not try to. The note itself says that some of its own descriptions come from a summary that "might make zero sense".

5. What was checked, and what was not

Lean is a proof assistant. A small program, the kernel, accepts a proof only if each step follows from the steps before it. A Lean check answers two different questions. Is the theorem the right theorem? And does the proof prove it?

The statementThe proof targets RiemannHypothesis as Mathlib already defines it. Mathematicians wrote and reviewed that definition before this week.
The proofAbout 17 million lines of Lean that Claude wrote. The kernel accepted all of them.
The comparisonTwo tools confirmed that the proved theorem is exactly Mathlib's statement, and not a weaker look-alike.
The understandingNot yet. Nobody can explain the whole argument, and the generalized version is only claimed.

The first question is the dangerous one. A long proof of the wrong statement is still a correct proof, of something else. Kevin Buzzard of Imperial College said that the first question is "what is the statement of the theorem in the Lean code". The Lean community answered it with comparison tools. In its joint statement, which the Lean FRO and the Mathlib Initiative endorse, it wrote:

"We hereby certify that both the statement and the proof of the Riemann Hypothesis are correct."

Andrew Sutherland of MIT also checked the proof. He told Scientific American that the kernel accepted it "with only the three standard axioms". He said: "Honestly the chance that anything is fishy here is approximately zero." He also said: "There is much work to be done to understand the mathematical details of the proof."

Three points stay open:

6. What this means if you build with AI

Most people do not trust a long answer from a language model, and they are right. This proof shows a different way. Nobody had to trust Claude. A small checker read every line, and people checked that the target was the right one. The model did the search, and the checker supplied the trust.

The same pattern works at a much smaller scale. Code that compiles and passes tests, JSON that matches a schema, an answer you can verify against a source: in each case you check the output, not the model. The lesson from this week is not "trust the model more". It is "build a checker, and then let the model try". You can try the open models on our free LLM API. It does not serve Claude.

The other lesson is the gap between a correct proof and an understood proof. Alpöge has a proof that the kernel accepts, and he still has work to do to understand it. Teams that ship AI-written code will know that gap well.

Sources