Conditional branches under measure semantics #
A proposition-valued observation selects between two computations. The resulting measure is the sum of the branch measures weighted by the selector's successful outcome masses. Discarded source values need no measurable space, and failure is kept separate from either branch.
An impossible final observation has zero mass, including after a failed computation.
Binding a propositional selector gives the two branch measures with their actual masses.
An observation's negation is the false mass of the same propositional selector.
An event and its negation partition the selector's successful mass, including lossy draws.
A conditional continuation is a mixture weighted by the observed predicate, without a measurable space on discarded source values.
Measurable selector measures and branch measures give a measurable conditional family.
The family can be bundled by evalDistKernel; discarded source values need no measurable space.
Lossless branches selected by a lossless observation give a lossless computation. The selected output space may be continuous, and the discarded source needs no measurable space.
The event probability of a conditional continuation is the weighted sum of its two branch event probabilities. Each weight retains successful mass.
A continuation event that is constant on an observed condition and zero otherwise factors through that condition's probability. The reference event may have a different output type.