arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.14906cs.PLcs.LO
收藏

面向机械化程序验证的结构化时序逻辑

Structural Temporal Logic for Mechanized Program Verification

Eleftherios Ioannidis, Yannick Zakowski, Steve Zdancewic, Sebastian Angel

AI总结:

本文提出结构化时序逻辑 Ticl,将复杂(共)归纳证明编码为结构化引理,支持在证明助手中以高抽象层次对调度、并发共享内存和分布式共识程序进行安全性与活性性质的组合式机械化验证。

摘要:

对具有效应和非确定性的无限程序进行活性性质的机械化验证具有挑战性。现有的时序推理框架在迹和自动机等模型层面运作。推理发生在非常低的层次上,需要复杂的嵌套(共)归纳证明技术,并且需要熟悉证明助手的机制(例如,受保护性检查器)。此外,在模型层面而非程序构造层面进行推理会造成验证鸿沟,从而丧失结构化程序逻辑(如 Hoare Logic)所享有的模块化和组合性的优势。为了解决这一验证鸿沟以及时序规范缺乏组合式证明技术的问题,我们提出了 Ticl,一种新的结构化时序逻辑。使用 Ticl,我们将复杂的(共)归纳证明技术编码为结构化引理,并将推理重点放在变体和不变式上。我们展示了在证明助手中以高抽象层次对一般时序性质进行组合式证明是可能的。我们通过为具有调度、并发共享内存和分布式共识的程序提供安全性和活性性质的机械化证明,展示了 Ticl 的优势,证明了较低的证明与代码比率。

英文摘要:

Mechanized verification of liveness properties for infinite programs with effects and nondeterminism is challenging. Existing temporal reasoning frameworks operate at the level of models such as traces and automata. Reasoning happens at a very low-level, requiring complex nested (co-)inductive proof techniques and familiarity with proof assistant mechanics (e.g., the guardedness checker). Further, reasoning at the level of models instead of program constructs creates a verification gap that loses the benefits of modularity and composition enjoyed by structural program logics such as Hoare Logic. To address this verification gap, and the lack of compositional proof techniques for temporal specifications, we propose Ticl, a new structural temporal logic. Using ticl, we encode complex (co-)inductive proof techniques as structural lemmas and focus our reasoning on variants and invariants. We show that it is possible to perform compositional proofs of general temporal properties in a proof assistant, while working at a high level of abstraction. We demonstrate the benefits of Ticl by giving mechanized proofs of safety and liveness properties for programs with scheduling, concurrent shared memory, and distributed consensus, demonstrating a low proof-to-code ratio.

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

↑