Introduction: The DFA Bottleneck
Runtime verification (RV) is a lightweight formal method used to check if a system's execution trace satisfies a given specification, typically expressed in Linear Temporal Logic (LTL). The standard workflow involves translating the LTL formula into a monitor—usually a Deterministic Finite Automaton (DFA) that reads the system's execution trace and outputs a verdict: "Success," "Failure," or "Unknown."
However, this translation faces a significant hurdle: the state-space explosion. For an LTL formula of size $n$, the resulting DFA can have up to $2^{2^n}$ states. For complex specifications, this makes the monitor too large to build or run efficiently. This paper addresses this bottleneck by asking: When can we skip the automaton entirely and check the formula directly against the trace?
Automata-less Monitoring via Trace-Checking
The authors propose an "automata-less" approach for specific classes of properties. Instead of building a massive DFA, they demonstrate that monitoring can be reduced to simple trace-checking—evaluating the formula directly against the finite trace. This reduces the complexity of the monitoring task from potentially doubly exponential to polynomial: $O(|\text{trace}| \cdot |\text{formula}|)$.
Informative Models and Intentionality
The core of this reduction lies in the concept of intentionally safe and cosafe formulas.
- Informative Models: A finite trace is "informative" if it contains enough information to definitively prove a formula is true or false for all possible future continuations.
- Intentionally (Co)safe: A formula is intentionally safe if every single one of its "bad prefixes" (traces that violate the property) is informative.
The authors note that formulas that are safe but not intentionally safe often contain "redundant subformulas" or "user errors" (like $Xq \lor X\neg q$). These tautologies don't change the logic but break the ability of a finite trace to be informative, forcing the monitor to wait for future information that is logically irrelevant.
Key Results and Fragments
The research focuses on common LTL fragments: $G(pLTL)$ ("Always [Past Property]") and $F(pLTL)$ ("Eventually [Past Property]").
- LTLf is "Better Behaved": A major finding is that for LTL over finite words (LTLf), the safety and cosafety fragments are always intentionally (co)safe. This means for finite-word monitoring, we can always skip the DFA construction for these fragments.
- Complexity Reduction: For infinite-word LTL, determining if a formula is intentionally safe was previously known to be EXPSPACE-complete. This paper shows that for the $G(pLTL)$ and $F(pLTL)$ fragments, this complexity drops to PSPACE.
- Efficiency: By moving from DFA-based monitoring to trace-checking, the memory overhead of storing a massive state machine is replaced by a simple evaluation of the formula over the current trace.
Conclusion
By shifting the focus from automaton construction to formula intentionality, this work provides a path toward more scalable and efficient runtime monitors. While the "automata-less" reduction currently applies to safety and cosafety properties, it significantly lowers the barrier for monitoring the most common types of system specifications without falling victim to the state-space explosion.
Summary updated