Weighted Rewriting: Semiring Semantics for Abstract Reduction Systems
Emma Ahrens, Jan-Christoph Kassing, Jürgen Giesl, Joost-Pieter Katoen
TL;DR
This work introduces weighted abstract reduction systems (wARS) by enriching ARSs with semiring weights assigned to reductions, enabling provenance-like analyses for termination, complexity, safety, and beyond. The framework uses complete lattice semirings to handle possibly infinite nondeterminism and reductions, representing reduction outcomes as weighted trees and taking supremums over schedulers. It demonstrates broad expressivity through sections on termination/complexity, size bounds, probabilistic rewriting, formal languages, and multi-property combinations, while providing methods to prove upper and lower bounds via interpretations, approximations, and loop-based unboundedness. The approach unifies disparate analyses under a single, composable semantic foundation, with potential for automation and applications to TRSs and probabilistic systems. Limitations are acknowledged (e.g., starvation-freedom requires extensions), and future work targets enhanced automated boundedness proofs and broader property coverage.
Abstract
We present novel semiring semantics for abstract reduction systems (ARSs). More precisely, we provide a weighted version of ARSs, where the reduction steps induce weights from a semiring. Inspired by provenance analysis in database theory and logic, we obtain a formalism that can be used for provenance analysis of arbitrary ARSs. Our semantics handle (possibly unbounded) non-determinism and possibly infinite reductions. Moreover, we develop several techniques to prove upper and lower bounds on the weights resulting from our semantics, and show that in this way one obtains a uniform approach to analyze several different properties like termination, derivational complexity, space complexity, safety, as well as combinations of these properties.
