arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2111.00324cs.PL
收藏

单调理论中作为抽象解释的属性导向可达性

Property-Directed Reachability as Abstract Interpretation in the Monotone Theory

Yotam M. Y. Feldman, Mooly Sagiv, Sharon Shoham, James R. Wilcox

摘要:

推导归纳不变量是形式化验证的主要挑战之一。抽象解释理论为设计不变推理算法提供了一个丰富的框架。不变推理的最新突破之一是属性导向可达性(PDR),但研究界认为PDR和抽象解释大多是不相关的技术。本文表明,令人惊讶的是,命题PDR可以制定为一个抽象的解释算法在逻辑域。更准确地说,我们定义了一个版本的PDR,称为$Λ$ -PDR,其中所有的反例的推广被用来加强一个框架。通过这种方式,不需要在创建框架后对其进行优化,因为所有可能的支持事实都已预先包含在内。我们分析这个算法使用的概念从Bshouty的单调理论,最初开发的背景下,精确的学习。我们发现,有一个固有的过度近似算法的框架之间的单调理论。然后,我们定义了一个新的抽象域,其中最好的抽象Transformer执行这种过近似,并表明它捕获了不变的推理过程,即,$Λ$ -PDR对应于在该抽象域中具有最佳Transformer的Kleene迭代。我们提供了一些充分的条件,当这个过程收敛在一个小的迭代次数,有时是一个指数差距所需的天真的精确向前可达的迭代次数。这些结果为PDR如何解决前向可达性的好处提供了坚实的理论基础。

英文摘要:

Inferring inductive invariants is one of the main challenges of formal verification. The theory of abstract interpretation provides a rich framework to devise invariant inference algorithms. One of the latest breakthroughs in invariant inference is property-directed reachability (PDR), but the research community views PDR and abstract interpretation as mostly unrelated techniques. This paper shows that, surprisingly, propositional PDR can be formulated as an abstract interpretation algorithm in a logical domain. More precisely, we define a version of PDR, called $Λ$-PDR, in which all generalizations of counterexamples are used to strengthen a frame. In this way, there is no need to refine frames after their creation, because all the possible supporting facts are included in advance. We analyze this algorithm using notions from Bshouty's monotone theory, originally developed in the context of exact learning. We show that there is an inherent overapproximation between the algorithm's frames that is related to the monotone theory. We then define a new abstract domain in which the best abstract transformer performs this overapproximation, and show that it captures the invariant inference process, i.e., $Λ$-PDR corresponds to Kleene iterations with the best transformer in this abstract domain. We provide some sufficient conditions for when this process converges in a small number of iterations, with sometimes an exponential gap from the number of iterations required for naive exact forward reachability. These results provide a firm theoretical foundation for the benefits of how PDR tackles forward reachability.

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

↑