A Generalized Hybrid Hoare Logic

03/27/2023
by   Naijun Zhan, et al.
0

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. Besides, we discuss how to simplify proofs using the logic by providing a simplified assertion language and a set of sound and complete rules for differential invariants for ODEs. Finally, we implement a proof assistant for the logic in Isabelle/HOL, and apply it to verify two case studies to illustrate the power and scalability of our logic.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
01/15/2021

Switched Systems as Hybrid Programs

Real world systems of interest often feature interactions between discre...
research
02/28/2023

Dynamic Logic of Communicating Hybrid Programs

This paper presents a dynamic logic dℒ_CHP for compositional deductive v...
research
01/25/2022

First-Order Game Logic and Modal Mu-Calculus

This paper investigates first-order game logic and first-order modal mu-...
research
10/31/2022

HHLPy: Practical Verification of Hybrid Systems using Hoare Logic

We present a tool for verification of hybrid systems expressed in the se...
research
03/29/2021

Representation of a vehicular traffic model using hybrid systems

There is a great diversity of formal models to understand the dynamics o...
research
05/17/2022

Chemical Case Studies in KeYmaera X

Safety-critical chemical processes are the backbone of multi-billion-dol...
research
05/23/2021

Diagrammatic Polyhedral Algebra

We extend the theory of Interacting Hopf algebras with an order primitiv...

Please sign up or login with your details

Forgot password? Click here to reset