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

使用交互树对RoboChart进行形式化验证的动画

Formally Verified Animation for RoboChart using Interaction Trees

Kangfeng Ye, Simon Foster, Jim Woodcock

AI总结:

本文使用交互树为RoboChart提供操作语义,在Isabelle中实现并生成可执行动画,通过化学探测器和巡逻机器人案例验证了动画场景是CSP指称语义的迹细化,确保了方法的正确性。

摘要:

RoboChart是RoboStar框架中的核心表示法。它是一种用于机器人学的、带时间和概率的领域特定且基于状态机的语言。RoboChart在其组件模型中支持共享变量和跨实体的通信。它具有在CSP中给出的形式化指称语义。交互树(ITrees)的语义技术表示了与它们的环境交互的反应式和并发程序的行为。最近在Isabelle/HOL中对ITrees的机械化,以及基于ITree的CSP语义和一个Z数学工具包,为诸如RoboChart之类的状态丰富的过程语言带来了验证和动画的新应用。在本文中,我们使用ITrees为RoboChart提供新颖的操作语义,在Isabelle中实现它,并使用Isabelle的代码生成器生成经过验证且可执行的动画。我们使用一个自主化学探测器模型和一个巡逻机器人模型来说明我们的方法,后者还展示了非确定性和使用共享变量。通过动画,我们展示了化学探测器在机器人遇到不同环境输入时的两个具体场景,以及巡逻机器人在其校准位置位于走廊不同区段时的三个具体场景。我们还使用FDR(一种用于CSP的细化模型检查器)验证了动画场景确实是RoboChart模型的CSP指称语义的迹细化。这确保了我们的使用带优先级的CSP算子来解决非确定性的方法是健全且正确的。

英文摘要:

RoboChart is a core notation in the RoboStar framework. It is a timed and probabilistic domain-specific and state machine-based language for robotics. RoboChart supports shared variables and communication across entities in its component model. It has formal denotational semantics given in CSP. The semantic technique of Interaction Trees (ITrees) represents behaviours of reactive and concurrent programs interacting with their environments. Recent mechanisation of ITrees, along with ITree-based CSP semantics and a Z mathematical toolkit in Isabelle/HOL, bring new applications of verification and animation for state-rich process languages, such as RoboChart. In this paper, we use ITrees to give RoboChart novel operational semantics, implement it in Isabelle, and use Isabelle's code generator to generate verified and executable animations. We illustrate our approach using an autonomous chemical detector model and a patrol robot model additionally exhibiting nondeterminism and using shared variables. With animation, we show two concrete scenarios for the chemical detector when the robot encounters different environmental inputs and three concrete scenarios for the patrol robot when its calibrated position is in different sections of a corridor. We also verify that the animated scenarios are truly trace refinements of the CSP denotational semantics of the RoboChart models using FDR, a refinement model checker for CSP. This ensures that our approach to resolving nondeterminism using CSP operators with priority is sound and correct.

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

↑