Abstract
Automated reasoning tools are essential for hardware and software verification but are often complex and error-prone. While theoretical complexity results like IP = PSPACE suggest that we can verify the outputs of these tools efficiently, practical implementations have lagged. This paper introduces blic, a certifying solver that integrates interactive protocols directly into Binary Decision Diagram (BDD) algorithms. By mapping BDD operations to polynomial manipulations, blic generates tiny, fast-to-verify proofs with a negligible error probability, bridging the gap between theoretical efficiency and practical verification.
Introduction
The reliability of automated reasoning tools, such as SAT and QBF solvers, is a cornerstone of modern formal verification. However, the complexity of these solvers makes them susceptible to bugs. To ensure trust, solvers should produce "certificates"—mathematical proofs of their results that can be independently verified.
Existing certification methods face a significant trade-off. Resolution-based proofs are standard but can grow to unmanageable sizes (reaching petabytes), leading to high storage costs and slow verification. Conversely, interactive protocols (IP) from complexity theory offer polynomial-time verification for PSPACE problems. Yet, the theoretical provers for these protocols are typically too inefficient for real-world applications. This work addresses this gap by making interactive protocols efficient enough for practical use within high-performance BDD-based reasoning engines.
Methods: Integrating Protocols with BDDs
The authors focus on the #CP problem (counting satisfying assignments for circuits with partial evaluation), which generalizes both SAT and QBF. Their tool, blic, achieves efficiency through three primary techniques:
Arithmetisation
The core of the interactive protocol is the mapping of boolean circuits to polynomials over a finite field. This allows the use of the SumCheck protocol, where a Verifier challenges a Prover to demonstrate the consistency of polynomial sums at random points.
Extended BDDs (eBDDs)
Standard BDD libraries use an Apply operation to combine boolean functions. blic extends this into "eBDDs," which track the intermediate polynomials required by the SumCheck protocol. This ensures that the proof generation is a natural byproduct of the solver's internal logic.
Breadth-First Execution
By modifying BDD construction to follow a breadth-first order, the Prover can generate the necessary polynomials for the Verifier with only a small constant overhead in time and memory.
Key Insights
A central discovery of this work is that BDDs are polynomials in disguise. The authors prove that BDDs represent exactly the binary multilinear polynomials used in interactive protocols. Consequently, the quadratic polynomials needed for consistency checks correspond precisely to the intermediate steps of the BDD Apply algorithm. This "zero-cost" polynomial generation means the Prover does not need to re-solve the problem to produce a proof; it simply records its existing computations.
By accepting a probabilistic certainty (with a controlled error rate of $10^{-10}$), blic produces certificates that are orders of magnitude smaller and faster to check than traditional resolution proofs.
Experimental Evaluation
The researchers evaluated blic against state-of-the-art solvers (CAQE, DepQBF, PGBDDQ) using the QBF Evaluation 2022 "Crafted Instances" and the Lonsing benchmarks.
- Performance:
blicsolved 96 out of 172 benchmarks, rivaling top-tier non-certifying solvers like CAQE (98) and DepQBF (87). - Overhead: Generating the certificate adds only about 2.8x time overhead compared to a standard BDD solver.
- Verification Speed: The verification process is exceptionally fast, often finishing in less than a second even when traditional proof checkers like
qcheckertake over 5,000 seconds. - Certificate Size: The data exchanged is significantly smaller than the massive resolution proofs generated by other tools.
Limitations and Future Work
While blic demonstrates the feasibility of practical IPs, it inherits the standard limitations of BDDs, such as sensitivity to variable ordering and potential memory explosions. Additionally, the current implementation is constrained by the size of the finite field relative to the number of satisfying assignments. Future research may extend this "efficiently certifying" approach to other solver architectures, such as modern CDCL SAT solvers, which currently rely on heavier, less efficient proof formats.
Conclusion
This work represents a significant milestone in formal verification, transforming the theoretical "IP = PSPACE" theorem into a practical tool. By leveraging the inherent polynomial nature of BDDs, the authors have created a path toward highly trustworthy and efficient automated reasoning.
Summary updated