logoalt Hacker News

737373737307/30/20253 repliesview on HN

Does Lean have some sort of verification mode for untrusted proofs that guarantees that a given proof certainly does not use any "sorry" (however indirectly), and does not add to the "proving power" of some separately given fixed set of axioms with further axioms or definitions?


Replies

danabramov07/30/2025

Does `#print axioms some_theorem` mentioned at the end of the article qualify? This would show if it depends on `sorry`, even transitively, or on some axioms you haven't vetted.

show 1 reply
masterjack07/30/2025

Yes, you can `print axioms` to make sure no axioms were added, make sure it compiles with no warnings or errors. There’s also a SafeVerify utility that checks more thoroughly and catches some tricks that RL systems have found

jonny_eh07/30/2025

Apparently this is possible with macros? I dunno: https://github.com/leanprover/lean3/issues/1355

show 1 reply