Hacker News new | ask | show | jobs
by prmph 14 days ago
So Lean itself is proved? With what... Lean?

A 250k pages proof is massive, even if correct, there is almost certainly something extremely inefficient or weird in there.

I cannot imagine that a fundamental proof like this will require hundred of thousand of logic steps.

Unless some part of the proof is about brute-force checking that something holds for a huge number of literal cases.

2 comments

> I cannot imagine that a fundamental proof like this will require hundred of thousand of logic steps.

It's pretty easy to imagine that, given a starting language, there are facts that require an arbitrary minimum number of words to prove. The only reason the proofs most people learn are short is because:

- There isn't time in a math course to teach arbitrarily long proofs

- Humans don't live long enough to construct arbitrarily long proofs.

- Human minds are turning out to be pretty feeble and they probably couldn't reliably construct and verify anything more than trivially short proofs in the era before computer assistance.

> So Lean itself is proved? With what... Lean?

Yes, actually! Well, one of the kernels is, con-leche: https://github.com/leanprover/con-leche

"This is an external checker for the Lean theorem prover that is proven (in Lean) to be consistent in that it does not accept a proof of False."

Silly question, how do we guarantee that both versions of lean aren't vulnerable to something analogous to a buffer overflow?

If my proof was 100 trillion pages long, what would happen when that proof could no longer be stored within 1 or even 100 computers memory during computation?

You are proving something with the same thing you set out to prove?

Or you mean one implementation is used to prove another? In that case, you have a mutual (or circular) recursion of proofs