,
Ohad Kammar
,
Rasmus Ejlers Møgelberg
Creative Commons Attribution 4.0 International license
We describe semantic structures relevant for interpreting dependent types for statistical and probabilistic modelling. Our development extends the theory of quasi-Borel spaces (qbses) of Staton et. al, which support simply-typed, higher-order probability theory with continuous distributions. It is well-known that qbses can interpret a dependent-type theory supporting dependent function-spaces through the codomain fibration. We define an equivalent split fibration based on the family fibration, which we call quasi-Borel families (qbfs), characterise its structure, equip it with fibred monads of measures and probability, and use them to develop dependently-typed probability theory. We characterise the structure of the qbf fibration that is relevant for dependently-typed probability theory in elementary form. Our characterisations include: context extension, dependent pairs, dependent functions, extensional identity types, fibred products and coproducts, subspaces, a universe of propositions, and straightforward internalisation and externalisation principles for discrete spaces. We use these concepts to define fibred distribution and probability monads, the semantic structure needed to interpret probability distributions under a dependent context. We show that this structure satisfies a fibred version of Kock’s synthetic measure theory. We also use these concepts to develop a qbs counterpart to Kolmogorov’s conditional expectation. Our main result is a version of the conditional expectation that, under standard regularity assumptions, is measurable in both the random variables we are conditioning, and the observation map we are conditioning by.
@InProceedings{ahman_et_al:LIPIcs.LICS.2026.4,
author = {Ahman, Danel and Kammar, Ohad and M{\o}gelberg, Rasmus Ejlers},
title = {{A Convenient Fibration for Dependently-Typed Probability Theory}},
booktitle = {41st Annual Symposium on Logic in Computer Science (LICS 2026)},
pages = {4:1--4:27},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-434-5},
ISSN = {1868-8969},
year = {2026},
volume = {380},
editor = {Faggian, Claudia and Katoen, Joost-Pieter},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.LICS.2026.4},
URN = {urn:nbn:de:0030-drops-267915},
doi = {10.4230/LIPIcs.LICS.2026.4},
annote = {Keywords: probability theory, quasi-Borel space, Grothendieck fibration, fibred monad, conditional expectation, measure theory, random variables, dependent types, quasitopos, probabilistic programming, denotational semantics, synthetic measure theory}
}