logoalt Hacker News

chorsestudios • today at 7:02 AM • 1 reply • view on HN

Does the raw count of lean code lines shed any light on how impressive Andrew Wiles' proof of Fermat's Last Theorem was? The proof itself was 129 pages but I'm not sure how much perspective that alone provides regarding the difficulty of the problem.


Replies

Someone • today at 8:21 AM

> Does the raw count of lean code lines shed any light on how impressive Andrew Wiles' proof of Fermat's Last Theorem was?

No. You can increase the line count of any Lean proof almost at will by expanding axioms it builds on by their Lean proofs.

Also, one can write very long proofs for simple statements. As a stupid example a proof for “there is only one even prime less than a million” could follow the lines of

- proof 1 isn’t even - proof 2 is even and prime - proof 3 isn’t even - proof 4 is even, but not prime - proof 5 isn’t even … - proof 999,998 is even, but not prime - proof 999,999 isn’t even

instead of the simpler

- even numbers are divisible by 2 - prime numbers are only divisible by 1 and itself - assume p is an even prime - the, p being even, it is divisible by 2 - and, p being prime, it is only divisive by 1 and p - 2 ≠ 1 - hence p = 2

➕ show 1 reply