37 points fanf2 2 days ago 10 comments
t520z520 1 hour ago | parent
sestep 1 hour ago | parent
defenestration 1 hour ago | parent
sestep 1 hour ago | parent
Happy to say more if you have specific questions.
ted_dunning 1 hour ago | parent
rramadass 58 minutes 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 1 hour 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 2 minutes ago | parent
rramadass 1 hour 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.
tkz1312 5 minutes 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.