Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 5, p. 13 — HG(Q∣P)=EQ(log⁡dQ/dP∣G)H_{\mathcal G}(Q|P)=E_Q(\log dQ/dP\mid\mathcal G)HG​(Q∣P)=EQ​(logdQ/dP∣G) for Q∈PGQ\in\mathcal P_{\mathcal G}Q∈PG​

Proved
CondConvexRisk.Entropic.condRelEntropy_eq_condExp_log

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

conditional-expectationp2o-batch-p200ap2o-gran-per-chapterp2o-plan-paperp2o-v1relative-entropy

Let Q∈PGQ\in\mathcal P_{\mathcal G}Q∈PG​ and φ=dQ/dP\varphi=dQ/dPφ=dQ/dP. Then EP(φ∣G)=1E_P(\varphi\mid\mathcal G)=1EP​(φ∣G)=1 PPP-a.s. (it is the density of QQQ w.r.t. PPP on G\mathcal GG), and

HG(Q∣P)=EP(φlog⁡φ∣G)EP(φ∣G)=EQ(log⁡φ∣G)P-a.s.H_{\mathcal G}(Q\mid P)=\frac{E_P(\varphi\log\varphi\mid\mathcal G)}{E_P(\varphi\mid\mathcal G)}=E_Q\big(\log\varphi\mid\mathcal G\big)\qquad P\text{-a.s.}HG​(Q∣P)=EP​(φ∣G)EP​(φlogφ∣G)​=EQ​(logφ∣G)P-a.s.

This representation expresses the conditional relative entropy as a conditional expectation under QQQ, which is the form used in the proof of Lemma 5.5.

Formalization Note Both conditional expectations are generalized ones with values in [−∞,+∞][-\infty,+\infty][−∞,+∞] (positive part minus negative part, each a [0,+∞][0,+\infty][0,+∞]-valued conditional expectation); log⁡0=0\log0=0log0=0 in Lean, which only matters on a QQQ-null set. The middle quotient is not stated separately: it equals the left side once EP(φ∣G)=1E_P(\varphi\mid\mathcal G)=1EP​(φ∣G)=1.

Preamble
import Mathlib
import Definitions.Def_CondConvexRisk_Entropic_Basic
import Definitions.Def_CondConvexRisk_Entropic_EntropicRisk

open MeasureTheory
Formal statement
namespace CondConvexRisk.Entropic

theorem condRelEntropy_eq_condExp_log {Ω : Type*} {m : MeasurableSpace Ω}
    [mΩ : MeasurableSpace Ω] {P : Measure Ω} [IsProbabilityMeasure P] (hm : m ≤ mΩ)
    (Q : PG m P) :
    (P[density m P Q | m] =ᵐ[P] 1) ∧
      condRelEntropy m P Q =ᵐ[P] condExpExt m Q.1 (fun ω => Real.log (density m P Q ω)) := by sorry

end CondConvexRisk.Entropic
Source
Detlefsen & Scandolo, Conditional and Dynamic Convex Risk Measures, SFB 649 Discussion Paper 2005-006, p. 13, Section 5, display after Definition 5.3 ('For Q ∈ PG, we have the representation …')
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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