Contextual Equivalence for a Probabilistic Language with Continuous Random Variables and Recursion
Mitchell Wand, Ryan Culpepper, Theophilos Giannakopoulos, Andrew Cobb

TL;DR
This paper develops a complete reasoning principle for contextual equivalence in a probabilistic language with continuous variables, recursion, and scoring, enabling formal verification of program transformations.
Contribution
It introduces a novel characterization of contextual equivalence for a probabilistic language with continuous variables and recursion, including proofs of equivalence schemas.
Findings
Reordering random draws preserves contextual equivalence.
Proved equivalence of complex probabilistic program transformations.
Demonstrated applicability to lambda calculus and probabilistic programming facts.
Abstract
We present a complete reasoning principle for contextual equivalence in an untyped probabilistic language. The language includes continuous (real-valued) random variables, conditionals, and scoring. It also includes recursion, since the standard call-by-value fixpoint combinator is expressible. We demonstrate the usability of our characterization by proving several equivalence schemas, including familiar facts from lambda calculus as well as results specific to probabilistic programming. In particular, we use it to prove that reordering the random draws in a probabilistic program preserves contextual equivalence. This allows us to show, for example, that (let x = in let y = in ) is equivalent to (let y = in let x = in ) (provided does not occur free in and does not occur free in ) despite the fact that and may have…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsLogic, Reasoning, and Knowledge · Bayesian Modeling and Causal Inference · Decision-Making and Behavioral Economics
