paper

Probabilistic Loop Kernels: Exact Inference and Equivalence

arXiv:2612.01773

Abstract

We present probabilistic loop kernels a compact symbolic representation of the input--output behavior of discrete probabilistic loops. By combining occupation measures with second-order generating functions, a single kernel encodes the loop's output distribution for every initial state. This yields a unified approach to two central tasks: exact inference under arbitrary input distributions and equivalence verification of probabilistic loops on all inputs. We prove that rational kernels are strictly more expressive than the loop-free specifications that existing generating-function methods use as equivalence witnesses. We develop a sound template-based method for synthesizing rational kernels. For inference, the kernels yield output distributions as D-finite series, including nonrational distributions that arise even from rational inputs and rational kernels. For equivalence, they enable a fully automated approach to verifying (parameterized) equivalence between probabilistic loops.

arXiv comment37 pages, 5 figures, 3 tables