Has it been Pwned

What the Riemann proof changes for RSA

Imagine that on November 19 you were trying to break an RSA key and were willing to assume the Riemann Hypothesis was true. What would you gain from seeing the proof? You would have a firmer guarantee about testing whether one number is prime. Recovering the two primes behind a particular key is a different computation.

How far can a count stray?

A prime is a whole number greater than one with no positive divisors other than one and itself. Write π(x) for the number of primes at or below x. This count jumps by one at each prime. The prime number theorem already says that, on large scales, π(x) follows x divided by the natural logarithm of x. The logarithmic integral, Li(x), is a smoother estimate that tracks the counts more closely on large scales. Riemann’s question was how large the difference between the estimate and the count can get.

Exact prime counts and the smooth estimate
Up to xPrime countLi(x)
1002529.08
1,000168176.56
10,0001,2291,245.09
Li(x) here starts its integral at 2 and is rounded to two decimal places. The table shows three small examples of the difference.

Riemann connected prime counts to the zeta function. The connection starts with unique factorization. On part of its domain, you can write the function as a product with one factor for each prime. The factor for 2 has terms for 2, 4, 8 and higher powers. The factor for 3 has terms for 3, 9, 27 and so on. Combining the terms for 4 and 3 produces the term for 12. Each integer arises in exactly one way.

A zero is an input where the zeta function gives zero. Each nontrivial zero contributes an oscillation to a formula involving the primes. The horizontal position of a zero, called its real part, controls how fast the size of its contribution can grow. The formally checked result puts all those zeros on the line with real part one half. For prime counts, that bounds the error by a constant times the square root of x times its logarithm, for all sufficiently large x.

A bound you can put a number on

Chebyshev’s weighted count adds the natural logarithm of 2 at 2, 4, 8 and each higher power of 2, and the natural logarithm of 3 at each power of 3, and so on for every prime. This count is written ψ(x) and has a simple baseline, x. Schoenfeld’s bound says that for x at least 73.2, the absolute error is smaller than √x × (ln x)2 / (8π). For example, at one million the error in this weighted count must be smaller than 7,595.

The 1976 bound was established assuming the Riemann Hypothesis. The new check combines a formalization of Schoenfeld’s result with the compact Lean proof and verifies the bound without that hypothesis as a separate assumption.

Clay’s statement of the problemThe prime number theorem and error termSchoenfeld’s explicit bound

How a bound on primes can prove a statement about zeros

Start with an old idea. Every prime between 10 and 20 divides the number of ways to choose 10 objects from 20, which is 184,756. Multiplying the four primes 11, 13, 17 and 19 gives 46,189. Any upper bound on the size of that number also limits how much prime divisibility it can contain. Chebyshev used this kind of reasoning to bound prime counts.

In the Waterloo exposition, the new argument compares the divisibility and size of maps between lattices, which are structured sets of integer combinations. The maps let the proof track smoother weights on primes and their powers, such as 2, 4 and 8. Divisibility supplies a lower bound on what the maps must contain. Size estimates supply an upper bound on how much they can contain. The central estimate, called (M), controls a weighted prime-power sum after subtracting its predicted main term.

One step gives an intuition for why a square root appears. The construction uses objects called theta lifts. Write m for how many it uses. One error grows roughly with m and another shrinks roughly as x/m. Taking m near the square root of x brings both errors to the same scale. The draft walks through the balance in Section I.8.

Parts I and II use (M) and two estimates for Dirichlet characters to bound a smoothed prime-power error on long intervals at arbitrarily large scales. A zero to the right of the critical line would force larger deviations than those bounds allow. The symmetry of the zeta function then rules out zeros to the left. The November 22 working draft explains this deduction. Its Part III reduces (M) to named hypotheses and takes the central inequality from the Lean development.

Waterloo working draft, November 21Version 2, Parts I to III

Two ways to read the Lean proof in prose

Vincent Liu’s The Rhythm of Primes covers the classical hypothesis and its extension to Dirichlet L-functions. Appendix C shows how to find the Lean statements behind the prose. Appendix E records Liu’s rebuild and check of the compact Lean proof.

Jiewen Wang’s manuscript focuses on the classical hypothesis. It starts from a weighted version of the Lean proof and uses a graph to show what each step needs from earlier steps. Wang reports that AI agents wrote and reviewed the mathematical argument and that a full human review is still pending. Both manuscripts explain the Alpöge–Claude argument. The verification timeline below records the independent checks of the formal proof.

Liu’s The Rhythm of Primes, version 1Wang’s From Lean to a Natural-Language Proof, version 1

What the proof checkers established

  1. Levent Alpöge announced the proof developed with Claude and released the formal argument in Lean. The library covers the classical statement and its extension to Dirichlet L-functions.

    Alpöge’s announcement
  2. The Lean FRO and Mathlib Initiative certified the classical statement and proof. The statement matched the definition in Mathlib, Lean’s shared mathematics library. The verification checked the assumptions and tested the proof in independently written checkers.

    Joint certification
  3. Andrew Sutherland reported a byte-for-byte match from an independent build. Multiple checkers accepted the full export, and two independent comparisons matched all five headline theorems, including those for Dirichlet L-functions. The headline theorems used only Lean’s three standard axioms.

    MIT verification logs
  4. Sutherland’s status report records that Lean 4.36.0’s stricter checker accepted the full proof export on November 23.

    MIT’s original proof verification report
  5. The pending Comparator run passed. It compared the five statements with the expected statements, checked the assumptions and replayed the proof in multiple checkers.

    Comparator results for the original proof
  6. The readable and compact editions of a shorter proof passed independent checks for the same five statements. The compact edition also passed the full set of checks on a second machine. Sutherland reports a separate check of the compact proof combined with Schoenfeld’s bound.

    Shorter proof and bound verification report

These checks establish the formal results and the assumptions they use. The Waterloo manuscript is a guide for understanding the argument. Clay’s Millennium Prize listing showed the problem as active when checked on November 27. Clay’s problem listing.

November 27 verification follow-up

A guarantee for the prime tester

The generalization checked in Lean covers Dirichlet L-functions. These let mathematicians study primes in different remainder classes. Among odd primes, for instance, the ones that leave a remainder of 1 on division by 4 and those that leave 3 have the same long-run share. The generalized result bounds deviations from those expected counts.

Given an integer, can we determine whether it is prime? In 1976 Gary Miller showed that, under a version of the generalized hypothesis for Dirichlet L-functions, a test with no random choices can decide that question in time bounded by a polynomial in the input’s length. For a composite input, some small auxiliary number, called a base, exposes it as composite. Eric Bach made the bound on that search explicit. The checked Dirichlet result supplies the hypothesis Miller used.

Primality testing already had an unconditional deterministic polynomial-time algorithm from Agrawal, Kayal and Saxena. Randomized Miller–Rabin also has an error guarantee independent of RH. NIST’s standard describes its use to screen candidate primes for RSA signatures. The proof changes what can be established about Miller’s deterministic test. The calculations themselves are the same.

Miller’s primality paper and its appendixBach’s witness boundPrimality without the hypothesisFIPS 186-5, Appendix B

The work of factoring

The logarithmic integral estimates about 10305 primes in the 1,024-bit interval. That abundance helps an RSA key generator find primes by testing random candidates. Counting tells us the size of that supply. A primality test classifies one candidate at a time.

An attacker on ordinary two-prime RSA starts with a particular composite number, the public modulus. To recover the private key by factoring, they need the specific pair of primes whose product is that number, at a feasible cost for the deployed key size. The Riemann proof establishes a tighter bound on how many primes there are. Evidence of a new factoring attack would have to show how to recover the pair and what the computation costs.

RSA key structure in RFC 8017What a factoring record measuresPrimality, factoring and P versus NPNovember research review