Measure-valued computation laws #
The Giry composition laws transport measure-level independence to computation syntax. The general interchange theorem requires joint measurability; the three-draw law specializes to discrete intermediate results and leaves the final result space arbitrary. Uniform finite draws can be reindexed by a bijection before an arbitrary continuation.
Reindexing a uniform draw by a bijection does not change the measure of any subsequent computation. The uniformity hypothesis can come from either native sampling or a compatibility certificate.
A bijection transports a uniform draw to a possibly different uniformly sampled type before an arbitrary continuation.
Independent computations commute under a jointly measurable denoted continuation.
Independent countable draws with measurable singletons commute before any continuation. The selected source spaces make joint measurability automatic.
Move the third independent discrete draw to the front of a computation.
Compare event masses after a common draw using an almost-everywhere continuation bound.
A lower bound on continuation event masses holds after a lossless common draw.
For a discrete common draw, a pointwise continuation bound suffices.
Charge a bad intermediate event separately from uniformly bounded good continuations.
Charge a bad intermediate event and integrate an almost-everywhere continuation bound.
Compare two denoted continuations outside a measurable disagreement set.
Reachability and measurable observations #
A measurable predicate holding on every possible output holds almost everywhere under the successful-output measure. Core attachment supplies a subtype of possible outputs, and its measurable projection recovers the original computation.
A measurable event containing no possible output has zero successful mass.