[Paper Review] Monitorability of $\omega$-regular languages
This paper establishes that the monitorability problem for ω-regular languages—whether a language can be deterministically assessed as satisfied or violated after finite observation—is PSpace-complete when specified via LTL formulas, nondeterministic Büchi automata (NBAs), or ω-regular expressions. The key contribution is closing a long-standing complexity gap by proving that monitorability is decidable in polynomial space, matching the complexity of safety property checking.
Arguably, omega-regular languages play an important role as a specification formalism in many approaches to systems monitoring via runtime verification. However, since their elements are infinite words, not every omega-regular language can sensibly be monitored at runtime when only a finite prefix of a word, modelling the observed system behaviour so far, is available. The monitorability of an omega-regular language, L, is thus a property that holds, if for any finite word u, observed so far, it is possible to add another finite word v, such that uv becomes a "finite witness" wrt. L; that is, for any infinite word w, we have that uvw \\in L, or for any infinite word w, we have that uvw \ ot\\in L. This notion has been studied in the past by several authors, and it is known that the class of monitorable languages is strictly more expressive than, e.g., the commonly used class of so-called safety languages. But an exact categorisation of monitorable languages has, so far, been missing. Motivated by the use of linear-time temporal logic (LTL) in many approaches to runtime verification, this paper first determines the complexity of the monitorability problem when L is given by an LTL formula. Further, it then shows that this result, in fact, transfers to omega-regular languages in general, i.e., whether they are given by an LTL formula, a nondeterministic Buechi automaton, or even by an omega-regular expression.
Motivation & Objective
- To determine the computational complexity of checking whether an ω-regular language is monitorable, particularly when specified via LTL or NBAs.
- To close the gap between the previously known 2ExpSpace upper bound and the PSpace-completeness of safety property checking.
- To show that monitorability is decidable in polynomial space for all standard ω-regular language representations.
- To establish closure properties of monitorable ω-languages under intersection, complement, and union.
- To provide a practical foundation for early detection of unmonitorable specifications before runtime verification or monitor generation.
Proposed method
- Reduces the monitorability problem for LTL and NBAs to checking whether every finite prefix is either a good or bad prefix, using a 3-valued semantics framework.
- Leverages the duality between good and bad prefixes: a language is monitorable iff every finite word is either a good or bad prefix.
- Uses the complementation of NBAs to check for emptiness of the complement language, which is known to be LogSpace-complete.
- Applies closure properties of NBAs, including determinization and complementation, to verify monitorability conditions in polynomial time.
- Transfers the complexity result from NBAs to ω-regular expressions via a polynomial-time translation to NBAs.
- Employs a reduction to the emptiness problem of deterministic Büchi automata (DBAs) to verify monitorability conditions efficiently.
Experimental results
Research questions
- RQ1What is the computational complexity of determining whether an LTL formula defines a monitorable ω-regular language?
- RQ2Is the monitorability problem for NBAs and ω-regular expressions also PSpace-complete, or does it lie in a higher complexity class?
- RQ3Can monitorable ω-languages be characterized using closure properties under standard language operations?
- RQ4Does the monitorability of an ω-regular language depend on the choice of specification formalism (e.g., LTL vs. NBA vs. ω-regular expressions)?
- RQ5Can the monitorability of a language be decided in polynomial space, matching the complexity of safety property checking?
Key findings
- The monitorability problem for LTL and NBAs is PSpace-complete, resolving a long-standing complexity gap.
- The result extends to ω-regular expressions, as they can be translated to NBAs in polynomial time, preserving monitorability status.
- Monitorable ω-languages are closed under finite intersection, complement, and union, forming a robust class under Boolean operations.
- The class of monitorable languages strictly extends the class of safety properties, confirming its broader expressiveness.
- The complexity of monitorability matches that of safety property checking, enabling efficient pre-analysis of specifications.
- The paper provides a practical basis for early detection of unmonitorable specifications, avoiding futile monitor construction.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.