1 · The right statement
Experts checked the statement in Mathlib. Independent comparison tools checked that Alpöge’s theorem matched it.
Mathematics · Five-minute visual guide
How Levent Alpöge, working with Claude, turned a question about the zeros of the zeta function into a machine-checkable proof, and how others made sure it proved the right theorem.
What independent verification checked
Experts checked the statement in Mathlib. Independent comparison tools checked that Alpöge’s theorem matched it.
Independent builds reproduced the proof export. The headline theorems were audited for hidden assumptions.
Lean and other proof checkers checked the formal proof. The verification used an inert export, not the execution of source code supplied with the proof.
Try a consequence of the proof
Enter a number to find intervals guaranteed to contain a prime on either side of it. This gives a search window, not the nearest prime. A prime equal to x can count on both sides.
The sharper, independently computed example below is for this input.
For this input, compare the widths from the two published bounds.
The calculator now computes this interval itself, for every input from 2,657 up. It bounds the logarithmic integral in exact integer arithmetic: the lower bound rounds every step down and the upper bound rounds every step up, so no step relies on an error estimate. The radius card keeps the simpler, more conservative bound.
The input has 78 decimal digits. These are widths added to x in two published guarantees, not measured prime gaps or estimates of how many candidates a search will need.
Carneiro, Milinovich and Soundararajan, Theorem 5, includes the left endpoint. Dusart, Corollary 5.5, gives a prime strictly above x and at most the right endpoint, unconditionally for every real x ≥ 468,991,632. Here x = 2256 is composite, so including it makes no difference. These are two specific results, not a claim about the best known bounds. The calculator uses a slightly wider integer interval to avoid rounding inward.
Knowing an interval contains a prime does not tell you which integers are prime, much less which primes divide a particular public modulus. The proof does not give an efficient way to factor RSA moduli or solve elliptic-curve discrete logarithms. AKS already gives unconditional deterministic polynomial-time primality testing. Testing whether a given number is prime is a different task from factoring a composite number. This calculator is for education, not for generating keys or changing security settings.
The MIT verification record covers ordinary RH and Dirichlet GRH for every positive modulus and its characters. It does not check a general theorem for all Dedekind, Hecke, automorphic or Selberg-class L-functions.
Before 20 November each number below was guaranteed only if RH was true. They come from the same exact, outward-rounded arithmetic as the calculator, so every listed digit is certain. Up to 1.101 × 1026 the prime-count bound was already proved without RH (Johnston), and the prime-gap bound up to 4 × 1018 by computed prime gaps; above those ranges these statements are new.
Digits of prime counts nobody has computed
| x | π(x) begins | Certain digits | Before RH (closed form) |
|---|---|---|---|
| 1030 | 14,692,398,897,7… | 12 of 29 | none |
| 1050 | 876,268,031,750,784… | 21 of 48 | none |
| 10100 | 43,619,719,871,407,0… | 46 of 98 | none |
| 2256 | 656,269,130,133,759… | 35 of 75 | none |
| 21024 | 253,631,570,116,784… | 149 of 306 | 4 of 306 |
| 22048 | 22,781,481,605,344,0… | 303 of 614 | 8 of 614 |
| 101000 | 4,344,832,576,401,19… | 493 of 997 | 10 of 997 |
π(1029) is the largest power of ten whose prime count has been computed exactly (A006880). “Before RH” counts the digits fixed by the best closed-form unconditional bound, Fiori, Kadiri and Swidinsky 2023: |π(x) − Li(x)| ≤ 9.2211 x √(ln x) e−0.8476 √(ln x). Their tabulated bounds do better than the closed form at the smaller sizes.
Other counts
| Quantity | Begins | Certain digits |
|---|---|---|
| 1030th prime | 72,344,771,293,3… | 12 of 32 |
| 1050th prime | 11,889,897,249,303,5… | 22 of 53 |
| 10100th prime | 2,347,125,735,865,76… | 47 of 103 |
| Primes with exactly 256 bits | 326,840,356,080,250… | 35 of 75 |
| Primes with exactly 1,024 bits | 126,691,644,892,970… | 149 of 306 |
| Primes with exactly 2,048 bits | 11,385,172,270,258,6… | 302 of 614 |
Guaranteed prime window next to x
| x | Now (22/25 √x ln x) | Best published without RH | Narrower by |
|---|---|---|---|
| 10100 | 2.02627e+52 | 3.77223e+91 (Dusart 2018) | 1039 |
| 21024 | 8.37463e+156 | 7.19077e+296 (Cully-Hugill and Lee 2022) | 10140 |
| 22048 | 2.24571e+311 | 1.29268e+605 (Cully-Hugill and Lee 2022) | 10294 |
| 24096 | 8.07419e+619 | 4.17756e+1221 (Cully-Hugill and Lee 2022) | 10602 |
That last line is a proof, not a probable-prime check. Every number between 10100 and 10100 + 267 has a compositeness witness, and 10100 + 267 passes Miller’s test for every base up to 106,037. Bach showed that, under GRH for Dirichlet L-functions, every odd composite fails for some base below 2 (ln n)². The same Lean release proves that GRH; MIT’s record lists its checks, while the joint Lean and Mathlib statement certifies RH for ζ. The window and count results above need only RH.
Source and verification record on GitHubPython toolkitIts 31 testsEvery endpoint (JSON)Theorems and sourcesHow to run it
Carneiro, Milinovich and Soundararajan, Theorem 5: under RH, for x ≥ 4, [x, x + (22/25)√x ln x] contains a prime. Let b be the bit length of x and s the square root rounded up. The browser takes U = ceil(22 × s × b × 693148 / 25000000), which rounds the width outward using ln 2 < 0.693148. The same theorem at x − U gives the lower interval when that starting point is at least 4; otherwise a small-prime table supplies a direct witness.
Schoenfeld, Corollary 1: for x ≥ 2657, the count π(x) differs from the logarithmic integral li(x) by less than √x ln x / (8π) under RH. The browser gives the conservative radius ceil(s × b × 693148 / 25000000), using 8π > 25. Johnston, Corollary 3.3 already proved this bound unconditionally from 2657 through 1.101 × 1026.
Prime-count interval. li(x) = γ + ln ln x + Σk≥1 (ln x)k/(k·k!), with ln x = b ln 2 + 2 atanh((x − 2b)/(x + 2b)). The browser evaluates each part twice with ⌊digits/2⌋ + 60 decimal places, once rounding down and once rounding up with explicit bounds on the omitted tails, and uses π > 3.141592653589793238462643383279502884197 in the error term. Then π(x) is more than the lower bound minus that error and less than the upper bound plus it. It agrees integer for integer with the Python toolkit on 1,676 inputs up to 101000, and its intervals contain every published π(10k) for k ≤ 29.
All interval endpoints and radii here use integer arithmetic. The global guarantee uses the Riemann Hypothesis checked by the Lean and Mathlib communities. That verification is separate from Clay’s prize process.
From number theory to Lean
Click or tap a question. Each answer separates what RH or Dirichlet GRH gives from what still needs another argument.
We get a tighter bound on where to find the first prime in a progression. Linnik had already proved unconditionally that for coprime a and q, the first prime congruent to a modulo q is bounded by a constant times q to some fixed power. Under Dirichlet GRH, Lamzouri, Li and Soundararajan, Corollary 1.2, give the explicit upper bound (φ(q) ln q)² for q > 3, where φ(q) counts the classes coprime to q. This uses the class of L-functions covered by the Lean proof. It is a bound, not an algorithm that locates the prime in time polynomial in the number of digits.
No. The two-prime and three-prime problems are different. The verified Lean result does not establish that every even integer above 2 is a sum of two primes. Oliveira e Silva, Herzog and Pardi verified the even claim through 4 × 1018, which is finite evidence. Helfgott proved the three-prime theorem: every odd integer greater than 5 is a sum of three primes, with repetitions allowed. That proof did not assume full GRH.
There is a genuine consequence for nearby Goldbach numbers. Chirre and Hagen proved using ordinary RH that every interval (x, x + 123 ln² x] for x ≥ 2 contains at least one even sum of two primes. That strengthens Linnik’s separate result about Goldbach numbers in short intervals; it does not say every even number in any of those intervals is such a sum.
It supplies one premise, not the whole explanation. Up to a varying cutoff, primes congruent to 3 mod 4 tend to be ahead of those congruent to 1 mod 4, even though the two classes have the same leading asymptotic count. Rubinstein and Sarnak obtain a limiting distribution under Dirichlet GRH; their familiar approximately 99.59% lead figure also uses a separate assumption about the independence of zero ordinates. The percentage measures cutoffs on a logarithmic scale, not the fraction of primes in the 3 mod 4 class. The Lean proof does not give that independence assumption.
Not in general. Weinberger showed that, on GRH for Dedekind zeta functions, a number field’s ring of integers is Euclidean if it has class number one and infinitely many units. The checked Dirichlet result does not supply that unrestricted premise for arbitrary number fields. This is about the existence of a Euclidean division function, not necessarily division using the ordinary field norm. Some cases already have unconditional proofs: see Harper and Murty for finite Galois extensions with unit rank greater than three, and their discussion of Weinberger.
Testing a candidate, finding a prime and factoring an integer are different tasks. AKS already tests primality deterministically in time polynomial in the input’s bit length, without RH. The certified window above gives a finite search range, but its width on the order of √x ln x still grows exponentially with the bit length. It does not give a guaranteed polynomial-time next-prime search or a polynomial-time deterministic integer factoring algorithm. See Polymath’s paper on deterministic prime finding for the distinction between testing and finding.
Why 22/25 in the calculator? Carneiro, Milinovich and Soundararajan’s Theorem 5 gives the explicit forward interval for every x ≥ 4. Their smaller 21/25 is an asymptotic bound on normalized consecutive prime gaps (Corollary 4), not a replacement for the explicit bound at every input.
The original archive contains about 17 million lines. The Lean and Mathlib verification matched the proved statement to the intended theorem, compiled the source, and checked the exported proof with independent tools. MIT’s record reports five headline statements, 175,187 compiled modules, and only the three standard Lean axioms for those statements. The 14 source parts total about 239 MB compressed. The separate proof export is about 7.7 GB compressed or 61.6 GB unpacked. The archive’s footprint is not a count of essential mathematical ideas. The checks do not constitute a Clay prize decision.
Replaying the export and building an importable dependency are different jobs. MIT’s reproducible export workflow quotes about 100 GB RAM and 70 GB disk for Comparator with Lean 4.36.0, and about 50 GB RAM for its faster independent con-leche check. Those are reported figures for specific workflows, not universal minimums. A typical 32 GB laptop is below those RAM figures; we did not run the full check there. A clean source rebuild is a separate, hours-long task.
There is a prebuilt route for reuse. Start from a reviewed revision in an isolated workspace and match its Lean and Mathlib pins (4.33.1 for the original source). The community cache guide documents lake exe cache get and lake build --no-build. It reports about 4.94 GB for the downloaded root-package cache, plus dependencies and working space. The older prebuilt module archive is a different package: roughly 28.64 GB compressed and 99.27 GB extracted. Neither is the inert proof export.
With that source package configured as a Lake dependency, the entry point is import Main. The matching stock Mathlib release defines the statement but does not contain this proof. NDJSON is data for a proof checker, not an importable Lean module. Cache checksums identify the downloaded files; they do not independently prove the theorem. We did not test a full downstream build or import.
Every statement that was proved equivalent to RH now holds. Examples: Robin’s inequality, σ(n) < eγn ln ln n for every n > 5040, and Lagarias’s σ(n) ≤ Hn + eHn ln Hn; MIT’s record lists Lean theorems combining both with the proof. Li’s coefficients are all non-negative. The de Bruijn–Newman constant is exactly 0, because RH is equivalent to Λ ≤ 0 and Rodgers and Tao had proved Λ ≥ 0.
Results proved “on RH” become unconditional too. The Lindelöf hypothesis holds: ζ(1/2 + it) grows more slowly than any power of |t|. The 2k-th moments of ζ on the critical line have order T(ln T)k² for every fixed k > 0 (Harper’s upper bound with known lower bounds). Montgomery’s pair-correlation theorem holds, and at least 19/27 of the zeros are simple (Bui and Heath-Brown). The Mertens function satisfies M(x) = O(x1/2+ε). A 2026 preprint by Chamberland and Straub combines RH with a computation to put a prime between n³ and (n + 1)³ for every n ≥ 1.
Still open: whether every zero is simple, the full pair-correlation conjecture, the independence of the zeros’ heights that the prime-race percentages use, and Legendre’s question of a prime between consecutive squares, which RH does not settle.
Read further
This is an explainer, not a complete proof or a prize announcement. The Clay Mathematics Institute listing is separate from the Lean community’s verification. Our archive-pruning research is a different project.
Separate OpenTransformer research · Runnable proof files
For integer vectors, the largest possible dot-product score inside a coordinate box is the sum of the larger signed endpoint products. A block below the current cutoff can be skipped without changing the answer for that scoring rule.
Lean proof · Runnable Python index · Separate expected statements · Comparator configuration
A step reduces quadratic validation loss exactly when twice the training-to-validation gradient alignment exceeds the step size times the validation curvature in the update direction. The Lean file checks the algebraic threshold for exact integers; it is not a theorem about every Transformer.
Read the checker results and scope. These are our own proofs, not parts of the Riemann Hypothesis proof.