DRAT-based Bit-Vector Proofs in CVC4

Alex Ozdemir, Aina Niemetz, Mathias Preiner, Yoni Zohar, Clark W. Barrett

Abstract

Satisfiability Modulo Theories (SMT) solvers are critical tools for hardware and software verification. For bit-vector logics, solvers typically employ "bit-blasting" to reduce problems to Boolean satisfiability (SAT). However, producing verifiable proofs from high-performance SAT solvers within an SMT framework remains a significant challenge. This paper introduces a method for the CVC4 solver to incorporate modern DRAT-based SAT solvers by translating their proofs into CVC4's internal Logical Framework with Side Conditions (LFSC). We compare three translation strategies—Direct DRAT, LRAT-based, and Extended Resolution (ER)—and evaluate them on over 21,000 SMT-LIB benchmarks. Our results show that the ER-based approach offers the best balance of checking efficiency, enabling CVC4 to leverage state-of-the-art SAT solvers without compromising proof verifiability.

Introduction

In the domain of formal methods, SMT solvers are frequently tasked with proving the correctness of computer systems. When a solver determines that a formula is "unsatisfiable," it implies that no error state exists under the given constraints. To ensure the solver's conclusion is correct, it is increasingly standard to require a formal proof that can be independently verified.

For bit-vector logic (QF_BV), which models the behavior of computer integers, CVC4 traditionally used a technique called bit-blasting. This process translates bit-vector operations into a large SAT problem. Historically, CVC4 relied on a modified version of MiniSat to generate proofs. However, this custom solver lagged behind modern SAT solvers in performance and was difficult to maintain. Modern SAT solvers use the DRAT (Deletion Resolution Asymmetric Tautology) format, which is highly efficient but historically incompatible with CVC4’s native proof language, LFSC. This research bridges the gap between high-performance SAT solving and rigorous SMT proof verification.

Methodology: Bridging DRAT and LFSC

The researchers developed three distinct pipelines to translate DRAT proofs into LFSC, each representing a different trade-off between translation complexity and verification speed.

1. Direct DRAT to LFSC

In this approach, the LFSC checker is equipped with a signature that allows it to act directly as a DRAT checker. This requires the use of complex "side conditions"—procedural code embedded within the proof—to perform unit propagation and search for resolvents. While this minimizes the translation steps, it places a heavy computational burden on the proof checker.

2. DRAT to LRAT to LFSC

To alleviate the burden on the checker, this pipeline uses the DRAT-trim tool to convert DRAT proofs into LRAT (Linear RAT). LRAT includes "hints" that explicitly list the clauses needed for each resolution step. These hints simplify the checking process, making it significantly faster than the direct DRAT method.

3. DRAT to ER to LFSC

The third pipeline translates DRAT proofs into Extended Resolution (ER) using the drat2er tool. ER is a more foundational proof system. While the translation process is more intensive, the resulting proofs are structurally simpler for the LFSC framework to verify. This approach aims for the highest level of checking efficiency by offloading the complexity to the translation phase.

Experimental Evaluation

The proposed pipelines were evaluated using 21,125 benchmarks from the SMT-LIB library's QF_BV logic. The study focused on unsat instances, where the solver must provide a proof of unsatisfiability.

The integration of CryptoMiniSat, a modern SAT solver, via these pipelines allowed CVC4 to solve 287 more problems than the legacy MiniSat-based system. This highlights the "off-the-shelf" advantage: by supporting standard proof formats like DRAT, SMT solvers can immediately benefit from advancements in SAT solving technology.

Key Results and Insights

The experiments revealed a clear hierarchy in proof-checking performance. The Extended Resolution (ER) pipeline emerged as the most effective for large-scale verification. It successfully checked 13,782 proofs, outperforming the direct DRAT pipeline (12,563) within the allotted time limits.

A critical insight from this work is the shifting bottleneck in automated reasoning. As SAT solvers become faster, the time required to solve a problem is often eclipsed by the time needed to write the proof to disk and translate it into a verifiable format. This "translation overhead" is now a primary constraint in proof-producing SMT solvers.

Limitations and Future Directions

While the DRAT-to-LFSC framework significantly advances CVC4's capabilities, some limitations remain:

  • Preprocessing Proofs: CVC4 performs initial formula simplifications before bit-blasting. Currently, these preprocessing steps are not included in the generated proofs, leaving a small gap in the "chain of trust."
  • Translation Efficiency: The process of converting SAT proofs to LFSC is memory-intensive and relatively slow. Future work will focus on optimizing these translation tools.
  • Interactive Theorem Prover Integration: The authors intend to integrate these LFSC signatures with tools like SMTCoq, enabling the Coq proof assistant to natively trust and verify bit-vector proofs generated by CVC4.

Conclusion

By enabling CVC4 to consume DRAT proofs from external SAT solvers, this research decouples solver performance from proof infrastructure. The success of the ER-based pipeline demonstrates that even complex proof translations can lead to highly efficient verification, providing a scalable path forward for certified SMT solving in bit-vector logics.

Summary updated

BibTeX
@inproceedings{ozdemir2019drat,
  author = {Alex Ozdemir and Aina Niemetz and Mathias Preiner and Yoni Zohar and Clark W. Barrett},
  title = {{DRAT-based Bit-Vector Proofs in CVC4}},
  booktitle = {SAT},
  year = {2019},
  doi = {10.1007/978-3-030-24258-9\_21},
}
Figure