Hacker News new | ask | show | jobs
by qwertyforce 7 days ago
I think we should have some sort of a competition, shortest RH proof in lean. Maybe shorter proofs are simpler
6 comments

I agree with the sentiment, but there are competitions to do things with the shortest amount of code in other programming languages, and it does not lead to anything simple or understandable.
Nice example with code golfing, indeed most code golfing code I've seen is awful :)
Code golfing often measures by character count or things like that, which leads to hard to understand results due to short symbol naming. This seems avoidable by measuring by something other than character count.

It also leads to hacks taking advantage of underlying hardware or runtime quirks, which are anything but easy to follow. I don't know Lean, but it seems like it wouldn't expose abstractions that would allow for these kinds of hacks either.

If there was a challenge that was something like "provide GRH in the fewest Lean symbols", that seems like it could produce comprehensible results.

There's several of these now. Here's one: https://rh-shrink.github.io/
This guarantees that nobody will ever look at the original proof.

It also means that if you think someone is going to publish a proof, you should publish your own slop proof early just to reserve the seat. Even if the proof is wrong and the second guy turns up, you could just update your proof with a smaller one.

Proof golfing
From "Yes, 17M lines of Lean is a lot" https://news.ycombinator.com/item?id=50607668#50611572 :

> How to tree-shake Lean4 .lean code to produce only the transitive closure for one or more selected results?

> Then, how to calculate branch coverage for lean? Of only the transitive closure? As a test, is that even distinct from compilation with no worries?

It is happening as we speak: https://riemann.verifytask.cn/
As much as I really really hate appeal to authority, I think LLMs as of late November 2026 still aren't very reliable at writing mathematics well--so I think in this specific instance, it's better to leave it to mathematicians to digest and simplify it simply bc it's not always about minimizing lengths but it's kind of a minimizing maximum local complexity sort of game