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.CommunicationComplexity.TVDistance.exists_event_abs_measureReal_sub_eq_half_totalVariation← CommunicationComplexity.TVDistance.exists_event_abs_measureReal_sub_eq_half_totalVariation (TCSlib/CommunicationComplexity/NewmanTheorem/TVDistance.lean:214): verbatim
- Verified
- 07 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- CommunicationComplexity.TVDistance.exists_event_abs_signedMeasureDiff_eq_half_totalVariationAttainment of half the total variation by a single event. Let $\mu$ and $\nu$ be probability measures on a measurable space $\Omega$, and…
- CommunicationComplexity.signedMeasureDiffGiven two probability measures $\mu$ and $\nu$ on a measurable space $\Omega$, the signed measure difference $\mu - \nu$ is the…
- Used by 1
- CommunicationComplexity.TVDistance.tvDistance_eq_tvDistanceSupEquivalence of the two definitions of total variation distance. Let $\mu$ and $\nu$ be probability measures on a measurable space…
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
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