3 comments

  • tkz131213 minutes ago
    I&#x27;ve found that I tend to move a lot faster in lean than verus. I think the proof and tactic language are just a lot more expressive and rust compile times are just generally very painful. I also just find lean to be a much more expressive, pleasant, and readable language than rust. You can also get to a much smaller tcb with lean than with verus.<p>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.
  • t520z5202 hours ago
    SMT solvers—which Verus builds upon—feel like a pre-AI workaround for the scarcity of human proof labor. By analogy to Turing completeness, interactive theorem proving is &#x27;complete&#x27; in a way that wrestling with a heuristic-driven solver never is.
    • tkz131210 minutes ago
      smt solvers (or other trad automations) on a short timeout with a fallback to an LLM is an amazing combo, but generally I agree it makes no sense to be doing fv outside of a theorem prover these days. Being able to vibe code custom proof producing tactics and automations is totally insane for productivity.
    • sestep1 hour ago
      100% agree. I find it interesting that when I ask an LLM to work with me on verifying something, it usually reaches for SMT-based tools first, which invariably results in it spinning its wheels trying to coax the SMT solver into finding the solution; or if it does choose an ITP, it uses lots of expensive tactics that increase compilation time and thus reduce its iteration speed dramatically. I always have to give it explicit policies like &quot;typechecking all of this project&#x27;s Rocq code must not take more than two minutes.&quot; But once you <i>do</i> have that sort of policy in place, it can achieve incredible results.
      • defenestration1 hour ago
        Can you share more about your approach and what works well? I would like to learn more about it.
        • sestep1 hour ago
          I think other than what I wrote above, the only particular thing I do is try to maintain a very clear separation between the human-auditable interface and the LLM-maintained implementation. In the (I&#x27;d say medium-sized) projects I&#x27;ve been working on recently, that looks like a single file named Audit.v that&#x27;s between 1k and 10k lines of code, and then the rest of the Rocq code is between 10k and 100k lines of code.<p>Happy to say more if you have specific questions.
      • t520z52055 minutes ago
        [dead]
    • rsrsrs861 hour ago
      SMTs are marvels of engineering. They underlie the foundations of many verification techniques that might not look like SMT. For example, F* is based on SMT as well as dep types.<p>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
    • ted_dunning1 hour ago
      Lean builds on the exact same SMT solve (Z3) as Verus does. This is standard practice.
      • rramadass1 hour ago
        No, that is incorrect.<p>Leonardo de Moura created both Z3 (automated SMT solver) and Lean (dependent type-based theorem prover) but they use totally different approaches.
  • rramadass1 hour ago
    SAT&#x2F;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.<p>IMO one needs to study both automated solver-based verification and type system tactic-based interactive theorem provers.<p>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&#x2F;post&#x2F;invariants&#x2F;asserts etc. in code. A good book to study is <i>The Calculus of Computation : Decision Procedures with Applications to Verification</i> by Aaron Bradley and Zohar Manna.