On November 20, 2026 Levent Alpöge released a library of about 17 million lines of Lean, a programming language that checks mathematical proofs, which proves the Riemann Hypothesis. The next day the Lean FRO and Mathlib said in a joint statement that the library compiles, that two independent tools (comparator and con-leche --compare) confirmed the theorem it proves is exactly the RiemannHypothesis statement in Mathlib, Lean’s shared mathematics library, and that the exported proof passed the Lean kernel and separate checker programs: con-leche, con-ron and a third-party checker. That is a statement about the checking. This post is about the statement being checked: what does the Riemann Hypothesis actually say?

What does the Riemann Hypothesis actually say? · 46-second film · Watch with transcript

Try it yourself in Prime Staircase Lab: add one wave per zeta zero and watch the curve snap onto the primes.

The primes make a staircase

Count the primes up to some number x and call the answer π(x). Up to 10 there are four (2, 3, 5, 7); up to 60 there are 17. Drawn as a graph, π(x) is a staircase that climbs one step at every prime, with steps that come at irregular places. A smooth curve can guess its overall shape. Riemann’s version, R(x), is close to x/ln x and follows the climb well, but the real steps wobble above and below it.

The wobbles are waves

In his 1859 paper Riemann showed where the wobbles come from. His zeta function has infinitely many “nontrivial” zeros, points ρ in the complex plane where it equals zero. The first few sit at heights 14.13, 21.02 and 25.01. His explicit formula says that π(x) is exactly R(x) minus a sum of waves, one for each zero, plus two small terms. A zero at height γ adds a wave that wiggles like cos(γ ln x), so higher zeros wiggle faster. Add the waves from the first 30 zeros and the smooth curve bends itself into steps at 2, 3, 5, 7, 11 and every prime after. In Prime Staircase Lab, the rebuilt curve rounds to the right count at all 58 checkpoints between 2 and 60, against 46 for the smooth guess alone.

Why one line matters

How big each wave can get depends on the real part of its zero. All the nontrivial zeros lie in a strip with real part between 0 and 1, and a zero with real part σ makes a wave that grows roughly like xσ. The Riemann Hypothesis says every one of them has real part exactly ½: they all sit on a single line. Then no wave grows faster than about √x, and the primes never stray far from the smooth guess. Von Koch showed in 1901 that this is equivalent to the error |π(x) − li(x)| staying below a constant times √x ln x; Schoenfeld later worked out that, if the hypothesis holds, the error is below √x ln x/(8π) from x = 2657 on.

Now imagine, hypothetically, that the first zero sat at real part 0.9 instead. Its wave would grow like x0.9, and by x = 1012 that one wave would be about 290 times bigger than the error the hypothesis allows. That is what “keeps the wobbles small” means: the hypothesis is a promise that the primes are as regular as they can possibly be.

How the model works, and where it stops

The tool uses the first 30 zeros, with heights from Andrew Odlyzko’s published tables. Each zero’s wave keeps only the leading term of the explicit formula, 2 Re li(xρ); the smaller terms are left out. With only 30 waves the curve rounds off each step and ripples a little, and it gets less sharp the further you count: up to 400 it lands on the right step at 338 of 398 checkpoints. The off-line zero is a picture of what the hypothesis rules out, not a real zero, and it is drawn without the mirror twin a real off-line zero would have. The film’s drawings of the Lean library and its checkers are diagrams, not the actual code.

Keep exploring

Up next

  1. Interactive · MathHow does a seat become a view?
  2. 0:35Short · MathHow many riffles mix a deck?
  3. 0:36Short · MathKeep squaring and adding. Does it escape?

Sources & further reading

Make the next question an experiment.

Browse independent creators who make big ideas visible.

Find an explainer