Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 15: All identities (243)–(251) for TV in terms of relative information, its positive/negative parts, events under P and Q, and spectrum integrals; additionally (252),(253) under mutual absolut

Open
QAlgorithms.Papers.Independent.Intakenext100.P28.tv_representations

by Gohan · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let Z=dP/dQZ=dP/dQZ=dP/dQ, I=log⁡bZI=\log_b ZI=logb​Z, and let FFF be the distribution function of III under PPP, where P≪QP\ll QP≪Q are probability measures. Write x+=max⁡(x,0)x^+=\max(x,0)x+=max(x,0) and x−=max⁡(−x,0)x^-=\max(-x,0)x−=max(−x,0). The full total variation V=∣P−Q∣V=|P-Q|V=∣P−Q∣ has all nine representations

V=EQ∣1−Z∣=2EQ(1−Z)+=2EQ(1−Z)−=2EP(1−Z−1)+=2(P[I>0]−Q[I>0])=2(Q[I≤0]−P[I≤0])=2∫01Q[I<log⁡bt]dt=2∫01P[I>log⁡b(1/t)]dt=2∫1β1−1t−2(1−F(log⁡bt))dt.\begin{aligned}V&=E_Q|1-Z|=2E_Q(1-Z)^+=2E_Q(1-Z)^-=2E_P(1-Z^{-1})^+\\ &=2(P[I>0]-Q[I>0])=2(Q[I\le0]-P[I\le0])\\ &=2\int_0^1Q[I<\log_b t]dt=2\int_0^1P[I>\log_b(1/t)]dt\\ &=2\int_1^{\beta_1^{-1}}t^{-2}(1-F(\log_b t))dt.\end{aligned}V​=EQ​∣1−Z∣=2EQ​(1−Z)+=2EQ​(1−Z)−=2EP​(1−Z−1)+=2(P[I>0]−Q[I>0])=2(Q[I≤0]−P[I≤0])=2∫01​Q[I<logb​t]dt=2∫01​P[I>logb​(1/t)]dt=2∫1β1−1​​t−2(1−F(logb​t))dt.​

If also Q≪PQ\ll PQ≪P, then V=2EP(1−Z−1)−=EP∣1−Z−1∣V=2E_P(1-Z^{-1})^-=E_P|1-Z^{-1}|V=2EP​(1−Z−1)−=EP​∣1−Z−1∣. Inverse densities may be defined arbitrarily on the PPP-null zero-density set. The upper integration endpoint is infinity when β1=0\beta_1=0β1​=0. These are all eleven identities (243)–(253).

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P28
Formal statement
noncomputable section

open MeasureTheory Set Filter

open scoped ENNReal NNReal Topology BigOperators ProbabilityTheory

namespace QAlgorithms.Papers.Independent.Intakenext100.P28

universe u

attribute [local instance] Classical.propDecidable

/-- Theorem 15: All identities (243)–(251) for TV in terms of relative information, its positive/negative parts, events under P and Q, and informationSpectrum integrals; additionally (252),(253) under mutual absolute continuity. Sason--Verdu, arXiv:1508.00335v7, PDF p.35.  -/
theorem tv_representations
    (b : LogBase) {A : Type u} [MeasurableSpace A] (P Q : Measure A)
    [IsProbabilityMeasure P] [IsProbabilityMeasure Q] (hPQ : P ≪ Q) :
    fullVariation P Q = (∫⁻ x, ENNReal.ofReal |1 - rnDensityReal P Q x| ∂Q) ∧
    fullVariation P Q = 2 * (∫⁻ x, ENNReal.ofReal (max (1 - rnDensityReal P Q x) 0) ∂Q) ∧
    fullVariation P Q = 2 * (∫⁻ x, ENNReal.ofReal (max (rnDensityReal P Q x - 1) 0) ∂Q) ∧
    fullVariation P Q = 2 * (∫⁻ x, ENNReal.ofReal (max (1 - (rnDensityReal P Q x)⁻¹) 0) ∂P) ∧
    fullVariation P Q = 2 * (P {x | 0 < relativeInfo b P Q x} - Q {x | 0 < relativeInfo b P Q x}) ∧
    fullVariation P Q = 2 * (Q {x | relativeInfo b P Q x ≤ 0} - P {x | relativeInfo b P Q x ≤ 0}) ∧
    fullVariation P Q = 2 * (∫⁻ t in Ioo (0 : ℝ) 1, Q {x | relativeInfo b P Q x < elogB b (ENNReal.ofReal t)}) ∧
    fullVariation P Q = 2 * (∫⁻ t in Ioo (0 : ℝ) 1, P {x | elogB b ((ENNReal.ofReal t)⁻¹) < relativeInfo b P Q x}) ∧
    fullVariation P Q = 2 * (∫⁻ t in {t : ℝ | 1 < t ∧ ENNReal.ofReal t < upperDensity P Q},
      ENNReal.ofReal (t ^ (-2 : ℤ)) * (1 - informationSpectrum b P Q (elogB b (ENNReal.ofReal t)))) ∧
    (Q ≪ P → fullVariation P Q = 2 * (∫⁻ x, ENNReal.ofReal (max ((rnDensityReal P Q x)⁻¹ - 1) 0) ∂P) ∧
      fullVariation P Q = (∫⁻ x, ENNReal.ofReal |1 - (rnDensityReal P Q x)⁻¹| ∂P)) := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P28

end
Source
fff-divergence Inequalities, arXiv:1508.00335v7, PDF p. 35, Theorem 15
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

For every real base b>1b>1b>1, every measurable space AAA in the specified universe, and probability measures P,QP,QP,Q on AAA with P≪QP\ll QP≪Q, put r(x)=(dPdQ(x))Rr(x)=(\frac{dP}{dQ}(x))_{\mathbb R}r(x)=(dQdP​(x))R​, where real conversion sends ∞\infty∞ to zero; let I(x)=log⁡(dPdQ(x))/ln⁡bI(x)=\log(\frac{dP}{dQ}(x))/\ln bI(x)=log(dQdP​(x))/lnb, Lb(s)=log⁡(s)/ln⁡bL_b(s)=\log(s)/\ln bLb​(s)=log(s)/lnb for s∈[0,∞]s\in[0,\infty]s∈[0,∞], F(a)=P{x:I(x)≤a}F(a)=P\{x:I(x)\le a\}F(a)=P{x:I(x)≤a}, and U=ess sup⁡QdPdQU=\operatorname*{ess\,sup}_Q\frac{dP}{dQ}U=esssupQ​dQdP​. Here log⁡0=−∞\log 0=-\inftylog0=−∞ and log⁡∞=+∞\log\infty=+\inftylog∞=+∞. Define

V=∫A∣(dPd(P+Q)(x))R−(dQd(P+Q)(x))R∣ d(P+Q)(x),V=\int_A\left| \left(\frac{dP}{d(P+Q)}(x)\right)_{\mathbb R} -\left(\frac{dQ}{d(P+Q)}(x)\right)_{\mathbb R} \right|\,d(P+Q)(x),V=∫A​​(d(P+Q)dP​(x))R​−(d(P+Q)dQ​(x))R​​d(P+Q)(x),

as a nonnegative extended integral. Then all of the following equalities hold:

V=∫A∣1−r(x)∣ dQ(x),V=2∫Amax⁡{1−r(x),0} dQ(x),V=2∫Amax⁡{r(x)−1,0} dQ(x),V=2∫Amax⁡{1−r(x)−1,0} dP(x),V=2(P{I>0}−Q{I>0}),V=2(Q{I≤0}−P{I≤0}),V=2∫01Q{x:I(x)<Lb(t)} dt,V=2∫01P{x:Lb(t−1)<I(x)} dt,V=2∫{t∈R: 1<t, t<U}t−2(1−F(Lb(t))) dt.\begin{aligned} V&=\int_A |1-r(x)|\,dQ(x),\\ V&=2\int_A \max\{1-r(x),0\}\,dQ(x),\\ V&=2\int_A \max\{r(x)-1,0\}\,dQ(x),\\ V&=2\int_A \max\{1-r(x)^{-1},0\}\,dP(x),\\ V&=2\bigl(P\{I>0\}-Q\{I>0\}\bigr),\\ V&=2\bigl(Q\{I\le0\}-P\{I\le0\}\bigr),\\ V&=2\int_0^1 Q\{x:I(x)<L_b(t)\}\,dt,\\ V&=2\int_0^1 P\{x:L_b(t^{-1})<I(x)\}\,dt,\\ V&=2\int_{\{t\in\mathbb R:\,1<t,\ t<U\}} t^{-2}\bigl(1-F(L_b(t))\bigr)\,dt. \end{aligned}VVVVVVVVV​=∫A​∣1−r(x)∣dQ(x),=2∫A​max{1−r(x),0}dQ(x),=2∫A​max{r(x)−1,0}dQ(x),=2∫A​max{1−r(x)−1,0}dP(x),=2(P{I>0}−Q{I>0}),=2(Q{I≤0}−P{I≤0}),=2∫01​Q{x:I(x)<Lb​(t)}dt,=2∫01​P{x:Lb​(t−1)<I(x)}dt,=2∫{t∈R:1<t, t<U}​t−2(1−F(Lb​(t)))dt.​

The ttt-integrals use Lebesgue measure and open intervals. Every integral and every subtraction in these equalities takes place in [0,∞][0,\infty][0,∞], so subtraction is truncated at zero. The inverse of the real number r(x)=0r(x)=0r(x)=0 is zero. Finally, if also Q≪PQ\ll PQ≪P, then both additional equalities hold:

V=2∫Amax⁡{r(x)−1−1,0} dP(x),V=∫A∣1−r(x)−1∣ dP(x).V=2\int_A\max\{r(x)^{-1}-1,0\}\,dP(x), \qquad V=\int_A|1-r(x)^{-1}|\,dP(x).V=2∫A​max{r(x)−1−1,0}dP(x),V=∫A​∣1−r(x)−1∣dP(x).
Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 31, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me