Formally Certified Approximate Model Counting
Not on the map. Why?
Abstract (arXiv)
Approximate model counting is the task of approximating the number of solutions to an input Boolean formula. The state-of-the-art approximate model counter for formulas in conjunctive normal form (CNF), ApproxMC, provides a scalable means of obtaining model counts with probably approximately correct (PAC)-style guarantees. Nevertheless, the validity of ApproxMC's approximation relies on a careful theoretical analysis of its randomized algorithm and the correctness of its highly optimized implementation, especially the latter's stateful interactions with an incremental CNF satisfiability solver capable of natively handling parity (XOR) constraints. We present the first certification framework for approximate model counting with formally verified guarantees on the quality of its output approximation. Our approach combines: (i) a static, once-off, formal proof of the algorithm's PAC guarantee in the Isabelle/HOL proof assistant; and (ii) dynamic, per-run, verification of ApproxMC's calls to an external CNF-XOR solver using proof certificates. We detail our general approach to establish a rigorous connection between these two parts of the verification, including our blueprint for turning the formalized, randomized algorithm into a verified proof checker, and our design of proof certificates for both ApproxMC and its internal CNF-XOR solving steps. Experimentally, we show that certificate generation adds little overhead to an approximate counter implementation, and that our certificate checker is able to fully certify 84.7% of instances with generated certificates when given the same time and memory limits as the counter.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 14 of its 61 references that are in the map. First posted on arXiv 17 Jun 2024.
Builds on
14 of 61 references.
References · 14
- 2019Quantitative Verification of Neural Networks And its Security Applicationscited by 56
- 2014Distribution-Aware Sampling and Weighted Model Counting for SATcited by 15
- 2022Certifying Parity Reasoning Efficiently Using Pseudo-Boolean Proofscited by 14
- 2013Taming the Curse of Dimensionality: Discrete Integration by Hashing and Optimizationcited by 12
- 2021Arjun: An Efficient Independent Support Computation Technique and its Applications to Counting and Samplingcited by 9
- 2020Sparse Hashing for Scalable Approximate Model Counting: Theory and Practicecited by 7
- 2023Rounding Meets Approximate Model Countingcited by 6
- 2022Randomized Synthesis for Diversity and Cost Constraints with Control Improvisationcited by 5
- 2017A Verified Compiler for Probability Density Functionscited by 2
- 2020Certifying Certainty and Uncertainty in Approximate Membership Query Structures -- Extended Versioncited by 2
- 2021A Flexible Proof Format for SAT Solver-Elaborator Communicationcited by 2
- 2023Proof Generation for CDCL Solvers Using Gauss-Jordan Eliminationcited by 2
2 more
- 2021CertiStr: A Certified String Solver (technical report)cited by 1
- 2023Auditable Algorithms for Approximate Model Countingcited by 1
Built on by
Citing papers per year: 2025: 1.
1 paper.
- 2025Efficient Certified Reasoning for Binarized Neural Networks25 Jun 2025