Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 31: E_Q|density-gamma|=2E_gamma+gamma-1; E_Q max(gamma,density)=gamma+E_gamma; E_Q min(gamma,density)=1-E_gamma

Open
QAlgorithms.Papers.Independent.Intakenext100.P28.hockey_expectations

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

prove2quantum

For P≪QP\ll QP≪Q, Z=dP/dQZ=dP/dQZ=dP/dQ, and γ≥1\gamma\ge1γ≥1,

EQ∣Z−γ∣=2Eγ(P∥Q)+γ−1,EQmax⁡{γ,Z}=γ+Eγ(P∥Q),EQmin⁡{γ,Z}=1−Eγ(P∥Q).E_Q|Z-\gamma|=2E_\gamma(P\|Q)+\gamma-1,\quad E_Q\max\{\gamma,Z\}=\gamma+E_\gamma(P\|Q),\quad E_Q\min\{\gamma,Z\}=1-E_\gamma(P\|Q).EQ​∣Z−γ∣=2Eγ​(P∥Q)+γ−1,EQ​max{γ,Z}=γ+Eγ​(P∥Q),EQ​min{γ,Z}=1−Eγ​(P∥Q).

All three identities (409)–(411) are included. Normalization gives EQZ=1E_Q Z=1EQ​Z=1.

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 31: E_Q|rnDensityReal-gamma|=2E_gamma+gamma-1; E_Q max(gamma,rnDensityReal)=gamma+E_gamma; E_Q min(gamma,rnDensityReal)=1-E_gamma. Sason--Verdu, arXiv:1508.00335v7, PDF p.58.  -/
theorem hockey_expectations
    {A : Type u} [MeasurableSpace A] (P Q : Measure A)
    [IsProbabilityMeasure P] [IsProbabilityMeasure Q] (hPQ : P ≪ Q) (g : ℝ) (hg : 1 ≤ g) :
    (∫⁻ x, ENNReal.ofReal |rnDensityReal P Q x - g| ∂Q) = 2 * hockey g P Q + ENNReal.ofReal (g - 1) ∧
    (∫⁻ x, ENNReal.ofReal (max g (rnDensityReal P Q x)) ∂Q) = ENNReal.ofReal g + hockey g P Q ∧
    (∫⁻ x, ENNReal.ofReal (min g (rnDensityReal P Q x)) ∂Q) = 1 - hockey g P Q := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P28

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

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

Let AAA be any measurable space, let P,QP,QP,Q be probability measures on AAA with P≪QP\ll QP≪Q, and let ggg be any real number with g≥1g\ge1g≥1, including g=1g=1g=1. Let ρP,Q\rho_{P,Q}ρP,Q​ be the extended nonnegative Radon–Nikodym derivative and let r(x)=ρP,Q(x)^r(x)=\widehat{\rho_{P,Q}(x)}r(x)=ρP,Q​(x)​, where the hat converts finite values to real numbers and +∞+\infty+∞ to 000. For real sss, write [s]+=max⁡(s,0)[s]_+=\max(s,0)[s]+​=max(s,0) as an extended nonnegative number, and define

Hg(P,Q)=∫[max⁡{r(x)−g,0}]+ dQ(x)+Ps(A),H_g(P,Q)=\int[\max\{r(x)-g,0\}]_+\,dQ(x)+P_{\mathrm s}(A),Hg​(P,Q)=∫[max{r(x)−g,0}]+​dQ(x)+Ps​(A),

where PsP_{\mathrm s}Ps​ is the singular part of PPP relative to QQQ, which is zero under the absolute continuity hypothesis. Then all three identities hold as identities of extended nonnegative numbers:

∫[∣r(x)−g∣]+ dQ(x)=2Hg(P,Q)+[g−1]+,\int[|r(x)-g|]_+\,dQ(x)=2H_g(P,Q)+[g-1]_+,∫[∣r(x)−g∣]+​dQ(x)=2Hg​(P,Q)+[g−1]+​, ∫[max⁡{g,r(x)}]+ dQ(x)=[g]++Hg(P,Q),∫[min⁡{g,r(x)}]+ dQ(x)=1−Hg(P,Q).\int[\max\{g,r(x)\}]_+\,dQ(x)=[g]_++H_g(P,Q), \qquad \int[\min\{g,r(x)\}]_+\,dQ(x)=1-H_g(P,Q).∫[max{g,r(x)}]+​dQ(x)=[g]+​+Hg​(P,Q),∫[min{g,r(x)}]+​dQ(x)=1−Hg​(P,Q).

The subtraction in the last expression is truncated subtraction in the extended nonnegative reals.

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