Skip to main content
QUICK REVIEW

[Paper Review] Safety and Liveness of Quantitative Automata

Udi Boker, Thomas A. Henzinger|arXiv (Cornell University)|Jan 1, 2023
Formal Methods in VerificationComputer Science4 citations
TL;DR

This paper introduces a formal framework for quantitative safety and liveness in infinite-word properties, generalizing classical boolean safety-liveness concepts to quantitative settings with partially ordered value domains. It provides decision procedures for safety and liveness in common quantitative automata (Inf, Sup, LimInf, LimSup, LimInfAvg, LimSupAvg, DSum), constructs safety closures, and establishes a min-decomposition into safe and live automata, with all algorithms running in polynomial time for the studied classes.

ABSTRACT

Safety and liveness stand as fundamental concepts in formal languages, playing a key role in verification. The safety-liveness classification of boolean properties characterizes whether a given property can be falsified by observing a finite prefix of an infinite computation trace (always for safety, never for liveness). In the quantitative setting, properties are arbitrary functions from infinite words to partially-ordered domains. Extending this paradigm to the quantitative domain, where properties are arbitrary functions mapping infinite words to partially-ordered domains, we introduce and study the notions of quantitative safety and liveness. First, we formally define quantitative safety and liveness, and prove that our definitions induce conservative quantitative generalizations of both the safety-progress hierarchy and the safety-liveness decomposition of boolean properties. Consequently, like their boolean counterparts, quantitative properties can be min-decomposed into safety and liveness parts, or alternatively, max-decomposed into co-safety and co-liveness parts. We further establish a connection between quantitative safety and topological continuity and provide alternative characterizations of quantitative safety and liveness in terms of their boolean analogs. Second, we instantiate our framework with the specific classes of quantitative properties expressed by automata. These quantitative automata contain finitely many states and rational-valued transition weights, and their common value functions Inf, Sup, LimInf, LimSup, LimInfAvg, LimSupAvg, and DSum map infinite words into the totally-ordered domain of real numbers. For all common value functions, we provide a procedure for deciding whether a given automaton is safe or live, we show how to construct its safety closure, and we present a min-decomposition into safe and live automata.

Motivation & Objective

  • To extend the classical safety-liveness duality from boolean to quantitative properties, where values are drawn from partially ordered domains.
  • To define and characterize quantitative safety and liveness in a way that conservatively generalizes boolean notions and preserves topological and logical properties.
  • To instantiate the framework with common quantitative automata (Inf, Sup, LimInf, etc.) and provide decision procedures for safety and liveness.
  • To construct the safety closure and a min-decomposition into safe and live automata for each value function.
  • To establish connections between quantitative safety and topological continuity, and to solve the constant-function problem for these automata classes.

Proposed method

  • Define quantitative safety as the property that any incorrect hypothesis Φ(w) ≥ v can be rejected after a finite prefix, and quantitative liveness as the property that some incorrect hypothesis cannot be rejected after any finite prefix.
  • Introduce threshold safety and topological continuity as alternative characterizations, linking quantitative safety to continuity in the Cantor topology.
  • Construct a safety closure automaton C that captures the supremum of all reachable values, using cycle detection and weight transformation techniques.
  • For each value function (e.g., LimInfAvg), use Karp’s algorithm or depth-first search to compute the maximum cycle mean or top value, enabling efficient safety and liveness checks.
  • Design a decomposition procedure that splits any automaton A into a safe component B (its safety closure) and a live component C, such that A(w) = min(B(w), C(w)) for all infinite words w.
  • Prove that the liveness component C is live by showing its safety closure is constant (equal to the top value of A), using state-space extensions with copy states and sink states.

Experimental results

Research questions

  • RQ1How can the classical safety-liveness dichotomy be generalized to quantitative properties mapping infinite words to partially ordered domains?
  • RQ2What are the topological and logical characterizations of quantitative safety and liveness, and how do they relate to continuity and duality?
  • RQ3For common quantitative automata (Inf, Sup, LimInf, etc.), how can we decide whether a given automaton is safe or live?
  • RQ4Can we construct a safety closure for any quantitative automaton, and is it the best safe approximation?
  • RQ5Can every quantitative automaton be decomposed into a safe and a live component, and if so, how efficiently?

Key findings

  • The paper establishes a conservative generalization of the boolean safety-liveness hierarchy to quantitative properties, preserving the min-decomposition into safety and liveness components.
  • For all studied value functions (Inf, Sup, LimInf, LimSup, LimInfAvg, LimSupAvg, DSum), the safety and liveness of automata can be decided in polynomial time.
  • The safety closure of a quantitative automaton can be constructed in polynomial time, and it is the best safe approximation of the original automaton.
  • A min-decomposition into a safe automaton (the safety closure) and a live automaton is always possible, with A(w) = min(B(w), C(w)) for all w ∈ Σω.
  • The liveness component C is constructed by extending the automaton with copy states and a sink state, ensuring that all finite runs can be extended to achieve the maximum value.
  • The framework resolves the constant-function problem for the studied automata classes, enabling efficient verification of whether an automaton always outputs the same value.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.