arXiv · 2509.06410
Verifying Sampling Algorithms via Distributional Invariants
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.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Daniel Zilken, Kevin Batz, Joost-Pieter Katoen, Tobias Winkler. 2025-09-08. Verifying Sampling Algorithms via Distributional Invariants. https://arxiv.org/abs/2509.06410
Cite the original work for its findings. Save a collection to share your selection of sources.