Total Variation Distance for SPMFs and Monadic Computations #
This file extends the TV distance from PMF (defined in
ToMathlib.ProbabilityTheory.TotalVariation) to:
SPMF.tvDist— on sub-probability mass functions (viatoPMF)tvDist— on any monad withHasEvalSPMF(viaevalDist)
SPMF.tvDist #
Monadic tvDist #
@[simp]
theorem
tvDist_map_le
{m : Type u → Type v}
[Monad m]
[HasEvalSPMF m]
{α : Type u}
[LawfulMonad m]
{β : Type u}
(f : α → β)
(mx my : m α)
:
theorem
tvDist_bind_right_le
{m : Type u → Type v}
[Monad m]
[HasEvalSPMF m]
{α : Type u}
[LawfulMonad m]
{β : Type u}
(f : α → m β)
(mx my : m α)
: