认证知识编译及其在形式化验证模型计数中的应用
Certified Knowledge Compilation with Application to Formally Verified Model Counting
AI总结:
针对知识编译输出缺乏正确性保证的问题,提出分区操作图(POGs)及CPOG证明框架,并开发基于D4的生成与验证工具链及Lean 4形式化验证的模型计数器,构成首个形式化验证的模型计数工具链。
摘要:
计算布尔公式的许多有用属性(例如其加权或未加权模型计数)在一般表示上是难解的。当公式以特殊形式(如决策可分解否定范式(decision-DNNF))表达时,计算可以变得易解。知识编译是将公式转换为这种形式的过程。不幸的是,现有的知识编译器无法保证其输出正确表示原始公式,因此它们无法验证模型计数或任何其他计算值。我们提出了分区操作图(POGs),这是一种能够编码现有知识编译器使用的所有表示的形式。我们设计了CPOG,一个能够表达POG与合取范式(CNF)布尔公式之间等价性证明的框架。我们开发了一个程序,从最先进的知识编译器D4生成的decision-DNNF图中生成POG表示,以及可检查的CPOG证明,证明输出的POG与输入的CNF公式等价。我们的POG生成和验证工具链可扩展到D4为近期模型计数竞赛中的公式生成的所有图,除了最大的图。此外,我们在Lean 4证明助手中开发了一个形式化验证的CPOG检查器和POG模型计数器。在此过程中,我们证明了我们证明框架的健全性。这些程序构成了第一个用于加权和未加权模型计数的形式化验证工具链。
英文摘要:
Computing many useful properties of Boolean formulas, such as their weighted or unweighted model count, is intractable on general representations. It can become tractable when formulas are expressed in a special form, such as the decision decomposable negation normal form (decision-DNNF). Knowledge compilation is the process of converting a formula into such a form. Unfortunately existing knowledge compilers provide no guarantee that their output correctly represents the original formula, and therefore they cannot validate a model count, or any other computed value. We present Partitioned-Operation Graphs (POGs), a form that can encode all of the representations used by existing knowledge compilers. We have designed CPOG, a framework that can express proofs of equivalence between a POG and a Boolean formula in conjunctive normal form (CNF). We have developed a program that generates POG representations from the decision-DNNF graphs produced by the state-of-the-art knowledge compiler D4, as well as checkable CPOG proofs certifying that the output POGs are equivalent to the input CNF formulas. Our toolchain for generating and verifying POGs scales to all but the largest graphs produced by D4 for formulas from a recent model counting competition. Additionally, we have developed a formally verified CPOG checker and model counter for POGs in the Lean 4 proof assistant. In doing so, we proved the soundness of our proof framework. These programs comprise the first formally verified toolchain for weighted and unweighted model counting.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。