Abstract
In runtime verification, monitoring consists of analyzing the current execution of a system and determining, on the basis of the observed finite trace, whether all its possible continuations satisfy or violate a given specification. This is typically done by synthesizing a monitor–often a Deterministic Finite State Automaton (DFA)–from logical specifications expressed in Linear Temporal Logic (LTL) or in its finite-word variant (LTLf). Unfortunately, the size of the resulting DFA may incur a doubly exponential blow-up in the size of the formula. In this paper, we identify some conditions under which monitoring can be done without constructing such a DFA. We build on the notion of intentionally safe and cosafe formulas to show that monitoring of these formulas can be carried out through trace-checking, that is, by directly evaluating them on the current system trace, with a polynomial complexity in the size of both the trace and the formula. In addition, we investigate the complexity of recognizing intentionally safe and cosafe formulas for the safety and cosafety fragments of LTL and LTLf. As for LTLf, we show that all formulas in these fragments are intentionally safe and cosafe, thus removing the need for the check. As for LTL, we prove that the problem is in PSPACE, significantly improving over the EXPSPACE complexity of full LTL.
Introduction
Runtime Verification (RV) is a critical technique for ensuring system reliability by monitoring executions against formal specifications, typically expressed in Linear Temporal Logic (LTL). Traditionally, this involves compiling the LTL formula into a Deterministic Finite Automaton (DFA). However, this approach faces a significant hurdle: the "state explosion" problem. The resulting DFA can be doubly exponential in size relative to the formula ($2^{2^n}$), making it impractical for complex rules or resource-constrained environments. This paper, presented at AAAI-26, explores an "automata-less" alternative, checking traces directly against logical formulas to bypass massive state machine construction.
Methods: Trace-Checking and Intentionality
The researchers propose using a "trace-checking" algorithm instead of a DFA. This method evaluates a formula $\phi$ directly on the current system trace $\sigma$. The core innovation lies in identifying intentionally safe and cosafe formulas. A trace is considered "informative" if it provides sufficient evidence to satisfy or violate a formula regardless of future system behavior. In "intentional" formulas, every violating or satisfying prefix is guaranteed to be informative.
By focusing on these formulas, the monitoring task is reduced to a polynomial complexity of $O(|\sigma| \cdot |\phi|)$, linear in both the trace and formula size. This shift transforms a computationally prohibitive task into a highly efficient one.
Key Insights
- The Role of Intention: The paper argues that logical equivalence does not imply monitoring equivalence. For instance, $F(p)$ and $F(p \wedge (Xq \vee X\neg q))$ are logically identical, but the latter is "unintentional" because it requires looking ahead to a future state even if $p$ is already satisfied. Sticking to intentional formulations allows for more efficient monitoring.
- LTLf Advantages: For LTL over finite words (LTLf), the authors discovered that standard safety and cosafety fragments are inherently intentionally safe/cosafe. This simplifies the workflow for LTLf users, as they can adopt trace-checking without additional verification steps.
- Complexity Gains: For standard LTL (infinite words), determining if a formula is intentionally safe is typically an EXPSPACE problem. This research introduces a new algorithm that reduces this complexity to PSPACE for specific fragments like $G(pLTL)$ and $F(pLTL)$.
Key Results
The paper provides formal proof (Theorem 1) that for intentionally (co)safe formulas, the monitor's verdict from trace-checking is equivalent to that of a full DFA. To support this, they developed Algorithm 2, which uses specialized automata to verify intentionality.
This algorithm checks for "lasso-shaped" paths in these automata to determine if a formula meets the criteria for the automata-less shortcut. The result is a monitoring framework that scales linearly rather than exponentially.
Limitations and Future Work
The primary limitation is the requirement for "intentional" formulas. If a specification is written in a non-intentional way, the trace-checker may return an "undetermined" (?) result where a full DFA might have provided a definitive answer. Future research aims to identify broader syntactic fragments of LTL that are inherently intentional and to extend these techniques to more complex logics like Signal Temporal Logic (STL) used in cyber-physical systems.
Summary updated