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

有限模型发现法求解ADT上的约束Horn子句

Solving Constrained Horn Clauses over ADTs by Finite Model Finding

Yurii Kostyukov, Dmitry Mordvinov, Grigory Fedyukovich

摘要:

一阶逻辑是一种表达计算属性的自然方式,传统上用于各种程序逻辑中,用于表达正确性属性和证书。随后,现代方法在自动推理的程序不变量的进展,对建设一阶可定义的不变量。虽然一阶表示对于某些理论来说是非常有表现力的,但是它们不能表达代数数据类型(ADT)的许多有趣的性质。因此,我们建议定期表示程序不变量与树自动机。我们展示了如何自动推断这样的规则不变量ADT操纵程序使用有限的模型发现。我们已经实现了我们的方法,并评估它对最先进的引擎的不变推理,在一阶逻辑ADT操纵程序。我们的评估表明,基于自动机的表示的不变量是更实际的一阶逻辑的基础上,因为不变量能够表达更复杂的计算属性和他们的自动建设是更便宜的。

英文摘要:

First-order logic is a natural way of expressing the properties of computation, traditionally used in various program logics for expressing the correctness properties and certificates. Subsequently, modern methods in the automated inference of program invariants progress towards the construction of first-order definable invariants. Although the first-order representations are very expressive for some theories, they fail to express many interesting properties of algebraic data types (ADTs). Thus we propose to represent program invariants regularly with tree automata. We show how to automatically infer such regular invariants of ADT-manipulating programs using finite model finders. We have implemented our approach and evaluated it against the state-of-art engines for the invariant inference in first-order logic for ADT-manipulating programs. Our evaluation shows that automata-based representation of invariants is more practical than the one based on first-order logic since invariants are capable of expressing more complex properties of the computation and their automatic construction is less expensive.

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

↑