Model Checking Probabilistic Operator Precedence Automata
Francesco Pontiggia, Ezio Bartocci, Michele Chiari
TL;DR
The paper advances model checking for probabilistic recursive programs by introducing pOPAs, whose traces are processed via OPAs and OPL-based logics. It develops a separation-based framework using separated omegaOPBA and a support chain to perform qualitative and quantitative model checking against POTLF and LTL specifications, achieving EXPTIME and EXPSPACE complexity, respectively, and proves these bounds are optimal. A key novelty is encoding POTLF via separated OPBA to preserve tractable model checking without full determinization, and applying the approach to a motivating coordination game to illustrate nested queries and conditioning. The work substantially enhances verification capabilities for recursive probabilistic programs and lays groundwork for extending to full POTL and related automata-based techniques, with practical implications for correctness guarantees in probabilistic programming. The methods promise more expressive verification than existing VPL-based approaches, enabling analysis of exception handling, observations, and recursive calls in probabilistic settings.
Abstract
We address the problem of model checking context-free specifications for probabilistic pushdown automata, which has relevant applications in the verification of recursive probabilistic programs. Operator Precedence Languages (OPLs) are an expressive subclass of context-free languages suitable for model checking recursive programs. The derived Precedence Oriented Temporal Logic (POTL) can express fundamental OPL specifications such as pre/post-conditions and exception safety. We introduce probabilistic Operator Precedence Automata (pOPA), a class of probabilistic pushdown automata whose traces are OPLs, and study their model checking problem against POTL specifications. We identify a fragment of POTL, called POTLf$χ$, for which we develop an EXPTIME algorithm for qualitative probabilistic model checking, and an EXPSPACE algorithm for the quantitative variant. The algorithms rely on the property of separation of automata generated from POTLf$χ$ formulas. The same property allows us to employ these algorithms for model checking pOPA against Linear Temporal Logic (LTL) specifications. POTLf$χ$ is then the first context-free logic for which an optimal probabilistic model checking algorithm has been developed, matching its EXPTIME lower bound in complexity. In comparison, the best known algorithm for probabilistic model checking of CaRet, a prominent temporal logic based on Visibly Pushdown Languages (VPL), is doubly exponential.
