EXCHANGEABLE RANDOM PRIMITIVES

Exchangeable random primitives (XRPs) are a crucial, but undocumented, class of constructs in the probabilistic programming language Church. We give a rigorous definition for the samplers of XRPs, and give a representation theorem characterizing their essential form and conditional independence structure. We place semantic questions surrounding exchangeable random primitives in the context of a line of research in programming languages involving purity and referential transparency.