NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Analyzing Timed Systems Using Tree Automata

S. Akshay, Paul Gastin, Shankara Narayanan Krishna · DOI

Abstract

Timed systems, such as timed automata, are usually analyzed using their operational semantics on timed words. The classical region abstraction for timed automata reduces them to (untimed) finite state automata with the same time-abstract properties, such as state reachability. We propose a new technique to analyze such timed systems using finite tree automata instead of finite word automata. The main idea is to consider timed behaviors as graphs with matching edges capturing timing constraints. When a family of graphs has bounded tree-width, they can be interpreted in trees and MSO-definable properties of such graphs can be checked using tree automata. The technique is quite general and applies to many timed systems. In this paper, as an example, we develop the technique on timed pushdown systems, which have recently received considerable attention. Further, we also demonstrate how we can use it on timed automata and timed multi-stack pushdown systems (with boundedness restrictions).

Introduction

The formal verification of real-time systems—such as cardiac pacemakers or flight control systems—is a critical challenge in computer science. These systems are characterized by behaviors that depend on precise timing constraints. Traditionally, verification relies on "region abstraction," a method that partitions the continuous, infinite state space of time into a finite number of symbolic regions. This allows for the use of finite state automata to check properties like state reachability.

However, as system models grow in complexity to include features like recursion (timed pushdown automata) or concurrency (multi-stack systems), traditional region-based methods often become overly specialized and difficult to generalize. This paper introduces a novel graph-theoretic approach that shifts the focus from sequences of events (words) to graphs of events, leveraging the power of tree automata to provide a unified verification framework.

Methodology: From Graphs to Tree Automata

The core of the proposed technique lies in representing system behaviors as graphs and analyzing them through the lens of structural graph theory.

Timed Control Words (TCWs)

System runs are modeled as Timed Control Words (TCWs), which are graphs where nodes represent discrete events. Edges in these graphs represent either the linear flow of time (successor edges) or specific timing constraints between non-adjacent events.

A simple timed constraint between two events in a Timed Control Word.

To simplify the mathematical treatment, complex transitions are decomposed into "micro-transitions," ensuring that each event node is associated with at most one timing constraint.

Split-Width and Tree Decompositions

A key theoretical contribution is the proof that the graphs generated by these timed systems possess bounded "split-width." Split-width is a structural measure indicating how "tree-like" a graph is. By demonstrating that these graphs have bounded split-width, the authors show they can be interpreted as trees. This allows the use of Finite Tree Automata to process the behaviors.

A tree decomposition illustrating how a timed system's graph behavior can be partitioned into a tree structure.

The Two-Automata Intersection

The verification process is decoupled into two independent tasks:

  1. The Validity Automaton ($A_{valid}$): A system-independent automaton that checks if the set of timing constraints in a given graph is mathematically realizable (i.e., there exists a real-time assignment that satisfies all constraints).
  2. The System Automaton ($A_S$): An automaton tailored to the specific system being verified (e.g., a timed pushdown system), which checks if the graph adheres to the system's logical rules.

The system is deemed "safe" if the intersection of these two automata is empty, meaning no valid, system-compliant "error" run exists.

Key Insights

  • Decoupling Logic from Time: By separating the realizability of timing constraints from the logical flow of the software, the authors created a modular framework. The $A_{valid}$ automaton is universal and can be reused across different system models.
  • Modulo-M Abstraction: To handle continuous time within a finite-state tree automaton, the authors proved that it is sufficient to track timestamps modulo $M$ (where $M$ is the largest constant in the system's constraints), plus a bit indicating if the difference has exceeded $M$.
  • Unified Metric: The use of split-width provides a unified explanation for why various complex timed systems remain decidable. Timed Pushdown Automata, for example, have a split-width that is linear relative to the number of clocks.

Results and Complexity

The tree-based approach achieves optimal complexity bounds across several classes of timed systems:

  • Timed Pushdown Automata (TPDA): The technique yields an ExpTime algorithm for the emptiness problem, matching known lower bounds.
  • Timed Automata (TA): For standard timed automata, the method naturally reduces to a word-based approach with PSpace complexity, again matching optimal results.
  • Timed Multi-stack Pushdown Systems: The paper provides the first proof of decidability for these systems under "bounded rounds" restrictions, marking a significant advancement for concurrent real-time software verification.

Conclusion

This research provides a robust, modular alternative to traditional region-based verification. By interpreting timed behaviors as tree-like graphs, it offers a powerful toolset for analyzing complex, recursive, and concurrent timed systems. Future work may extend this framework to handle "diagonal constraints" (comparing two clocks) and more expressive model-checking specifications beyond simple reachability.

Summary updated

BibTeX
@inproceedings{akshay2018analyzing,
  author = {S. Akshay and Paul Gastin and Shankara Narayanan Krishna},
  title = {{Analyzing Timed Systems Using Tree Automata}},
  booktitle = {Log. Methods Comput. Sci},
  year = {2018},
  url = {https://openreview.net/forum?id=pgDGYThpDE},
}
Figure