Remix.run Logo
▲ t520z520 2 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 'complete' in a way that wrestling with a heuristic-driven solver never is.

▲sestep 2 hours ago | parent | next [-]

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 "typechecking all of this project's Rocq code must not take more than two minutes." But once you do have that sort of policy in place, it can achieve incredible results.

▲defenestration 2 hours ago | parent | next [-]

Can you share more about your approach and what works well? I would like to learn more about it.

▲sestep an hour ago | parent [-]

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'd say medium-sized) projects I've been working on recently, that looks like a single file named Audit.v that's between 1k and 10k lines of code, and then the rest of the Rocq code is between 10k and 100k lines of code.

Happy to say more if you have specific questions.

▲t520z520 an hour ago | parent | prev [-]

[dead]

▲tkz1312 23 minutes ago | parent | prev | next [-]

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.

▲rsrsrs86 an hour ago | parent | prev | next [-]

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.

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_dunning 2 hours ago | parent | prev [-]

Lean builds on the exact same SMT solve (Z3) as Verus does. This is standard practice.

▲rramadass an hour ago | parent [-]

No, that is incorrect.

Leonardo de Moura created both Z3 (automated SMT solver) and Lean (dependent type-based theorem prover) but they use totally different approaches.