Parallel Composition and Modular Verification of Computer Controlled\n Systems in Differential Dynamic Logic

Simon Lunel, Stefan Mitsch, Benoît Boyer, Jean-Pierre TalpinarXiv 2019 · DOI · arXiv · OpenAlex

Abstract

Computer-Controlled Systems (CCS) are hybrid systems where the periodic interaction between software components and physical processes is critical. Ensuring the safety of these systems is challenging due to their complexity and the interleaving of discrete and continuous behaviors. This paper introduces a component-based modeling and reasoning framework within Differential Dynamic Logic ($d\mathcal{L}$) that enables modular verification. By separating models into components with specific timing guarantees—such as controller reactivity and plant controllability—the framework allows for the construction of system-wide safety proofs from isolated component properties.

The Challenge of Verifying Hybrid Systems

Computer-Controlled Systems (CCS), ranging from medical devices to autonomous vehicles, integrate discrete software logic with continuous physical dynamics. Verifying the safety of such systems is notoriously difficult because these two domains operate under different paradigms: software executes in periodic, discrete bursts, while physics evolves continuously over time.

Traditional verification methods often struggle with scalability. As systems grow in complexity, the resulting mathematical safety proofs become monolithic and unmanageable. There is a critical need for modular verification, where engineers can prove the safety of individual controllers and physical plants independently and then "snap" those proofs together to guarantee the safety of the entire system.

Methodology: Differential Dynamic Logic and Component Contracts

The proposed framework is built upon Differential Dynamic Logic ($d\mathcal{L}$), a formal logic designed for hybrid systems. In $d\mathcal{L}$, systems are modeled as hybrid programs that combine discrete assignments and control flow with continuous differential equations representing physical laws.

Syntax and semantics of hybrid programs in Differential Dynamic Logic ($d\mathcal{L}$), forming the basis for modeling controllers and plants.

The authors introduce several key formalisms to enable modularity within this logic:

  • Reactive Controllers: Modeled with a "reactivity" bound ($\delta$), representing the maximum time elapsed between control actions.
  • Controllable Plants: Modeled with a "controllability" bound ($\Delta$), representing the duration for which the physical system can safely evolve without new control input.
  • Component Contracts: Each component is defined by a pair of $(Assumptions, Guarantees)$. If the environment satisfies the assumptions, the component is guaranteed to maintain its safety properties.
  • Parallel Composition ($\otimes$): A formal operator that interleaves the execution of multiple controllers and plants. The authors demonstrate that this operator is both commutative and associative, facilitating step-by-step system construction.

Key Insights: The $\delta \le \Delta$ Rule

A fundamental insight of the framework is the $\delta \le \Delta$ rule: a system remains safe as long as the controller's reactivity ($\delta$) is faster than the plant's controllability limit ($\Delta$). This formalizes the intuition that a controller must act before the physical system drifts into an unsafe state.

Furthermore, the framework relies on Non-Interference. For modularity to be sound, components must not modify the same variables or interfere with each other's safety invariants. The paper provides a rigorous definition of non-interference, which serves as the bedrock for their composition theorems.

Results and Case Study

The framework was validated using a Water-Tank System case study. This example involves multiple tanks where parallel controllers maintain water levels by managing valves. This concrete demonstration showed how complex interactions could be decomposed into manageable, independently verified component properties using the KeYmaera X theorem prover.

Key results include:

  • Theorems of Safe Composition: The paper presents four major theorems proving that if individual components satisfy their contracts, their parallel composition is guaranteed to be safe under defined timing and non-interference conditions.
  • Algebraic Soundness: The composition operator preserves commutativity and associativity, which is essential for scalable engineering tools.
  • Automation Potential: By providing syntactic proof rules rather than purely semantic ones, the authors move closer to "push-button" verification, reducing the need for manual expertise in theorem proving.

Limitations and Future Outlook

While the framework provides a robust foundation for modular verification, some limitations remain. Currently, components cannot share outputs; future work aims to relax this to allow for more complex interactions where controllers might influence shared physical variables. Additionally, while the model handles periodic execution, it does not yet account for fine-grained network jitter or communication delays. Finally, while the theory is designed for KeYmaera X, fully mechanizing these theorems into automated "tactics" remains an ongoing goal to make these proofs more accessible to engineers.

Summary updated

Abstract

Computer-Controlled Systems (CCS) are a subclass of hybrid systems where the\nperiodic relation of control components to time is paramount. Since they\nadditionally are at the heart of many safety-critical devices, it is of primary\nimportance to correctly model such systems and to ensure they function\ncorrectly according to safety requirements. Differential dynamic logic\n$d\\mathcal{L}$ is a powerful logic to model hybrid systems and to prove their\ncorrectness. We contribute a component-based modeling and reasoning framework\nto $d\\mathcal{L}$ that separates models into components with timing guarantees,\nsuch as reactivity of controllers and controllability of continuous dynamics.\nComponents operate in parallel, with coarse-grained interleaving, periodic\nexecution and communication. We present techniques to automate system safety\nproofs from isolated, modular, and possibly mechanized proofs of component\nproperties parameterized with timing characteristics.\n
BibTeX
@misc{lunel2019parallel,
  author = {Simon Lunel and Stefan Mitsch and Benoît Boyer and Jean-Pierre Talpin},
  title = {{Parallel Composition and Modular Verification of Computer Controlled\textbackslash\{\}n Systems in Differential Dynamic Logic}},
  year = {2019},
  doi = {10.48550/arxiv.1907.02881},
}

Loading related content...

Figure