Events of optional computations #
Native successful-output semantics turns a sampled guard into a condition on the sampled value. The intermediate measurable space is internal to the observation law. Wrapped computations are observed through their present values, and sequencing a lossless prefix with continuations that succeed on its reachable outputs preserves probability-one events.
Successful events are the events of present values in the underlying run.
Lifting into the optional monad preserves the probability of an observed event.
A guard contributes its condition to the observed event after a lifted draw.
A constant map after a sampled guard contributes its guard to the observed event.
A lifted draw followed by a guard puts its successful event mass at the unit output.
A monadic lift followed by a guard puts its successful event mass at the unit output.
A successful event of a wrapped computation is the event of present values that satisfy it in the underlying computation.
Reachable outputs of a lifted computation are reachable in the computation.
A wrapped bind is a lifted prefix followed by the wrapped continuations.
A lossless prefix followed by continuations that each satisfy an event with probability one on the prefix's reachable outputs satisfies the event with probability one.
An upper bound on the wrapped continuation event over reachable prefixes.