Mixtures that agree outside a bad event #
Two randomized continuations that agree on supported inputs outside a bad event induce close
mixtures, with error equal to the actual probability of that event. Neither type must be finite.
The proof specializes the variable-error mixture bound CloseTo.bind_right_tsum to the indicator
of bad.
Main results #
CloseTo.bind_of_eq_on: charge only the probability of inputs where the kernels may differ.
This original application supports cache programming: a memoized query and fresh programming agree when the query point is absent from the current cache.
theorem Cslib.Interactive.CloseTo.bind_of_eq_on {α β : Type} (μ : PMF α) (f g : α → PMF β) (bad : Set α) (h : ∀ a ∈ μ.support, a ∉ bad → f a = g a) :
Mixtures of kernels that agree on supported inputs outside bad are close within the
probability of bad. The conclusion controls all output events, including on infinite types.