arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.20001cs.PL
收藏

翻译分离逻辑验证器中的声音状态编码(扩展版)

Sound State Encodings in Translational Separation Logic Verifiers (Extended Version)

ETH Zurich(苏黎世联邦理工学院);EPFL(洛桑联邦理工学院);MPI-SWS(马克斯·普朗克计算机系统研究所)

Hongyi Ling, Thibault Dardinier, Ellen Arlt, Peter Müller

AI总结:

本文提出首个证明翻译分离逻辑验证器声音性的框架,通过非平凡状态编码保证验证器正确性,基于并发分离逻辑和分离逻辑IVLs证明三种常见状态编码的正确性。

摘要:

自动程序验证器通常分为前端和后端:前端将输入程序编码为中间验证语言(IVL),后端证明IVL程序的正确性。此类翻译验证器的正确性要求后端验证是正确的,并且IVL程序的正确性蕴含输入程序的正确性。现有基于分离逻辑的翻译验证器形式化仅关注前者,但后者仅在强假设下成立,即存在与IVL具有相同状态模型的分离逻辑。本文提出首个证明翻译分离逻辑验证器声音性的框架,仅假设前端和IVL状态模型之间存在同态编码关系。框架核心是新的条件——反向可满足性,用于保证前端翻译的正确性。本文基于并发分离逻辑和分离逻辑IVLs(如Raven、VeriFast和Viper)形式化该框架,并通过证明三种常见状态编码的正确性展示其表达力。所有框架和证明均在Isabelle/HOL中形式化。

英文摘要:

Automated program verifiers are often organized into a front-end, which encodes an input program into an intermediate verification language (IVL), and a back-end, which proves that the IVL program is correct. Soundness of such translational verifiers requires that the back-end verification is sound and that correctness of the IVL program implies correctness of the input program. Existing formalizations for translational verifiers based on separation logic target the former, but support the latter only under the strong assumption that there exists a separation logic for the input program with the same state model as the IVL. This assumption is unrealistic in practice, especially since the state model also defines the supported separation logic resources. We present the first formal framework for proving the soundness of translational separation logic verifiers with non-trivial state encodings. To be applicable to various front-ends and IVLs, our framework only assumes the existence of a homomorphic encoding relation between the front-end and IVL state models. At the core of our framework is a novel condition, backward satisfiability, which is crucial to guarantee the soundness of the front-end translation. We formalize our framework for front-end verifiers based on concurrent separation logic and separation logic IVLs, such as Raven, VeriFast, and Viper. We demonstrate its expressiveness by proving soundness for three common state encodings. Our framework and all proofs are formalized in Isabelle/HOL.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑