Verifying Sampling Algorithms via Distributional Invariants

📅 2025-09-08
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
Discrete probabilistic sampling algorithms lack formal verification frameworks. Method: This paper proposes the first verification methodology based on *distributional loop invariants*: probabilistic programs are modeled as distribution transformers, and a Hoare-style logic is developed to support both total and partial correctness proofs. Contribution/Results: The key innovation is the systematic introduction of *distributional loop invariants*, enabling precise characterization and inductive reasoning about the evolution of output distributions during program execution. The framework unifies probabilistic program semantics, invariant inference, and formal verification techniques. Experimentally, it successfully verifies the correctness of two classic algorithms—Fast Dice Roller and Fast Loaded Dice Roller—demonstrating strong expressive power and practical applicability. This work establishes a novel paradigm for formal verification of probabilistic programs.

Technology Category

Application Category

📝 Abstract
This paper develops a verification framework aimed at establishing the correctness of discrete sampling algorithms. We do so by considering probabilistic programs as distribution transformers. Inspired by recent work on distributional verification of Markov models, we introduce the notion of (inductive) distributional loop invariants for discrete probabilistic programs. These invariants are embedded in a Hoare-like verification framework that includes proof rules for total and partial correctness. To illustrate the applicability of our framework, we prove the correctness of two discrete sampling algorithms: the Fast Dice Roller and the Fast Loaded Dice Roller.
Problem

Research questions and friction points this paper is trying to address.

Verifying correctness of discrete sampling algorithms
Developing Hoare-like framework with distributional invariants
Proving correctness of Fast Dice Roller algorithms
Innovation

Methods, ideas, or system contributions that make the work stand out.

Distributional loop invariants for probabilistic programs
Hoare-like verification framework with proof rules
Correctness proofs for discrete sampling algorithms
🔎 Similar Papers
No similar papers found.
K
Kevin Batz
University College London, London, United Kingdom
Joost-Pieter Katoen
Joost-Pieter Katoen
Distinguished Professor of Computer Science, RWTH Aachen University and University of Twente
formal methodsmodel checkingconcurrency theoryprobabilistic programmingprogram verification
T
Tobias Winkler
RWTH Aachen University, Aachen, Germany
D
Daniel Zilken
RWTH Aachen University, Aachen, Germany