嵌套Hoare三元组与高阶存储的框架规则
Nested Hoare Triples and Frame Rules for Higher-order Store
摘要:
分离逻辑是一种霍尔风格的逻辑,用于对具有堆分配的可变数据结构的程序进行推理。作为一个步骤,扩展分离逻辑的高级语言ML风格的一般(高阶)存储,我们调查的兼容性嵌套霍尔三元组与几个变化的高阶框架规则。嵌套三元组和框架规则的相互作用可能是微妙的,并且包含某些框架规则实际上是不合理的。一个特定的规则组合可以通过克里普克模型来证明是一致的,在克里普克模型中,世界生活在一个递归定义的超度量空间中。由此产生的逻辑允许我们优雅地证明涉及存储代码的程序。特别是,使用递归定义的断言,它导致了自然的规范和通过存储处理递归所需的不变量的证明。
英文摘要:
Separation logic is a Hoare-style logic for reasoning about programs with heap-allocated mutable data structures. As a step toward extending separation logic to high-level languages with ML-style general (higher-order) storage, we investigate the compatibility of nested Hoare triples with several variations of higher-order frame rules. The interaction of nested triples and frame rules can be subtle, and the inclusion of certain frame rules is in fact unsound. A particular combination of rules can be shown consistent by means of a Kripke model where worlds live in a recursively defined ultrametric space. The resulting logic allows us to elegantly prove programs involving stored code. In particular, using recursively defined assertions, it leads to natural specifications and proofs of invariants required for dealing with recursion through the store.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。