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

在Isabelle/HOL中利用交互树统一模型执行与演绎验证

Unifying Model Execution and Deductive Verification with Interaction Trees in Isabelle/HOL

Simon Foster, Chung-Kil Hur, Jim Woodcock

AI总结:

该研究在Isabelle/HOL中机械化实现交互树,构建统一的模型执行与演绎验证框架,可支持多种程序与系统模型的验证及动画生成,保障执行与证明结果一致性。

摘要:

模型执行通过动画、仿真等技术逐步推演软件工程模型的可能行为,以此实现原型构建与分析。另一方面,演绎验证可构建形式化证明,论证模型满足特定关键属性,为高可信软件工程提供支撑。为保证执行与证明的结果一致,需要统一的语义体系与自动化机制。本文在Isabelle/HOL中对交互树(Interaction Trees,简称ITrees)进行机械化实现,构建了一套兼具执行与验证功能的框架。ITrees是共归纳结构,可对无限标记迁移系统进行编码,且本身具备可执行性。我们利用ITrees为有状态命令式程序、以CSP和Circus语言为形式的消息传递并发程序,以及Z和B方法风格的抽象系统模型搭建了验证工具。本文展示了ITrees如何适配多种语义表示,包括结构化操作语义、关系化程序模型,以及CSP的失败-发散迹模型。最后,我们演示了如何借助Isabelle代码生成器执行ITrees,以支持模型的动画展示。

英文摘要:

Model execution allows us to prototype and analyse software engineering models by stepping through their possible behaviours, using techniques like animation and simulation. On the other hand, deductive verification allows us to construct formal proofs demonstrating satisfaction of certain critical properties in support of high-assurance software engineering. To ensure coherent results between execution and proof, we need unifying semantics and automation. In this paper, we mechanise Interaction Trees (ITrees) in Isabelle/HOL to produce an execution and verification framework. ITrees are coinductive structures that allow us to encode infinite labelled transition systems, yet they are inherently executable. We use ITrees to create verification tools for stateful imperative programs, concurrent programs with message passing in the form of the CSP and \Circus languages, and abstract system models in the style of the Z and B methods. We demonstrate how ITrees can account for diverse semantic presentations, such as structural operational semantics, a relational program model, and CSP's failures-divergences trace model. Finally, we demonstrate how ITrees can be executed using the Isabelle code generator to support the animation of models.

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

↑