Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1 (2): the VNMC bound is exact when the proposal is the posterior

Proved
VariationalBOED.vnmc_bound_eq_eig_of_posterior

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 qvq_vqv​ a valid VNMC proposal with qv(θ∣y,d)=p(θ∣y,d)q_v(\theta\mid y,d)=p(\theta\mid y,d)qv​(θ∣y,d)=p(θ∣y,d) for all θ\thetaθ and all yyy with p(y∣d)>0p(y\mid d)>0p(y∣d)>0. Then

UVNMC(d,L)=EIG(d)for all L≥1.\mathcal U_{\mathrm{VNMC}}(d,L)=\mathrm{EIG}(d)\qquad\text{for all }L\ge1.UVNMC​(d,L)=EIG(d)for all L≥1.

If the proposal is the exact posterior, every importance weight equals p(y∣d)p(y\mid d)p(y∣d), so the VNMC bound has no bias at any LLL.

Formalization Note The paper requires qv=p(θ∣y,d)q_v=p(\theta\mid y,d)qv​=p(θ∣y,d) for all y,θy,\thetay,θ. The posterior is defined only where p(y∣d)>0p(y\mid d)>0p(y∣d)>0, so the equality is required there. Elsewhere qv(⋅∣y,d)q_v(\cdot\mid y,d)qv​(⋅∣y,d) is any density, which is a p(y∣d)p(y\mid d)p(y∣d)-null case.

Preamble
import Mathlib
import Definitions.Def_VariationalBOED_Basic

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

theorem vnmc_bound_eq_eig_of_posterior {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)
    (qv : Y → Th → ℝ) (hq : IsValidVNMCProposal nuT p lik qv)
    (hpost : ∀ y, 0 < marginal nuT p lik y → ∀ θ, qv y θ = posterior nuT p lik y θ) :
    ∀ L : ℕ, 1 ≤ L → vnmcBound nuT nuY p lik qv L = 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), Section 3, Lemma 1 (2), eq. (10), p. 4; proof in Appendix A.3, eq. (39), p. 14
Read-back

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

Fix two measurable spaces: a parameter space Θ\ThetaΘ and an outcome space Y\mathcal YY. Each carries a σ\sigmaσ-finite reference measure, νΘ\nu_\ThetaνΘ​ on Θ\ThetaΘ and νY\nu_{\mathcal Y}νY​ on Y\mathcal YY. Let p:Θ→Rp:\Theta\to\mathbb Rp:Θ→R (the prior) and ℓ:Θ×Y→R\ell:\Theta\times\mathcal Y\to\mathbb Rℓ:Θ×Y→R, written ℓ(θ,y)\ell(\theta,y)ℓ(θ,y) (the likelihood), be real-valued functions. All integrals below are Lebesgue/Bochner integrals of real-valued functions. By convention such an integral equals 000 whenever the integrand is not integrable.

Hypothesis 1 (model). The prior ppp is measurable and nonnegative, with ∫Θp dνΘ=1\int_\Theta p\,d\nu_\Theta = 1∫Θ​pdνΘ​=1. The likelihood ℓ\ellℓ is jointly measurable on Θ×Y\Theta\times\mathcal YΘ×Y and nonnegative, with

∫Yℓ(θ,y) dνY(y)=1for every θ∈Θ.\int_{\mathcal Y}\ell(\theta,y)\,d\nu_{\mathcal Y}(y)=1 \quad\text{for every }\theta\in\Theta.∫Y​ℓ(θ,y)dνY​(y)=1for every θ∈Θ.

Derived quantities. The marginal is

m(y)=∫Θp(θ) ℓ(θ,y) dνΘ(θ).m(y)=\int_\Theta p(\theta)\,\ell(\theta,y)\,d\nu_\Theta(\theta).m(y)=∫Θ​p(θ)ℓ(θ,y)dνΘ​(θ).

This is 000 if the integrand is not integrable. The posterior is

π(θ∣y)=p(θ) ℓ(θ,y)m(y),\pi(\theta\mid y)=\frac{p(\theta)\,\ell(\theta,y)}{m(y)},π(θ∣y)=m(y)p(θ)ℓ(θ,y)​,

where division by 000 is taken to give 000. In particular π(⋅∣y)≡0\pi(\cdot\mid y)\equiv 0π(⋅∣y)≡0 wherever m(y)=0m(y)=0m(y)=0.

Hypothesis 2 (proposal). Let q:Y×Θ→Rq:\mathcal Y\times\Theta\to\mathbb Rq:Y×Θ→R, written q(θ∣y)q(\theta\mid y)q(θ∣y), satisfy the following conditions.

  1. qqq is jointly measurable and nonnegative, and ∫Θq(θ∣y) dνΘ(θ)=1\int_\Theta q(\theta\mid y)\,d\nu_\Theta(\theta)=1∫Θ​q(θ∣y)dνΘ​(θ)=1 for every yyy. This includes outcomes yyy with m(y)=0m(y)=0m(y)=0.
  2. For every yyy with m(y)>0m(y)>0m(y)>0 and every θ\thetaθ: q(θ∣y)>0  ⟺  π(θ∣y)>0q(\theta\mid y)>0 \iff \pi(\theta\mid y)>0q(θ∣y)>0⟺π(θ∣y)>0.
  3. For every yyy with m(y)>0m(y)>0m(y)>0 there is a real BBB such that, for all θ\thetaθ,
p(θ)ℓ(θ,y)q(θ∣y)≤B,\frac{p(\theta)\ell(\theta,y)}{q(\theta\mid y)}\le B,q(θ∣y)p(θ)ℓ(θ,y)​≤B,

where again x/0=0x/0=0x/0=0.

Hypothesis 3 (exact posterior). For every yyy with m(y)>0m(y)>0m(y)>0 and every θ\thetaθ:

q(θ∣y)=π(θ∣y).q(\theta\mid y)=\pi(\theta\mid y).q(θ∣y)=π(θ∣y).

Given Hypothesis 3, conditions 2 and 3 of Hypothesis 2 hold automatically. For condition 3, the ratio equals m(y)m(y)m(y) or 000. So Hypothesis 2 effectively only adds condition 1. That condition also forces q(⋅∣y)q(\cdot\mid y)q(⋅∣y) to be some probability density at outcomes where m(y)=0m(y)=0m(y)=0.

Conclusion. For every natural number L≥1L\ge 1L≥1:

UVNMC(L)=EIG.U_{\mathrm{VNMC}}(L)=\mathrm{EIG}.UVNMC​(L)=EIG.

The two sides are defined as follows.

The EIG side. Let JJJ be the measure on Θ×Y\Theta\times\mathcal YΘ×Y with density (θ,y)↦max⁡{p(θ)ℓ(θ,y),0}(\theta,y)\mapsto \max\{p(\theta)\ell(\theta,y),0\}(θ,y)↦max{p(θ)ℓ(θ,y),0} with respect to νΘ⊗νY\nu_\Theta\otimes\nu_{\mathcal Y}νΘ​⊗νY​. Then

EIG=∫Θ×Ylog⁡ℓ(θ,y)m(y) dJ(θ,y).\mathrm{EIG}=\int_{\Theta\times\mathcal Y}\log\frac{\ell(\theta,y)}{m(y)}\,dJ(\theta,y).EIG=∫Θ×Y​logm(y)ℓ(θ,y)​dJ(θ,y).

The VNMC side. Let VLV_LVL​ be the measure on Θ×Y×ΘL\Theta\times\mathcal Y\times\Theta^LΘ×Y×ΘL, with points (θ0,y,θ1,…,θL)(\theta_0,y,\theta_1,\dots,\theta_L)(θ0​,y,θ1​,…,θL​). Its density with respect to νΘ⊗νY⊗νΘ⊗L\nu_\Theta\otimes\nu_{\mathcal Y}\otimes\nu_\Theta^{\otimes L}νΘ​⊗νY​⊗νΘ⊗L​ is

p(θ0) ℓ(θ0,y)∏i=1Lq(θi∣y)p(\theta_0)\,\ell(\theta_0,y)\prod_{i=1}^{L}q(\theta_i\mid y)p(θ0​)ℓ(θ0​,y)i=1∏L​q(θi​∣y)

(truncated below at 000). Then

UVNMC(L)=∫[log⁡ℓ(θ0,y)−log⁡(1L∑i=1Lp(θi) ℓ(θi,y)q(θi∣y))] dVL.U_{\mathrm{VNMC}}(L)=\int\Big[\log \ell(\theta_0,y)-\log\Big(\frac1L\sum_{i=1}^{L}\frac{p(\theta_i)\,\ell(\theta_i,y)}{q(\theta_i\mid y)}\Big)\Big]\,dV_L.UVNMC​(L)=∫[logℓ(θ0​,y)−log(L1​i=1∑L​q(θi​∣y)p(θi​)ℓ(θi​,y)​)]dVL​.

Conventions inside these formulas. Here log⁡\loglog is the real logarithm extended by log⁡0=0\log 0=0log0=0 and log⁡x=log⁡∣x∣\log x=\log|x|logx=log∣x∣ for x<0x<0x<0. Every quotient with denominator 000 is read as 000, so log⁡(ℓ/m)=0\log(\ell/m)=0log(ℓ/m)=0 wherever m(y)=0m(y)=0m(y)=0. The statement does not assert that either integrand is integrable. If an integrand is not integrable, that side is 000 by convention. The equality is asserted for all L≥1L\ge1L≥1; nothing is claimed for L=0L=0L=0.

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