45 points fanf2 2 days ago 13 comments
t520z520 3 hours ago | parent
sestep 2 hours ago | parent
defenestration 2 hours ago | parent
sestep 2 hours ago | parent
Happy to say more if you have specific questions.
ted_dunning 2 hours ago | parent
rramadass 2 hours ago | parent
Leonardo de Moura created both Z3 (automated SMT solver) and Lean (dependent type-based theorem prover) but they use totally different approaches.
rsrsrs86 2 hours ago | parent
if your correctness depends on arithmetical invariants, SMT will be _much_ more powerful than dependent types because you might be in for a real long compilation time if your dependently typed approach depends on naive peano natural numbers representation
tkz1312 1 hour ago | parent
rramadass 2 hours ago | parent
IMO one needs to study both automated solver-based verification and type system tactic-based interactive theorem provers.
While Lean (dependent type system based) is getting all the attention because of mathematicians, programmers are better served starting with understanding solvers i.e. by using pre/post/invariants/asserts etc. in code. A good book to study is The Calculus of Computation : Decision Procedures with Applications to Verification by Aaron Bradley and Zohar Manna.
MichaelNolan 37 minutes ago | parent
I agree. It’s much easier to reason about. The good news is lean recently, in the last few months, got that. Under the name “intrinsic verification”.
tkz1312 1 hour ago | parent
It does take more work to get to a really fast system with fully manual memory management in lean, but once you do it will have much better trust assumptions than the versus solution.
MichaelNolan 42 minutes ago | parent
1. https://lean-lang.org/doc/reference/latest/releases/v4.34.0/
gr_norm 30 minutes ago | parent