We propose a framework to prove almost sure termination for probabilistic programs with real valued variables. It is based on ranking supermartingales, a notion analogous to ranking functions on non-probabilistic programs. The framework is proven sound and complete for a meaningful class of programs involving randomization and bounded nondeterminism. We complement this foundational insigh by a practical proof methodology, based on sound conditions that enable compositional reasoning and are amenable to a direct implementation using modern theorem provers. This is integrated in a small dependent type system, to overcome the problem that lexicographic ranking functions fail when combined with randomization. Among others, this compositional methodology enables the verification of probabilistic programs outside the complete class that admits ranking supermartingales.
Mendeley helps you to discover research relevant for your work.
CITATION STYLE
Ferrer Fioriti, L. M., & Hermanns, H. (2015). Probabilistic Termination. ACM SIGPLAN Notices, 50(1), 489–501. https://doi.org/10.1145/2775051.2677001