Time window temporal logic

Cristian-Ioan Vasile, Derya Aksaray, Călin Belta · DOI

Introduction

In robotics and autonomous systems, specifying complex sequences of timed tasks is a critical requirement. For example, a mission might require a robot to "Service area A for 3 minutes within the first 10 minutes, then immediately move to area B for 5 minutes." While standard Linear Temporal Logic (LTL) excels at describing event ordering, it lacks the ability to handle explicit time durations. Existing timed variants like Metric Temporal Logic (MTL) or Signal Temporal Logic (STL) can handle time but often result in deeply nested, complex formulas for serial tasks that are difficult to read and computationally expensive to process. Time Window Temporal Logic (TWTL) is introduced to bridge this gap, offering a specification language designed for unprecedented compactness in describing time-bounded serial tasks.

Methodology

TWTL introduces three specialized operators to streamline task specification:

  1. Hold ($H^d s$): Requires a state $s$ to be maintained for exactly $d$ time units.
  2. Within ($[\phi]^{[a,b]}$): Constrains the satisfaction of a formula $\phi$ to a specific time window.
  3. Concatenation ($\phi_1 \cdot \phi_2$): Explicitly defines that $\phi_2$ must start immediately after $\phi_1$ finishes.
Comparison of TWTL, BLTL, and MTL formulas for a serial task, demonstrating the compactness of TWTL.

The core technical contribution is an automata-based framework that translates TWTL formulas into annotated Finite State Automata (DFA). Crucially, the authors introduce Temporal Relaxation ($\tau$). By parameterizing time windows, the framework can define a "relaxed" version of a formula. If a robot cannot meet a strict deadline, the system finds the "closest" possible satisfaction by minimizing the relaxation value, turning verification and synthesis into optimization problems.

Key Insights

The Power of Concatenation

By making concatenation a first-class citizen, TWTL formulas for serial tasks remain linear in length, whereas equivalent MTL/STL formulas grow significantly in complexity. This structural advantage is visualized in the logic's hierarchical representation.

A structural representation of a TWTL formula involving concatenation, conjunction, and time-windowed hold operators.

Efficiency and Robustness

A major advantage of TWTL is that the complexity of constructing the automaton is independent of the actual values of the time bounds. This avoids the "state explosion" problem common in other timed logics where larger time constants lead to much larger state spaces. Furthermore, the relaxation $\tau$ provides a quantitative measure of satisfaction: a negative $\tau$ indicates early completion (robustness), while a positive $\tau$ measures the degree of delay.

Results

The authors provide a linear-time algorithm for handling task concatenation, a significant improvement over the exponential worst-case complexity found in general formal language theory. In a robot motion planning case study, the algorithm successfully synthesized a path through a 27-state transition system that satisfied a complex multi-stage surveillance task with a minimal temporal relaxation of -2, indicating the task was completed with a 2-unit safety margin. The authors have also released PyTWTL, a Python package implementing the translation, verification, synthesis, and learning algorithms.

Conclusion and Future Work

TWTL offers a robust and efficient framework for specifying timed robotic tasks. While currently focused on discrete time, future work includes extending the logic to continuous-time signals and improving heuristic learning algorithms for inferring deadlines from data. Despite standard exponential scaling with the number of atomic propositions, TWTL's efficiency regarding time bounds makes it a powerful tool for complex environments.

Summary updated

BibTeX
@inproceedings{vasile2017time,
  author = {Cristian-Ioan Vasile and Derya Aksaray and Călin Belta},
  title = {{Time window temporal logic}},
  booktitle = {Theoretical},
  year = {2017},
  doi = {10.1016/j.tcs.2017.07.012},
}
Figure