DRAT Proofs of Unsatisfiability for SAT Modulo Monotonic Theories

Nick Feng, Alan J. Hu, Sam Bayless, Syed M. Iqbal, Patrick Trentin, Mike Whalen, Lee Pike, John Backes · OpenReview

Abstract

Generating proofs of unsatisfiability is a valuable capability of most SAT solvers, and is an active area of research for SMT solvers. This paper introduces the first method to efficiently generate proofs of unsatisfiability specifically for an important subset of SMT: SAT Modulo Monotonic Theories (SMMT), which includes many useful finite-domain theories (e.g., bit vectors and many graph-theoretic properties) and is used in production at Amazon Web Services. Our method uses propositional definitions of the theory predicates, from which it generates compact Horn approximations of the definitions, which lead to efficient DRAT proofs, leveraging the large investment the SAT community has made in DRAT. In experiments on practical SMMT problems, our proof generation overhead is minimal (7.41% geometric mean slowdown, 28.8% worst-case), and we can generate and check proofs for many problems that were previously intractable.

Introduction

In high-assurance domains such as cloud network security and hardware design, the reliability of automated solvers is paramount. When a Satisfiability Modulo Theories (SMT) solver declares a problem "Unsatisfiable" (UNSAT), it asserts that no valid configuration exists. However, for critical applications—such as those at Amazon Web Services (AWS)—a simple assertion is insufficient. These systems require a formal "proof of unsatisfiability": a certificate that an independent, simple program (a checker) can verify to ensure the solver has not made an error.

While the SAT community has established the DRAT (Delete Resolution Asymmetric Tautology) format as the gold standard for such proofs, extending it to SMT has historically been difficult. The primary obstacle is "bit-blasting"—the process of translating high-level theory reasoning (like graph reachability or bit-vector arithmetic) into simple propositional logic. This often results in proofs so massive they are impossible to generate or verify within reasonable timeframes. This paper addresses this gap for a specific, widely-used class of theories.

SAT Modulo Monotonic Theories (SMMT)

The authors focus on SAT Modulo Monotonic Theories (SMMT). These are theories where the output of a predicate changes in only one direction as inputs are added. For example, in a graph reachability theory, adding an edge to a graph can only make a node more reachable, never less. SMMT is powerful enough to handle many real-world problems in network security and circuit design but possesses enough structure to allow for more efficient proof generation than general SMT.

Methodology: Bridging the Gap to DRAT

The core innovation of this work is a technique to bridge the gap between complex theory reasoning and simple propositional proofs without the explosion of bit-blasting. The authors' tool, MonoProof, utilizes three key strategies:

  1. One-Sided Propositional Definitions: Instead of attempting to define an entire theory predicate (which is computationally expensive), the authors create definitions that only need to be correct for one "side" of a predicate (either true or false). This flexibility allows for the creation of much smaller logic circuits.
  2. Instantiation-Based Horn Approximations: This is the central contribution. A Horn clause is a specific type of logic statement that is highly efficient for solvers to process. By leveraging "witnesses" found by the SMMT solver during the search (such as a specific path in a graph), MonoProof transforms complex theory definitions into tiny, linear-size Horn approximations on the fly.
  3. Pure DRAT Integration: Because theory lemmas are transformed into these Horn approximations, the final output is "pure" DRAT. This means the system does not require a specialized, theory-aware proof checker. Instead, it can leverage standard, mechanically-verified tools like drat-trim, keeping the "trusted base" of the system as small as possible.

Experimental Evaluation

The authors evaluated MonoProof on 48 industrial benchmark instances across two primary domains:

  • Network Reachability: 24 instances mimicking real-world cloud security queries used at AWS, involving packet flow through firewalls and load balancers.
  • Escape Routing: 24 instances involving signal routing on high-density Ball-Grid Array (BGA) chips, utilizing max-flow predicates.

Key Results

  • Minimal Overhead: Generating proofs resulted in a geometric mean slowdown of only 7.41% (with a worst-case of 28.8%). This is significantly lower than many existing proof-logging systems, which often slow solvers by 2x or more.
  • Superior Scalability: MonoProof successfully solved and verified all 48 instances. In comparison, standard bit-blasting (using the Kissat solver) only managed to solve 11 of the 48 instances within the one-hour timeout.
  • Efficiency: On instances where both methods were successful, MonoProof was over 10x faster at preparing and checking the proof than traditional bit-blasting.

Conclusion and Future Work

MonoProof demonstrates that it is possible to generate efficient, independently verifiable proofs for complex SMT problems by leveraging the unique properties of monotonic theories. By using Horn approximations to produce pure DRAT proofs, the authors have enabled the verification of problems previously considered intractable.

While the current method is limited to monotonic theories with finite domains, it provides a robust foundation for future research. The authors plan to extend this work to pseudo-boolean reasoning and explore faster proof formats like LRAT (Linear RAT) and FRAT, which could further reduce the computational requirements for final verification.

Summary updated

Abstract

Generating proofs of unsatisfiability is a valuable capability of most SAT solvers, and is an active area of research for SMT solvers. This paper introduces the first method to efficiently generate proofs of unsatisfiability specifically for an important subset of SMT: SAT Modulo Monotonic Theories (SMMT), which includes many useful finite-domain theories (e.g., bit vectors and many graph-theoretic properties) and is used in production at Amazon Web Services. Our method uses propositional definitions of the theory predicates, from which it generates compact Horn approximations of the definitions, which lead to efficient DRAT proofs, leveraging the large investment the SAT community has made in DRAT. In experiments on practical SMMT problems, our proof generation overhead is minimal (7.41% geometric mean slowdown, 28.8% worst-case), and we can generate and check proofs for many problems that were previously intractable.
BibTeX
@inproceedings{feng2024drat,
  author = {Nick Feng and Alan J. Hu and Sam Bayless and Syed M. Iqbal and Patrick Trentin and Mike Whalen and Lee Pike and John Backes},
  title = {{DRAT Proofs of Unsatisfiability for SAT Modulo Monotonic Theories}},
  booktitle = {TACAS},
  year = {2024},
  url = {https://openreview.net/forum?id=dPM01JNKY7},
}
Figure