Stochastic Omega-Regular Verification and Control with Supermartingales

Alessandro Abate, Mirco Giacobbe, Diptarko Roy

Introduction

Verifying the correctness of stochastic systems—such as autonomous robots or probabilistic programs—presents a significant challenge when the state space is infinite or continuous. While finite-state systems can be analyzed using graph-based algorithms, infinite-state systems require mathematical "certificates" to prove long-term behavior. Traditionally, these certificates, specifically supermartingales, have been restricted to simple reachability or safety properties. This paper introduces a novel framework that extends supermartingale-based verification to the full expressivity of $\omega$-regular specifications, enabling the analysis of complex, "infinitely often" temporal requirements.

The Challenge of $\omega$-Regular Specifications

Real-world requirements often go beyond simple safety ("stay in a safe zone") or reachability ("eventually hit a target"). They involve persistence and recurrence, such as ensuring that if a sensor fails, it must eventually be reset, and this property must hold indefinitely. These are categorized as $\omega$-regular specifications.

The authors bridge the gap between simple certificates and complex logic by focusing on Streett acceptance conditions. A Streett pair $(A, B)$ is satisfied if a system visits region $A$ only finitely many times or visits region $B$ infinitely many times. Since any $\omega$-regular property (including those expressed in Linear Temporal Logic) can be represented by a Deterministic Streett Automaton (DSA), a solution for Streett conditions provides a general solution for $\omega$-regular verification.

Streett Supermartingales and Convergence

The core technical contribution is the introduction of Streett supermartingales. This new class of functions, $V$, is designed to mirror Streett logic: the function strictly decreases in expectation when the system is in region $A \setminus B$, but is permitted to increase when the system enters region $B$.

To prove that the existence of such a function guarantees satisfaction, the authors leverage the Robbins & Siegmund theorem. This classic result from probability theory provides the mathematical foundation to show that if a Streett supermartingale exists, the system will satisfy the Streett condition with probability 1 (almost surely). This approach unifies reachability, safety, persistence, and recurrence under a single, sound proof rule.

Automated Synthesis via Constraint Reduction

The framework includes an algorithm for the simultaneous synthesis of control policies, supporting invariants, and Streett supermartingales. To make this search computationally feasible, the authors employ Farkas’ Lemma to reduce the synthesis problem to standard optimization problems:

  • Non-linear Real Arithmetic (NRA) for general polynomial templates.
  • Quadratically Constrained Programming (QCP) for "shielded" control scenarios where safety is pre-guaranteed.
  • Linear Programming (LP) for the verification of autonomous systems.

The use of "supporting invariants" is highlighted as a critical component, allowing the solver to prune unreachable regions of the state space where the property might otherwise appear to fail.

Experimental Evaluation

The approach was evaluated on 11 benchmarks involving stochastic walks, climate control models, and memory-dependent processes. Key findings include:

  • Efficiency: Most benchmarks were solved in under 30 seconds using the Z3 SMT solver. Verification tasks often took less than a second.
  • Soundness and Completeness: The method is sound and "relatively complete," meaning it will find a polynomial certificate of a given degree if one exists.
  • Performance Gains: Implementing a "shield" (a pre-computed safety invariant) significantly improved synthesis times, for example, reducing a temperature regulation task from 28 seconds to 4.6 seconds.

Limitations and Future Work

While powerful, the method's success depends on the provision of appropriate templates (e.g., quadratic polynomials). If a certificate requires a higher-degree or non-polynomial function, the current implementation may not find it. Additionally, while the current benchmarks are handled quickly, scaling to very high-dimensional systems remains a challenge for SMT solvers. Future research directions include extending the framework to quantitative verification—calculating exact probabilities rather than almost-sure satisfaction—and exploring the use of neural networks to learn certificates from data.

Summary updated

BibTeX
@inproceedings{abate2024stochastic,
  author = {Alessandro Abate and Mirco Giacobbe and Diptarko Roy},
  title = {{Stochastic Omega-Regular Verification and Control with Supermartingales}},
  booktitle = {CAV},
  year = {2024},
  doi = {10.1007/978-3-031-65633-0\_18},
}
Figure