Papers
Topics
Authors
Recent
Search
2000 character limit reached

CT-STL: Cumulative-Time Signal Temporal Logic

Updated 3 December 2025
  • 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 ξ:TRn\xi: \mathbb{T} \to \mathbb{R}^n, the CT-STL grammar includes:

φ::=p  ¬φ  φ1φ2  φ1UIφ2  CIτφ\varphi ::= p\ \big|\ \neg\varphi\ \big|\ \varphi_1 \wedge \varphi_2\ \big|\ \varphi_1\,\mathbf{U}_I\,\varphi_2\ \big|\ \mathbf{C}^\tau_I \varphi

  • pp: atomic predicates, e.g., g(ξ(t))cg(\xi(t)) \geq c.
  • UI\mathbf{U}_I: interval until operator.
  • CIτ\mathbf{C}^\tau_I: cumulative-time operator; holds if the nested formula φ\varphi is satisfied at least τ\tau time-steps over interval II (Chen et al., 14 Apr 2025).

For continuous time signals x:R0Rnx: \mathbb{R}_{\ge 0} \to \mathbb{R}^n, CT-STL additionally incorporates bounded-horizon integral and derivative predicates:

φ::=p  ¬φ  φ1φ2  φ1UIφ2  CIτφ\varphi ::= p\ \big|\ \neg\varphi\ \big|\ \varphi_1 \wedge \varphi_2\ \big|\ \varphi_1\,\mathbf{U}_I\,\varphi_2\ \big|\ \mathbf{C}^\tau_I \varphi0

where:

  • φ::=p  ¬φ  φ1φ2  φ1UIφ2  CIτφ\varphi ::= p\ \big|\ \neg\varphi\ \big|\ \varphi_1 \wedge \varphi_2\ \big|\ \varphi_1\,\mathbf{U}_I\,\varphi_2\ \big|\ \mathbf{C}^\tau_I \varphi1
  • φ::=p  ¬φ  φ1φ2  φ1UIφ2  CIτφ\varphi ::= p\ \big|\ \neg\varphi\ \big|\ \varphi_1 \wedge \varphi_2\ \big|\ \varphi_1\,\mathbf{U}_I\,\varphi_2\ \big|\ \mathbf{C}^\tau_I \varphi2, φ::=p  ¬φ  φ1φ2  φ1UIφ2  CIτφ\varphi ::= p\ \big|\ \neg\varphi\ \big|\ \varphi_1 \wedge \varphi_2\ \big|\ \varphi_1\,\mathbf{U}_I\,\varphi_2\ \big|\ \mathbf{C}^\tau_I \varphi3 (Buyukkocak et al., 2021).

Boolean (negation, conjunction) and standard temporal operators (Finally/Globally) are derived as usual.

2. Semantic Framework: Qualitative and Quantitative

Qualitative Semantics

For any signal φ::=p  ¬φ  φ1φ2  φ1UIφ2  CIτφ\varphi ::= p\ \big|\ \neg\varphi\ \big|\ \varphi_1 \wedge \varphi_2\ \big|\ \varphi_1\,\mathbf{U}_I\,\varphi_2\ \big|\ \mathbf{C}^\tau_I \varphi4, time φ::=p  ¬φ  φ1φ2  φ1UIφ2  CIτφ\varphi ::= p\ \big|\ \neg\varphi\ \big|\ \varphi_1 \wedge \varphi_2\ \big|\ \varphi_1\,\mathbf{U}_I\,\varphi_2\ \big|\ \mathbf{C}^\tau_I \varphi5, and cumulative-time formula φ::=p  ¬φ  φ1φ2  φ1UIφ2  CIτφ\varphi ::= p\ \big|\ \neg\varphi\ \big|\ \varphi_1 \wedge \varphi_2\ \big|\ \varphi_1\,\mathbf{U}_I\,\varphi_2\ \big|\ \mathbf{C}^\tau_I \varphi6:

φ::=p  ¬φ  φ1φ2  φ1UIφ2  CIτφ\varphi ::= p\ \big|\ \neg\varphi\ \big|\ \varphi_1 \wedge \varphi_2\ \big|\ \varphi_1\,\mathbf{U}_I\,\varphi_2\ \big|\ \mathbf{C}^\tau_I \varphi7

That is, φ::=p  ¬φ  φ1φ2  φ1UIφ2  CIτφ\varphi ::= p\ \big|\ \neg\varphi\ \big|\ \varphi_1 \wedge \varphi_2\ \big|\ \varphi_1\,\mathbf{U}_I\,\varphi_2\ \big|\ \mathbf{C}^\tau_I \varphi8 holds for at least φ::=p  ¬φ  φ1φ2  φ1UIφ2  CIτφ\varphi ::= p\ \big|\ \neg\varphi\ \big|\ \varphi_1 \wedge \varphi_2\ \big|\ \varphi_1\,\mathbf{U}_I\,\varphi_2\ \big|\ \mathbf{C}^\tau_I \varphi9 time-points in pp0 (Chen et al., 14 Apr 2025).

For integral predicates: pp1 Indicating satisfaction if the cumulative value meets the threshold (Buyukkocak et al., 2021).

Quantitative (Robustness) Semantics

A real robustness measure pp2 quantifies satisfaction, notably for cumulative-time constructs:

pp3

where pp4 selects the pp5-th largest value over the window (Chen et al., 14 Apr 2025).

For integral predicates: pp6

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:

pp7

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 “pp8 must hold for at least pp9 time-units in any interval g(ξ(t))cg(\xi(t)) \geq c0”. Example: specifying “at least 599,984 ms of normal voltage in every 600,000 ms window” using g(ξ(t))cg(\xi(t)) \geq c1 (Chen et al., 14 Apr 2025).
  • Integral Predicates: Express accumulation, e.g., “must travel at least 5 m in every 10 s window” via g(ξ(t))cg(\xi(t)) \geq c2 (Buyukkocak et al., 2021).
  • Derivative Predicates: Bound rates of change, such as acceleration limits with g(ξ(t))cg(\xi(t)) \geq c3 and g(ξ(t))cg(\xi(t)) \geq c4.

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: g(ξ(t))cg(\xi(t)) \geq c5 time complexity.
  • Memory: g(ξ(t))cg(\xi(t)) \geq c6 (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., g(ξ(t))cg(\xi(t)) \geq c7–g(ξ(t))cg(\xi(t)) \geq c8 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., g(ξ(t))cg(\xi(t)) \geq c9 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 UI\mathbf{U}_I0. 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:

  • UI\mathbf{U}_I1: At least UI\mathbf{U}_I2 ms in every UI\mathbf{U}_I3 ms window must see UI\mathbf{U}_I4.
  • Event-based offline and online monitoring validates early violation detection, saving UI\mathbf{U}_I5–UI\mathbf{U}_I6 runtime (Chen et al., 14 Apr 2025).

Artificial Pancreas

CT-STL encodes regulatory requirements (e.g., keep blood glucose within safe bounds for UI\mathbf{U}_I7 of the day):

  • Cumulative-time requirements for hypo/hyper/euglycemia are formalized using UI\mathbf{U}_I8 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).

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).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Cumulative-Time Signal Temporal Logic (CT-STL).