Towards Physical Hybrid Systems

Katherine Cordwell, André Platzer · DOI

TL;DR

This paper introduces "Physical Hybrid Systems" (PHS) to bridge the gap between mathematically precise but physically unrealistic models of cyber-physical systems (CPS) and real-world behavior. They achieve this by extending temporal logic with an "almost everywhere in time" operator, allowing verification of models that are safe except for negligible, physically irrelevant time intervals.

What Problem Does This Paper Address?

Cyber-physical systems (CPS), like self-driving cars or robots, are often modeled using hybrid systems logic that combines discrete and continuous dynamics. While this provides mathematical rigor, it can lead to models being flagged as "unsafe" due to extremely small, physically insignificant deviations in time. For instance, a system might be deemed unsafe if it briefly touches a boundary condition for a measure-zero duration, even if this has no tangible impact in reality. This disconnect between mathematical correctness and physical reality can lead to over-conservative designs and distract from genuine safety concerns. The authors aim to reconcile these two perspectives by developing a logic that accounts for the physical limitations and nuances of real-world systems.

Methods

The core contribution is the introduction of Physical Differential Temporal Dynamic Logic (PdTL). This logic extends differential temporal dynamic logic (dTL) by adding a first-class operator, □tae (pronounced "box tae"), which signifies "time almost everywhere." This operator allows the logic to disregard safety violations that occur on sets of time with Lebesgue measure zero.

Key aspects of their approach include:

  • Modifying dTL: PdTL builds upon dTL, a logic for reasoning about hybrid systems over time. The primary modification is the introduction of the □tae operator.
  • "Almost Everywhere" Semantics: The semantics of □tae are defined to capture safety that holds true except for a set of time points with measure zero. This is formalized using Lebesgue measure theory.
  • Proof Calculus: A proof calculus for PdTL is developed to support the verification of PHS. This calculus aims to decompose complex temporal formulas into simpler, often non-temporal, ones, leveraging existing proof techniques for dL.
  • Carathéodory Solutions: The paper aligns with the intuition of PHS by referencing Carathéodory solutions for differential equations, which satisfy the equations "almost everywhere."

Datasets

Not discussed in the paper. The paper focuses on formal verification and logic development rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • The "Measure Zero" Problem: The paper highlights a fundamental issue in formal verification of hybrid systems: mathematical models can be overly sensitive to infinitesimally small time intervals, leading to "physically unrealistic unsafeties."
  • "Time Almost Everywhere" (tae): This concept is crucial. It allows us to say a system is safe if it's safe for all but a negligible amount of time, which aligns with physical intuition.
  • Bridging Logic and Physics: PdTL provides a formal language to express and verify safety properties that are physically meaningful, even if they don't hold strictly at every single instant.
  • Computational Benefits: Eliding measure-zero sets can also lead to computational advantages in verification, particularly in dealing with real arithmetic and avoiding irrational numbers.

Key Results

  • Introduction of PdTL: A new logic for reasoning about "physical hybrid systems" with the □tae operator.
  • Formal Semantics and Proof Calculus: The paper provides a formal trace semantics for PdTL and a corresponding proof calculus to enable verification.
  • Motivating Example Verification: The authors demonstrate the utility of PdTL by successfully verifying a train control example that would be considered unsafe by standard hybrid systems logic due to a brief moment at the speed limit.
  • Conservativity: PdTL is shown to be a conservative extension of dL, meaning all valid dL formulas remain valid in PdTL.

Limitations and Future Work

  • Limited ODE Reasoning: The current PdTL logic uses classical solutions for ODEs. The authors acknowledge that a more general approach would involve admitting non-classical solutions (like Filippov or Carathéodory) directly within the logic's syntax, which is left for future work.
  • "Space Almost Everywhere" (sae): The paper briefly discusses the concept of "space almost everywhere" as another potential PHS notion, suggesting that tae might be more restrictive than other possible PHS definitions. Developing and formalizing such notions is a direction for future research.
  • Generalizing Hybrid Program Syntax: Extending the syntax of hybrid programs to more naturally accommodate ODEs with Carathéodory solutions is an area for future exploration.

Summary updated

BibTeX
@inproceedings{cordwell2019towards,
  author = {Katherine Cordwell and André Platzer},
  title = {{Towards Physical Hybrid Systems}},
  booktitle = {CADE},
  year = {2019},
  doi = {10.1007/978-3-030-29436-6\_13},
}
Figure