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

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Batz, Kevin, Katoen, Joost-Pieter, Randone, Francesca, Winkler, Tobias
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866913708388646912
author Batz, Kevin
Katoen, Joost-Pieter
Randone, Francesca
Winkler, Tobias
author_facet Batz, Kevin
Katoen, Joost-Pieter
Randone, Francesca
Winkler, Tobias
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2502_19388
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Foundations for Deductive Verification of Continuous Probabilistic Programs: From Lebesgue to Riemann and Back
Batz, Kevin
Katoen, Joost-Pieter
Randone, Francesca
Winkler, Tobias
Logic in Computer Science
Programming Languages
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.
title Foundations for Deductive Verification of Continuous Probabilistic Programs: From Lebesgue to Riemann and Back
topic Logic in Computer Science
Programming Languages
url https://arxiv.org/abs/2502.19388