The distinguishing gap of an event is controlled by the disagreement
ProvedUniversalRedundancy.eventGap_le_disagreeProbaether-catalogmachinelearning
The distinguishing gap of an event is controlled by the disagreement probability of any coupling: this is the coupling bound in its raw form.
theorem UniversalRedundancy.eventGap_le_disagreeProb{p q : X → ℝ} {c : X → X → ℝ} (hc : IsCoupling p q c)
(A : Finset X) : eventGap p q A ≤ disagreeProb c := by sorry
Formalization Note Transplanted verbatim from the Aether Catalog source MachineLearning/TotalVariation/Coupling.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.
Preamble
-- Thm stub generated from MachineLearning/TotalVariation/Coupling.lean
import Mathlib
import Definitions.Def_MachineLearning_TotalVariation_Coupling
import Definitions.Def_MachineLearning_TotalVariation_EventSup
/-
Copyright (c) 2025. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
# The coupling (Strassen) characterization of total variation
Third leg of the sharp-normalization thread. `EventSup` characterized
`d_TV(p, q) = max_A (p(A) − q(A))`
as a supremum over *events*, and `Testing` cashed that in for hypothesis
testing. This file proves the dual, *infimum*, characterization:
`d_TV(p, q) = min_{couplings c of (p, q)} ℙ_c[X ≠ Y]`.
Both directions are proved:
* every coupling has disagreement probability at least `d_TV`
(`tvDist_le_disagreeProb`), by pushing the optimal *event* of `EventSup`
through the coupling — so the two characterizations are genuinely dual;
* the explicit **maximal coupling**
`c(x, y) = min(p x, q x)·[x = y] + (p x − min)₊ (q y − min)₊ / d_TV`
attains it (`isCoupling_maxCoupling`, `disagreeProb_maxCoupling`).
The two together give `isLeast_disagreeProb`, and the sandwich
`max_A (p(A) − q(A)) = d_TV = min_c ℙ_c[X ≠ Y]` (`max_eventGap_eq_min_disagree`)
— a minimax identity whose two sides are witnessed by explicit optima.
The factor `1/2` is exactly what makes this work: with the `ℓ¹` normalization the
identity would read `min_c ℙ[X ≠ Y] = ‖p − q‖₁/2`, and the naive `ℓ¹` bound would
be off by two.
## Main results
* `IsCoupling`, `disagreeProb` — the coupling framework;
* `tvDist_le_disagreeProb` — the easy (but event-driven) direction;
* `isCoupling_maxCoupling`, `disagreeProb_maxCoupling` — the maximal coupling;
* `isLeast_disagreeProb`, `max_eventGap_eq_min_disagree` — the minimax identity;
* `eventGap_le_disagreeProb` — the coupling bound on distinguishing advantage.
## Application keywords
maximal coupling, Strassen's theorem, total variation, transport, minimax,
distinguishing advantage
-/
open Finset
open UniversalRedundancy
variable {X : Type*} [Fintype X] [DecidableEq X]
/-! ## Couplings -/
/-! ## Every coupling dominates the total variation distance -/Formal statement
theorem UniversalRedundancy.eventGap_le_disagreeProb{p q : X → ℝ} {c : X → X → ℝ} (hc : IsCoupling p q c)
(A : Finset X) : eventGap p q A ≤ disagreeProb c := by sorrySource