Automating the Analysis of Quantitative Automata with QuAK

Marek Chalupa, Thomas A. Henzinger, Nicolas Mazzocchi, N. Ege Saraç

Introduction

In traditional formal methods, boolean $\omega$-automata are used to determine if a system's behavior is strictly "correct" or "incorrect." However, modern engineering demands more nuanced evaluations: measuring energy consumption, average response times, or system robustness against noise. Quantitative Automata (QA) address this by mapping system behaviors to real numbers rather than simple binary values. While the theoretical foundations of QA have matured, the practical application has been hindered by a lack of general-purpose software. The Quantitative Automata Kit (QuAK) bridges this gap as the first comprehensive tool designed to automate the analysis of these complex models.

Core Architecture and Algorithmic Reductions

The power of QuAK lies in its modular architecture, which reduces a wide array of complex quantitative decision problems into two fundamental tasks: inclusion checking (determining if automaton A is always less than or equal to automaton B) and top value computation (finding the maximum value an automaton can achieve).

Hierarchical reduction of quantitative decision problems to inclusion and top-value computation.

By establishing these reductions, QuAK can handle diverse properties such as universality, equivalence, and safety. The tool supports a broad spectrum of value functions, including Inf, Sup, LimInf, LimSup, Discounted Sum (DSum), and Mean Payoff (limit-average). To manage the high computational complexity associated with nondeterministic automata—which can reach PSpace-complete or even undecidable levels—QuAK utilizes advanced antichain-based algorithms to effectively prune the search space.

Safety-Liveness Decomposition

A significant advancement in the latest version of QuAK is the implementation of nondeterministic safety-liveness decomposition. Every quantitative property can be decomposed into a "safety" component (ensuring "bad" things never happen) and a "liveness" component (ensuring "good" things eventually happen). While this decomposition is straightforward for deterministic models, QuAK introduces a novel algorithm to handle the significantly more complex nondeterministic case.

Examples of quantitative automata (A, B, and C) used to illustrate safety-liveness decomposition and inclusion checks.

Witness Generation for Debugging

To move beyond "black box" verification, QuAK now includes witness generation. When an inclusion check fails or a specific value is computed, the tool provides an ultimately periodic word—a finite execution path consisting of a "stem" followed by a repeating "cycle." This serves as a concrete counterexample or proof of behavior, transforming QuAK from a simple checker into a viable debugging tool for engineers.

Results and Future Directions

QuAK has been validated through rigorous unit testing, cross-validation against specialized sub-problem solvers, and case studies involving power consumption modeling. It is currently available as both a C++ library and a standalone command-line tool.

Despite its current capabilities, challenges remain regarding scalability. Future development will focus on symbolic approaches (such as BDDs) to mitigate the "state space explosion" problem and expanding the formalism to support nested quantitative automata and more varied discounted-sum functions. These enhancements will further solidify QuAK's role as an essential framework for quantitative system verification.

Summary updated

BibTeX
@inproceedings{chalupa2025automating,
  author = {Marek Chalupa and Thomas A. Henzinger and Nicolas Mazzocchi and N. Ege Saraç},
  title = {{Automating the Analysis of Quantitative Automata with QuAK}},
  booktitle = {TACAS},
  year = {2025},
  doi = {10.1007/978-3-031-90643-5\_16},
}
Figure