From Innermost to Full Probabilistic Term Rewriting: Almost-Sure Termination, Complexity, and Modularity
Jan-Christoph Kassing, Jürgen Giesl
TL;DR
This work extends the dependency-pairs paradigm to probabilistic term rewriting, establishing sufficient criteria under which innermost termination and its complexity notions coincide with full rewriting and corresponding expected complexities. It formalizes PTRS notions, defines AST/PAST/SAST and edc/erc, and proves criteria ensuring transfer of termination properties across evaluation strategies (innermost, leftmost-innermost, and full). The authors implement these criteria in AProVE, demonstrate practical applicability, and derive modularity results for PTRSs under disjoint unions and signature extensions, including a detailed discussion of spareness and the limits of left-linearity removal. Collectively, the results advance automated verification of probabilistic programs modeled by PTRSs and provide concrete guidance for modular termination/complexity proofs. The findings have practical impact on certifying termination properties and runtime bounds for probabilistic rewrite-based specifications, with implications for tool support and modular reasoning in probabilistic programming verification.
Abstract
There are many evaluation strategies for term rewrite systems, but automatically proving termination or analyzing complexity is usually easiest for innermost rewriting. Several syntactic criteria exist when innermost termination implies (full) termination or when runtime complexity and innermost runtime complexity coincide. We adapt these criteria to the probabilistic setting, e.g., we show when it suffices to analyze almost-sure termination w.r.t. innermost rewriting in order to prove (full) almost-sure termination of probabilistic term rewrite systems. These criteria can be applied for both termination and complexity analysis in the probabilistic setting. We implemented and evaluated our new contributions in the tool AProVE. Moreover, we also use our new results to investigate the modularity of probabilistic termination properties.
