AFTD Auto-Formalizing Theoretical Domains

CommunicationComplexity.tvDistance_eq_densityPositiveIntegral_of_ac

theoremverifiedimported Lean

Total variation distance as an integral of density excess. Let $\mu$ and $\nu$ be probability measures on a measurable space $\Omega$, and suppose that $\mu$ is absolutely continuous with respect to $\nu$. Write $\frac{d\mu}{d\nu}$ for the (real-valued) Radon–Nikodym derivative of $\mu$ with respect to $\nu$. Then the total variation distance between $\mu$ and $\nu$ equals the excess mass of $\mu$ over $\nu$ on the region where $\mu$ locally dominates $\nu$: \[ \tfrac{1}{2}\,\norm{\mu - \nu}_{\mathrm{TV}} = \int_{\left\{\,x \in \Omega \;:\; \frac{d\mu}{d\nu}(x) \ge 1\,\right\}} \left(\frac{d\mu}{d\nu}(x) - 1\right)\, d\nu. \]

Statement

set_option relaxedAutoImplicit false in
set_option autoImplicit false in
open MeasureTheory in
open ProbabilityTheory in
open scoped ENNReal in
theorem CommunicationComplexity.tvDistance_eq_densityPositiveIntegral_of_ac
    {Ω : Type*} [MeasurableSpace Ω]
    (μ ν : Measure Ω) [IsProbabilityMeasure μ] [IsProbabilityMeasure ν]
    (h_ac : μ ≪ ν) :
    tvDistance μ ν = densityPositiveIntegral μ ν
Source
TCSlib, `CommunicationComplexity.tvDistance_eq_densityPositiveIntegral_of_ac`
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 4
Used by 1

Lean source view module on GitHub

set_option relaxedAutoImplicit false inset_option autoImplicit false inopen MeasureTheory inopen ProbabilityTheory inopen scoped ENNReal in/-- If `μ ≪ ν`, the total variation distance equals the positive part `∫_{dμ/dν ≥ 1} (dμ/dν − 1) dν` of the centred density. -/theorem CommunicationComplexity.tvDistance_eq_densityPositiveIntegral_of_ac    {Ω : Type*} [MeasurableSpace Ω]    (μ ν : Measure Ω) [IsProbabilityMeasure μ] [IsProbabilityMeasure ν]    (h_ac : μ ≪ ν) :    tvDistance μ ν = densityPositiveIntegral μ ν := by  rw [TVDistance.tvDistance_eq_tvDistanceSup,    tvDistanceSup_eq_densityPositiveIntegral_of_ac μ ν h_ac]
See it in the graphDiscuss this resultChallenge it