Abstract
Hyperproperties extend trace properties to express properties of sets of traces, and they are increasingly popular in specifying various security and performance-related properties in domains such as cyber-physical systems, smart grids, and automotive. This paper introduces a model checking algorithm for a new formalism, HyperTWTL, which extends Time Window Temporal Logic (TWTL) -- a domain-specific formal specification language for robotics, by allowing explicit and simultaneous quantification over multiple execution traces. We present HyperTWTL with both synchronous and asynchronous semantics, based on the alignment of the timestamps in the traces. Consequently, we demonstrate the application of HyperTWTL in formalizing important information-flow security policies and concurrency for robotics applications. Finally, we propose a model checking algorithm for verifying fragments of HyperTWTL by reducing the problem to a TWTL model checking problem.
Introduction
In the domain of robotics, tasks often involve strict temporal constraints, such as visiting specific regions within defined time windows. Time Window Temporal Logic (TWTL) was developed to address these needs by providing a compact way to specify task concatenation and time-bounded holds. However, standard TWTL is limited to trace properties—properties that can be checked on individual execution traces. Many critical requirements, particularly those involving security (e.g., opacity, non-interference) and concurrency (e.g., trajectory alignment), are hyperproperties that describe relationships between sets of traces.
This work introduces HyperTWTL, a logic that extends TWTL with trace quantification ($\forall \pi, \exists \pi$). This allows for the formal verification of complex multi-trace behaviors while maintaining the domain-specific advantages of TWTL.
The HyperTWTL Framework
HyperTWTL introduces two distinct semantic interpretations to handle the realities of robotic execution:
- Synchronous Semantics: Traces are compared in lock-step, time-step by time-step. This is suitable for perfectly synchronized systems.
- Asynchronous Semantics: Recognizes that different robots or different runs of the same robot may proceed at varying speeds due to mechanical or environmental factors. It uses trajectories and "silent events" to align traces that may stutter.
The logic preserves the core operators of TWTL, such as the "Hold" operator ($H^d$) and the "Concatenation" operator ($\odot$), which are specifically designed for robotic task planning.
Succinctness and Expressivity
A primary advantage of HyperTWTL is its succinctness compared to general-purpose logics like HyperSTL or HyperMTL. By utilizing domain-specific operators, HyperTWTL can express complex robotic tasks with significantly fewer temporal operators.
As shown in the comparison above, a property requiring multiple operators in HyperMTL can often be reduced to a single concatenation in HyperTWTL, making specifications more readable and reducing the computational burden for verification tools.
Formalizing Security and Performance
HyperTWTL is uniquely suited for formalizing information-flow security policies. The authors demonstrate how various high-level properties can be expressed as HyperTWTL formulas.
These formalizations include:
- Opacity: Ensuring a secret behavior cannot be distinguished from a non-secret one by an observer.
- Non-interference: Guaranteeing that high-security inputs do not affect low-security observable outputs.
- Side-Channel Timing Attacks: Verifying that execution time does not leak sensitive information.
Model Checking and Evaluation
The proposed model checking algorithm reduces the HyperTWTL verification problem to a standard TWTL problem. This is achieved through self-composition, creating a product model of the system, and translating asynchronous formulas into synchronous ones.
The approach was evaluated on a TESS Case Study involving multi-robot missions. Verification of complex security properties was efficient, typically taking between 16.3 and 25.2 seconds with minimal memory overhead (~15–17 MB). Scalability tests on 2D grid motion planning (up to 50x50 grids) confirmed that while computation time increases with state space, memory usage remains manageable, peaking at approximately 52 MB.
Conclusion
HyperTWTL provides a powerful and efficient framework for specifying and verifying hyperproperties in robotics. By combining the succinctness of TWTL with trace quantification, it enables the formal verification of security and concurrency requirements that were previously difficult to express. Future work includes extending the logic to continuous-time signals and exploring automated synthesis for broader fragments of the logic.
Summary updated