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

使用 VeriFast 证明 C 程序相对于 CH2O 语义的正确性

Certifying C program correctness with respect to CH2O with VeriFast

Stefan Wils, Bart Jacobs

AI总结:

本文提出一个概念验证扩展,为 VeriFast 的每次成功验证生成 Coq 证书,通过可靠性证明链将程序正确性归约到 CH2O 语义,从而消除对 VeriFast 本身的信任需求。

摘要:

VeriFast 是一个强大的工具,通过符号执行来验证 C 程序的各种正确性属性。然而,VeriFast 本身尚未经过验证。我们提出一个概念验证扩展,为每次成功的验证运行单独生成一个正确性证书。该证书采用 Coq 脚本的形式,当该脚本被 Coq 成功检查时,就无需信任 VeriFast 本身的正确性。Coq 脚本通过应用一系列可靠性结果来实现这一点,使我们能够通过证明程序在 Coq 中相对于符号执行的正确性,来证明程序相对于第三方 CH2O 对 C11 的小步语义的正确性。这个证明链包括两个中间的辅助大步语义,其中最重要的一个描述了 VeriFast 对 C 的解释。最后,Coq 中的符号执行是通过将程序导出的 AST 转换为一个表示 VeriFast 自身所执行的符号执行的 Coq 命题来实现的。

英文摘要:

VeriFast is a powerful tool for verification of various correctness properties of C programs using symbolic execution. However, VeriFast itself has not been verified. We present a proof-of-concept extension which generates a correctness certificate for each successful verification run individually. This certificate takes the form of a Coq script which, when successfully checked by Coq, removes the need for trusting in the correctness of VeriFast itself. The Coq script achieves this by applying a chain of soundness results, allowing us to prove correctness of the program with regards to the third-party CH2O small step semantics for C11 by proving correctness in terms of symbolic execution in Coq. This proof chain includes two intermediate auxiliary big step semantics, the most important of which describes VeriFast's interpretation of C. Finally, symbolic execution in Coq is implemented by transforming the exported AST of the program into a Coq proposition representing the symbolic execution performed by VeriFast itself.

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

↑