BOOK-CHAPTER

Formally Certified Approximate Model Counting

Yong Kiam TanJiong YangMate SoosMagnus O. MyreenKuldeep S. Meel

Year: 2024 Lecture notes in computer science Pages: 153-177   Publisher: Springer Science+Business Media

Abstract

Abstract 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), $$\textsf{ApproxMC}$$ ApproxMC , provides a scalable means of obtaining model counts with probably approximately correct (PAC)-style guarantees. Nevertheless, the validity of $$\textsf{ApproxMC}$$ 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 $$\textsf{ApproxMC}$$ 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 $$\textsf{ApproxMC}$$ 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\%$$ 84.7 % of instances with generated certificates when given the same time and memory limits as the counter.

Keywords:
Computer science Algorithm Correctness True quantified Boolean formula HOL Proof assistant Automated theorem proving Maximum satisfiability problem Discrete mathematics Boolean function Programming language Mathematics Mathematical proof

Metrics

1
Cited By
2.31
FWCI (Field Weighted Citation Impact)
51
Refs
0.82
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Formal Methods in Verification
Physical Sciences →  Computer Science →  Computational Theory and Mathematics
Machine Learning and Algorithms
Physical Sciences →  Computer Science →  Artificial Intelligence
Software Testing and Debugging Techniques
Physical Sciences →  Computer Science →  Software

Related Documents

BOOK-CHAPTER

Rounding Meets Approximate Model Counting

Jiong YangKuldeep S. Meel

Lecture notes in computer science Year: 2023 Pages: 132-162
BOOK-CHAPTER

Chapter 26. Approximate Model Counting

Supratik ChakrabortyKuldeep S. MeelMoshe Y. Vardi

Frontiers in artificial intelligence and applications Year: 2021
© 2026 ScienceGate Book Chapters — All rights reserved.