Abstraction Logic:上下文精化与分离逻辑的结合
Abstraction Logic: The Marriage of Contextual Refinement and Separation Logic
摘要:
上下文细化和分离逻辑是本质上非常不同的成功的验证技术。首先,前者保证了具体程序和抽象程序之间的行为细化,而后者保证了具体程序在一定条件下的安全性(用前置条件和后置条件表示)。第二,前者不允许任何假设的背景下,局部推理的模块,而后者允许丰富的假设。在本文中,我们提出了一种新的验证技术,称为抽象逻辑(AL),固有地结合上下文细化和分离逻辑,如虹膜和VST,从而采取两者的优势。具体来说,AL允许我们在分离逻辑风格的外部模块的前置和后置条件下,针对抽象模块本地验证具体模块。AL在Coq中完全形式化,并提供了一种证明模式,该模式支持使用我们自己的策略的模拟式推理和使用IPM(虹膜证明模式)的SL式推理的组合。使用证明模式,我们验证了各种例子,以证明推理的所有权(基于部分交换幺半群)和纯度($i.e.$,终止没有系统调用),循环和高阶推理的相互递归和函数指针,可重用和逐步验证通过中间抽象。此外,验证结果与CompCert相结合,使我们正式建立从顶级抽象程序的行为细化,一直到他们的汇编代码。
英文摘要:
Contextual refinement and separation logics are successful verification techniques that are very different in nature. First, the former guarantees behavioral refinement between a concrete program and an abstract program while the latter guarantees safety of a concrete program under certain conditions (expressed in terms of pre and post conditions). Second, the former does not allow any assumption about the context when locally reasoning about a module while the latter allows rich assumptions. In this paper, we present a new verification technique, called abstraction logic (AL), that inherently combines contextual refinement and separation logics such as Iris and VST, thereby taking the advantages of both. Specifically, AL allows us to locally verify a concrete module against an abstract module under separation-logic-style pre and post conditions about external modules. AL are fully formalized in Coq and provides a proof mode that supports a combination of simulation-style reasoning using our own tactics and SL-style reasoning using IPM (Iris Proof Mode). Using the proof mode, we verified various examples to demonstrate reasoning about ownership (based on partial commutative monoids) and purity ($i.e.$, termination with no system call), cyclic and higher-order reasoning about mutual recursion and function pointers, and reusable and gradual verification via intermediate abstractions. Also, the verification results are combined with CompCert, so that we formally establish behavioral refinement from top-level abstract programs, all the way down to their assembly code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。