Foundations for Deductive Verification of Continuous Probabilistic Programs: From Lebesgue to Riemann and Back

๐Ÿ“… 2025-02-26
๐Ÿ“ˆ Citations: 0
โœจ Influential: 0
๐Ÿ“„ PDF
๐Ÿค– AI Summary
This work addresses the automatic verification of expected output bounds for probabilistic programs featuring general loops, continuous distributions, and conditional branchingโ€”where the integral semantics induced by continuous sampling impede conventional invariant-based reasoning. We propose a Riemann-sum-based approximation of the expected semantics, transforming integral bounds into quantitative invariants expressible in SMT logic. This constitutes the first systematic integration of Riemann integration into probabilistic program verification, accompanied by formal convergence guarantees for the approximation and a proof that the verification problem is coRE-complete. We implement a prototype within the Caesar verification framework, supporting intermediate-language encoding and SMT-driven inference; it successfully verifies multiple benchmarks involving continuous sampling and loops. Our approach bridges discrete program verifiers with continuous probabilistic analysis, enabling existing discrete verification tools to scale to programs with continuous distributions.

Technology Category

Reasoning under Uncertainty: Probabilistic ProgrammingMachine Learning: Probabilistic Circuits and Graphical ModelsKnowledge Representation and Reasoning: Logic Programming

Application Category

Graph Algorithms and Modeling for the Web: Algorithms and analysis for incomplete, noisy, or partially observed Web-related graphsSecurity and Privacy: Large-scale security measurementsSearch and Retrieval-Augmented AI: Web evaluation methodologies and metrics
๐Ÿ“ Abstract
We lay out novel foundations for the computer-aided verification of guaranteed bounds on expected outcomes of imperative probabilistic programs featuring (i) general loops, (ii) continuous distributions, and (iii) conditioning. To handle loops we rely on user-provided quantitative invariants, as is well established. However, in the realm of continuous distributions, invariant verification becomes extremely challenging due to the presence of integrals in expectation-based program semantics. Our key idea is to soundly under- or over-approximate these integrals via Riemann sums. We show that this approach enables the SMT-based invariant verification for programs with a fairly general control flow structure. On the theoretical side, we prove convergence of our Riemann approximations, and establish coRE-completeness of the central verification problems. On the practical side, we show that our approach enables to use existing automated verifiers targeting discrete probabilistic programs for the verification of programs involving continuous sampling. Towards this end, we implement our approach in the recent quantitative verification infrastructure Caesar by encoding Riemann sums in its intermediate verification language. We present several promising case studies.
Problem

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

Develops verification for continuous probabilistic programs.
Uses Riemann sums to approximate integrals.
Enables SMT-based invariant verification.
Innovation

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

Riemann sums approximation
SMT-based invariant verification
Caesar verification infrastructure
๐Ÿ”Ž Similar Papers
No similar papers found.
๐Ÿ’ผ Related Jobs
No related jobs found.
K
Kevin Batz
RWTH Aachen University, Germany and University College London, United Kingdom
J
J. Katoen
RWTH Aachen University, Germany
F
Francesca Randone
University of Trieste, Italy
T
Tobias Winkler
RWTH Aachen University, Germany