Introduction
Automated program verifiers like Dafny, F, and Verus are powerful tools for ensuring software correctness. However, as verification projects grow in size and complexity, they often encounter a "search space explosion" in the underlying SMT solvers. This paper presents Axolocl, a tool that implements automatic proof localization* to significantly accelerate verification by isolating the minimal set of axioms required for any given proof.
The Problem: SMT Search Space Explosion
Modern verifiers translate high-level code into intermediate verification languages (such as Boogie) and then into queries for SMT solvers like Z3. These solvers rely on quantifier instantiations—using an e-matching algorithm to "unpack" universal axioms based on syntactic triggers. In large projects, the sheer volume of available axioms (the "background theory") overwhelms the solver, leading to extreme verification times and performance brittleness. Currently, developers must manually hide irrelevant axioms, a process that is both tedious and requires expert knowledge of solver heuristics.
Methodology: The Axolocl Tool
Axolocl automates the localization process through four main steps:
- Proof Essence Extraction: The tool identifies the UNSAT core from a successful proof to determine which axioms were logically necessary.
- Lurking Axiom Identification: Beyond logical necessity, some axioms are required to generate terms that trigger other relevant axioms. Axolocl uses an instantiation graph to identify these "lurking" dependencies.
- Axiom Guarding: Each axiom is wrapped in a "guard" function, making it invisible to the solver unless specifically invoked.
- Fine-Grained Rewriting: The program is rewritten at the assertion level to enable only the specific axioms (the "proof essence") needed for each individual proof obligation.
Evaluation and Results
The authors evaluated Axolocl on 365 Boogie files from eight real-world projects, including AWS cryptographic libraries, the Cedar authorization language, and the EVM disassembler.
Key findings include:
- Significant Speedups: For tasks originally taking over a minute, Axolocl achieved speedups between 100x and 1000x.
- Reduced Solver Load: The number of Quantifier Instantiations (QIs) was reduced significantly; for example, the EVM suite saw a 7.1x reduction.
- Improved Robustness: By pruning irrelevant axioms, the verification process became more stable and less sensitive to minor code mutations.
Conclusion
Axolocl demonstrates that automatic proof localization can effectively manage the complexity of SMT-based verification in large-scale projects. By identifying both logically relevant and "lurking" axioms, the tool provides massive speedups and improves the maintainability of verified software. Future work will focus on integrating these techniques directly into source-level verifiers.
Summary updated