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

Simon Foster, Chung-Kil Hur, Jim Woodcock
{"title":"Unifying Model Execution and Deductive Verification with Interaction Trees in Isabelle/HOL","authors":"Simon Foster, Chung-Kil Hur, Jim Woodcock","doi":"arxiv-2408.15817","DOIUrl":null,"url":null,"abstract":"Model execution allows us to prototype and analyse software engineering\nmodels by stepping through their possible behaviours, using techniques like\nanimation and simulation. On the other hand, deductive verification allows us\nto construct formal proofs demonstrating satisfaction of certain critical\nproperties in support of high-assurance software engineering. To ensure\ncoherent results between execution and proof, we need unifying semantics and\nautomation. In this paper, we mechanise Interaction Trees (ITrees) in\nIsabelle/HOL to produce an execution and verification framework. ITrees are\ncoinductive structures that allow us to encode infinite labelled transition\nsystems, yet they are inherently executable. We use ITrees to create\nverification tools for stateful imperative programs, concurrent programs with\nmessage passing in the form of the CSP and \\Circus languages, and abstract\nsystem models in the style of the Z and B methods. We demonstrate how ITrees\ncan account for diverse semantic presentations, such as structural operational\nsemantics, a relational program model, and CSP's failures-divergences trace\nmodel. Finally, we demonstrate how ITrees can be executed using the Isabelle\ncode generator to support the animation of models.","PeriodicalId":501208,"journal":{"name":"arXiv - CS - Logic in Computer Science","volume":"131 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-08-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Logic in Computer Science","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2408.15817","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

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.
用 Isabelle/HOL 中的交互树统一模型执行和演绎验证
通过模型执行,我们可以利用动画和仿真等技术,一步步完成软件工程模型的可能行为,从而对其进行原型设计和分析。另一方面,演绎验证允许我们构建形式化的证明,证明满足某些关键属性,以支持高保证软件工程。为了确保执行和证明之间的结果一致,我们需要统一的语义和自动化。在本文中,我们在Isabelle/HOL中对交互树(ITrees)进行了机械化处理,从而产生了一个执行和验证框架。ITrees 是一种归纳式结构,它允许我们对无限标记的转换系统进行编码,而且它们本身就是可执行的。我们利用 ITrees 为有状态命令式程序、CSP 和 Circus 语言形式的带消息传递的并发程序,以及 Z 和 B 方法风格的抽象系统模型创建了验证工具。我们演示了 ITrees 如何解释不同的语义表述,如结构运算语义、关系程序模型和 CSP 的故障-分歧跟踪模型。最后,我们演示了如何使用 Isabellecode 生成器执行 ITrees,以支持模型动画。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信