Generalized Riemann Hypothesis proof in Lean 4, in 76k lines (down from 17M)

45 points by mikedanese 22 hours ago on lobsters | 17 comments

Cajunvoodoo | 14 hours ago

The fact you can even expand 76k lines into 17M goes to show that LLMs, while capable at making things work, are really awful at making things that are maintainable and sane. Even with regular projects they will put loads of unnecessary crap, and it's irritating having to remove all of that mess that shouldn't have been there in the first place!

tuxes | 12 hours ago

The fact you can even expand 76k lines into 17M goes to show that LLMs, while capable at making things work, are really awful at making things that are maintainable and sane.

I don't think this necessarily holds. It could just be that it wasn't a priority for the project.

Since the artifact is independently checkable, that seems reasonable. Shortening it can come later, and here we are.

Rexxar | 7 hours ago

I'm not sure if it's always a good strategy as it become more expansive to rework parts of the proof if you see later you need something slightly different. But it's maybe the best strategy for them as they have infinite token limit.

aiono | 5 hours ago

While I agree, in this case shortening it is pretty safe because if you make a mistake proof will not hold. Compare it with a complex software project, if you accumulate all the additional amount of code for a while it will be very difficult to make it more maintainable unless you have a really comprehensive testing setup.

cultpony | 9 hours ago

The proof is based on Levent Alpöge's, with Claude (https://alpo.ge/remark.pdf). This repository is a shorter version, produced in collaboration with my colleagues at Anthropic, and Claude.

I mean, the 76k lines version is also made by Claude. I think this is less indicative of an LLM failure and more an operator issue. Alpöge published not seeing a need to trim down the solution, someone else put in that work instead. If an LLM is bloating your repo with useless crap, you need to spend time and effort to trim it out and configure the LLM to more reliably not bloat the repo.

I more suspect they published in a rush due to some combination of wanting to. juice the IPO and also avoid being scooped by openai.

Pomax | 4 hours ago

This is more a classic example of "if I had more time, I would have written a shorter letter": step one was to get there in the first place (think of it as a v0), step two is to weed out all the "which means none of ... is actually necessary, and we can rewrite ... to basically three lines, and..."

I mean it was the same llms that made the 17m line proof that also made the 76k line one

BenjaminRi | 9 hours ago

The fact you can even expand 76k lines into 17M goes to show that LLMs, while capable at making things work, are really awful at making things that are maintainable and sane.

Humans can do this too. All it takes is a large, aging corporation and broken development processes.

Relax | 7 hours ago

Yeah but LLMs are really incredible at it. I've seen coworkers generate 300k line codebases in a month without trying. I wonder if it can be trained out of them somehow.

This is one of those ways in which LLM's are not special. People have always been liable to create mountains of unmaintainable spaghetti. The autonomous autocomplete just enables them to do it with less effort.

Relax | 5 hours ago

Yes, it's a difference in degree not kind. It used to take years to generate 300k lines of garbage, now it takes weeks.

dualvariable | 20 hours ago

The prize should go to whoever can get it to fit [legibly] on a t-shirt.

intelfx | 8 hours ago

Are you sure that this is (mathematically) possible?

wuschel | 7 hours ago

Depends on the t-shirt size :)

M? No.

XXXL? No.

190XL, perhaps.

vamolessa | 6 hours ago

is this the doctor who meme template?

hyperpape | 5 hours ago

Levent Alpöge suggests that at some point, he made the initial proof longer because he found it funny.

https://x.com/__alpoge__/status/2124987173439209561

For a lot of reasons, it seems silly to put much weight on the 17M lines number.