AFTD Auto-Formalizing Theoretical Domains

CommunicationComplexity.densityPositiveIntegral_eq_half_densityAbsIntegral_of_ac

theoremverifiedimported Lean

Positive part equals half the total variation of the density. Let $\mu$ and $\nu$ be probability measures on a measurable space $\Omega$, with $\mu$ absolutely continuous with respect to $\nu$, and write $\frac{d\mu}{d\nu}$ for the Radon–Nikodym density of $\mu$ with respect to $\nu$. Then the excess mass of the density above $1$, integrated over the region where the density is at least $1$, equals half the $L^1(\nu)$-distance of the density from $1$: \[ \int_{\{x\,:\,\frac{d\mu}{d\nu}(x)\,\ge\,1\}} \left(\frac{d\mu}{d\nu}(x)-1\right)\,d\nu(x) \;=\; \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.densityPositiveIntegral_eq_half_densityAbsIntegral_of_ac
    {Ω : Type*} [MeasurableSpace Ω]
    (μ ν : Measure Ω) [IsProbabilityMeasure μ] [IsProbabilityMeasure ν]
    (h_ac : μ ≪ ν) :
    densityPositiveIntegral μ ν = (1 / 2 : ℝ) * densityAbsIntegral μ ν
Source
TCSlib, `CommunicationComplexity.densityPositiveIntegral_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 8
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 positive part of the centred density is half its `L¹` norm: `∫_{dμ/dν ≥ 1} (dμ/dν − 1) dν = ½ ∫ |dμ/dν − 1| dν`. -/theorem CommunicationComplexity.densityPositiveIntegral_eq_half_densityAbsIntegral_of_ac    {Ω : Type*} [MeasurableSpace Ω]    (μ ν : Measure Ω) [IsProbabilityMeasure μ] [IsProbabilityMeasure ν]    (h_ac : μ ≪ ν) :    densityPositiveIntegral μ ν = (1 / 2 : ℝ) * densityAbsIntegral μ ν := by  have h :=    integral_nonneg_part_eq_half_integral_abs_of_integral_eq_zero      (μ := ν) (g := fun x => rnDensity μ ν x - 1)      ((measurable_rnDensity μ ν).sub measurable_const)      (integrable_rnDensity_sub_one μ ν)      (integral_rnDensity_sub_one_eq_zero_of_ac μ ν h_ac)  simpa [densityPositiveIntegral, densityAbsIntegral, densityPositiveSet, sub_nonneg] using h
See it in the graphDiscuss this resultChallenge it