Temporal Logic Specifications for Cyber-Physical Safety

This direction is merged into another direction: temporal logic constraints. Its last version stays readable and citable here.

Version 1 of 125 papers27 conceptsfrozen 2026-10-04

When a software system controls a physical entity—like a self-driving car, a medical device, or an industrial robot—the definition of "correctness" changes. In traditional software, a function is correct if it returns the right output for a given input. In Cyber-Physical Systems (CPS), correctness is tied to time, continuous signals, and physical boundaries. A car that brakes is "correct," but a car that brakes two seconds too late is a failure.

To bridge this gap, researchers use Temporal Logics to turn vague safety requirements into rigorous mathematical constraints that can be verified, monitored, and even used to repair autonomous systems.

From Boolean Logic to Temporal Signals

Standard logic is binary: a statement is either true or false. However, physical systems operate over continuous time. Researchers like Lixing Li and Zhi Jin argue that IoT and physical services require modeling that accounts for these environmental messy realities.

The primary tool for this is Signal Temporal Logic (STL). Unlike standard logic, STL allows engineers to define requirements like: "The vehicle must stay at least 2 meters away from all obstacles (spatial) for the next 10 seconds (temporal)." As noted by Ezio Bartocci and R Majumdar, these formalisms allow for "lightweight" formal methods where monitors evaluate execution traces in real-time to see if quantitative bounds—like maximum response times—are being violated.

Bridging the Reality Gap with Falsification

Once a safety requirement is written in STL, how do we know a complex AI controller will follow it? The "reality gap" between a perfect simulation and a messy physical world makes traditional proofs difficult.

Aaron Ames and Ugo Rosolia address this by using Bayesian Optimization to find worst-case scenarios. Instead of proving a system is always safe, they search for the specific conditions where it fails. This is often called algorithmic falsification. Daniel J. Fremont and colleagues demonstrated that this formal approach can predict real-world collisions on a physical test track by identifying the exact perception bugs that lead to STL violations.

This shift moves adversarial testing away from "pixel-level" attacks toward semantic adversarial examples. Somesh Jha and Sanjit A. Seshia argue that safety violations in CPS are often caused by high-level semantic factors—like specific lighting or car positions—rather than imperceptible noise.

Quantitative Robustness as a Feedback Loop

One of the most powerful features of STL is that it isn't just a "yes/no" check. It provides a robustness metric: a numerical value indicating how much a system satisfied or violated a requirement.

Kristy Sakano and Dinesh Manocha leverage these metrics in their SAFE-SMART framework to provide quantitative feedback to "black-box" robot policies. If a robot avoids a collision but comes within a millimeter of an obstacle, the STL robustness score will be low, signaling to the designers that the policy needs retraining even though no "failure" occurred.

Runtime Enforcement and Automated Repair

Formal logic isn't just for testing; it can be integrated into the control loop itself. Calin Belta and Sadra Sadraddini developed Model Predictive Control (MPC) strategies that treat STL requirements as constraints. If the system predicts a future violation, the controller adjusts its path to stay within the "safe" zone of the logic formula.

When a system does fail, researchers are now looking at automated "patches." The AutoRepair framework, proposed by Deyun Lyu and Lei Ma, uses STL to localize the exact time interval where a control signal went wrong. It then generates a patch to retrain the neural network, ensuring it meets safety requirements without losing performance.

Similarly, Benedikt Maderbacher and Ezio Bartocci use an adaptive "Simplex" architecture. This acts as a safety switch: a high-performance AI controller runs the system normally, but if the STL monitor detects an impending violation of a time-bounded task, a "provably correct" backup controller takes over to guarantee safety.

Summary of the Direction

The research across these 22 papers converges on a single insight: Safety in the physical world is a temporal property. By encoding these properties into Signal Temporal Logic, we move from "hope-based" engineering to a framework where autonomous systems can be mathematically verified, rigorously falsified, and automatically repaired against the complex constraints of time and space.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_temporal_logic_specifications_for_cyber__1f03acce,
  title = {Temporal Logic Specifications for Cyber-Physical Safety},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/temporal-logic-specifications-for-cyber-physical-safety/rdr_1f03accead854e0e9c673df54447ad0c},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_temporal_logic_specifications_for_cyber__1f03acce_v1,
  title = {Temporal Logic Specifications for Cyber-Physical Safety},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/temporal-logic-specifications-for-cyber-physical-safety/rdr_1f03accead854e0e9c673df54447ad0c/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}