...
【24h】

BI as an Assertion Language for Mutable Data Structures

机译:BI作为可变数据结构的断言语言

获取原文
获取原文并翻译 | 示例
           

摘要

Reynolds has developed a logic for reasoning about mutable data structures in which the pre- and postconditions are written in an intuitionistic logic enriched with a spatial form of conjunction. We investigate the approach from the point of view of the logic BI of bunched implications of O'Hearn and Pym. We begin by giving a model in which the law of the excluded middle holds, thus showing that the approach is compatible with classical logic. The relationship between the intuitionistic and classical versions of the system is established by a translation, analogous to a translation from intuitionistic logic into the modal logic S4. We also consider the question of completeness of the axioms. BI's spatial implication is used to express weakest preconditions for object-component assignments, and an axiom for allocating a cons cell is shown to be complete under an interpretation of triples that allows a command to be applied to states with dangling pointers. We make this latter a feature, by incorporating an operation, and axiom, for disposing of memory. Finally, we describe a local character enjoyed by specifications in the logic, and show how this enables a class of frame axioms, which say what parts of the heap don't change, to be inferred automatically.
机译:雷诺(Reynolds)已开发出一种用于推理可变数据结构的逻辑,在该逻辑中,前置条件和后置条件以一种直观的逻辑编写,该逻辑丰富了连接的空间形式。我们从O'Hearn和Pym的各种含义的逻辑BI的角度研究该方法。我们首先给出一个模型,其中排除的中间定律成立,从而表明该方法与经典逻辑兼容。系统的直觉版本和经典版本之间的关系是通过翻译建立的,类似于从直觉逻辑到模态逻辑S4的翻译。我们还考虑公理的完整性问题。 BI的空间含义用于表达对象组件分配的最弱前提条件,并且在三元组的解释下,用于分配cons单元的公理被证明是完整的,它允许将命令应用于带有悬空指针的状态。通过合并用于处理内存的操作和公理,我们使后者成为一个功能。最后,我们描述逻辑中的规范所喜欢的局部字符,并说明这如何使一类框架公理自动推断出来,这些公理说堆的哪些部分不变。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号