Remix.run Logo
▲ rramadass 2 hours ago

SAT/SMT solvers are easier to understand for programmers than type-based interactive theorem provers. Their FOL maps cleanly to state transitions in a program thus allowing you to map them to VCs which can then be solved.

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 10 minutes ago | parent [-]

> programmers are better served starting with understanding solvers i.e. by using pre/post/invariants/asserts etc. in code

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”.