arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.11414cs.LOcs.AI
收藏

经过形式化认证的近似模型计数

Formally Certified Approximate Model Counting

National University of Singapore(新加坡国立大学);Chalmers University of Technology(查尔姆斯理工大学);University of Toronto(多伦多大学)

Yong Kiam Tan, Jiong Yang, Mate Soos, Magnus O. Myreen, Kuldeep S. Meel

AI总结:

该研究提出首个近似模型计数认证框架,结合Isabelle/HOL静态形式化证明与动态证明证书验证,在低开销下实现对ApproxMC输出近似质量的形式化保证。

摘要:

近似模型计数是指估算输入布尔公式的解的数量的任务。针对合取范式(CNF)公式的最先进近似模型计数器ApproxMC,提供了一种可扩展的方式来获取具有概率近似正确(PAC)风格保证的模型计数。然而,ApproxMC的近似有效性依赖于对其随机算法的细致理论分析,以及其高度优化实现的正确性,尤其是该实现与能够原生处理奇偶(XOR)约束的增量CNF可满足性求解器之间的有状态交互。\n我们提出了首个用于近似模型计数的认证框架,对其输出近似值的质量提供形式化验证的保证。我们的方法结合了:(i)在Isabelle/HOL证明助手中对算法的PAC保证进行的静态、一次性形式化证明;以及(ii)使用证明证书对ApproxMC调用外部CNF-XOR求解器的过程进行动态、逐次运行的验证。我们详细介绍了在验证的这两部分之间建立严格关联的通用方法,包括将形式化的随机算法转化为经过验证的证明检查器的方案,以及为ApproxMC及其内部CNF-XOR求解步骤设计证明证书的方案。实验表明,证书生成对近似计数器实现增加的开销很小,并且在与计数器相同的时间和内存限制下,我们的证书检查器能够对84.7%的生成了证书的实例完成完全认证。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑