魔棒的声音自动化(扩展版)
Sound Automation of Magic Wands (extended version)
摘要:
魔杖$\mathbin{-\!\!*}$(也称为分离蕴涵)是一种分离逻辑连接,通常用于指定部分数据结构的属性,例如在迭代遍历期间。魔术棒公式$A \mathbin{-\!\!*} B$的覆盖区是一种状态,其与其中$A$成立的任何状态组合,产生其中$B$成立的状态。证明魔杖(也称为包装魔杖)的关键挑战是找到这样的足迹。现有的包算法要么有很高的注释开销,或者,正如我们在本文中所展示的,是不健全的。我们提出了一个正式的框架,精确地描述了广泛的设计空间的可能的包算法适用于一个大类的分离逻辑。我们证明在伊莎贝尔/HOL,我们的正式框架是健全和完整的,并使用它来开发一种新的包算法,提供有竞争力的自动化,是健全的。此外,我们提出了一个新的,限制性的定义的魔杖,并证明在伊莎贝尔/HOL,它是可以合理地结合这种魔杖的分数,这是不是任意魔杖的情况。我们已经实现了我们的技术的毒蛇语言,并证明他们是有效的实践。
英文摘要:
The magic wand $\mathbin{-\!\!*}$ (also called separating implication) is a separation logic connective commonly used to specify properties of partial data structures, for instance during iterative traversals. A footprint of a magic wand formula $A \mathbin{-\!\!*} B$ is a state that, combined with any state in which $A$ holds, yields a state in which $B$ holds. The key challenge of proving a magic wand (also called packaging a wand) is to find such a footprint. Existing package algorithms either have a high annotation overhead or, as we show in this paper, are unsound. We present a formal framework that precisely characterises a wide design space of possible package algorithms applicable to a large class of separation logics. We prove in Isabelle/HOL that our formal framework is sound and complete, and use it to develop a novel package algorithm that offers competitive automation and is sound. Moreover, we present a novel, restricted definition of wands and prove in Isabelle/HOL that it is possible to soundly combine fractions of such wands, which is not the case for arbitrary wands. We have implemented our techniques for the Viper language, and demonstrate that they are effective in practice.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。