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

证明程序性质为一阶可满足性

Proving Program Properties as First-Order Satisfiability

Salvador Lucas

摘要:

程序语义通常可以表示为(多种分类的)一阶理论S,而程序属性可以表示为语句$φ$,这些语句旨在保持这种理论的规范模型,而这种理论通常是不可计算的。最近,我们已经证明,属性$φ$表示为存在封闭的一个布尔组合的原子可以被证伪,只需找到一个模型的S和否定$\negφ$的$φ$。此外,由于存在用于自动生成(多种排序)一阶理论模型的强大工具,这个想法在实践中非常有效。在本文中,我们将我们以前的结果推广到任意性质,表示为句子没有任何特殊的限制。因此,我们可以通过找到一个合适的理论(包括S和可能的其他东西)的模型和一个与$φ$相关的合适的一阶公式来证明程序属性$φ$。除了其可能的理论利益,我们表明,我们的结果也可以在几个方面的实际用途。

英文摘要:

Program semantics can often be expressed as a (many-sorted) first-order theory S, and program properties as sentences $φ$ which are intended to hold in the canonical model of such a theory, which is often incomputable. Recently, we have shown that properties $φ$ expressed as the existential closure of a boolean combination of atoms can be disproved by just finding a model of S and the negation $\negφ$ of $φ$. Furthermore, this idea works quite well in practice due to the existence of powerful tools for the automatic generation of models for (many-sorted) first-order theories. In this paper we extend our previous result to arbitrary properties, expressed as sentences without any special restriction. Consequently, one can prove a program property $φ$ by just finding a model of an appropriate theory (including S and possibly something else) and an appropriate first-order formula related to $φ$. Beyond its possible theoretical interest, we show that our results can also be of practical use in several respects.

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

↑