Probabilistic Loop Kernels: Exact Inference and Equivalence
Bohan Ma, Mingqi Yang, Mingshuai Chen, Shenghua Feng, Li Zhou, Jianwei Yin
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.
Create a lesson
Metadata
- Comments
- 37 pages, 5 figures, 3 tables
Related papers
Exact Inference Without Positivity: Certifying Signed Fixed Points for Probabilistic Loops
Shared title terminologycs.PLMingqi Yang, Bohan Ma, Jianwei Yin et al.
SALTyRN: An End-to-End Tool for Verified and Optimized Neon-to-RVV Kernel Translation
Shared title terminologycs.PLKeagan Chern, Charles Hong, Yakun Sophia Shao et al.
Teal: Verifiable Kernel Compilation through Instruction-Centric Lifting
Shared title terminologycs.PLShriram Chandran, Alexandru Calotoiu, Marcin Copik et al.
Assessing LLM Program Reasoning through Equivalence Proofs
Shared title terminologycs.PLHaozhi Wang, Anders Miltner, Jocelyn Qiaochu Chen
SentryWard: Formal Verification of Warp-Specialized GPU Kernels
Shared title terminologycs.PLMengdi Wu, Sreeram Vennam, Stephen Mell et al.
Mode Inference for Substructural Adjoint Types
Shared title terminologycs.PLSophia Roshal, Frank Pfenning