A lambda-calculus foundation for universal probabilistic programming
Open Access
- 4 September 2016
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 51 (9) , 33-46
Abstract
We develop the operational semantics of an untyped probabilistic λ-calculus with continuous distributions, and both hard and soft constraints,as a foundation for universal probabilistic programming languages such as Church, Anglican, and Venture. Our first contribution is to adapt the classic operational semantics of λ-calculus to a continuous setting via creating a measure space on terms and defining step-indexed approximations. We prove equivalence of big-step and small-step formulations of this distribution-based semantics . To move closer to inference techniques, we also define the sampling-based semantics of a term as a function from a trace of random samples to a value. We show that the distribution induced by integration over the space of traces equals the distribution-based semantics. Our second contribution is to formalize the implementation technique of trace Markov chain Monte Carlo (MCMC) for our calculus and to show its correctness. A key step is defining sufficient conditions for the distribution induced by trace MCMC to converge to the distribution-based semantics. To the best of our knowledge, this is the first rigorous correctness proof for trace MCMC for a higher-order functional language, or for a language with soft constraints.Keywords
Funding Information
- Agence Nationale de la Recherche
- Vetenskapsrådet (2013-4853)
- Microsoft Research
This publication has 19 references indexed in Scilit:
- Practical probabilistic programming with monads2015
- Probabilistic programming2014
- Probabilistic Abstract Interpretation2012
- Probabilistic coherence spaces as a model of higher-order probabilistic computationInformation and Computation, 2011
- A probabilistic language based on sampling functionsACM Transactions on Programming Languages and Systems, 2008
- Probabilistic game semanticsACM Transactions on Computational Logic, 2002
- The Category of Markov KernelsElectronic Notes in Theoretical Computer Science, 1999
- Markov Chains for Exploring Posterior DistributionsThe Annals of Statistics, 1994
- Probabilistic encryptionJournal of Computer and System Sciences, 1984
- Monte Carlo sampling methods using Markov chains and their applicationsBiometrika, 1970