CT-STL: Cumulative-Time Signal Temporal Logic
- CT-STL is a temporal logic that generalizes STL by incorporating cumulative-time operators to specify minimum duration conditions, integral bounds, and rate-of-change constraints.
- It introduces novel grammar constructs for both discrete and continuous signals, enabling qualitative and quantitative reasoning via robust and smooth cumulative semantics.
- CT-STL supports efficient online monitoring and MILP-based control synthesis, yielding significant performance improvements in applications such as microgrid monitoring and autonomous robot missions.
Cumulative-Time Signal Temporal Logic (CT-STL) generalizes Signal Temporal Logic by enabling formal reasoning over cumulative-time objectives and duration-based requirements in cyber-physical systems, both at the semantic and algorithmic levels. CT-STL substantially extends STL's expressiveness, allowing direct specifications over total time spent in prescribed states, integral bounds on state trajectories, and rate-of-change constraints, crucial for control, monitoring, and verification.
1. Formal Syntax of CT-STL
CT-STL extends STL over discrete or continuous time by adding new grammar constructs for cumulative properties:
For discrete time signals , the CT-STL grammar includes:
- : atomic predicates, e.g., .
- : interval until operator.
- : cumulative-time operator; holds if the nested formula is satisfied at least time-steps over interval (Chen et al., 14 Apr 2025).
For continuous time signals , CT-STL additionally incorporates bounded-horizon integral and derivative predicates:
where:
Boolean (negation, conjunction) and standard temporal operators (Finally/Globally) are derived as usual.
2. Semantic Framework: Qualitative and Quantitative
Qualitative Semantics
For any signal , time , and cumulative-time formula :
That is, holds for at least time-points in (Chen et al., 14 Apr 2025).
For integral predicates: Indicating satisfaction if the cumulative value meets the threshold (Buyukkocak et al., 2021).
Quantitative (Robustness) Semantics
A real robustness measure quantifies satisfaction, notably for cumulative-time constructs:
where selects the -th largest value over the window (Chen et al., 14 Apr 2025).
For integral predicates:
Soundness and completeness are established structurally, ensuring that satisfaction in the qualitative semantics corresponds to positive robustness, and vice versa (Chen et al., 14 Apr 2025).
Smooth Cumulative Robustness
An alternative, differentiable cumulative semantics is proposed via positive/negative cumulative robustness, employing smooth surrogates for min, max, and rectifier functions, yielding quantifiers as in:
This enables gradient-based optimization and MPC for control synthesis (Haghighi et al., 2019).
3. Capturing Cumulative-Time and Rate Properties
Classic STL can only enforce state predicates instantaneously or throughout intervals; CT-STL allows explicit cumulative objectives:
- Cumulative-Time: Enforces “ must hold for at least time-units in any interval ”. Example: specifying “at least 599,984 ms of normal voltage in every 600,000 ms window” using (Chen et al., 14 Apr 2025).
- Integral Predicates: Express accumulation, e.g., “must travel at least 5 m in every 10 s window” via (Buyukkocak et al., 2021).
- Derivative Predicates: Bound rates of change, such as acceleration limits with and .
These constructs are pivotal for encoding performance, safety, and resource-usage constraints beyond instantaneous requirements.
4. Algorithmic Monitoring and Control Synthesis
Online Monitoring
Given observed partial traces, CT-STL exploits recursive interval-based satisfaction computations—robust satisfaction intervals (RoSI)—updated bottom-up. For cumulative-time operators, monitoring leverages sliding windows and two-heap data structures:
- Each new sample update: time complexity.
- Memory: (Chen et al., 14 Apr 2025).
Early detection is facilitated when violation (or satisfaction) can be conclusively determined before trace completion; substantial simulation speedups are reported (e.g., – performance gain over naive approaches).
MILP Encoding and Control Synthesis
For control synthesis under CT-STL, satisfaction predicates are encoded as mixed-integer linear constraints:
- Instantaneous: Big-M constraint encodings.
- Integral: Aggregate over window, e.g., in MILP.
- Derivative: Finite-difference approximations.
Temporal and Boolean operators are imposed by constraints on indicator variables. The top-level CT-STL formula is enforced by . Control synthesis seeks feasible (and optimal) trajectories within such encodings via standard MILP solvers (Buyukkocak et al., 2021).
For smooth cumulative robustness, gradient-based optimization (projected gradient ascent) is applied, and in MPC scenarios, rolling-horizon optimization is performed at each time step (Haghighi et al., 2019).
5. Case Studies and Practical Applications
Microgrid Monitoring
For power-quality constraints (IEC 1547-2018), CT-STL specifies cumulative overvoltage requirements, such as:
- : At least $599,984$ ms in every $600,000$ ms window must see .
- Event-based offline and online monitoring validates early violation detection, saving – runtime (Chen et al., 14 Apr 2025).
Artificial Pancreas
CT-STL encodes regulatory requirements (e.g., keep blood glucose within safe bounds for of the day):
- Cumulative-time requirements for hypo/hyper/euglycemia are formalized using and monitored online.
- Early falsification/satisfaction is observed in simulated patient traces (Chen et al., 14 Apr 2025).
Autonomous Robot Missions
Integral and derivative predicates specify cumulative distance, acceleration limits, and escape speeds in mission planning, rigorously enforcing smooth and energy-efficient trajectories. Comparative analysis demonstrates the impact of cumulative predicates on trajectory smoothness, control effort, and satisfaction of complex temporal tasks (Buyukkocak et al., 2021).
Other Domains
CT-STL is applicable in settings requiring time-in-state guarantees: medical alarms, occupancy detection, noise exposure, and general cyber-physical system requirements (Chen et al., 14 Apr 2025).
6. Limitations and Prospective Extensions
Current CT-STL monitoring is restricted to discrete-time signals and lower-bound cumulative requirements. Dense-time formulations would require measure-theoretic semantics. Monitoring upper bounds necessitates negation. Integration with falsification (e.g., S-TaLiRo) for systematic violation search, specification mining, runtime enforcement, and parameter-mining for cumulative thresholds represent active areas for extension (Chen et al., 14 Apr 2025).
Smooth cumulative semantics approximate the combinatorial aspects with continuous surrogates, trading exactness for tractability in control synthesis, suitable for model predictive control and policy optimization (Haghighi et al., 2019).
7. Connections to Related Temporal Logics
CT-STL unifies and generalizes prior approaches:
- STL’s instantaneously quantified predicates.
- Interval temporal logics expressing dwell-time, cumulative success, or rate constraints.
- Robustness-based synthesis frameworks, incorporating cumulative robustness and smooth optimization (Haghighi et al., 2019).
Cumulative time operators preserve STL’s compositional semantics and fit naturally within established verification and synthesis workflows, providing principled support for specifications involving duration, resource accumulation, and timing tolerances across cyber-physical systems, embedded control, and safety monitoring (Buyukkocak et al., 2021, Chen et al., 14 Apr 2025, Haghighi et al., 2019).