Much shorter version of GRH Lean verification from Anthropic (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
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!
https://riemann-at-home.github.io/riemann-at-home
Replies (7)
Replies (4)
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
Replies (10)
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!
Replies (3)
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.
Replies (1)
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
Continue this thread (2 replies) →
Now I know more than zero.
Err
Slightly more…
I…at least didn’t…go backwards. heh
I've struggled with this without internally reifying the problem; it's very strange to understand math, LLMs, proofs, Lean, etc. and yet, have no idea what the implications of it all might be. From that perspective, I do understand some form of denial or doubt about the whole thing.
Replies (1)
My sense is that the extents of the utility are very far, yet very narrow. I might be wrong. Maybe we can train that out of these things. If we don't, I don't think the valuations make sense.
Replies (1)
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.
Replies (2)
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).
Replies (2)
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!
Continue this thread (1 replies) →
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...
Replies (1)
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.)
Continue this thread (1 replies) →
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.
Replies (1)
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 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 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.
Replies (1)
These are people who can't hold two truths at once, I guess. Knowing how to program is a great skill, even if frontier LLMs are mostly better at it now. It's still good to stretch your brain muscles and take it for a walk. It's a great way to learn how to think. And yet, LLMs are an incredible tool too. You can have both.
Now we've built up hard logical barriers - like in the olden days - but the discourse hasn't caught up.
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)
Replies (3)
Replies (2)
Replies (2)
Continue this thread (1 replies) →
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)
Continue this thread (1 replies) →
Edit: I'm pretty sure by now nobody cares about whether the original x million lines were correct or not.
Replies (1)
Continue this thread (1 replies) →
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...
Replies (1)
Replies (1)
0. Lean source does I/O because they are not so much proofs as proof-generating programs requiring "elaboration." The 240MB of compressed Lean that Alpöge uploaded expands to 8GB of compressed .ndjson fully elaborated proofs via lake build.
1. Given .ndjson, the actual proof checking performed by a kernel can take place I/O-free. The attack surface shrinks to (a) resource depletion, e.g. oom, and (2) kernel errors including those akin to malformed input segfaulting a C compiler.
The elephant in the room begs to be noticed: why does proof elaboration need to open such a huge security hole?
Replies (1)
Replies (3)
Replies (1)
Continue this thread (1 replies) →
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
Replies (2)
Before, it was used as a starting point for prof like "if the GRH is true, then $somethingsomethin is true".
Replies (1)
Continue this thread (1 replies) →
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.)
Replies (1)
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.
Replies (1)
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.
Replies (2)
Lean is designed to write mathematical proof. It only compiles successfully if the steps on the mathematical proof are correct. So you only have to verify that the final statement is the one you want, and the compiler will check that all the crap you wrote before is a correct mathematical proof.
In this case, the final statement is copied from Mathlib and has been used for years, so it has a lot of review by the community. Before it was used as a initial step to prove followup like "If GRH is true than $something is true." Now it is used as the final step to prove "GRH is true".
There are some escape hatch to avoid writing missing steps using the magical "sorry" instruction. They are useful to write the high level structure of the proof and later fix the holes. But the compiler at the end complains that you used "sorry", so it's not possible to hide it.
So in this case "compiles IS a mathematical proof".
There are a few implementations. It's possible that they have bugs, but highly unlikely that all of them have the same bug. Also if the AI finds a bug, I expect it to abuse it to prove all king of results. So it's very unlikely.
That's not how to read that statement. That statement says "the proof has been independently verified multiple times by different methods". There is nothing here different from human verification: you wouldn't trust a proof just because one person said "I checked it, it's legit" - you know that person can make mistakes, or lie. You wouldn't even trust it if a group of 5 friends all said that they had verified it by hand. But if 5 different experts from 5 different universities claimed that they verified it, you'd have a much better reason to trust it.
It's the exact same with different Lean compilers - except that Lean compilers make MUCH fewer mistakes than human mathematicians.
https://setiathome.berkeley.edu/sah_graphics.php
Replies (3)
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”
Replies (2)
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.
Replies (3)
But you CAN get Lean to compile if you define 1+2=4 and define 2=3. It just won’t pass comparator checks.
Replies (1)
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.
Replies (1)
Replies (1)
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.
Replies (1)
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)
Replies (1)
That is just incorrect. There have been no issues which affect the truth value of the proof. Some of the people who are verifying may be just congratulating themselves but the vast majority of people I know who are involved in the verification effort are very seriously trying to understand the proof and verify whether or not it is correct, states and proves the correct proposition, uses unorthodox axioms or exploits the lean kernel in some way. Whenever there is a major result like this in mathematics people scramble to read and digest the result and see what else it could unlock. In this case there are lots of efforts to restate the proof in simpler/more human terms - I know there’s a professor who is digesting the proof into a set of homework exercises for his classes for example. There is also a parallel effort to formalise the Masullo (human) proof and repair it.
Replies (1)
https://philarchive.org/rec/NIEIOT-2
present in both original and compacted versions
Continue this thread (1 replies) →
github.com/ityonemo/2b4m
Replies (2)
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.
Replies (3)
Replies (1)
Now what does that have to do with established audit practices?
Replies (1)
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...
[2] https://math.mit.edu/~drew/grh/
Replies (1)
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.
Continue this thread (1 replies) →
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!
Are these steps worth adding to Riemann@home. Let me know!
Replies (1)
In the spirit of what they are getting at (getting people to try different things) you could look at the grh page and the steps they did (eg using con-ron, con leche and lean4lean) as extra things people can try. I also don’t know whether you include this, but pointing people at how they verify the axiomatic basis[1] used would be helpful.
[1] https://lean-lang.org/doc/reference/latest/ValidatingProofs/ Is the official documentation, but ‘#print axioms’ is what people need to know how to do and it needs to return ‘propext, Classical.choice, Quot.sound’. Hypothetically, if it were to return fewer axioms that would be fine but more is definitely not fine. So for example if it didn’t have Classical.choice that would just mean that it didn’t rely on the axiom of choice. If it includes ‘sorryAx’ that means the proof is incomplete and has a ‘sorry’ declaration somewhere, which is what you do to ‘stub out’ a proof while you’re working on it. If it includes something else that it’s only true relative to the soundness of those axioms. So if it said say ‘Classical.em’ that would mean it includes the law of the excluded middle so it would not be a valid proof in purely intuitionist logic but is fine in classical logic.
Replies (1)
“Running valgrind for example is for detecting memory leaks in software.”
Valgrind does detect leaks (or at least, the memcheck tool does). That is not the most important thing that it does - so much so that leak reporting is not even turned on by default.
The two most important things that it does is check memory addressability and initialisedness. Errors of those kind are Undefined Behaviour (in some cases a more recent official classification is Erroneous Behavior). Other tools like Dr Memory and address/memory sanitizers also perform similar verification.
Once an application has encountered UB or EB you can no longer reason about its behaviour. From the perspective of a formal proof tool that would be a big problem.
Replies (1)
Good advice. Lean doesn’t have such a thing as undefined behaviour or erroneous behaviour. As a language it’s much more like haskell than C/C++ (eg it doesn’t have pointers exposed directly, you can do dynamic memory things using arrays but that’s really for FFI and wouldn’t be used in a proof). If you’re using lean as a proof assistant, many/most of the types of things you might do to check a conventional program for bugs are not relevant.
Approaching a proof validation like you’re approaching a software audit is very unlikely to yield any sort of useful result. If you want to audit lean in the normal software way, the thing to do would be to audit the lean kernel - you may well get results. It’s very unlikely but not impossible that these would affect the validity of any proof except where a proof was “dishonest” ie deliberately constructed in such a way as to exploit the bug.
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?