Abstract: In this paper, we analyze timed systems with data structures, using a rich interplay of logic and properties of graphs. We start by describing behaviors of timed systems using graphs with timing constraints. Such a graph is called realizable if we can assign time-stamps to nodes or events so that they are consistent with the timing constraints. The logical definability of several graph properties has been a challenging problem, and we show, using a highly non-trivial argument, that the realizability property for collections of graphs with strict timing constraints is logically definable in a class of propositional dynamic logic (EQ-ICPDL), which is strictly contained in MSO. Using this result, we propose a novel, algorithmically efficient and uniform proof technique for the analysis of timed systems enriched with auxiliary data structures, like stacks and queues. Our technique unravels new results (for emptiness checking as well as model checking) for timed systems with richer features than considered so far, while also recovering existing results.
Introduction
Verifying complex computer systems is a fundamental challenge in computer science, particularly when systems must adhere to strict real-time constraints and manage auxiliary data structures like stacks or queues. Real-time constraints require that events occur within specific intervals, while data structures introduce the potential for infinite state spaces. Traditionally, verifying such systems required bespoke, ad-hoc algorithms for each combination of features. This paper presents a unified framework that leverages logic and graph theory to provide a general solution for analyzing timed systems with data structures.
Modeling Behaviors as Graphs
The authors' approach begins by abstracting system behaviors into graphs. A system run is represented as a linear sequence of events (nodes). To capture the complexities of data structures and timing, two types of edges are added:
- Data-structure edges: These link related operations, such as a "push" and its corresponding "pop" in a stack-based system (often denoted as write/read or $w/r$ operations).
- Weighted timing edges: These represent constraints on the time elapsed between events, such as minimum or maximum delays.
Logic and Realizability
A central challenge in this domain is "realizability": determining if a set of timing constraints is consistent, meaning there exists a valid assignment of real-number timestamps to each event. The authors demonstrate that for linear event sequences, realizability can be expressed within a specific logic called EQ-ICPDL (a variant of Propositional Dynamic Logic).
EQ-ICPDL is chosen for its balance of expressivity and computational efficiency. While less powerful than Monadic Second-Order (MSO) logic, it avoids the extreme complexity associated with MSO while remaining sufficient to capture the necessary timing properties. The proof that realizability is definable in EQ-ICPDL is a significant theoretical contribution, bridging the gap between continuous time and discrete logic. Realizability essentially checks for the absence of negative time cycles in the weighted graph abstraction.
Algorithmic Verification via Tree-Width
Systems with multiple stacks or queues are generally undecidable, meaning no algorithm can perfectly verify them in all cases. To overcome this, the authors focus on behaviors with "bounded tree-width." This structural restriction allows the use of efficient EXPTIME (exponential time) solvers for the logic. By decoupling timing constraints from data structure operations, the framework becomes highly modular. New features, such as clock renaming or event-predicting clocks, can be integrated without re-proving the core logic.
Key Results and Implications
The proposed framework yields several important results:
- Unified Decidability: It recovers existing decidability results for standard timed automata and pushdown timed automata under a single, uniform proof technique.
- New Decidability Results: The technique extends to more complex configurations, such as multi-stack dense-timed pushdown automata with bounded contexts or phases, which were previously unproven.
- Theoretical Boundaries: The authors establish that a linear ordering of events is essential; without it, realizability is not even definable in MSO logic, marking a fundamental limit for logic-based verification of concurrent systems.
Conclusion
While the reliance on bounded tree-width is a necessary trade-off for decidability, this logic-based approach provides a powerful new tool for system verification. Future work may involve extending these techniques to specific classes of concurrent systems or developing practical software tools based on this theoretical foundation. By viewing timed systems through the lens of logic, the authors have provided a robust and extensible path forward for ensuring the correctness of complex, real-time software.
Summary updated