Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix A.4: with qm=Ep(θ)[qℓ]q_m = E_{p(\theta)}[q_\ell]qm​=Ep(θ)​[qℓ​] the marginal + likelihood estimate is a lower bound

Proved
VariationalBOED.ml_estimate_le_eig_of_coupled

by Xeroth · Nov 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

bayesian-experimental-designexpected-information-gainkl-divergencemonte-carlovariational-bounds

Let p(θ)p(y∣θ,d)p(\theta)p(y\mid\theta,d)p(θ)p(y∣θ,d) be a model and qℓ(y∣θ,d)q_\ell(y\mid\theta,d)qℓ​(y∣θ,d) a conditional density with the same support as p(y∣θ,d)p(y\mid\theta,d)p(y∣θ,d). Couple the marginal approximation to it by

qm(y∣d)=Ep(θ)[qℓ(y∣θ,d)].q_m(y\mid d)=\mathbb E_{p(\theta)}\big[q_\ell(y\mid\theta,d)\big].qm​(y∣d)=Ep(θ)​[qℓ​(y∣θ,d)].

If EIG(d)\mathrm{EIG}(d)EIG(d) and Im+ℓ(d)\mathcal I_{m+\ell}(d)Im+ℓ​(d) are finite, then

Im+ℓ(d)≤EIG(d).\mathcal I_{m+\ell}(d)\le\mathrm{EIG}(d).Im+ℓ​(d)≤EIG(d).

With this coupling the marginal + likelihood estimate becomes a lower bound, whereas for separately learned qm,qℓq_m,q_\ellqm​,qℓ​ it is neither an upper nor a lower bound.

Formalization Note Finiteness of EIG(d)\mathrm{EIG}(d)EIG(d) and of Im+ℓ(d)\mathcal I_{m+\ell}(d)Im+ℓ​(d) is assumed explicitly.

Preamble
import Mathlib
import Definitions.Def_VariationalBOED_Basic

open MeasureTheory ProbabilityTheory InformationTheory Filter Topology
open scoped ENNReal
Formal statement
namespace VariationalBOED

theorem ml_estimate_le_eig_of_coupled {Th Y : Type*} [MeasurableSpace Th] [MeasurableSpace Y]
    (nuT : Measure Th) (nuY : Measure Y) [SigmaFinite nuT] [SigmaFinite nuY]
    (p : Th → ℝ) (lik : Th → Y → ℝ) (hM : IsModel nuT nuY p lik)
    (ql : Th → Y → ℝ) (hql : IsValidLikelihoodApprox nuY lik ql)
    (hEIG : Integrable (eigIntegrand nuT p lik) (jointLaw nuT nuY p lik))
    (hI : Integrable (mlIntegrand (marginal nuT p ql) ql) (jointLaw nuT nuY p lik)) :
    mlEstimate nuT nuY p lik (marginal nuT p ql) ql ≤ eig nuT nuY p lik := by sorry

end VariationalBOED
Source
Foster, Jankowiak, Bingham, Horsfall, Teh, Rainforth and Goodman, Variational Bayesian Optimal Experimental Design, arXiv:1903.05480v3 (NeurIPS 2019), Appendix A.4, final observation, eqs. (57)-(62), pp. 15-16
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. Let Θ\ThetaΘ and Y\mathcal{Y}Y be arbitrary measurable spaces, the parameter space and the outcome space. They carry reference measures νΘ\nu_\ThetaνΘ​ on Θ\ThetaΘ and νY\nu_{\mathcal Y}νY​ on Y\mathcal YY, and both measures are assumed σ\sigmaσ-finite. All integrals below are Lebesgue/Bochner integrals of real-valued functions. A non-integrable function is assigned integral 000. Real division by zero is taken to be 000. The real logarithm satisfies log⁡0=0\log 0 = 0log0=0 and log⁡x=log⁡∣x∣\log x = \log|x|logx=log∣x∣ for x<0x<0x<0.

Hypotheses on the model. We are given functions p:Θ→Rp:\Theta\to\mathbb Rp:Θ→R (the prior) and ℓ:Θ×Y→R\ell:\Theta\times\mathcal Y\to\mathbb Rℓ:Θ×Y→R, written ℓ(θ,y)=p(y∣θ)\ell(\theta,y)=p(y\mid\theta)ℓ(θ,y)=p(y∣θ) (the likelihood). They satisfy:

  • ppp is measurable, p(θ)≥0p(\theta)\ge 0p(θ)≥0 for all θ\thetaθ, and ∫Θp dνΘ=1\int_\Theta p\,d\nu_\Theta = 1∫Θ​pdνΘ​=1. In particular ppp is νΘ\nu_\ThetaνΘ​-integrable, and Θ\ThetaΘ cannot be empty.
  • (θ,y)↦p(y∣θ)(\theta,y)\mapsto p(y\mid\theta)(θ,y)↦p(y∣θ) is jointly measurable on Θ×Y\Theta\times\mathcal YΘ×Y.
  • p(y∣θ)≥0p(y\mid\theta)\ge 0p(y∣θ)≥0 everywhere.
  • For every θ\thetaθ (not just almost every θ\thetaθ), ∫Yp(y∣θ) dνY(y)=1\int_{\mathcal Y} p(y\mid\theta)\,d\nu_{\mathcal Y}(y) = 1∫Y​p(y∣θ)dνY​(y)=1.

Hypotheses on the likelihood approximation. We are also given qℓ:Θ×Y→Rq_\ell:\Theta\times\mathcal Y\to\mathbb Rqℓ​:Θ×Y→R, written qℓ(y∣θ)q_\ell(y\mid\theta)qℓ​(y∣θ). It satisfies:

  • qℓq_\ellqℓ​ is jointly measurable and qℓ(y∣θ)≥0q_\ell(y\mid\theta)\ge 0qℓ​(y∣θ)≥0 everywhere.
  • For every θ\thetaθ, ∫Yqℓ(y∣θ) dνY(y)=1\int_{\mathcal Y} q_\ell(y\mid\theta)\,d\nu_{\mathcal Y}(y)=1∫Y​qℓ​(y∣θ)dνY​(y)=1.
  • For every θ\thetaθ and every yyy,
qℓ(y∣θ)>0  ⟺  p(y∣θ)>0.q_\ell(y\mid\theta)>0 \iff p(y\mid\theta)>0.qℓ​(y∣θ)>0⟺p(y∣θ)>0.

Nothing else is assumed about qℓq_\ellqℓ​. The choice qℓ=p(⋅∣⋅)q_\ell = p(\cdot\mid\cdot)qℓ​=p(⋅∣⋅) is allowed.

Derived quantities. The true marginal and the marginal induced by qℓq_\ellqℓ​ under the prior ppp are

m(y)=∫Θp(θ) p(y∣θ) dνΘ(θ),mq(y)=∫Θp(θ) qℓ(y∣θ) dνΘ(θ).m(y) = \int_\Theta p(\theta)\,p(y\mid\theta)\,d\nu_\Theta(\theta), \qquad m_q(y) = \int_\Theta p(\theta)\,q_\ell(y\mid\theta)\,d\nu_\Theta(\theta).m(y)=∫Θ​p(θ)p(y∣θ)dνΘ​(θ),mq​(y)=∫Θ​p(θ)qℓ​(y∣θ)dνΘ​(θ).

Each of these is set to 000 at any yyy where its integrand is not νΘ\nu_\ThetaνΘ​-integrable. Let π\piπ be the measure on Θ×Y\Theta\times\mathcal YΘ×Y with density p(θ) p(y∣θ)p(\theta)\,p(y\mid\theta)p(θ)p(y∣θ) with respect to the product measure νΘ⊗νY\nu_\Theta\otimes\nu_{\mathcal Y}νΘ​⊗νY​. This is the joint law of (θ,y)(\theta,y)(θ,y) under the true model; under the hypotheses it is a probability measure. All expectations below are taken under this true joint law π\piπ, not under any law built from qℓq_\ellqℓ​.

Integrability hypotheses. Two further assumptions are made:

  • The function (θ,y)↦log⁡(p(y∣θ)/m(y))(\theta,y)\mapsto \log\big(p(y\mid\theta)/m(y)\big)(θ,y)↦log(p(y∣θ)/m(y)) is π\piπ-integrable.
  • The function (θ,y)↦log⁡(qℓ(y∣θ)/mq(y))(\theta,y)\mapsto \log\big(q_\ell(y\mid\theta)/m_q(y)\big)(θ,y)↦log(qℓ​(y∣θ)/mq​(y)) is π\piπ-integrable.

The conventions log⁡0=0\log 0 = 0log0=0 and x/0=0x/0=0x/0=0 apply inside both logarithms. No separate hypothesis is made that mqm_qmq​ is a probability density, or that mqm_qmq​ has the same support as mmm.

Conclusion. The theorem asserts the inequality

∫Θ×Ylog⁡qℓ(y∣θ)mq(y) dπ(θ,y)  ≤  ∫Θ×Ylog⁡p(y∣θ)m(y) dπ(θ,y).\int_{\Theta\times\mathcal Y} \log\frac{q_\ell(y\mid\theta)}{m_q(y)}\,d\pi(\theta,y) \;\le\; \int_{\Theta\times\mathcal Y} \log\frac{p(y\mid\theta)}{m(y)}\,d\pi(\theta,y).∫Θ×Y​logmq​(y)qℓ​(y∣θ)​dπ(θ,y)≤∫Θ×Y​logm(y)p(y∣θ)​dπ(θ,y).

The left side is the "marginal + likelihood" estimate Im+ℓI_{m+\ell}Im+ℓ​, evaluated with the specific marginal approximation qm:=mqq_m := m_qqm​:=mq​ obtained by integrating qℓq_\ellqℓ​ against the prior. The right side is the expected information gain EIG\mathrm{EIG}EIG. The inequality is non-strict (≤\le≤). It concerns a single fixed design, which does not appear in the statement.

Human review
  • Endorsed by Shuze Chen · Nov 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 25, 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