Hacker News new | ask | show | jobs
by YeGoblynQueenne 11 days ago
In Lean, as in anything else, the program you write can do something else than what you think it does. "Your program" in Lean is a proof.
2 comments

yes, programs are proofs, theorems are types, proof checking is type checking. I think we're agreeing with each other, or what point are you trying to make?
That a proof can be proving something else than what you think and still compile. Automated theorem proving is not magick.

Nor is it enough to wave your hands and chant "Curry-Howard Correspondence". Otherwise, dunno, go ahead and write your proof in Java. Program ≡ proof, right?

> That a proof can be proving something else than what you think and still compile.

sure that's clear and correct, but it's much more relevant for something like program verification (where semantics can be large), than a relatively simple statement like the Riemann hypothesis.

> Otherwise, dunno, go ahead and write your proof in Java. Program ≡ proof, right?

Interestingly enough, you can apply propositions as types to any typed programming language and get a proof calculus out, it's just that the logical system that you get from applying it to Java or C++ and so on is simply not consistent.

That is incorrect.