Much shorter version of GRH Lean verification from Anthropic (github.com)
127 points by nb-t an hour ago
bananaflag 31 minutes ago
From ~17M lines to just ~76k lines, a 99.56% reduction.
w-m 13 minutes ago
Meanwhile, the community-driven compression with a hundred contributors and thousands of pull requests sits at a mere 33% reduction.
Why this huge discrepancy?
bananaflag 7 minutes ago
The internal models are smarter.
6thbit 5 minutes ago
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.
seizethecheese 14 minutes ago
76k lines sounds like it would just about fit into a 1m token context window. Cool.
jychang 12 minutes ago
It doesn't quite fit with the o200k tokenizer, I just checked.
qwrt1a 30 minutes ago
They needed to show off code golfing for Friday's stock support.
Sharlin 13 minutes ago
Clearly the 17M lines was just because we're once again measuring productivity by lines of code output (don't tell the managers that you just reverted almost all of that progress by optimizing the proof!)
spootydooty 21 minutes ago
Nice! The more readable 300kloc proof even has a clear "known math" vs "new math" split and human-readable documentation all over the place. This should greatly aid with digesting it.
dward 37 minutes ago
Zulip discussion here: https://leanprover.zulipchat.com/#narrow/channel/658556-Riem...
qwrt1a 32 minutes ago
Methods are not revealed. ANT is the new MSFT.
eamag 26 minutes ago
From comments
> 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
jychang 7 minutes ago
I'm actually a little bit annoyed about this, because I was working on this in parallel. I'm about 80% done with the proof and it's at 35k lines of Lean right now. However, Anthropic beat me to the punch.
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} beat me to the punch.
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.
buzzy_hacker a minute ago
Please keep up your effort and write up your approach in a blog post, people would love to read it still!
vatsachak a few seconds ago
I mean this just means that in the future we will have to pursue what we want without caring for whether a big lab scoops us.
You did a great job and you should be proud regardless
hax0ron3 21 minutes ago
Anthropic also has the AI context from the work that created the original proof. I wonder if that might have helped.
jychang 3 minutes ago
No, I'm working on it with ChatGPT and I am creating a proof that is roughly the same order of magnitude in size.
delegate 9 minutes ago
I don't know Lean..
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 ?
spootydooty 7 minutes ago
The grh-compact version is not very readable (it is deliberately minimized), I'd read the 300kloc version in the grh folder instead, which looks fairly clean to me.
gre 21 minutes ago
Does this challenge Tao's point from a month ago that getting huge proofs with no insight is a problem? Are we already past that with smarter LLMs that can golf the proofs and explain them?
c7b 13 minutes ago
That was never a serious take to begin with. If there's one thing that LLMs are good at, it's taking stuff at any level of difficulty and explaining it to an audience with any level of expertise. It's just a matter of whether someone puts in the effort to produce a prettified version, which the big AI labs seem to have deprioritized against being first so far. My guess is that as soon as the list of impressive, open problems (like Millennium problems) is exhausted, we'll see more and more beautiful explanations of the results.
contron 18 minutes ago
Whatever model did this we are not getting. Can't make that hella cash flow without pumping those output tokens. Alas, one day.
lelandfe an hour ago
> This repository is a shorter version, produced in collaboration with my colleagues at Anthropic, and Claude.
If this were “from Anthropic” surely it would be hosted on an Anthropic account?
perching_aix 34 minutes ago
The username resolves to Luke Sernau. His GitHub seems lively, but all his activity is constrained to private repos, all the way back to 2013, so it's not possible to check what he works on. On his LinkedIn, without being logged in, I can see Anthropic in the "current company" section, though most everywhere else I see him to be associated with Google DeepMind. Fed the repo to Astra and told it to hunt for malware concerns, came up clean.
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.
conradkay 41 minutes ago
Anthropic hasn't even acknowledged the Riemann proof yet, Levent just posted it on his own website (after asking Dario for permission)
londons_explore 2 minutes ago
Perhaps because it was not exclusively made with Claude, or because it was done as a weekend project?
aborsy 6 minutes ago
I have no experience with Lean.
How difficult is it to learn to use Lean?
Any similar example to see the level of difficulty?
xqcgrek2 6 minutes ago
Really, at this point University trustees should disband math departments, and give their staff transition grants for retraining to do other stuff