arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1304.7861cs.LOcs.MS
收藏

在ACL2中验证AIG算法

Verified AIG Algorithms in ACL2

Jared Davis, Sol Swords

摘要:

与逆图(AIG)是一种表示布尔函数(如电路)的流行方法。AIG简化算法可以极大地减少AIG,并在现代硬件验证工具(如等价检查器)中发挥重要作用。在实践中,这些棘手的算法是用优化的C或C++例程实现的,不能保证正确性。同时,许多交互式定理证明器现在可以使用SAT或SMT求解器来自动求解有限目标,但没有定理证明器使用这些先进的基于AIG的方法。我们已经开发了两种方法来表示ACL 2定理证明器内的AIG。其中一种表示Hons-AIGs特别便于使用和推理。另一个是Aignet,它是相反的;它是在现代AIG软件包之后设计的,并且允许高效的算法。我们已经实现了这些表示之间的转换功能,随机向量模拟,转换为CNF等,并开发了用于验证这些算法的推理策略。除了这些对验证AIG算法的贡献外,这项工作对使用GL对有限ACL 2定理进行位爆破的ACL 2用户有直接的实际好处:他们现在可以选择信任现成的SAT求解器来执行证明,而不是使用内置的BDD包。展望未来,这是实现经过验证的AIG简化算法的第一步,可能会进一步提高GL性能。

英文摘要:

And-Inverter Graphs (AIGs) are a popular way to represent Boolean functions (like circuits). AIG simplification algorithms can dramatically reduce an AIG, and play an important role in modern hardware verification tools like equivalence checkers. In practice, these tricky algorithms are implemented with optimized C or C++ routines with no guarantee of correctness. Meanwhile, many interactive theorem provers can now employ SAT or SMT solvers to automatically solve finite goals, but no theorem prover makes use of these advanced, AIG-based approaches. We have developed two ways to represent AIGs within the ACL2 theorem prover. One representation, Hons-AIGs, is especially convenient to use and reason about. The other, Aignet, is the opposite; it is styled after modern AIG packages and allows for efficient algorithms. We have implemented functions for converting between these representations, random vector simulation, conversion to CNF, etc., and developed reasoning strategies for verifying these algorithms. Aside from these contributions towards verifying AIG algorithms, this work has an immediate, practical benefit for ACL2 users who are using GL to bit-blast finite ACL2 theorems: they can now optionally trust an off-the-shelf SAT solver to carry out the proof, instead of using the built-in BDD package. Looking to the future, it is a first step toward implementing verified AIG simplification algorithms that might further improve GL performance.

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

↑