logoalt Hacker News

rramadass • today at 12:19 AM • 0 replies • view on HN

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.