It's worth noting that the 76k line version is heavily "golfed" (e.g., cramming the same content into fewer lines), which heavily hurts readability for the sake of a smaller line count. A more sane version is around 300k lines. Still, a massive reduction!
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.
To be fair, since it’s only a few days later, it would have been better if Anthropic did that simplification before releasing it to the public. It was massive ammo that fed the trolls to just call it “slop” and a trash proof.
> they’d already made him wait until after the IPO.
Odd - I would have thought releasing it before the IPO would have been in their interests - people have posited that the work is only being done to increase shareholder value, therefore releasing before IPO would have pushed the price per share up (surely) (edit: nope, I was way off)
edit:
SEC "Quiet Period" & Liability Risks: During an IPO registration window, companies face strict restrictions on promotional publicity ("gun-jumping"). Dropping a massive, unverified scientific claim right before listing invites intense regulatory scrutiny, potential IPO delays, and massive shareholder lawsuit liability if a bug were found in the 17M-line proof a week later.
Lock-up Periods & Post-IPO Momentum: Founders and insiders cannot sell shares on Day 1—they are typically locked up for 90 to 180 days. Releasing a major catalyst after the IPO sustains institutional momentum, keeps the stock from suffering the classic post-IPO dip, and supports the share price closer to when insiders and early investors can actually realize value.
Audit & Credibility Risk: Because the initial 17M-line release had not yet been simplified or broadly audited by the wider math community, holding it until post-IPO insulated the listing itself from any immediate "slop" backlash or technical controversy.
So even if maximizing enterprise value was a primary driver, holding a high-profile, high-risk announcement until after the IPO bell rings is textbook capital-markets risk management rather than a contradiction.
Ultimately it's more egg on their face. People were certain the proof couldn't be shortened or be made sense of. Now what? The goalposts are in orbit at this point.
Makes you think that maybe the ‘let’s shorten the original 17M lean loc’ community rally should rather be ‘let’s mine the original 17M for new mathematics’
A lot of people are doing both things at the moment. This proof is being studied very widely and very seriously, and for a long time will be attacked from all possible angles.
The overwhelming goal of most mathematicians is to advance human understanding of mathematics. This is a tremendous opportunity to do that.
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
As somebody who tried the other way around, I think you made the right decision. I was able to condense down the proof by a lot, but in retrospect, it would have been much faster to just build it from scratch again.
The "obvious" thing is a mathematician with a proper understanding of both the tooling, math in itself, and good strategies.
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!
There’s someone in this thread who is doing it on a $100 per month plan and claims to be under the Anthropic size so far. It looks like they are a software developer
I unfortunately can't recall the exact source but I saw some Lean experts early on commenting that those efforts appeared to be a poorly organized dead end that were focusing on cheap "easy wins" that don't actually reduce the fundamental complexity of the proof, like inlining imports.
This does bring all sorts of weirdos out of the woodwork making it seem like anyone can do math. I mean yes it's more accessible now, but you need some skill. It has gone the other extreme towards pseudo intellectualism, or maybe a kind of anti-academic populism.
Does anyone have any tips for simplifying llm output like this using LLMs? I’ve never had any luck getting Claude to simplify code unless I just reprompt.
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.
That's interesting. If the method used to reduce is applicable to arbitrary software libraries, we could be able to simplify a lot of cruft that may help making some systems easier to understand.
That is some ratio! I picture Alpoge just hacking like crazy on Claude and not looking at the code! I guess he has a strong intuition and just keeps piling stuff on in parallel.
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.
He admitted to including a bunch of crap to troll people. It was unprofessional, especially with how much attention this got and the amount of people’s time he wasted.
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.
> He admitted to including a bunch of crap to troll people.
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.
Publishing the first version that compiled opened the rest of the process to the entire community. In this case that's probably better than the alternative.
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.