Hacker News
Proof-oriented programming in Verus vs. Lean
tkz1312
|next
[-]
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.
t520z520
|next
|previous
[-]
sestep
|root
|parent
|next
[-]
defenestration
|root
|parent
|next
[-]
sestep
|root
|parent
[-]
Happy to say more if you have specific questions.
rsrsrs86
|root
|parent
|next
|previous
[-]
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
rramadass
|previous
[-]
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.