Extracting Certificates from Quantified Boolean Formulas

Marco BenedettiIJCAI 2005

Introduction

In the field of automated reasoning, Boolean Satisfiability (SAT) solvers have long provided "certificates"—simple truth-value assignments that allow anyone to verify a formula's satisfiability. However, for the more complex Quantified Boolean Formulas (QBF), which are PSPACE-complete, extracting such certificates has remained a significant challenge. This paper, presented by Marco Benedetti, introduces a novel method to extract compact, verifiable certificates from QBF solvers using Binary Decision Diagrams (BDDs) and a decoupled reconstruction process.

The Complexity of QBF Models

Unlike SAT, where a model is a static list of values, a QBF model is a dynamic "strategy." For a formula involving universal ($\forall$) and existential ($\exists$) quantifiers, a model must specify how to choose values for existential variables in response to any possible assignment of the preceding universal variables. This is often conceptualized as a winning strategy in a two-player game like Connect-4.

A decision tree representing a QBF model as a winning strategy, where branches represent variable assignments.

Historically, these models have been difficult to handle because explicit tree representations can grow exponentially in size. Furthermore, the internal mechanics of high-performance solvers make it difficult to "catch" the model during the search without significant performance penalties. Finally, verifying a QBF model is itself a computationally difficult task (coNP-complete).

Symbolic Reconstruction via Inference Logs

To address these challenges, Benedetti proposes a symbolic approach centered on two main components: Binary Decision Diagrams (BDDs) and inference logs.

  1. Symbolic Representation: Instead of explicit trees, the system uses BDDs to represent Skolem functions—functions that map universal variable assignments to existential variable choices. BDDs allow for compact representation by sharing redundant sub-structures.
  2. The Sat-Log Innovation: Rather than forcing the solver to construct a model during its search, the solver is modified to record its logical operations (such as resolutions, substitutions, and variable eliminations) into an "inference log" or "sat-log."
An example of an inference log (sat-log) recording the sequence of logical operations like substitution and resolution for backward reconstruction.

This decoupling ensures that the solver's core heuristics are not slowed down. Once the solver concludes that a formula is satisfiable, a separate "reconstructor" reads the sat-log in reverse. Starting from a trivial satisfied state, it inductively builds the BDD-based certificate by following the logged steps backward to the original formula.

Key Results and Verification

The proposed method was implemented in the sKizzo tool suite and evaluated on the "adder" family of benchmarks—hard QBF instances used in circuit equivalence checking.

The results demonstrate that while the reconstruction process can be computationally intensive (e.g., taking ~537 seconds for a problem solved in ~40 seconds), the resulting certificates are highly efficient. For the adder-10 instance, which involved thousands of variables, the final certificate contained over 4 million BDD nodes. Crucially, verifying this massive certificate took only 4.6 seconds, significantly faster than the original solving time. This confirms that symbolic certificates provide a practical "trust but verify" mechanism for PSPACE-complete problems.

Conclusion

By separating the solving process from model reconstruction and utilizing the compact power of BDDs, this work bridges the gap between QBF solving and practical verification. While reconstruction time remains an area for optimization, the ability to generate verifiable winning strategies for complex logical problems marks a significant step forward for the automated reasoning community.

Summary updated

BibTeX
@inproceedings{benedetti2005extracting,
  author = {Marco Benedetti},
  title = {{Extracting Certificates from Quantified Boolean Formulas}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2005},
}
Figure