I managed to independently verify @__alpoge__ 's Lean4 proof of the (Generalized) Riemann Hypothesis. It left me convinced that
- it is correct,
- Levent is a hero of mathematics who deserves enormous credit, and
- the thousands year history of mathematics has passed phase transition unlike any before.
It's impressive how large it is and what it takes to verify:
- First had to bump my sandbox from 16GB RAM to 128GB,
- then had to bump disk to 1.2TB,
- then had to bump file descriptors to 500k,
- had to spend about 500 core-hours over several days.
This reproduces the Lean4 build, the lean4export and the nanoda separate verification. The export wasn't identical to Andrew Sutherland's, but the diff was trivial.
An audit of the proof didn't not expose anything suspicious that could indicate a soundness bug. The double verification with two distinct kernels (Lean4 and Nanoda) also pretty much rules this out.
While it does look like the proof can be cleaned up and simplified (which a community effort will surely do). I appreciate the quick publication.
It is very impressive how quickly this result was independently verified and broadly accepted, especially given it's size and importance. Meanwhile an alleged human proof under months of private review is still to be verified.
This shows the strength of formal verification and sharing publicly and early. Let's this become an example for all math and science.
There are quite a few doubts regarding the correctness and nature of Alpöge’s proof of the Riemann Hypothesis itself. I would like to provide a somewhat technical explanation here of what was actually done.
Imagine that you want to prove the implication P → R, and you have two assumptions, f : P → Q and g : Q → R. In the Curry–Howard correspondence, a statement is a type, and its proof is a term of that type. The implication P → Q is a function type. The function f accepts the proof of P and returns the proof of Q.
Similarly, g takes the proof of Q as an argument and returns the proof of R. Lean is based on the “Calculus of Constructions” variant, i.e., dependent type theory, extended, among other things, to include inductive and quotient types. (https://t.co/w4L1xgPaCM)
An example theorem and proof in Lean for a logical formula: If P implies Q and Q implies R, then P implies R.
theorem h {P Q R : Prop} (f : P → Q) (g : Q → R) : P → R :=
fun p => g (f p) -- here we provide the proof
You compose the functions f and g. From the proof p : P, you obtain f(p) : Q, and then g (f p) : R. Thus, from the proof of P, you obtain the proof of R, so the entire (lambda) function fun p => g (f (p)) has type P → R. Applying f to p is, in this notation, the detachment rule.
What does the Lean kernel do when you enter this code? The elaborator translates the notation of the theorem and proof into terms in Lean’s internal language. The kernel checks whether the proof term has the type declared in the theorem. You can write the same proof using tactics.
- intro p introduces the assumption p : P,
- exact provides the proof of the remaining goal R.
Tactic-based proof (as in Alpöge)
theorem h_tactics {P Q R : Prop} (f : P → Q) (g : Q → R) : P → R := by
intro p
exact g (f p)
The elaborator runs the tactics and constructs a proof term from them. In both examples, #print displays the same term, meaning it is the same proof.
The Riemann Hypothesis already had its formulation in Mathlib as RiemannHypothesis : Prop. It was necessary to construct a term of this type—that is, a proof. Alpöge and Claude provided the code from which Lean constructs this term, using the entire library of intermediate theorems.
I also independently verified the code on Helios; this took many hours of parallel kernel processing across multiple CPUs. In the public verification, the type of the proven theorem was compared with an independently prepared template based on Mathlib. Several verifiers accepted the proof export. The audit showed that the proof, including its intermediate dependencies, uses only three of Lean’s standard axioms (propext, Classical.choice, and Quot.sound).
Comparator checks for compliance with the test case and the list of allowed axioms. The --paranoid mode runs additional verifiers.
- verification report: https://t.co/kseXGk4D2i,
- Comparator documentation: https://t.co/YOLf9am4Rs
What about a swapped kernel? For the tampered code to pass this way, the verifiers would also have to be made to run the swapped binaries. In the public verifications, tools obtained independently of the proof archive were used. Some of the verifiers, including con-leche and con-ron, were compiled on-site from source code in separate repositories. Tools from the official Lean release were also used. Recompiling the proof in an isolated environment produced an export that was identical byte-for-byte, and the verifiers were able to verify it without running Alpöge’s source code. In this situation, it is practically impossible to forge consistent results simply by swapping out the kernel. One would also have to interfere with the verification process. If we were to accept the hypothesis that we live in a simulation, it would have to explain the consistent results of different verifiers in separate environments. Lean FRO and the Mathlib Initiative have confirmed the correctness of both the formulation and the proof. We now have a formally verified proof of the Riemann Hypothesis (https://t.co/ZiCw4knB8l).
However, the proof itself contains many interesting elements from arithmetic geometry and the theory of automorphic forms. Among other things, it involves Iwasawa towers and Galois representations. Its structure is also intriguing. Alpöge describes it as an extension of Stepanov’s idea from the proof of the Riemann Hypothesis for curves over finite fields. In Stepanov’s proof, differentiation helps achieve a high order of vanishing. On the side of the integers, a chain of successive theta lifts between unitary groups plays an analogous role. [Alpöge’s note](https://t.co/GvijK58wlE)
On December 11, I will give the Ulam Lecture at Adam Mickiewicz University in Poznań on the proof and will share the details. You are cordially invited!
Because “correctness” is not our goal. Our goal is understanding. We want our understanding to be correct (because arguments based on intuition have led us astray a thousand times), so we require it to come with an airtight proof. Now we have the latter.
So for the first time ever, we have an incredible *compass* that will point us towards understanding RH over the next weeks, months, and years.
So basically people are talking past each other. The understanding is in doubt (because it indeed doesn’t exist yet), while the correctness should not be.
#New_arXiv_paper
Nick Brettell, Johannes Carmesin, *Tony Huynh*, Matthew E. Kroeker, Florian Lehner, and Geoff Whittle,
Large 4-tangles in matroids are characterized by large internally 4-connected minors, 2026.
https://t.co/hNP8Lzr6y3
리만 가설이 무엇인지 궁금한 분들을 위한 진지한 수학 이야기.
정경훈 박사님이 네이버캐스트에 8회 분량으로 연재한 글을 읽으면, 리만 가설이 왜 제기되었으며, 어떤 수학적 의미가 있는지 어느 정도 이해가 될 겁니다.
링크의 글부터 차례대로 "다음 글"을 읽으면 됩니다.
https://t.co/LGmmQlAwTw
I've been also asked to share that Alessandro Masullo now has his own website where he will be posting updates and new drafts to the manuscript about the proof on GRH:
https://t.co/Bd4oGeoakS
1/n I am actually happy that @__alpoge__ put out such a messy formalization. Everyone involved in the cleanup now has firsthand experience of improving Lean code at scale, and all the problems that come up. For example, I have been talking about Lean being the primary bottleneck in AI formalization for many months now. While formalizing CFSG (3x larger than RH), we at @axiommathai had to find ways to make progress despite the full build taking ~24h. At this scale everything is hard: CI breaks, Github breaks, Lean tools break or take forever, the PR system breaks. Our tools, primarily Lean itself, are not prepared for this scale.
Update on minifying the claimed Lean proof of the Riemann Hypothesis.
Where we are: 8.6% smaller, 17.37M lines down to 15.88M. Not final until it builds clean; the repair loop is on round 25, with errors down from 2,500 to 34.
What the 8.6% is:
• ~90,700 declarations nothing in the proof uses: 59,712 theorems, 29,806 definitions, plus structures and abbreviations
• 2,873 files that held nothing needed
• 522,000 redundant import lines
• 43,070 repeated theorems now pointing to one identical copy
All dead code. No math was simplified. The proof content itself is ~6.5% smaller.
Even minified, it's ~7x the size of Mathlib (15.9M lines vs 2.3M).
What that means for kernels: almost nothing changes. A kernel checks what the five theorems actually use, 1.47M declarations, and dead code was never in that set. After minifying, the kernel still checks 99.7% of the same work. Tenet does it in 1 hour; Lean's own kernel, single-threaded, takes many hours.
The proof isn't big because of waste. It's big because of what it uses. Shrinking it for real means finding a shorter route through the math, and the biggest target is one theta-correspondence step that owns 38% of the proof by itself.
https://t.co/ocNaVHe0eL
Further update of the situation.
Masullo incomplete paper cannot be taken seriously. Reports from different sources tell me that he had already made similar claims years ago. The only credibility is given because his former PhD advisor Brian Conrad "is reading it", but we don't have any public statement by Conrad. It is odd that the President of the AMS and not the author makes public an incomplete manuscript. I have never seen this before. What kind of game are they playing? If you have further information it is welcome. There is ni reason to discuss this any further.
On the other hand:
(1) Claude's lean code has been checked. This is useful in the folliwing way: no one is his mind should now try to disprove RH. Diggests from the lean code are popping out and we can have things to read soon.
A thought on the strategy. As it is clear from the timeline of the prompter, he started from @openAI Quasi-Riemann approach and brute force it using the flexibility of higher degree field extensions. This is certainly what any clever mathematician would have done having access to advanced proprietary models and infinite computer power. The success of the Machine working with towers of number fields has already been proved in Erdos unit distance problem.
So we have a big fail of @openAI "hold-my-beer-mathematicians". As a bitcoiner I will call them "HODL-my-beer-mathematicians"
Maybe @SebastienBubeck
should think about hiring serious mathematicians.
A world map of the proof of the Riemann hypothesis!Introducing a fully interactive map of the semantic embeddings of all the Lean declarations and proofs in the formalization of the Riemann hypothesis.
You can explore the whole proof visually, see where the declarations live and how they connect and interact, search the map, and follow links to the original source code. The map will be updated with each iteration of the proof.
If you want to focus on one aspect of this monumental proof, you can now locate semantically related fragments. I hope this will help structure the code and broaden our understanding of its high- and low-level structure.
RH optimization update: Just optimized the original Lean proof by deleting dead imports (11,163 files deleted, 6.37% of src/).
Merged into the leanprove-community repo here:
https://t.co/eR0gwhzsnQ
If you're independently working on optimizing the RH Lean proof, I propose we submit pruning efforts in 4.33 on the leanprover-community repo and use that to reduce porting efforts to 4.36.
I recommend use/check our repo for porting to 4.36 since we have 100+ contributors working on it now:
https://t.co/gRrBUxsllD
Our repo splits the modules up so many contributors can claim them with our github bot in issues to avoid overlaps. This design seems to work well to parallelize the effort.
The Lean FRO and Mathlib Initiative have released a joint statement on the Lean verification of the Riemann Hypothesis.
On November 20, Levent Alpöge released a proof of the Riemann Hypothesis as a Lean library of 17 million lines of code. Over the past day, the Lean and Mathlib communities worked together to verify it. The statement certifies the proof as correct and describes how it meets all necessary verification criteria.
Congratulations to Levent on this achievement, and thank you to everyone in the community who contributed to the verification.
Full statement: https://t.co/edxEbkodw7
If the Generalized Riemann Hypothesis (the stronger version of the Riemann Hypothesis) is proven, these become proven facts:
Algorithms that no longer need randomness
- Primality testing: Miller's fast test becomes proven correct with no randomness
- Square roots mod a prime: becomes solvable fast and with no coin flips (today that's an open problem)
- Cube roots and other roots mod a prime: same.
- Factoring polynomials over finite fields: almost fast (quasi-polynomial) with no randomness, instead of needing randomness
- Building finite fields: you can construct any finite field directly, with no random search
- Factoring vs. φ(n): factoring a number becomes provably as easy as computing φ(n), even without randomness
- Primes with a given remainder: a prime with any allowed remainder mod q exists that's at most about q², so searching for one is fast
Complexity theory
- Polynomial equations: "does this system of equations have a solution?" drops from PSPACE to a much lower class (AM)
- Algebraic P vs NP: Valiant's algebraic version of P vs NP gets tied to the normal P vs NP over the complex numbers
- Turing machines: a known 744-state Turing machine is proven to run forever
Number theory software
- Math libraries: PARI/GP and Magma results computed "assuming GRH" become fully proven
- Class groups: algorithms that compute these number-field structures get guaranteed running times
- Elliptic curve generation: the algorithms used to create curves for crypto get guaranteed running times
Cryptography (no new attacks, only proofs)
- Elliptic curves: proven that if discrete log is hard on one curve, it's hard on almost all similar curves
- Lattice crypto: known quantum attacks on some lattice schemes become proven to work
- Isogeny crypto: known quantum attacks on some isogeny schemes get proven speeds
- Code-based crypto: schemes like BIKE get the guarantee that the special primes they need exist
Prime gaps
- Next prime: there's always one within about √p·log p of p, so "find the next prime" has a guaranteed worst case
What it does NOT do
- It doesn't solve P vs NP
- It doesn't make factoring easy, so RSA and elliptic-curve crypto stay safe
- It doesn't make anything faster in practice, because randomized versions already work today
- Ramanujan graphs, expanders and AG codes are unaffected: they use a finite-field version of RH that was proven decades ago
Levent Alpöge’nin (@__alpoge__ ) 12 sene önce Harvard’ı birincilikle bitirdiği zaman verdiği bir röportajı buldum. Ne tatlı biri.
Hayalinin Riemann hipotezini çözmek olduğunu söylüyor taa o zamandan. İnşallah hata çıkmaz da muradına ermiş olur.
By combining the 1976 Miller test, the October 2026 fast integer multiplication, and the November 2026 Generalized Riemann Theorem, we now have a deterministic primality test that runs in o(n⁴) time on n-bit numbers.