NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

IsaRare: Automatic Verification of SMT Rewrites in Isabelle/HOL

Hanna Lachnitt, Mathias Fleury, Leni Aniva, Andrew Reynolds, Haniel Barbosa, Andres Nötzli, Clark W. Barrett, Cesare Tinelli

Introduction

Satisfiability Modulo Theories (SMT) solvers are foundational components in the verification of safety-critical software and hardware systems. These solvers determine the satisfiability of complex logical formulas, often acting as the final arbiter of correctness in security-sensitive applications. However, the internal complexity of these solvers introduces a potential "who guards the guardians?" dilemma. While modern solvers generate proof certificates to justify their conclusions, a significant portion of their logic—specifically term rewriting—often remains unverified, relying on "blind trust."

The Trust Gap in SMT Solving

To optimize performance, SMT solvers employ thousands of rewrite rules to simplify formulas. These rules are essential for efficiency but are notoriously difficult to verify. Previous efforts introduced RARE, a domain-specific language designed to document these rules. While RARE allowed solvers to produce proof certificates referencing specific rules, the proof checkers themselves were typically programmed to assume these rules were correct. A single logical error in a rewrite rule could lead a solver to declare an unsafe system "safe," a vulnerability that undermines the entire verification chain.

IsaRARE: Automating Formal Verification

This paper introduces IsaRARE, a tool designed to eliminate this reliance on unverified rules by bridging the gap between automated SMT solvers and interactive theorem provers. IsaRARE automates the translation of rewrite rules from the RARE language into formal mathematical lemmas within Isabelle/HOL, one of the world's most rigorous and trusted interactive theorem proving environments.

By converting domain-specific rewrite rules into Isabelle/HOL lemmas, IsaRARE enables the formal, machine-checked proof of each rule's correctness. This process shifts the status of rewrite rules from "assumed correct" to "mathematically proven," significantly hardening the reliability of the SMT solver's output.

Evaluation on cvc5

The authors evaluated IsaRARE using the extensive rewrite rule set of cvc5, a state-of-the-art SMT solver. By targeting a real-world, widely deployed solver, the researchers demonstrated that automated verification of thousands of complex rules is a practical reality. This automation is critical; manually proving the vast library of rules used by modern solvers would be an insurmountable task for human researchers.

The IsaRARE artifacts have been evaluated as functional and are publicly available.

Conclusion

IsaRARE represents a significant step forward in the quest for end-to-end formal verification. By leveraging the speed of SMT solvers alongside the uncompromising rigor of Isabelle/HOL, the tool provides a scalable pathway to eliminate "blind trust" in automated reasoning. As SMT solvers continue to underpin critical infrastructure, tools like IsaRARE ensure that the mathematical foundations of our digital world remain secure.

Note: This summary is based on the paper's abstract and artifact metadata. Detailed quantitative performance metrics and specific rule-set coverage statistics were not available in the source text.

Summary updated

BibTeX
@inproceedings{lachnitt2024isarare,
  author = {Hanna Lachnitt and Mathias Fleury and Leni Aniva and Andrew Reynolds and Haniel Barbosa and Andres Nötzli and Clark W. Barrett and Cesare Tinelli},
  title = {{IsaRare: Automatic Verification of SMT Rewrites in Isabelle/HOL}},
  booktitle = {TACAS},
  year = {2024},
  doi = {10.1007/978-3-031-57246-3\_17},
}
Figure