AFTD Auto-Formalizing Theoretical Domains

CommunicationComplexity.TVDistance.exists_event_abs_measureReal_sub_eq_half_totalVariation

theoremverifiedimported Lean

Attainment of the total-variation distance. Let $\mu$ and $\nu$ be probability measures on a measurable space $\Omega$, and let $\mu - \nu$ denote their signed measure difference, with total variation measure $\abs{\mu-\nu}$. Then there exists a measurable set $S \subseteq \Omega$ such that \[ \abs{\mu(S) - \nu(S)} = \tfrac{1}{2}\,\abs{\mu-\nu}(\Omega). \]

Statement

set_option relaxedAutoImplicit false in
set_option autoImplicit false in
open MeasureTheory in
lemma CommunicationComplexity.TVDistance.exists_event_abs_measureReal_sub_eq_half_totalVariation
    {Ω : Type*} [MeasurableSpace Ω]
    (μ ν : Measure Ω) [IsProbabilityMeasure μ] [IsProbabilityMeasure ν] :
    ∃ S : {S : Set Ω // MeasurableSet S},
      |μ.real (S : Set Ω) - ν.real (S : Set Ω)| =
        (1 / 2 : ℝ) * (signedMeasureDiff μ ν).totalVariation.real Set.univ
Source
TCSlib, `CommunicationComplexity.TVDistance.exists_event_abs_measureReal_sub_eq_half_totalVariation`
Lean proof
By Lucy Horowitz, Timothe Kasriel, Mihir Singhal, from github.com/Shilun-Allan-Li/tcslib at c8a02591b1e5 (Copyright (c) 2026 Lucy Horowitz, Timothe Kasriel, and Mihir Singhal. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.25.0.
Verified
07 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 2
Used by 1

Lean source view module on GitHub

set_option relaxedAutoImplicit false inset_option autoImplicit false inopen MeasureTheory in/-- Some measurable event `S` satisfies `|μ(S) − ν(S)| = ½ ‖μ − ν‖`. -/lemma CommunicationComplexity.TVDistance.exists_event_abs_measureReal_sub_eq_half_totalVariation    {Ω : Type*} [MeasurableSpace Ω]    (μ ν : Measure Ω) [IsProbabilityMeasure μ] [IsProbabilityMeasure ν] :    ∃ S : {S : Set Ω // MeasurableSet S},      |μ.real (S : Set Ω) - ν.real (S : Set Ω)| =        (1 / 2 : ℝ) * (signedMeasureDiff μ ν).totalVariation.real Set.univ := by  obtain ⟨S, hS⟩ := exists_event_abs_signedMeasureDiff_eq_half_totalVariation μ ν  refine ⟨S, ?_⟩  rw [← Measure.toSignedMeasure_sub_apply S.property]  simpa [signedMeasureDiff] using hS
See it in the graphDiscuss this resultChallenge it