Model-based Verification and Analysis for Real-Time Systems

Uli Fahrenberg, Kim G. Larsen, Claus ThraneSPIRE 2015

Abstract

This article aims at providing a concise and precise Traveler’s Guide, Phrase Book or Reference Manual to the timed automata modeling formalism introduced by Alur and Dill. The paper gives comprehensive definitions of timed automata, priced (or weighted) timed automata, and timed games and highlights a number of results on associated decision problems related to model checking, equivalence checking, optimal scheduling, and the existence of winning strategies.

Introduction

In modern computer systems—ranging from automotive anti-lock brakes to complex communication protocols—correctness is not merely a matter of logical sequence but of temporal precision. In these "real-time systems," the validity of an operation depends on when it occurs. Standard finite-state machines fall short in modeling such systems because time is continuous and infinite, leading to an inherently infinite state space.

The primary challenge in verifying these systems is the state-space explosion. How can a computer verify a system when its "clocks" can take on an infinite number of real-valued points? This paper, authored by Uli Fahrenberg, Kim Guldstrand Larsen, and Claus Thrane, serves as a comprehensive reference manual for the formal verification of real-time systems. It synthesizes decades of research into a unified guide covering Timed Automata (TA), Weighted/Priced TA, and Timed Games, explaining the mathematical abstractions used to collapse infinite time into a finite number of symbolic states.

Modeling Formalisms

Timed Automata (TA)

Timed Automata are finite-state machines equipped with real-valued clocks. These clocks track the passage of time and can be used in guards (conditions for transitions) and invariants (conditions for staying in a state).

A Timed Automaton representing a light switch system with specific timing constraints for state transitions.

As shown in the example above, transitions can depend on clock values (e.g., $x \le 3$) and can reset clocks (e.g., $x := 0$). This allows for the modeling of complex timing behaviors, such as a light that turns off automatically after a certain duration or changes brightness based on the speed of user interaction.

Zones and Regions: The Engine of Verification

To make verification decidable, the infinite clock space must be abstracted. The authors discuss two primary methods:

  1. Region Construction: A theoretical method that partitions the infinite clock space into a finite number of equivalence classes (regions). While essential for proving decidability, regions are often too numerous for practical application.
  2. Zones and Difference-Bound Matrices (DBMs): Zones are convex unions of regions and serve as the practical "engine" behind modern verification tools like UPPAAL. They are represented efficiently using DBMs, which are essentially weighted directed graphs.
Visual representation of clock zones and regions in a two-dimensional clock space, illustrating the symbolic abstraction of continuous time.

Weighted Timed Automata and Timed Games

Beyond simple reachability, the paper explores extensions that handle costs and adversarial environments:

  • Weighted (Priced) Timed Automata (WTA): These add "cost rates" to locations (e.g., power consumption) and discrete costs to edges. This shifts the focus from "Can I reach the goal?" to "What is the most cost-effective way to reach the goal?"
  • Timed Games: These model systems interacting with unpredictable environments. By splitting transitions into "controllable" (system moves) and "uncontrollable" (environment moves), researchers can synthesize winning strategies that guarantee safety or reachability regardless of external behavior.

Key Insights and Results

  • The Theory-Practice Gap: While Regions are theoretically vital for proving that problems are decidable, Zones are what enable practical industrial tools.
  • Decidability Boundaries: Reachability is PSPACE-complete for both standard and weighted timed automata. However, checking if all possible traces are valid (universality) is undecidable, marking a clear boundary for automated verification.
  • Optimal Scheduling: Finding the minimum-cost path to a goal state is computable. For infinite executions, methods exist to calculate limit ratios (average cost) and discounted costs.
  • Strategy Synthesis: Reachability and safety games are decidable, allowing for the automatic generation of controllers that are guaranteed to succeed against any environment behavior.

Limitations and Future Work

Despite significant advancements, several challenges remain:

  • Complexity: The state space remains exponential relative to the number of clocks and the magnitude of constants used.
  • Diagonal Constraints: Constraints comparing two clocks (e.g., $x - y \le 5$) complicate normalization and can lead to further exponential blow-up.
  • Partial Observability: Synthesizing strategies when the system has incomplete information about the environment's state is a difficult, ongoing area of research.
  • Advanced Data Structures: There is a continuing need for more efficient structures, such as Clock Difference Diagrams (CDDs), to manage the complexity of large-scale systems.

This paper bridges the gap between theoretical foundations and practical algorithmic optimizations, providing a rigorous roadmap for anyone modeling systems where timing is critical.

Summary updated

BibTeX
@inproceedings{fahrenberg2015model,
  author = {Uli Fahrenberg and Kim G. Larsen and Claus Thrane},
  title = {{Model-based Verification and Analysis for Real-Time Systems}},
  booktitle = {SPIRE},
  year = {2015},
}
Figure