r/BetterOffline • u/AffectionateToe812 • 4d ago
Lean code still needs to be verified
As stated here:
https://xenaproject.wordpress.com/2026/11/12/and-the-proof-is-checked-in-lean/
And here:
https://leanprover-community.github.io/did_you_prove_it.html
Lean code by itself still needs to be verified to see it is proving what you are claiming to be proving. I'm seeing people claim if it compiles on lean then it is all that matters on the whole anthrophic math debacle.
68
Upvotes
12
u/j_platte 3d ago
Wouldn't it be funny if what they actually found is a very obscure bug in Lean that wouldn't matter in real-world usage because it requires the code to be as massive as what they generated here? E.g. some sort of overflow in the compiler.
46
u/totalcuriousity 4d ago
I know it's not going to be the result but would be very funny if this ends up "It works fine on my machine".
14
u/rjavier441 4d ago
Yes 100%, it needs review and confirmation.
28
u/grumpy_autist 3d ago
So they use the same playbook as for software engineering - it compiles, passes few vibe coded checks and then just ship it to the world without actually looking at the code. And claim great success. Then everything blows up.
5
u/Accurate-Composer964 3d ago edited 3d ago
The people to look to are the professional human mathematicians. Though I have yet to see one who thinks the solution is not valid
3
u/Jamminnav 2d ago
https://youtu.be/yUoezeDBhD0?si=zSEpinN-vJoxhp9N
12
u/Conqueror0149 4d ago
yeah… you can say 2+2=4 and verify it in lean and say youve solved riemann hypothesis
6
u/Ruined_Passion_7355 4d ago
For sure, though the odds or not in our favour on this one. Apparently it was in the standard library already so it wasn't vibed? Would love to be proven wrong though.
1
u/Outrageous-Mixture48 3d ago
it was verified this this morning by lean fro and math lib
Joint statement by the Lean FRO and the Mathlib Initiative.
On November 20, 2026, Levent Alpöge released a proof of the Riemann Hypothesis as a Lean library comprising 17 million lines of code.
We have full confidence that Alpöge's proof of the Riemann Hypothesis is correct, and we congratulate him on this achievement.
Our rationale is outlined below.
The codebase depends directly only on Mathlib. Over the past day, part of the Lean and Mathlib communities have rallied to verify the proof's correctness. We hereby certify that both the statement and the proof of the Riemann Hypothesis are correct. The four criteria in https://xenaproject.wordpress.com/2026/11/12/and-the-proof-is-checked-in-lean/ are all satisfied.
The statement of the Riemann Hypothesis is correct. This statement is part of Mathlib: RiemannHypothesisand has been carefully vetted by experts in Lean and number theory.
**Alpöge’s library compiles correctly.**By now, dozens of people have reported correct compilation of the codebase, reproducing the same raw proof export file. The library compiles without errors or build failures.
The code proves the correct statement. Crucially, the community has added a file that isolates the statement of the Riemann Hypothesis and imports only Mathlib. That statement was compared against the theorem proved by Alpöge using two independent tools (comparator and con-leche –compare), both confirming that the theorem proved in Alpöge’s library is exactly Mathlib’s statement of the Riemann Hypothesis.
The Lean proof is valid. The exported raw proof has been checked by several proof checkers, including Lean’s official kernel, the con-lecheand con-ron checkers, and several independent checkers contributed by third parties and implemented in different programming languages. The checkers con-leche and con-ron come with a formal proof, relative to set theory, that they cannot accept a false proof, thus addressing concerns that Lean’s logic itself might have flaws that the proof could exploit. An extensive overview is available at https://math.mit.edu/~drew/grh/. These checks ran on an inert export of the proof, out of reach of hypothetical malicious code in the Lean proof sources.
Thanks are owed to everyone in the community who provided resources for the verification.
1
u/Accmaxxing 1d ago
Yes but proving the statement is correct takes about 2 minutes.