arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1507.05581cs.LOcs.SE
收藏

具有归纳定义的分离逻辑的自动引理生成

On Automated Lemma Generation for Separation Logic with Inductive Definitions

Constantin Enea, Mihaela Sighireanu, Zhilin Wu

摘要:

具有归纳定义的分离逻辑是用于操纵动态数据结构的程序的演绎验证的公知方法。在此上下文中决定验证条件通常基于用户提供的与归纳定义相关的引理。我们提出了一种新的方法自动生成这些引理,这是基于简单的语法标准和确定性的策略,应用它们。我们的方法侧重于迭代程序,虽然它也可以应用于递归程序,以及规范,不仅描述了数据结构的形状,而且还它们的内容或大小。从经验上讲,我们发现我们的方法足够强大,可以处理复杂的基准,例如,搜索,插入,或删除排序列表,二叉搜索树,红黑树和AVL树中的元素的迭代过程,以非常有效的方式。

英文摘要:

Separation Logic with inductive definitions is a well-known approach for deductive verification of programs that manipulate dynamic data structures. Deciding verification conditions in this context is usually based on user-provided lemmas relating the inductive definitions. We propose a novel approach for generating these lemmas automatically which is based on simple syntactic criteria and deterministic strategies for applying them. Our approach focuses on iterative programs, although it can be applied to recursive programs as well, and specifications that describe not only the shape of the data structures, but also their content or their size. Empirically, we find that our approach is powerful enough to deal with sophisticated benchmarks, e.g., iterative procedures for searching, inserting, or deleting elements in sorted lists, binary search tress, red-black trees, and AVL trees, in a very efficient way.

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

↑