Sheaf Semantics of Probabilistic Programs
Abstract
Finding denotational models of probabilistic languages that support sampling from continuous distributions is difficult: the existence of continuous distributions means that measure-theoretic objects are needed to define the semantics. A challenging task on top of this is logical reasoning with respect to the semantic model: in the case of probabilistic programs, the desired properties to reason about include the distributions, expected value and the probabilistic (in)dependence of outputs. This paper introduces a monadic semantics for higher-order probabilistic programs with continuous distributions based on Simpson's theory of probability sheaves and the internal logic of atomic sheaves. We prove that our semantics forms a model of the -calculus. Furthermore, using the well-behavedness of the semantic domain and the internal logic of the topos, we derive the first higher-order probabilistic Hoare logic with rigorous treatment of continuous random variables, higher-order functions, and independence.
Create a lesson
Metadata
- Categories
- cs.LO, cs.PL
- Comments
- Accepted to POPL 2027
Related papers
Optimal Probabilistic Answer Set Programming: Complexity and Implementations
Shared title terminologycs.LODamiano Azzolini, Giuseppe Mazzotta, Francesco Ricca et al.
CrossCheck I: Cost Bounds of Imperative Programs as Constrained Optimization, with a Sound Cost Logic and a Verified Certificate Checker
Shared title terminologycs.LOLuca Dall'Olio
Probabilistic Timed Automata with Multiple Sure and Threshold Objectives
Shared title terminologycs.LOJeremy Sproston
On the semantics of conditional branching
Shared title terminologycs.LOFredrik Dahlqvist
Probabilistic Simple Types for Almost-Sure Termination (Extended Version)
Shared title terminologycs.LOUgo Dal Lago, Willem Heijltjes
Sound Automatic Lock Placement for Concurrent Programs with Pointers
Shared title terminologycs.LONicolas Waldburger, Florian Faissole, Ryo Okabe et al.