Much shorter version of GRH Lean verification from Anthropic (opens external site)
Comments (342)
21 comments are not loaded here. Read them on Hacker News ↗.
On iPhone or iPad, use Share → Add to Home Screen.
21 comments are not loaded here. Read them on Hacker News ↗.
If this were “from Anthropic” surely it would be hosted on an Anthropic account?
Replies (2)
Replies (1)
Replies (1)
Definitely a thing to watch out for though, Lean is just arbitrary code after all, with metaprogramming facilities.
I know this is circumstantial. It is not possible to prove identity matching like this, and the repo may contain novel prompt injection attacks to defend against LLM security audits (though I'm pretty sure Astra just ran some well directed rg commands). I did not have it sanitize the code before it ran its scan.
If real, using the original 14.7M lines to 250K pages metric, this would imply a <1300 page exposition being well possible.
Edit: actually, the core proof in this new minimized release is only 35 kloc, so the majority of the 76 kloc is still for formalizing pre-existing math: https://math.mit.edu/~drew/grhexplorer/#g=New
Replies (1)
looks like it passed most of the tests
Replies (6)
Replies (1)
Why this huge discrepancy?
https://riemann.verifytask.cn/
Replies (6)
Replies (1)
Replies (1)
These hill climb-y tasks tends to hit a limit based on model capability (and getting stuck making tiny improvements in bad directions)
Replies (1)
2. I disagree with the methods used by the Lean community repo, which is to try and shrink the original 17 million line Lean proof down. Instead, I believe it was much better to try and formalize the proof from scratch.
I was in the process of doing that greenfield formalization by myself. I am about maybe ~70% done, and I am currently at ~35k lines of Lean right now. Unfortunately, I do not have access to Anthropic's compute; this is all done with a $100 ChatGPT plan running GPT-6.2 Sol. Since Anthropic has the resources to beat me to the punch, I guess I will just publish my current progress here: https://github.com/jamesyc/riemann-hypothesis
Note that this is not my first rodeo; I have previously formalized a proof of the smallest Turing Machine that cannot be proven to halt in ZFC https://github.com/jamesyc/BusyBeaver/tree/main/ZF192
Replies (2)
Useful tactics and thought processes are still a helpful skill. Maybe the model can come up with those, but if you already have a strategy with high chances of success then you can already do that!
Replies (1)
Replies (1)
Like just a bit of direction can make you spend an order of magnitude less time on this kind of stuff
Replies (1)
And the go with the robot and no understanding doesn't interfere with the mathematician with a robot and more understanding.
Edit: they just switched to the version in this repo.
Replies (1)
Replies (1)
Replies (2)
Left a comment under it that may be more directly relevant for you: https://news.ycombinator.com/item?id=50648003
Also relevant are the topic-specific comments from the Lean Zulip thread (linked elsewhere here) on how this was done:
Luke Sernau:
> Yes, it's based on the same proof. I'm not able to say very much about methods, unfortunately, but I had some luck with unrolling definitions to get a long, flat proof, looking for simplifications there, and then rolling them back up again. That way I could simplify across boundaries. Some stuff just needed entirely new arguments though, like getting rid of Vandiver.
Devin Watson:
> For RH I took the millions of lines of Lean from Alpöge and fully decomposed it into atomic binary math functions. Decomposing it to the atomic functions enabled structural deduplication, hash-consing, direct binary term reduction, DAG theorem inlining, and shift-aliasing and binary packing. I am sure there are other strategies for essentially compression that could be applied. Using a custom framework on top of Lean I have gotten it down to 528,681 lines of Lean since starting around lunch yesterday. Obviously I haven't been dumping this directly into the main GitHub repo but it has been guiding my work. I was hoping to have a fully condensed RH Lean package and paper some time tomorrow.
Luke Sernau:
> sounds cool! And way more aggressive than what I was doing. I would bet that there are some big wins still to be had doing that on the shorter version.
Then he makes it "go green", and doesn't care about cleaning it up
I only did CTF once or twice, long ago, pre-AI ... but that's how I felt: just keep writing code and trying things. No cleanup. Whereas when I write code I plan to maintain, I probably do too much cleanup and refactoring.
Replies (1)
Still an incredible result! Not taking away from it. And with how much he poured into it, I can understand going a bit crazy and not empathizing with the eventual reviewers.
But, it’s able to be optimized to such an extent because it was purposefully long before.
Replies (1)
I don't think he said that.
He admitted to publish the fist version that compiled (or something close to that) instead of taking a few days/weeks to cleanup it. Not ideal, but I don't mind it.
IIUC he notice the English proof he would get was going to be too long and no human would be able to read it, so he decided to drop the English version and publish only the Lean version. The "joke" was pretending that the Lean version printed in A4 paper counts as an English version.
Note: I expect that after some cleanup and a few years of study, we will get a "short" proof that enters in one or two books. But the guy didn't have a few years to sit on the proof and clean it.
Replies (1)
The process by which math is done is being redefined in real time. It's fascinating to watch, and think about what this means for the field going forward.
The proof also still contains a few unused intermediate results. Sounds like these were neat findings where the proof of RH ultimately only needed a weaker version of the result, but folks at Anthropic thought it would be worthwhile to finish fleshing out the details.
Replies (1)
This is exactly the type of thing that moves a field forward, that many people were (inexplicably IMHO) saying we wouldn't get with an AI proof
Replies (2)
Replies (5)
Replies (1)
Continue this thread (1 replies) →
Replies (2)
Who was certain of that?
I can just about see how someone might hold the latter position, maybe. But the former seems pretty silly?
There was already a proof that was shortened by 20% so your position is untenable. I was literally waiting for them to publish a reasonable proof.
Why? Let the public have some fun!
Good. Shows who to ignore.
Replies (2)
The overwhelming goal of most mathematicians is to advance human understanding of mathematics. This is a tremendous opportunity to do that.
> it's super absurdly funny how much time and resources have been put into tiny incremental gains to reducing the proof and Anthropic can just throw compute and better internal models at it and get a reduction of this magnitude in days
Replies (2)
Replies (1)
Replies (2)
This is PURELY with GPT-6.2 Sol, by the way. On a $100 ChatGPT plan, using only one agent, no subagents. My implementation plan could use subagents, but it ate up my weekly usage too quickly.
Anthropic engineers with access to {way more usage, fast mode, and can afford to use subagents} obviously can move a lot faster than me.
Also, CLEARLY 17 million lines is overkill. At my current rate of progress, I'm pretty sure that I can do it in even less lines of Lean than Anthropic. This is with most the work being done by AI, with me giving it nudges (in ways that helps avoid the common pitfalls that happen if you fully give AI the reins).
Replies (6)
Replies (2)
When you formalize a proof with Lean, you want to start off with the Challenge.lean statement file, which is good standard practice (which is surprising to me that the original proof by Alpoge lacked one). Make sure that's correct, and just replace the proof with a `sorry` statement. If your Challenge.lean is correct, then that means nobody can complain about you "proving the wrong thing". Then, counterintuitively, you want to liberally use `sorry` statements in your proof as you go. For software engineers, just think of `sorry` statements as NotImplemented exceptions. Track all the sorry statements in a centralized location, and have the AI build out the proof with breadth first search, not depth first. That's the biggest rookie mistake; most people tell their AI to do one component at a time, DFS style. You will get a much cleaner codebase if you do BFS.
The other counterintuitive thing is that you DON'T want to compile the Lean code all that often. If you let the AI do what it wants to do, it will try to compile the Lean code after every little change to some random function. That means your entire context is littered with dealing with that. Instead, have the AI do a solid chunk of work without compiling the Lean code, then do a build occasionally. Accept that fact that the AI occasionally will make mistakes and the build will fail and will need to be fixed, but fixing the mistakes is pretty quick and the AI is much smarter if you make it focused on math, rather than handling Lean compiles and checking it.
Replies (2)
You did a great job and you should be proud regardless
The GPT-6.2 series seems to truly be bad when it comes to real people doing real stuff. So far we're seeing Sol 6.2 underperform even Mimo v2.6 Flash, a super cheap model that's completing tasks at $0.03 each vs. ~$2. Sol is in last place except for Grok 4.7 (which is a truly bad model). (Data from https://github.com/bottomless/agent-duel.)
Replies (1)
That being said, I picked GPT-6.2 Sol because:
1. I cannot afford Astra
2. I found that GPT-6.2 Sol and Astra are better than Opus 5.5 for mathematics, even though I use Opus 5.5 as my main workhorse for coding. I suspect this is because 6.2 was posttrained a lot on mathematics and not coding... because OpenAI threw a lot of RL for math at 6.2 after Navier Stokes a few months ago, which is why it shines better than Claude at mathematics.
3. Sol has much faster tokens/sec than Astra
Replies (1)
If you want to collaborate, I'd be interested in giving free Sol / Neon inference to generate head to head battles on who does this work better.
Replies (3)
Replies (2)
I don't agree with this, personally. They're a great research tool, I certainly appreciate having them, but they can't compare to a well-written document or video. And interestingly this doesn't really seem to be getting better, while they're much better these days at writing code, retrieving information, etc. their ability to communicate that information is still about where it was a year ago. Claudlish sucks to read, it's better than nothing, but I certainly wouldn't say it's the one thing they're good at.
Replies (3)
Replies (1)
Replies (1)
Replies (1)
If you haven’t spent the time to deeply understand and form your own mental model about the system it’s documenting, you won’t notice all the inconsistencies, contradictions, omissions, overcomplication, etc. in the AI output.
Replies (3)
Continue this thread (1 replies) →
If someone already has a good mental model (because they made the system or worked on it for a long time) then they would be better at it, but that's apples and oranges; when a company asks a human to document a system, the reasonably allocated time for such a task does not really allow to deeply understand that system.
Continue this thread (1 replies) →
It was indeed like that, and it has improved to an extent that you're clearly wrong now.
Replies (1)
I just disagree that they're somehow going to make human explanation obsolete, as the parent comment was somewhat implying. Given the choice (which of course, isn't often available) I'd almost always want to read decent human writing over LLM writing, it's just better at keeping one's attention and conveying info
You mean producing an explanation that sounds believable to those with little expertise.
Not sure this is a good thing.
It's reducing the proof to make it more likely that insights are possible.
But no it doesn't reduce Tao's point.
Replies (3)
Why doesn't [the proved capability of reducing the proof size (by 99%!) to make it more likely that insights are possible] reduce the criticism of [no insights are possible from huge proofs]?
Replies (1)
Replies (1)
Replies (1)
Continue this thread (1 replies) →
Replies (1)
I can bet this sort of proofs are going to give birth to new, beautiful math abstractions that help compress them.
We're seeing this everywhere in software engineering now.
Replies (1)
Examples?
Replies (2)
Replies (1)
Replies (1)
Replies (3)
It doesn't. We already knew the Riemann hypothesis was true long before AI. (We checked it numerically.)
The point of math is to figure out why it is true, and if the "why" has broader implications in other domains.
AI slop doesn't help us answer these questions and just wastes people's time.
Continue this thread (3 replies) →
Kurt Gödel showed how to find explicit examples of statements in formal systems that are provable in that system but whose shortest proof is unimaginably long. For example, the statement:
is provable in Peano arithmetic (PA) but the shortest proof has at least a googolplex symbols, by an argument similar to the proof of Gödel's first incompleteness theorem: If PA is consistent, then it cannot prove the statement in fewer than a googolplex symbols, because the existence of such a proof would itself be a theorem of PA, a contradiction. But simply enumerating all strings of length up to a googolplex and checking that each such string is not a proof (in PA) of the statement, yields a proof of the statement (which is necessarily longer than a googolplex symbols).Replies (1)
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 (8)
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.
Continue this thread (1 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).
Continue this thread (2 replies) →
There seems to be a free copy of it here https://github.com/Mzk-Levi/texts/blob/master/The%20Formulae...
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)
Continue this thread (2 replies) →
Edit: I'm pretty sure by now nobody cares about whether the original x million lines were correct or not.
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)
Continue this thread (1 replies) →
Replies (1)
Replies (3)
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
Continue this thread (2 replies) →
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.
Continue this thread (2 replies) →
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.
Continue this thread (1 replies) →
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.
Continue this thread (1 replies) →
Replies (3)
Replies (2)
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.
Replies (2)
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.
I think humans deserve massive credit, for the math, for lean + the efforts which came before it, and for figuring out how to use LLMs as a tool in service of this great achievement. Proper exposition is another such human achievement yet to come (which almost certainly will incorporate use of LLMs).
Worth noting that Anthropic also didn't publish the claim except in that they employ Alpöge who released on his own website. He referenced that it depended on more prior mathematics than anticipated and thanked plenty of people among them mathematicians and physicists and promised to list many more in a future write-up.
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
Replies (2)
The goalpost comment was my general reaction to how AI-skeptics are forced to adjust their standards to the rate of progress (at times I have found myself among them!), not intended as an accusation against a new user, though I understand that it reads that way.
Replies (1)
Replies (3)
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.
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/
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.
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?
But looking at the code, I can't help but wonder:
Who on Earth can understand that ?
Random example: https://github.com/lsernau/grh-lean/blob/main/grh-compact/sr...
Genuine question for people who know Lean: How realistic is it for a human to read this code, 'grok' it and verify that it is correct ?
Replies (13)
> Scaled Hecke operators repair divisibility at inert primes pairing tops
Literally every word here has a precise definition. Probability takes forever to get an intuition for all of that. But that's always the problem with math.
Replies (2)
Replies (2)
>How realistic is it for a human to read this code, 'grok' it and verify that it is correct ?
Data presented this way isn't simply read and understood, it often has to be studied.
Plus, these proofs are actually quite tame compared to human-written Lean proofs.
> How realistic is it for a human to read this code, 'grok' it and verify that it is correct ?
You don't need to verify any of this, but for the final theorem statements. That's the point of formal methods.
Something that I wonder where is the "eureka" part of this proof, or perhaps the top 10 "eureka" moments.
https://github.com/lsernau/grh-lean/blob/main/grh/src/New/Up...
This is the non-compact 'Human Readable' version. Still pretty intense!
To properly understand a proof you need to run it interactively (or at least I do), which is kind of running in a debugger
I mean the here's the gist of what takes to understand a proof
To prove a theorem in Lean (or similar theorem provers; I'm actually more familiar with Rocq) you have goals, which are the things that are left to prove. The "main goal" is what you want to prove right now, and the other goals are other things you also need to prove
When the list of goals becomes empty, you have proved the theorem. You start with a single goal: the theorem itself
It proceeds like a game. Depending on what the main goal looks like, you can eliminate it calling some piece of code (there's more to it but let's say it's a tactic). But more often than not, eliminating a complex goal just pushes more, hopefully simpler goals into the goal list. So you need to be, well, strategic in what tactics you employ - you need to go into the direction of making things easier to prove, not harder
So what looks like to run a proof interactively? You can go through the proof step by step, all the while you observe how the goal list changes. That's analogous to run a C program in a debugger, watching the local variables of each stack frame
Ok so that's how you (or at least I would) understand a proof - run it interactively, which is like watching a professor write down each step of the proof in a white board, all the while she carefully keeps track of what's left to prove
But anyway. The innovative thing about theorem provers in general is that to verify a proof you run a program (a kernel) which is just a trusted type checker. Unfortunately the official kernel is written in C++ and agents found bugs before (that made the kernel accept theorems that were false). However, there's multiple kernels, so if all of them type checks the proof (and the proof doesn't contain stuff like "sorry", which means it's not proved at all), there's a high confidence in the result
Replies (2)
Alas we’re about to stop caring about programming languages at all.
To be clear, it is not a human who verifies it's correct.
Lean does that.
Humans just have to verify that the statement of the theorem is accurate, and that it is rooted in mathlib.
Sorry for ranting, point is, looks fine to me, and it probably reads easily for someone well versed in math, granted they take the time to learn Lean
How difficult is it to learn to use Lean?
Any similar example to see the level of difficulty?
Replies (3)
Lean is like a universal DSL. Learning the syntax is one thing, but learning the background domains of a Lean proof is another.
Replies (1)
I'm guessing you can get pretty far just using the models as almost a translator to/from Lean.
(ofc it can still can be interesting to learn, I'd just treat it more like learning Latin)
Replies (2)
[0] https://www.kitp.ucsb.edu/sites/default/files/4th-Statement-...
That's not quite what you said, your version is more nuanced, but I expect that's how some will take it. Hopefully the potential risks are obvious.
Replies (1)
For that second part, you can probably get by with something like Inkling 2 Mini running locally
Depending on what you want to use Lean for. Do you want to prove math, or do you want to do software with some theorems sprinkled in?
Replies (1)
Thanks much for the resources.
Replies (3)
Replies (1)
Take this post on HN about maths mostly being solved by AIs 10 years in the future. Downvoted to hell: https://news.ycombinator.com/item?id=17663622
Which was then picked up by Reddit in their infinite wisdom: https://www.reddit.com/r/badmathematics/comments/9436cm/is_t...
And now mocked by the pro-AI people on Reddit: https://www.reddit.com/r/singularity/comments/1y5l3hu/discus...
Replies (2)
Replies (1)
Replies (2)
Replies (1)
With that said, if AI just provided us a life of hedonism would you take it? With all the Calvinism in the US it would be hard for a lot of us to accept. Some people just want to work until they die.
Continue this thread (2 replies) →
The most important properties of the things around us cannot be predicted yet from their fundamental mathematical models, because those are too difficult to solve.
So most of the properties of physical systems must still be obtained experimentally and the prediction of their behavior can be done only with simplified mathematical models, which contain tons of ad hoc empiric parameters.
It would be nice to be able to compute what chemical substance you need to synthesize to have certain properties, or how to modify your DNA to grow a third arm (as an example of an arbitrary shape change).
We cannot compute mathematically even something as simple as the emission spectrum of a typical atom or its atomic mass, much less what will grow from a plant seed or animal egg.
Replies (1)
Replies (1)
It looks like a miserable job; reading LLM produced code is bad enough but I feel lean could have been named 'thick'.
[1] https://github.com/lsernau/grh-lean/blob/main/grh-compact/sr...
Replies (1)
Plus, this big proof really isn't that bad. What a line like
simp_rw [invDFT_apply, ← nsmul_eq_mul', AddChar.map_nsmul_eq_pow, ← smul_sum, @sum_comm _ _ ℕ, ← sum_smul, hψ.fourierTransform_eq_inv_mul_gaussSum]
really means to say is simply, "simplify and rewrite the goal statement iteratively according to these equalities, in the specified directions." Understanding this in an interactive proof assistant just comes down to comparing the before-and-after of the goal state, only referring to the specific equalities mentioned if it's not obvious to you. The `grw` tactic used all over is similarly a rewriter.
Replies (1)
In this, I appreciate you and quietly envy you.
Maybe this is my 2026 xmas-break project...
I feel like actual understanding be damned, we will ship slop as fast as possible until everyone who cared has drowned in it. Is basically the subtext of all AI companies now.
Replies (1)
Replies (2)
In one particular domain they may be hard to find. Said bug may be covered by other bugs or weird behaviors.
I'd think where you have two different branches of maths that have typically not been used together is where these things may stand out. Like axioms or values that should ether be equal, or should not be equal violate those conditions.
Is there an ELI35 explanation for mathematicians that don't speak Lean?
Replies (4)
Replies (1)
Replies (1)
Classical.choice is the axiom of choice.
idk what Quot.sound is.
The summary is that these are the axiom of propositional extensionality, choice, and a quotient construction (which implies function extensionality, i.e. what makes two functions equal).
Longer answer: in layman's terms:
propext - treat "if and only if" as "is"
Classical.choice - allow to pick an element from any known non-empty type, even you don't know what the element is
Quot.sound - Quotient ("quot") means to split a type's elements into groups. It's called quotient because, for example, you can split all integers into two groups - odds and evens - by dividing them by 2.
Quot.sound means you can go the opposite way: you can say "since 9 % 2 = 13 % 2, the group where 9 is the group where 13 is."
If all these three sound very trivial to you, that's because they are. Our everyday math already assumes these hold.
(Edit: I didn't realize you meant to ask for explanation for mathematicians. These might be "too layman" for you, sorry. I'll leave this comment here for future non-mathematicians passing by.)
Replies (2)
Replies (2)
Lean's type system is also stronger than ZFC: according to Google it's more like ZFC + inaccessible cardinals.
In the strictest sense, without an axiom to replace AoC, it can never "show" us something: ZF is strictly weaker than ZFC, and can never prove anything that ZFC can't. In plain ZF, lots of things that we take for granted, like "a countable union of countable sets is countable" are no longer true (provable) -- although most of these intuitive things can be proven either by much weaker versions of AoC, or are also proven by common alternatives to AoC like the Axiom of Determinacy.
Replies (1)
Replies (2)
Replies (1)
Four Futures is the book I'm referring to.
Replies (1)
Replies (2)
Their leaders are some of the most hated in the nation, workers everywhere reject their wares, all they've done is enable mass surveillance at every level in society now including our jobs, the decreased the ability required to run elaborate scams and lie to masses.
Like wine moms that voted for Kamala now want Elon Musk in prison. Voters want this and they will likely get it, because the first person to do it will become President or hold whatever office they want for life.
The optimism is here, people are openly rejecting neoliberalism. In 2016 socialists were still political pariahs and now someone who identifies openly as one is Mayor of the NYC (the capital of the planet).
Replies (2)
And I don't think any government in China or Europe will just stand by and watch. This can only happen in America.
Replies (2)
This is why they salivate at the idea of replacing labour. To finally take the last bargaining power the masses have. We are their play-things now.
> Is the Fields Medal going to still be relevant in 10 years, when most of the the major mathematical discoveries are made by deep learning and deep reinforcement learning systems? Already systems are learning to reason about concepts [1] and of course there is classical work on proof checkers [2]. It's very likely that the 2028 Fields medal will be awarded to a programmer, not some mathematical super-genius (assuming that the committee is fair, and not biased against machines).
https://news.ycombinator.com/item?id=17662219
The responses have aged like fine milk.
Replies (3)
Replies (2)
It's often said that people don't see such changes coming because they can't intuitively understand a rising exponential.
What I find hilarious is that even mathematicians can't understand a rising exponential.
Replies (2)
And he is one of the OGs of ML. Turns out meatbags, regardless of their expertise, suck at predicting the future. And the negativists are often proven wrong and their comments age like milk. Something, something, bitter lesson, RL goes brr and whatever kids say these days.
I think it's less that people don't understand exponentials and more that people passively and unconsciously reject predictions that in some way contradict their preferences. (In the case of left on energy, that was a degrowth mindset.) It helps to identify ones own preferences and consciously check if one is doing this.
Here is a link to that comment: https://news.ycombinator.com/item?id=17663622
Edit: Curious how did you find that comment? ... Its also a throw away account... Was it you that posted it, or your memory is so great :)
Replies (1)
From here: https://www.reddit.com/r/mathematics/comments/1y5k50k/is_the...
I don't know how that person found it.
Lean code is good and all ig but I'd really like to see an actual mathematical paper about this with someone who understands it presenting it at a conference.
Replies (1)
https://www.ihes.fr/~rzhang/files/GRH%20note.pdf
Replies (1)
A bit of orchestration and review layer on top, taken from what the SWE have been building for the past year, is all you really need.
If you want to look at the absurd version of that - go look at some live streams of the GTA PC port; minimal prompts in modern harnesses get you there >90% of the time and all you need is an expert to have it change course/stay on track at a high level.
Replies (2)
Replies (1)
Replies (1)
Replies (1)
Consider two universes:
A universe where a proof exists, it is long but there's also a technology to help explain it.
vs
A universe where no known proof exists and no technology to explain it either
The logic is that universe (1) and (2) are equal in terms of how much understanding it gives humans on RH. Wow.
Replies (2)
It was a rather simple question, but one that requires some degree of expertise to answer. I don't understand where or why the conversation has derailed, or what you guys are even talking about, but I will say that it seems par for the course lately on HN.
Continue this thread (1 replies) →
Replies (2)
Bertrand's postulate is older still.
Replies (1)
Is the watermarking present in their math dumps?
Watermarking might frustrate expressibility of shorter proof step strings, so even if a mathematician working on a problem via centralized LLM inference assistance, then even if the mathematician is using proper prompts, the LLM is less likely to succeed in the simultaneous demands of fitting the watermarking and proof validity. Imagine being able to freely type characters or tokens, but every now and then it autocompletes a likely but not sought-after proof direction so that the watermark remains present...
Meanwhile frontier lab can pipe the same questions to their non-watermarking math research department.
Well intended AI safety features like watermarking can have unintended effects like centralizing math research.