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

分离逻辑与隐式动态框架的关系

The Relationship Between Separation Logic and Implicit Dynamic Frames

Matthew J. Parkinson, Alexander J. Summers

摘要:

分离逻辑是一种简洁的方法,用于指定操作动态分配的存储器的程序。部分受分离逻辑的启发,隐式动态框架最近被提出,旨在一阶工具支持。在本文中,我们精确地连接这两个逻辑的语义。我们定义了一个逻辑,其语法包含一个标准的分离逻辑,并作为子语法的隐式动态框架。我们为我们的逻辑定义了一个全堆语义,并且,对于分离逻辑子语法,证明它等价于标准的部分堆模型。为了定义一个语义,这两个子语法一致的工作,我们定义了一个新的概念,一个最小的状态扩展,它提供了一个不同的(但等效的)定义的语义分离逻辑的含义和魔术棒连接,同时也给出了一个合适的语义,这些连接在隐式动态框架。我们表明,我们得到的语义与现有的定义最弱的前条件语义的隐式动态框架片段。最后,我们表明,我们可以编码的分离逻辑片段,我们的逻辑到隐式动态框架片段,保持语义。对于工具通常支持的连接词,这表明分离逻辑可以忠实地编码在一阶自动验证工具(Chalice)中。

英文摘要:

Separation logic is a concise method for specifying programs that manipulate dynamically allocated storage. Partially inspired by separation logic, Implicit Dynamic Frames has recently been proposed, aiming at first-order tool support. In this paper, we precisely connect the semantics of these two logics. We define a logic whose syntax subsumes both that of a standard separation logic, and that of implicit dynamic frames as sub-syntaxes. We define a total heap semantics for our logic, and, for the separation logic subsyntax, prove it equivalent the standard partial heaps model. In order to define a semantics which works uniformly for both subsyntaxes, we define the novel concept of a minimal state extension, which provides a different (but equivalent) definition of the semantics of separation logic implication and magic wand connectives, while also giving a suitable semantics for these connectives in implicit dynamic frames. We show that our resulting semantics agrees with the existing definition of weakest pre-condition semantics for the implicit dynamic frames fragment. Finally, we show that we can encode the separation logic fragment of our logic into the implicit dynamic frames fragment, preserving semantics. For the connectives typically supported by tools, this shows that separation logic can be faithfully encoded in a first-order automatic verification tool (Chalice).

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

↑