Reference. A convenient category for higher-order probability theory
Cite
Cited by (15)
Categorical Semantics of Probabilistic Symbolic Execution li-2026-categorical
Verifying Exact Samplers for Continuous Distributions with a Discrete Program Logic demedeiros-2026-verifying
Modelling Recursion and Probabilistic Choice in Guarded Type Theory stassen-2025-modelling
Denotational Foundations for Expected Cost Analysis amorim_2025_oopsla
Reasoning about the cost of executing programs is one of the fundamental questions in computer science. In the context of programming with probabilities, however, the notion of cost stops being deterministic, since it depends on the probabilistic samples made throughout the execution of the program. This interaction is further complicated by the non-trivial interaction between cost, recursion and evaluation strategy.
In this work we introduce cert: a Call-By-Push-Value (CBPV) metalanguage for reasoning about probabilistic cost. We equip cert with an operational cost semantics and define two denotational semantics — a cost semantics and an expected-cost semantics. We prove operational soundness and adequacy for the denotational cost semantics and a cost adequacy theorem for the expected-cost semantics.
We formally relate both denotational semantics by stating and proving a novel effect simulation property for CBPV. We also prove a canonicity property of the expected-cost semantics as the minimal semantics for expected cost and probability by building on recent advances on monadic probabilistic semantics.
Finally, we illustrate the expressivity of cert and the expected-cost semantics by presenting case-studies ranging from randomized algorithms to stochastic processes and show how our semantics capture their intended expected cost.
Classical Linear Logic in Perfect Banach Lattices amorim_witzman_kozen_2025
Fundamental Components of Deep Learning: A category-theoretic approach gavranovicFundamentalComponentsDeep
Lilac: A Modal Separation Logic for Conditional Probability li-2023-lilac
A Higher-Order Language for Markov Kernels and Linear Operators amorim_2023_fossacs
Much work has been done to give semantics to probabilistic programming languages. In recent years, most of the semantics used to reason about probabilistic programs fall in two categories: semantics based on Markov kernels and semantics based on linear operators.
Both styles of semantics have found numerous applications in reasoning about probabilistic programs, but they each have their strengths and weaknesses. Though it is believed that there is a connection between them there are no languages that can handle both styles of programming.
In this work we address these questions by defining a two-level calculus and its categorical semantics which makes it possible to program with both kinds of semantics. From the logical side of things we see this language as an alternative resource interpretation of linear logic, where the resource being kept track of is sampling instead of variable use.
Fully abstract models for effectful λ-calculi via category-theoretic logical relations kammar-2022-fully
Distribution Theoretic Semantics for Non-Smooth Differentiable Programming amorim_lam_2022
With the wide spread of deep learning and gradient descent inspired optimization algorithms, differentiable programming has gained traction. Nowadays it has found applications in many different areas as well, such as scientific computing, robotics, computer graphics and others. One of its notoriously difficult problems consists in interpreting programs that are not differentiable everywhere.
In this work we define , a core calculus for non-smooth differentiable programs and define its semantics using concepts from distribution theory, a well-established area of functional analysis. We also show how presents better equational properties than other existing semantics and use our semantics to reason about a simplified ray tracing algorithm. Further, we relate our semantics to existing differentiable languages by providing translations to and from other existing differentiable semantic models. Finally, we provide a proof-of-concept implementation in PyTorch of the novel constructions in this paper.
Universal Semantics for the Stochastic Lambda-Calculus amorim_etal_2021_lics
A domain theory for statistical probabilistic programming vakar-2019-a
Coinduction in flow: the later modality in fibrations basold_2019
This paper provides a construction on fibrations that gives access to the so-called later modality, which allows for a controlled form of recursion in coinductive proofs and programs. The construction is essentially a generalisation of the topos of trees from the codomain fibration over sets to arbitrary fibrations. As a result, we obtain a framework that allows the addition of a recursion principle for coinduction to rather arbitrary logics and programming languages. The main interest of using recursion is that it allows one to write proofs and programs in a goal-oriented fashion. This enables easily understandable coinductive proofs and programs, and fosters automatic proof search.
Part of the framework are also various results that enable a wide range of applications: transportation of (co)limits, exponentials, fibred adjunctions and first-order connectives from the initial fibration to the one constructed through the framework. This means that the framework extends any first-order logic with the later modality. Moreover, we obtain soundness and completeness results, and can use up-to techniques as proof rules. Since the construction works for a wide variety of fibrations, we will be able to use the recursion offered by the later modality in various context. For instance, we will show how recursive proofs can be obtained for arbitrary (syntactic) first-order logics, for coinductive set-predicates, and for the probabilistic modal mu-calculus. Finally, we use the same construction to obtain a novel language for probabilistic productive coinductive programming. These examples demonstrate the flexibility of the framework and its accompanying results.
Denotational validation of higher-order Bayesian inference scibior-2017-denotational
Cites 37 works (1 here)
With notes (1)
Semantics for probabilistic programming: higher-order functions, continuous distributions, and soft constraints staton-2016-semantics
External (36)
- Contextual Equivalence for Probabilistic Programs with Continuous Random Variables and Scoring (2017)
- An application of computable distributions to the semantics of probabilistic programs: part 2 (2017)
- A Monad for Randomized Algorithms (2016)
- Computability in basic quantum mechanics (2016)
- A lambda-calculus foundation for universal probabilistic programming (2015)
- Stochastic λ-calculi: An extended abstract (2014)
- A new approach to probabilistic programming inference (2014)
- Probabilistic coherence spaces are fully abstract for probabilistic PCF (2014)
- Anatomy of a domain of continuous random variables I (2014)
- Venture: a higher-order probabilistic programming platform with programmable inference (2014)
- A Constructive Model of Uniform Continuity (2013)
- Exchangeable random arrays (2013)
- ωQRB-domains and the probabilistic powerdomain (2010)
- Semi-decidability of May, Must and Probabilistic Testing in a Higher-type Setting (2009)
- Computable de Finetti measures (2009)
- Church: a language for generative models (2008)
- Convenient Categories of Smooth Spaces (2008)
- Some notes on standard Borel and related spaces (2008)
- On finiteness spaces and extensional presheaves over the Lawvere theory of polynomials (2007)
- A Convenient Category of Domains (2007)
- 10.1007/978-1-4757-4015-8 (2002)
- Comparing models of higher type computation (1999)
- The troublesome probabilistic powerdomain (1997)
- Notions of Computation and Monads (1991)
- A probabilistic powerdomain of evaluations (1989)
- Exchangeable processes need not be mixtures of independent, identically distributed random variables (1979)
- On a Topological Topos (1979)
- Definitional Interpreters for Higher-Order Programming Languages (1972)
- A convenient category of topological spaces (1967)
- Borel structures for function spaces (1961)
- Symmetric measures on Cartesian products (1955)
- La prévision : ses lois logiques, ses sources subjectives (1937)
- 10.1215/s0012-7094-63-03001-1
- 10.1016/0022-4049(72)90019-9
- 10.1007/bfb0061821
- 10.1007/bfb0092872