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

一种广义混合霍尔逻辑

A Generalized Hybrid Hoare Logic

Naijun Zhan, Xiangyu Jin, Bohua Zhan, Shuling Wang, Dimitar Guelev

AI总结:

针对现有规范逻辑难以处理通信并发式混合系统建模的问题,本文提出面向HCSP的广义混合霍尔逻辑,证明其两类相对完备性,并在Isabelle/HOL中实现且通过案例验证了其能力与可扩展性。

摘要:

近年来,混合系统(HSs)的演绎验证凭借其强大的表达能力与可扩展性受到越来越多的关注,而适用于混合系统的强表达力规范逻辑是该领域的核心基础。通常,混合系统可自然地建模为相互通信的并发进程,但现有规范逻辑难以处理这类模型。\n本文提出了一种面向混合通信顺序进程(HCSP)的规范逻辑与证明系统,HCSP通过引入常微分方程(ODE)与中断机制对CSP进行扩展,用于建模连续演化与离散演化之间的交互。由于HCSP包含丰富的代数算子集,复杂的混合系统能够以类代数的组合化方式轻松建模。\n我们的逻辑可视为现有基于时段演算(DC)的混合霍尔逻辑(HHL)的推广与简化,同时也是现有并发程序霍尔逻辑的保守扩展。其断言逻辑由微分方程一阶理论(FOD),加上记录通信、就绪状态和连续演化的迹断言共同构成。我们证明了该逻辑相对于FOD的连续相对完备性,以及在连续行为可通过离散化任意逼近意义下的离散相对完备性。最后,我们在Isabelle/HOL中实现了上述逻辑,并将其应用于两个案例研究的验证,以说明该逻辑的表达能力与可扩展性。

英文摘要:

Deductive verification of hybrid systems (HSs) increasingly attracts more attention in recent years because of its power and scalability, where a powerful specification logic for HSs is the cornerstone. Often, HSs are naturally modelled by concurrent processes that communicate with each other. However, existing specification logics cannot easily handle such models. In this paper, we present a specification logic and proof system for Hybrid Communicating Sequential Processes (HCSP), that extends CSP with ordinary differential equations (ODE) and interrupts to model interactions between continuous and discrete evolution. Because it includes a rich set of algebraic operators, complicated hybrid systems can be easily modelled in an algebra-like compositional way in HCSP. Our logic can be seen as a generalization and simplification of existing hybrid Hoare logics (HHL) based on duration calculus (DC), as well as a conservative extension of existing Hoare logics for concurrent programs. Its assertion logic is the first-order theory of differential equations (FOD), together with assertions about traces recording communications, readiness, and continuous evolution. We prove continuous relative completeness of the logic w.r.t. FOD, as well as discrete relative completeness in the sense that continuous behaviour can be arbitrarily approximated by discretization. Finally, we implement the above logic in Isabelle/HOL, and apply it to verify two case studies to illustrate the power and scalability of our logic.

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

↑