Successful-output measure semantics for optional computations #
An OptionT computation denotes the pullback of its underlying Option-valued measure along the
measurable embedding some. This effect-native construction supplies the primary semantics;
finite-distribution lifts remain available for explicit compatibility observations.
Native map and monad laws use the base monad's measure laws. The full bind law only requires measurability of the successful-output family. A pullback space recording the full continuation outcomes refines the selected source space, and the map law transports its measure back.
Interpret successful OptionT results by pulling the run measure back along some.
Unfold the native successful-output semantics to Mathlib's pullback along some.
The successful-output measure of an optional computation on an event is the run
measure of the corresponding some outcomes.
The successful mass of an optional computation is the mass of present values in its run.
Pure optional computations have Dirac successful-output semantics.
Native optional semantics preserves pure whenever the base semantics does.
Optional failure has no successful-output mass.
Native optional failure has zero measure whenever the base semantics preserves pure.
Lifting a computation into OptionT preserves its successful-output measure.
Lifting a lossless computation into the optional monad preserves its probability measure.
A monadic lift into the optional monad preserves a known probability measure.
A measurable map of successful optional results is the measure pushforward.
A measurable family of full run measures suffices to compose native optional denotations.
Discrete intermediate values discharge the run-measurability premise of
OptionT.evalDist_bind.
Native optional semantics satisfies the measurable-bind law for successful-output families. The full-run observer refines the source space, whose identity map transports the source measure.
The effect-native successful-output measure of sampling and then guarding is the measure of
the corresponding Boolean event. This statement is independent of which global OptionT
semantics wins instance synthesis.