《珍珠证明:魔杖作为框架》
Proof Pearl: Magic Wand as Frame
摘要:
分离逻辑为断言语言添加了两个连接词:分离合取 *(“star”)及其伴随词,分离蕴涵-*(“magic wand”)。相对而言,分离蕴涵的应用较少。本文表明,通过使用魔术棒来表达框架,将数据结构的可变局部部分与全局部分联系起来,我们可以利用它的力量,同时证明仍然很容易理解。部分数据结构的许多有用的分离逻辑定理现在可以通过简单的自动化策略来证明,而这些策略通常是通过归纳来证明的。这种魔术棒作为框架的技术是特别有用的形式化证明的高阶逻辑。我们验证二叉搜索树插入Coq作为一个例子来演示这种证明技术。
英文摘要:
Separation logic adds two connectives to assertion languages: separating conjunction * ("star") and its adjoint, separating implication -* ("magic wand"). Comparatively, separating implication is less widely used. This paper demonstrates that by using magic wand to express frames that relate mutable local portions of data structures to global portions, we can exploit its power while proofs are still easily understandable. Many useful separation logic theorems about partial data structures can now be proved by simple automated tactics, which were usually proved by induction. This magic-wand-as-frame technique is especially useful when formalizing the proofs by a high order logic. We verify binary search tree insert in Coq as an example to demonstrate this proof technique.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。