English

Verifying Sampling Algorithms via Distributional Invariants

Logic in Computer Science 2026-03-03 v2 Discrete Mathematics

Abstract

This paper presents a Hoare-like veri cation framework for discrete probabilistic programs that we apply to two non-trivial sampling algorithms: Lumbroso's Fast Dice Roller and Saad et al.'s Fast Loaded Dice Roller. These algorithms have previously resisted formal veri cation due to their probabilistic nature, intricate loop structure, and parametric input. Our approach complements existing proof rules based on inductive distributional invariants, enabling us to verify both total and partial correctness of the two algorithms.

Keywords

Cite

@article{arxiv.2509.06410,
  title  = {Verifying Sampling Algorithms via Distributional Invariants},
  author = {Daniel Zilken and Kevin Batz and Joost-Pieter Katoen and Tobias Winkler},
  journal= {arXiv preprint arXiv:2509.06410},
  year   = {2026}
}
R2 v1 2026-07-01T05:25:48.455Z