Differential Dynamic Logic for Hybrid Systems

25 concepts20 papers1 proposal

Modern safety-critical systems frequently operate at the intersection of two distinct worlds: the discrete world of digital software and the continuous world of physical motion. Autonomous cars, fly-by-wire aircraft, and robotic medical devices are all hybrid systems. Verifying their safety is notoriously difficult. Traditional software verification handles complex discrete logic but ignores the laws of physics, while traditional control theory models continuous physical flows but struggles with the branching complexity of software code.

To bridge this gap, researchers developed Differential Dynamic Logic ($d\mathcal{L}$). This framework provides a unified, mathematically rigorous language to specify and verify hybrid systems by treating physical processes directly as program code.

The Core Insight: Physics as Code

In traditional computer science, an imperative program changes the system state via discrete steps, such as assignments (x := e) or conditional branches. In $d\mathcal{L}$, continuous physical evolution is integrated directly into this programming paradigm as a first-class statement.

As André Platzer outlines in Logic and Compositional Verification of Hybrid Systems - (Invited Tutorial) and Real Analysis for Complex Systems, a system is modeled using a hybrid program. A hybrid program can contain standard discrete software commands alongside continuous evolution statements written as differential equations. For example, the statement:

$$\{x' = v, v' = a \ \& \ x \le 10\}$$

instructs the system to evolve continuously according to the laws of motion (where the derivative of position $x$ is velocity $v$, and the derivative of $v$ is acceleration $a$) for any duration of time, as long as the system remains within the evolution domain $x \le 10$.

By representing physical dynamics this way, Ghorbal et al. demonstrate in Hybrid Theorem Proving of Aerospace Systems: Applications and Challenges that complex real-world behaviors—such as mid-air collision avoidance maneuvers—can be modeled as a sequence of discrete controller choices followed by continuous physical execution.

Why It Works: Compositional Reasoning and Modalities

The power of $d\mathcal{L}$ lies in its ability to reason about these hybrid programs using modal operators, similar to traditional dynamic logic.

If $\alpha$ is a hybrid program and $\phi$ is a safety property (e.g., "the distance between two trains is greater than zero"), the formula $[\alpha]\phi$ states that all possible executions of $\alpha$ lead to a state where $\phi$ is true. Conversely, $\langle\alpha\rangle\phi$ states that at least one execution of $\alpha$ can reach a state satisfying $\phi$.

To prove that a system is safe, a typical $d\mathcal{L}$ formula takes the form:

$$\text{initial\_conditions} \rightarrow [\text{discrete\_control}; \text{continuous\_physics}] \ \text{safe}$$

This states that if the system starts in a valid initial state, then no matter what choices the digital controller makes, and no matter how long the physical system drifts under the laws of physics, the system will remain safe.

Crucially, André Platzer proves in Logics of Dynamical Systems that discrete, continuous, and hybrid dynamics are proof-theoretically equivalent within this framework. This equivalence allows verifiers to break down a complex proof compositionally. Instead of trying to simulate every possible continuous trajectory over time—which is impossible due to the infinite state space—the logic allows researchers to use differential invariants.

Just as a loop invariant in computer science proves a property holds across arbitrary discrete iterations, a differential invariant proves a property holds across arbitrary continuous trajectories. By checking that the vector field of the differential equations never points "out" of the safe region, $d\mathcal{L}$ can prove safety without ever explicitly solving the differential equations analytically.

Automating the Proofs

While the logic provides the mathematical foundation, verifying complex industrial systems requires automation. This is achieved through theorem provers like KeYmaera X.

The evolution of this tooling is tracked across several benchmarking iterations by Mitsch et al. in the ARCH-COMP category reports (ARCH-COMP18, ARCH-COMP19, ARCH-COMP20, and ARCH-COMP22). These reports highlight a major transition in the field:

  1. From Scripted to Automated: Early verification required significant human intervention to manually script proof steps and suggest invariants. Modern iterations of KeYmaera X leverage advanced computer algebra systems to automatically synthesize invariants and execute proofs for non-linear systems.
  2. Diverse Logical Frameworks: The ecosystem has expanded beyond $d\mathcal{L}$ to include tools like HHLPy, which implements Hybrid Hoare Logic. As noted in the ARCH-COMP22 Report, this extends traditional pre- and post-condition verification to sequential control software interacting with physical environments.

As André Platzer notes in Theorem Proving and Computer Algebra for Hybrid Systems (Keynote Abstract), combining formal logic with symbolic computer algebra allows these tools to handle real-world scale challenges, such as train collision avoidance and autonomous flight paths, with increasing autonomy.

Broadening the Paradigm

The core philosophy of program logic for continuous-discrete systems has proven highly adaptable, sparking several distinct research directions:

Reachability and Input Synthesis

Instead of just proving safety, researchers use program logic to explore the boundaries of what a system can do. Suenaga et al. introduced Generalized Property-Directed Reachability (GPDR) for Hybrid Systems in Generalized Property-Directed Reachability for Hybrid Systems, utilizing continuous reachability predicates to reason about states accessible via differential equations over arbitrary time intervals.

Similarly, Akazaki et al. demonstrate in Input Synthesis for Sampled Data Systems by Program Logic that treating digital controllers as imperative programs allows verifiers to use weakest precondition calculus. This efficiently prunes massive search spaces to find specific external disturbances or inputs that could drive a system to an unsafe state.

Goal-Aware Autonomy and Safe Learning

In autonomous driving, avoiding collisions is not enough; a vehicle must also reach its destination. Hasuo et al. address this in Goal-Aware RSS for Complex Scenarios via Program Logic by introducing a differential program logic ($d\mathcal{FHL}$) that simultaneously handles safety constraints and goal-directed progress.

Furthermore, to safely deploy artificial intelligence in physical environments, Platzer et al. demonstrate in Safe Reinforcement Learning via Formal Methods: Toward Safe Control Through Proof and Learning how $d\mathcal{L}$ proofs can act as a "safety shield" around reinforcement learning agents, ensuring that an AI exploring its environment can never choose an action that violates physical safety boundaries.

Stochastic and Biological Systems

Real-world environments are often non-deterministic. Bortolussi et al. extended hybrid modeling to include random intervals in HYPE with stochastic events, maintaining a strict separation between continuous dynamics and probabilistic triggers. In the biological domain, Ballarini et al. applied similar hybrid logic concepts to biological systems in Expressive Statistical Model Checking of Genetic Networks with Delayed Stochastic Dynamics, combining formal logic with statistical model checking to analyze complex gene regulatory networks.

Conclusion

By unifying discrete software jumps and continuous physical flows into a single, cohesive language, differential dynamic logic changes how we verify cyber-physical systems. As André Platzer emphasizes in The Significance of Symbolic Logic for Scientific Education, this compositional framework provides an "unreasonably effective" tool for breaking down overwhelming technical complexity into manageable, mathematically verifiable components, ensuring that our most critical autonomous technologies can be proven safe by design.

Key Foundational Work

Real Analysis for Complex Systems (2010) — contributed 1 concept elements to this direction.
Logic and Compositional Verification of Hybrid Systems - (Invited Tutorial) (2011) — contributed 1 concept elements to this direction.
Quantified Differential Dynamic Logic for Distributed Hybrid Systems (2010) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_differential_dynamic_logic_65b7bd3b,
  title = {differential dynamic logic},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/differential-dynamic-logic/rdr_65b7bd3bb7da43c996a0311bb761da22},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_differential_dynamic_logic_65b7bd3b_v1,
  title = {differential dynamic logic},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/differential-dynamic-logic/rdr_65b7bd3bb7da43c996a0311bb761da22/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake