Inspired by SETI@home, we have a leaderboard and 18 independent validators so far who ran the 17M line proof. Now up and running with the 300k line proof!
My understanding has been that the reason that the original was so long is that it was formalizing lots of previously proven things for the first time, and, also a bit sloppy with it's imports in importing certain libs more than truly needed.
Is the compressed proof just a cleanup of the imports, or was the original providing formalizations of proofs that were not truly needed if we accept the proof in place of the formalization?
github.com/ityonemo/2b4m
The much more likely scenario is that the lean compiles fine, and is correct, but just doesn't prove the exact problem it purports to
Before, it was used as a starting point for prof like "if the GRH is true, then $somethingsomethin is true".
Note that I qualify whether it does or doesn't do the job, not because I don't think AI should or shouldn't be awarded such an award, but because I, a mere random on the interwebs who is suddenly being bombarded with explanations of the Rieman hypothesis via Tik Tok/Reels, have no actual idea if it does hold up or not, and just have to go on what I am being told.
Note also - I do feel (based on the aforementioned reels) that this is more accessible for celebration than the discovery of the Higgs Boson particle which had people writing things up on my workplace whiteboard that, when I asked for explanation, they had no idea about. (A win for reels/tik tok science educators I think)
Lean works within the framework of standard structural rules that include weakening [0]. Extra results cannot "interfere" with a logical inference that doesn't use any of them.
[0] https://math.stackexchange.com/questions/933289/weakening-an...
The fix has already been incorporated into the proof. All fixes will be incorporated into the truth. Any criticism is therefore momentary and the fix will always be correct and mistakeless (until the next mistake is found)
If you think having trivial/tautological intermediate parts in a large proof makes the proof invalid then I don't think you have an accurate mental model of how Lean works. I found working through the online natural numbers game exercises in Lean helped me with this, and it was pretty fun too: https://adam.math.hhu.de/#/g/leanprover-community/nng4
Edit: I'm pretty sure by now nobody cares about whether the original x million lines were correct or not.
I have plenty of reservations about AI in various forms but I’m starting to think people engaged in this kind of denial are actually in a pretty bad place and actively sabotaging themselves by not facing reality. I don’t know. These are strange times.
I have no idea why my feed is like this, either. I don’t intentionally follow any AI doomers or deniers. It’s a hot topic over there
Now we've built up hard logical barriers - like in the olden days - but the discourse hasn't caught up.
My position is that, to be very charitable to everyone, I assume people to act reasonably and professionally. What that means when it comes to software engineering is that I don't care if any AI was used to code. It is a tool that a professional can use, what I care about and judge is what they commit. It's what you commit that you take accountability and responsibility for, at least in a sane environment with a harsh but good engineering culture. Similarly, I believe the person reviewing can also use any tool they want, it's what they ultimately merge that they must take accountability and responsibility for. And they stay accountable for that even long after it was merged.
In terms of capabilities, I believe AI has become good enough for most coding and other technical (and many other) tasks. I do also believe that AI is still objectively terrible at writing prose (ironically it is natural language that we humans still do a lot better). I highly dislike it when people do not write things I have to read themselves. I think that once again anyone professional and responsible would realize that it's not there yet when it comes to that. I should note that this may change at any moment and when it does I will adjust and change my position on that.
I don't use "weirdos" in a pejorative sense either, I think many would happily self-describe that way too, it's undoubtedly a place that is welcome to oddballs and outcasts. That's not a bad thing in the main!
The risk there isn't so much an echo-chamber effect, but the chilling effect instead. If you're like me, you're self-censoring by not talking up in favour of AI there because you know it'll get backlash. That just increases the sense that everyone there is anti-AI.
Eventually culture there will have to catch up with reality, but you're spot on that right now, many people seem to believe that all the AI results are fake, or flawed.
People are highly motivated to believe what aligns with their sense of self, their psyche, or whatever the correct way of putting it is. And from there, they will - I mean this very literally - just completely invent a reality that aligns with that sense of self. This has been evident to me across decades of usenet, then forum, then reddit/hn presence. It happens across everything, from sports to politics to the sciences.
The ability to organise into silos of like minded thinking, and algorithms that promote more of the same online surely must make this much more pronounced.
My standards are machine - reachable but clearly the work is not done yet - it's being done in this very article. I look forward to the day I actually learn from any of this!
I found this to be an interesting proposal, but also kind of forced, if not even nascent. Could not really appreciate it at the time either (as in e.g. why this mattered), matter of fact, just typing this out now is also me kind of understanding it for the first time where he was coming from. If something has the potential to inform, I'd already consider that information. I'd preferred simply thinking of data as persisted information, something that has been instrumentally measured or recorded, so that it could be space and/or timeshifted, to become information again in some other context.
Bit of an aside I appreciate. Regarding the slop proofs, I think we're slowly approaching a better place with this idea of only publishing the Lean, especially if they could restrain themselves to only publishing an optimized Lean. This would leave exposition to experts until the models catch up in quality, perhaps retaining some of the social effects they're afraid of losing. The optimization did have to sacrifice some of the "richness" though that Alpöge was beaming about, which mathematicians may yet again despair over.
Though if one really internalizes Tao's idea of a prospective era of "proof abundance", where these capabilities would no longer be restricted to these labs with their gigantic budgets and unconstrained secret models, I think that might open up the possibility of re-proving the same theorems in distinct ways, potentially identifying new maths that way, or simpler (or harder, more inter-disciplinary) arguments, even ones that'd have been already available at the time the hypotheses were formulated. Maybe a lot of already long existing proofs can also be optimized, or "ported over" to different subfields of mathematics, illuminating those from there-new perspectives. I think there's plenty to explore still. What becomes the "deliverable" that people can get credit and wages for though, I indeed also struggle to fathom.
I like that - from a Statistics point of view, the raw data is just that, until statistical analysis looks closer at the data and provides information about relationships within
This is why I didn't find his idea illuminating, and why I preferred mine at the time. It formed a dependence on the human aspect, even though that was not the key bit, but the mechanism of informing, which does not require a person per se.
Saying this out loud does make me wonder whether this is just my mind playing tricks on me though, and subtly adjusting the memories recalled to fit the context. It's been a long time, take it with a grain of salt.
Now I know more than zero.
Err
Slightly more …
I…at least didn’t…go backwards. heh
I mean that's just Bluesky in a nutshell. A good amount of the audience for the platform sought explicitly that kind of environment.
It's a similar deal with many Reddit communities, these are people who actively want irrational echo chambers.
It's not an AI proof. It's a proof-proving program that Lean compiles to C.
A progam is, of course, not a proof. A program may be isomorphic to a proof, but you can't prove this isomorphism and will just have to trust the "vibes" that it is true.
In other words, it will only be a proof if a human reads the Lean code and verifies it manually.
A program is a proof - via the Curry-Howard theorem. This is proven, not trusted or vibed.
Lean is not "compiling a proof-proving program to C", it is verifying if the proof is correct. Beyond implementation bugs in Lean, it is not possible for a Lean proof to compile if the proof is wrong, or vice versa (for a Lean proof not to compile if the proof is valid). And implementation bugs in Lean are not likely in these cases, since multiple different Lean compilers (one of which is itself formally verified to match the Lean forma system) have verified the proof of the RH.
Human mathematicians are incomparably more error prone than Lean in verifying proofs. The truth of this proof of the RH (and of the many other Lean-verified results from the last few days) is much more certain than any human-verified proof can ever be.
Edit: what would make sense to say, and it does have a profound meaning to the whole field of (human) mathematics, is that we still don't actually know what is the proof of the Riemann Hypothesis. We now know with 100% certainty, or as near as can be, that this proof exists - but since no human has been able to actually go through it and explain it to other humans, we still don't know what it is in some sense. Once it will be made explainable to the mathematical community at large, that is when it will become known in a real sense that mathematicians can work with (beyond abandoning any work that was trying to disprove the RH today, as we now know that can't succeed).
Part of my idea before building this Riemann@home tool is that Lean proofs will become a more frequent occurrence in my newsfeed and I want some understanding of what it all is.
A new idea since is with Lean + LLM now more people can explore the frontiers of mathematics. And since math has a funny way of underpinning our universe, this AI stuff is a bit like getting a superfast spaceship you can travel without leaving your bedroom. So in some sense it seems the journey of understanding math is at a new beginning. Though the pros say it’s over?
Happy to be encouraged or dissuaded but figured you were a good person to ask. Thanks in advance!
However, I will say this - Lean is not like cryptography, it's more like a language for describing formal statements, just like the language we learned in school to write mathematical formulas, plus a "compiler" for this language that verifies the proof you wrote is correct. The complexity comes from two or three places: Lean requires rigurous formal versions of every statement you make, whereas most math you see even in math papers is more informal than that (e.g. you can't just say "n numbers in in increasing order" in Lean, you have to give the exact statements, e.g. For every x_i, x_j in $numbers, x_i <= x_j <=> i < j; or use a library that defines this if you can find one) ; and the actual math proofs for RH and many of these other theorems that are recently published is extremely advanced - that's why no one has been able to find these proofs until now.
I think that if you're really interested in learning this, your best bet is to look for / use AI to show you some Lean proofs for theorems you are familiar with from your math education (say, prove Pythagoras' theorem), and then try your hand at translating some textbook proofs into Lean to see the difference between informal and formal proof.
But I don't think Lean itself can help you get an intuition for an area of math you are not familiar with. I believe it would be very much the opposite - Lean requires extreme rigour and handling each nitty gritty detail, whereas building an intuition usually requires looking at the bigger picture and focusing at the core concepts while ignoring (initially) the many many details.
No, a type system for a model of computation is a proof.
You understand the difference?
There seems to be a free copy of it here https://github.com/Mzk-Levi/texts/blob/master/The%20Formulae...
To prove that Lean corresponds one-to-one with the abstract type theory you'd have to formally verify Lean. (And formal verification is a pseudoscience, no software is formally verified.)
Why the hell not? Several LLM-generated proofs already turned out to be actually be exploits of Lean and not real proofs.
LLMs are pretty good at finding exploits. (Much better than they are at math.)
And with this, we are now in an era where LLMs are much better at math than they are at finding exploits. No LLM has found an exploit yet that is of any complexity remotely similar to proving the Riemann Hypothesis.
Maybe, but "compiles and runs with several implementations" is not a mathematical proof.
We already knew the Riemann hypothesis is true because we checked it numerically. If all we want is a reasonable practical demonstration of it then we don't need formal math at all, it would be a waste of time and resources.
Indeed, what is the point of that? This is not an audit in any way.
Audit the instructions, build with ASAN, run Valgrind, build manually without lake. Anything to actually audit rather than engaging in a performative action.
Now what does that have to do with established audit practices?
I would say in this case because this is arguably the most important proof for over 100 years there hasn’t just been one effort to validate it, so people have gone above and beyond those steps, validating it with multiple independent lean kernels (that’s con-ron, lean4lean, con leche that are mentioned in the grh page on the validation effort[2]). These independent kernels are what caught the “dishonest” proofs that exploited old bugs in lean to claim a proof of the Collatz conjecture around 18 months or so ago so here we have a situation where a dishonest proof would need to exploit not only lean itself but 3 other clean room implementations of the language somehow and also evade the human scrutiny that is involved in this effort. This is vanishingly unlikely given the level of effort that is being put in.
I think where you are perhaps being confused by the wording is just because people are rerunning the same official build doesn’t mean that they are checking the exact same thing. They are running the same versions of lean, mathlib and the proof, checking that compiles without issue as a baseline and then running whatever other checks they want to run. It wouldn’t be reasonable to (say) blame the proof if I have a problem when I run it on my machine with say a version of mathlib that I had locally broken somehow.
The grh validation page steps are “If you do these exact steps you should get exactly what we get” (ie a very high standard of scientific reproducibility to justify the confidence that they have that the original long proof is correct). Everything that’s being done on shorter versions of the proof builds on the fact that the long version works.
[0] https://leanprover-community.github.io/blog/posts/riemann-hy...
[1] https://xenaproject.wordpress.com/2026/11/12/and-the-proof-i...
It is a fuzzy process that requires patience, creativity and perseverance. If Torvalds posted a four step blog post how to audit the Linux Kernel, everyone would laugh.
What Buzzard posted is the bare minimum.
What Linus would do in a given situation doesn’t seem super-relevant here, and the word “audit” which keeps coming up in this thread is a strange one. This isn’t an audit- It is a verification of a mathematical proof. There have separately been several efforts to audit the lean kernel and to make cleanroom implementations of the kernel. This effort isn’t that though, it’s verifying that the proof is correct and proves what the author says it does.
It’s not necessary or helpful to audit a lean proof in the traditional sense of a software audit. “Bugs” don’t invalidate an honest proof - they cause it either to prove a different thing from what it intended or to fail to prove the thing they do intend. So all that’s needed is to check whether it proves the correct statement and the proof is honest (in the sense of not constructed to deliberately exploit a bug in lean). People are doing a lot of checks on all aspects of that and are satisfied.
Are these steps worth adding to Riemann@home. Let me know!
Also that it builds was point #4 of this letter from the Lean community: https://leanprover-community.github.io/blog/posts/riemann-hy...
If there’s steps you want to add, submit a PR!
“1. The statement of the Riemann Hypothesis is correct. This statement is part of Mathlib: RiemannHypothesis and has been carefully vetted by experts in Lean and number theory.
2. Alpöge’s library compiles correctly. …
3. The code proves the correct statement …
4. The Lean proof is valid. “It proved that a long set of steps that are all derived only from the ZFC axioms is true if and only if the known Lean statement of the RH is true.
The set of steps was 17M lines of formal statements, which was now reduced to 300k.
Lots of credit too llms in thr comments, and nothing for the humans that madr it possible. Given the lastest unreleased model I couldnt figure it out. And I also havent seen Anthropic give any credit to the mathmaticians that made it possible.
Anthropic is misanthropic and they are anti-human.
Do not project yourself onto others.
> Lots of credit too llms in thr comments, and nothing for the humans that madr it possible.
And you could've been the one to credit them here but, instead, you'd rather just complain about, which does show some priorities.
> Anthropic is misanthropic and they are anti-human.
Sure.
2. AI Lab releases 17 million Lean proof
3. React negatively to 17 million
4. AI Lab releases 300k version
5. React negatively to 17 million
6. Get accused of moving the goal post
during revision some researchers found there was a function called anyGeometry which returned True for any parameter. This is a work in progress that is crowdsourcing the proof building work to mathematicians under the false pretense that it was solved.
there’s a lot of valid math proofs being released right now (mostly by OpenAI), but they are less grandiose than a milennium problem (except for navier stokes), if you have enough nuance you can see between “AI is fake” and “The riemann hypothesis is solved”
During further revision, they found that was immaterial to the proof, it was dead code.
Also, Lean doesn't work like this. You can't get a Lean program to compile by asserting that false is true.
axiom false_is_true : False
Then you can prove anything by exact False.elim false_is_true
However, the Lean proof for the Riemann Hypothesis didn't add any axioms. Instead, the `anyGeometry` objection was that the proof used true assumptions, which would supposedly render it invalid. This is of course complete nonsense, because all assumptions of a valid proof should be true, and it's only a problem if they're false (as in the axiom above).But you CAN get Lean to compile if you define 1+2=4 and define 2=3. It just won’t pass comparator checks.
I feel math is having its rust or static typing moment where they discovered some techniques to avoid some type of bugs, but they don't realize you still can have semantic bugs and there's no static checker that will avoid those.
First of all that's incorrect, anyGeometry was used in 8 places which linked to the main hypothesis. There was a github showing this, but github is currently unavailable (surprise), but this is verifiable.
Second of all, if it is used by the main hypothesis (which it is) it's not necessary for it to directly invalidate the proof to show that the proof is invalid. Since a mistake like this shows that the original proof was relying on unproven assumptions. That the mistake was fixed and the new updated proof fixes this issue by making the assumptions explicit only means that the new proof is valid, but the old proof is still invalid!
Make no mistake, the new repo by Apolge is not just a compacted version, it contains both a compacted version and a big version, but the big version contains a fix for this issue! And the repo is presented as new from scratch, it doesn't contain the fix for the issue as a commit or anything, it just pushes it under the rug!
QED stop being nerd sniped into this.
EDIT: The issue is not fixed on the shorter version from https://github.com/lsernau/grh-lean/ according to Nielsen
" 12 No Escape in The Shorter Code Version; Same Height, Same Tautology, New Disguise The shortened formalization retains the same definitional height The same definitional construction of the height appears, under changed labels, in the short ened Lean formalization of Sernau et al.[6] (the compact edition of lsernau/grh-lean). In grh-compact/src/New/Endgame/ShortAndEnough.lean, line 32: /-- The main term h_main = mkU of the height, with U = ‘Data.dirCost‘ the cost of one direction.-/ noncomputable def Data.mainHeight := D.m * D.k * D.dirCost Where does this height come from? In AdmissibleData.lean, line 151: def dirCost := sum sigma, (D.jetSize (D.w 0 sigma)- D.primeSum (D.nominalWeight sigma) sigma) (In mathematical notation: ∑ dirCost := ) σ (jetSize(w0(σ)) − primeSum(nominalWeight(σ),σ)). 15 The main height is defined directly from the row-side (if we already proved it) numerical expressions containing prime sums. It is not obtained by independently measuring a geometric object. The subsequent comparison takes the form d(H −3L) ≤d(H −mR+L+E). The code then explicitly states:-- divide by d; h_main cancels (fine) The specific H required for the comparison is constructed from the very analytic data the argument purports to constrain. The shortened version retains this definitional construction under the labels mainHeight and dirCost. In plain English: Even in the much shorter rewrite, the height that is compared is not measured from geometry. It is built by multiplying together quantities that already contain the prime-sum expressions the argument is supposed to control. When the code divides by d, that height cancels, and what remains is a comparison of expressions drawn from the same row-side source. Height is compared to itself. That is a tautology, not a constraint on the zeros "
Please read https://leanprover-community.github.io/blog/posts/riemann-hy... and https://math.mit.edu/~drew/grh/ . The idea that noone has “looked for issues in the lean files” is beyond insulting to the very serious effort of many people to validate the proof.
The hubris is inmense, the discourse is roughly as follows:
"The lean code compiles therefore its true" "But maybe there's a bug in lean"
"the Lean kernel has been built 6 times (on 64 bit) and it has been verified by more than 1 verifier" "Maybe the verifier has a bug" "It has itself been verified by another verifier" "Maybe that is wrong" "Maybe"
That one is a dead end (in this case, in July there was a proof that was allegedly found, but it was because a kernel bug made True == False.)
"there's a (trivial) semantic mistake in the proof" "It's not being used" "It is being used actually" "It's not relevant, it asserts True, it needs to assert False in order to invalidate a proof" "An incorrect True assumption can be trivially inverted, even if this mistake (and it is a mistake) doesn't end up invalidating the proof, there's probably other mistakes, and whether or not they invalidate the proof is something that has not been proven"
>The idea that noone has “looked for issues in the lean files” is beyond insulting to the very serious effort of many people to validate the proof.
That's not what I'm saying, I'm saying people have looked in issues in the .lean files (as opposed to the lean kernel), and they find issues. The people that are verifying are just congratulating each other that the kernel has no bugs or whatever (the dead end)