Skip to main content
QUICK REVIEW

[论文解读] A Generalized Hybrid Hoare Logic

Naijun Zhan, Xiangyu Jin|arXiv (Cornell University)|Mar 27, 2023
Formal Methods in Verification被引用 5
一句话总结

本文提出了一种广义混合霍尔逻辑(HHL),用于混合通信顺序进程(HCSP),实现了对具有连续动态和离散通信的混合系统进行组合式、并发验证。该方法实现了连续和离散的相对完备性,支持微分不变量,并在Isabelle/HOL中实现,成功验证了包含54种状态组合和10,000行证明代码的复杂调度器。

ABSTRACT

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.

研究动机与目标

  • 为解决缺乏适用于具有并发与通信的混合系统的表达性强且组合式的规格逻辑的问题。
  • 在保持对连续与离散行为表达能力的前提下,对现有的基于DC的混合霍尔逻辑进行泛化与简化。
  • 通过FOD(一阶微分方程逻辑)实现对连续演化的相对完备性,通过离散化实现对离散近似的相对完备性。
  • 通过Isabelle/HOL的实现与实时调度器的案例研究,支持实际验证。
  • 通过轨迹断言和微分不变量的可靠且完备规则,简化证明构造。

提出的方法

  • 通过引入轨迹断言,扩展霍尔逻辑以建模并发进程中的通信历史与准备状态。
  • 提出一种混合断言逻辑,将微分方程的一阶逻辑(FOD)与基于轨迹的条件相结合,用于描述连续与离散演化。
  • 设计一种证明系统,其并行组合规则使用轨迹与通信事件的兼容性条件。
  • 应用微分不变量与微分幽灵,以在不显式求解ODE的情况下推理其行为。
  • 通过离散化近似连续行为,实现离散相对完备性。
  • 在Isabelle/HOL中实现该逻辑,提供对轨迹同步与不变量检查的自动化支持。

实验结果

研究问题

  • RQ1能否设计一种霍尔逻辑,以同时支持混合系统中并发通信与连续动态?
  • RQ2如何为具有常微分方程和并发进程的混合系统实现相对完备性?
  • RQ3能否使用微分不变量来简化连续演化的证明,而无需求解ODE?
  • RQ4轨迹断言如何支持对并发混合系统的组合式验证?
  • RQ5该逻辑能否高效实现并扩展至复杂的真实世界混合系统?

主要发现

  • 该逻辑在相对于一阶微分方程逻辑(FOD)的意义下实现了连续相对完备性。
  • 通过证明连续行为可通过离散化任意逼近,建立了离散相对完备性。
  • 该逻辑是经典霍尔逻辑在并发程序上的保守扩展,保持了组合式推理能力。
  • Isabelle/HOL实现成功验证了一个具有54种状态组合和10,000行证明代码的实时调度器。
  • 轨迹断言与微分不变量的使用显著简化了复杂混合系统中的证明构造。
  • 该方法支持对安全性质(如互斥与非抢占)在并发实时系统中的验证。

更好的研究,从现在开始

从阅读论文到最终审阅,大幅缩短您的研究时间。

无需绑定信用卡

本解读由 AI 生成,并经人工编辑审核。