- The paper introduces the CPOG framework to certify that partitioned-operation graphs correctly represent original Boolean formulas.
- It utilizes Lean 4 formal verification to ensure sound equivalence in transformations from d-DNNF to POG format.
- Experimental results validate the method's scalability and reliability in model counting across benchmark models.
The paper "Certified Knowledge Compilation with Application to Formally Verified Model Counting" by Bryant et al. presents a method for generating and verifying partitioned-operation graphs (POGs), a class of representations for Boolean formulas capable of efficient model counting. The authors address a significant gap in the current knowledge compilation landscape: ensuring that compiled representations of Boolean formulas are correct and can be trusted by their users.
Overview
Boolean satisfiability (SAT) solvers are widely used to determine the satisfiability of Boolean formulas. However, for many applications, such as AI, security, and statistical models, counting the number of satisfying assignments (model counting) is crucial. These problems are generally more computationally intense than SAT solving, as model counting is #P-complete while SAT is NP-complete.
Knowledge compilation approaches this challenge by transforming a Boolean formula into a form that makes certain queries, like model counting, tractable. In particular, if formulas are expressed in deterministic decomposable negation normal form (d-DNNF), model counting can be efficiently performed. However, existing knowledge compilation techniques lack a validation mechanism for the equivalence of the compiled and original formulas, making the correctness of the derived counts unassured.
Contributions
The paper introduces several key contributions to knowledge compilation and formal verification:
- Partitioned-Operation Graphs (POGs): The authors define POGs, which can encode the various formats used by knowledge compilers, such as d-DNNF. POGs are evaluated in terms of computation over commutative rings, which simplifies model counting to algebraically combining weights over assignments.
- CPOG Framework: To certify equivalence between a Boolean formula in conjunctive normal form (CNF) and its POG representation, they introduce the CPOG framework. This framework constructs a series of proof steps for adding and deleting clauses, maintaining equivalence over input variables at every step.
- Toolchain for POG Transformations: The authors developed a toolchain for transforming d-DNNF generated by the state-of-the-art compiler D4 into POGs and generating checkable proofs of equivalence. This toolchain shifts trust from the complex compilation process to the simpler, formally verified checker.
- Formal Verification: The toolchain leverages the Lean 4 proof assistant to formally verify the soundness of their framework. They provide Lean-certified model counters and proof checkers that guarantee correctness, exposing conditions that were not known previously to be necessary.
- Experimental Evaluation: Their experiments demonstrate the ability to certify knowledge compilations on models from competitive benchmarking platforms, reflecting practical scalability.
Implications and Future Directions
The implications of this research are substantial for the domains relying on model counting where any incorrect count could lead to significant errors. The guarantee of correctness provided by certified POGs fosters trust and can also improve the reliability of SAT solvers through debugging by output verification.
Future developments could expand this approach to handle broader classes of queries by leveraging semiring theoretic extensions and accommodate outputs from more knowledge compilation tools beyond D4. Enhancements in efficiency and scaling could be explored by combining the strengths of different proof strategies, including monolithic and structural proof generation.
In conclusion, the work by Bryant et al. advances knowledge compilation by adding a layer of verification to the pipeline, alleviating concerns about correctness and empowering users with robust, certified tools for model counting. The formal verification contributes significantly to the trustworthiness and broader applicability of knowledge compilation methods, setting a precedent for future work at the intersection of SAT solving and formal verification.