Proposition 4.2 -- total variation as half the distance
ProvedMarkovMixing.tv_eq_half_l1Let and be probability distributions on a finite state space , and let
denote their total variation distance — the largest discrepancy the two distributions assign to a single event.
The theorem gives the two standard closed forms for this distance (Proposition 4.2 and Remark 4.3 of Levin–Peres–Wilmer). First, it is half the distance between the mass functions:
Second, it equals the total excess of over on the set where dominates:
i.e. the maximum in the definition is attained at the event .
import Definitions.Def_mm_mixing
namespace MarkovMixing
/-- **Proposition 4.2 and Remark 4.3** (LPW): the total variation distance is
half the `ℓ¹` distance, and equals the excess of `μ` over `ν` on the set
where `μ ≥ ν`. -/
theorem tv_eq_half_l1 {V : Type*} [Fintype V] [DecidableEq V]
(μ ν : V → ℝ) (hμ : IsDist μ) (hν : IsDist ν) :
tvDist μ ν = 2⁻¹ * ∑ x, |μ x - ν x| ∧
tvDist μ ν = ∑ x ∈ Finset.univ.filter (fun x : V => ν x ≤ μ x), (μ x - ν x) := by
sorry
end MarkovMixing
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Let be an arbitrary finite type (with decidable equality). Let each be a distribution: all values are nonnegative and each sums to one, . (If is empty these hypotheses are unsatisfiable, since empty sums are , and the theorem holds vacuously.) Define the total variation distance here as
the supremum over all subsets of (finite subsets of , which, being finite, means all subsets, including and itself) of the absolute difference of the two masses assigned to ; since is finite this supremum ranges over a nonempty finite set of reals (the empty set contributes the value ), so it is a genuine maximum. Note the absolute value: no restriction such as is imposed inside the supremum. The theorem asserts the conjunction of two identities:
- equals half the distance:
- equals the sum of the (signed) differences over the set where dominates:
where the sum runs over exactly those satisfying the non-strict inequality (points with are included, contributing ), and the summand is the plain difference , not its absolute value.
Confirmed by the mission captain (proposal self-audit).