Dependency Pairs for Expected Innermost Runtime Complexity and Strong Almost-Sure Termination of Probabilistic Term Rewriting
Jan-Christoph Kassing, Leon Spitzer, Jürgen Giesl
TL;DR
The paper develops the first dependency-pair framework tailored to strong almost-sure termination (SAST) and the expected innermost runtime complexity of probabilistic term rewrite systems (PTRSs) under innermost strategy. Central to the approach are annotated dependency pairs (ADPs), which preserve the original rule structure while marking calls that influence complexity, enabling a tight chain criterion via chain trees. A collection of processors (usable rules, dependency graph, reduction pair, knowledge propagation, probability removal, and more) enables modular, automatic upper bounds, and the method is implemented in AProVE. Evaluation on a broad PTRS benchmark shows substantial improvements over prior tools (POLO, NaTT) in proving SAST and obtaining meaningful complexity bounds, highlighting the framework's practicality and scalability for automatic PTRS analysis.
Abstract
The dependency pair (DP) framework is one of the most powerful techniques for automatic termination and complexity analysis of term rewrite systems. While DPs were extended to prove almost-sure termination of probabilistic term rewrite systems (PTRSs), automatic complexity analysis for PTRSs is largely unexplored. We introduce the first DP framework for analyzing expected complexity and for proving positive or strong almost-sure termination (SAST) of innermost rewriting with PTRSs, i.e., finite expected runtime. We implemented our framework in the tool AProVE and demonstrate its power compared to existing techniques for proving SAST.
