Reference. A domain theory for statistical probabilistic programming
Cite
Cited by (7)
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.
The Compositional Essence of Effectful Cost Analyses: Categorical Foundations and Fibered Logical Relations amorim_effcost
Universal Semantics for the Stochastic Lambda-Calculus amorim_etal_2021_lics
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.
Cites 45 works (5 here)
With notes (5)
Denotational validation of higher-order Bayesian inference scibior-2017-denotational
A convenient category for higher-order probability theory heunen-2017-a
Semantics for probabilistic programming: higher-order functions, continuous distributions, and soft constraints staton-2016-semantics
Algebraic foundations for effect-dependent optimisations kammar-2012-algebraic
Axiomatic Domain Theory in Categories of Partial Maps fiore-1996-axiomatic
External (40)
- Boolean-Valued Semantics for the Stochastic λ-Calculus (2018)
- Factorisation systems for logical relations and monadic lifting in type-and-effect system semantics (2018)
- On S-Finite Measures and Kernels (2018)
- An application of computable distributions to the semantics of probabilistic programs (2018)
- Measurable cones and stable, measurable functions: a model for probabilistic higher-order programming (2017)
- Commutative Semantics for Probabilistic Programming (2017)
- Random Measures, Theory and Applications (2017)
- A Monad for Randomized Algorithms (2016)
- A lambda-calculus foundation for universal probabilistic programming (2016)
- Domains and random variables (2016)
- Probabilistic Inference by Program Transformation in Hakaru (System Description) (2016)
- Reasoning about Recursive Probabilistic Programs (2016)
- Exact Bayesian inference by symbolic disintegration (2016)
- Design and Implementation of Probabilistic Programming Languages (2014)
- Venture: a higher-order probabilistic programming platform with programmable inference (2014)
- A new approach to probabilistic programming inference (2014)
- Commutative monads as a theory of distributions (2012)
- Noncomputable Conditional Distributions (2011)
- Continuous Random Variables (2011)
- Lightweight implementations of probabilistic programming languages via transformational compilation (2011)
- Predicate transformers for extended probability and non-determinism (2009)
- Embedded Probabilistic Programming (2009)
- Church: a language for generative models (2008)
- A Convenient Category of Domains (2007)
- Call-By-Push-Value: A Functional/Imperative Synthesis (2004)
- Foundations of Modern Probability (2nd ed.) (2002)
- The Troublesome Probabilistic Powerdomain (1998)
- Relational Properties of Domains (1996)
- Syntactic considerations on recursive types (1996)
- Classical Descriptive Set Theory (1995)
- Locally Presentable and Accessible Categories (1994)
- An axiomatisation of computationally adequate domain theoretic models of FPC (1994)
- A type-theoretical alternative to ISWIM, CUCH, OWHY (1993)
- A probabilistic powerdomain of evaluations (1989)
- Computational lambda-calculus and monads (1989)
- Probabilistic non-determinism (1989)
- The Category-Theoretic Solution of Recursive Domain Equations (1982)
- Valuations on continuous lattices (1982)
- Cpo's of measures for nondeterminism (1980)
- LCF considered as a programming language (1977)