AFTD Auto-Formalizing Theoretical Domains

CommunicationComplexity.tvDistance_eq_half_densityAbsIntegral_of_ac

theoremverifiedimported Lean

Total variation distance via the density's L¹-deviation from one. Let $\mu$ and $\nu$ be probability measures on a measurable space $\Omega$, and suppose that $\mu$ is absolutely continuous with respect to $\nu$. Then the total variation distance between $\mu$ and $\nu$ equals one half of the density absolute integral, that is, \[ \mathrm{TV}(\mu,\nu) = \frac{1}{2}\int_{\Omega} \left| \frac{d\mu}{d\nu}(x) - 1 \right| \, d\nu(x). \]

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_half_densityAbsIntegral_of_ac
    {Ω : Type*} [MeasurableSpace Ω]
    (μ ν : Measure Ω) [IsProbabilityMeasure μ] [IsProbabilityMeasure ν]
    (h_ac : μ ≪ ν) :
    tvDistance μ ν = (1 / 2 : ℝ) * densityAbsIntegral μ ν
Source
TCSlib, `CommunicationComplexity.tvDistance_eq_half_densityAbsIntegral_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 is half the `L¹` distance of the density from `1`: `TV(μ, ν) = ½ ∫ |dμ/dν − 1| dν`. -/theorem CommunicationComplexity.tvDistance_eq_half_densityAbsIntegral_of_ac    {Ω : Type*} [MeasurableSpace Ω]    (μ ν : Measure Ω) [IsProbabilityMeasure μ] [IsProbabilityMeasure ν]    (h_ac : μ ≪ ν) :    tvDistance μ ν = (1 / 2 : ℝ) * densityAbsIntegral μ ν := by  rw [tvDistance_eq_densityPositiveIntegral_of_ac μ ν h_ac,    densityPositiveIntegral_eq_half_densityAbsIntegral_of_ac μ ν h_ac]
See it in the graphDiscuss this resultChallenge it