Sheaf Semantics of Probabilistic Programs
Shing Hin Ho, Nicolas Wu, Azalea Raad
Key points
From the paper's conclusion- We prove that our semantics forms a model of the $\nu$-calculus.
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 $\nu$-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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Denotational Semantics for Probabilistic and Concurrent ProgramsACM Transactions on Programming Languages and Systems · 2026
- A Hoare Logic for Continuous-Time Stochastic ProcessesarXiv · 2026
- Type-Directed Discretization of Probabilistic ProgramsProceedings of the ACM on Programming Languages · 2026
- Bayes Rule for Conditioning Probabilistic ProgramsarXiv · 2026
- Fibered Separation Logic: Weakest Preconditions, Universal Constructions, and Local IndependencearXiv · 2026
- Path Abstraction for Markov Reward Models: An Isabelle Formalisation in a Free Monoid ViewarXiv · 2026