Documentation

CslibFrontier.Languages.Probabilistic.Norm

Normalizing laws of probabilistic programs #

Tags the lemmas of the simp set pmf_norm. simp only [pmf_norm] turns the law ProbComp.eval of a program written with do notation into a normal form of PMF.bind, PMF.pure and PMF.map, the shape that the support and probability lemmas of PMF expect:

It is a curated set for non-terminal simp only calls: later steps can rely on the normal form, which changes only when this list does.