Appendix A.1 (eq. 6): the variational posterior bound is a lower bound on the EIG
ProvedVariationalBOED.eig_ge_posterior_boundLet be a model and let be a valid posterior approximation, that is, a conditional density with the same support as the posterior . Suppose and are finite. Then ,
and the bound is tight, , if and only if for -almost all , for -almost all .
This is the Barber–Agakov bound used to train the variational posterior estimator : maximizing minimizes the expected forward KL divergence.
Formalization Note The paper states the bound for real-valued expectations, so finiteness of and is assumed explicitly. The KL divergence is Mathlib's klDiv of the measures with densities and , with values in .
import Mathlib import Definitions.Def_VariationalBOED_Basic open MeasureTheory ProbabilityTheory InformationTheory Filter Topology open scoped ENNReal
namespace VariationalBOED
theorem eig_ge_posterior_bound {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)
(q : Y → Th → ℝ) (hq : IsValidPosteriorApprox nuT p lik q)
(hEIG : Integrable (eigIntegrand nuT p lik) (jointLaw nuT nuY p lik))
(hL : Integrable (postIntegrand p q) (jointLaw nuT nuY p lik)) :
(∫⁻ y, klDiv (densMeasure nuT (posterior nuT p lik y)) (densMeasure nuT (q y))
∂marginalLaw nuT nuY p lik) ≠ ⊤ ∧
eig nuT nuY p lik - postBound nuT nuY p lik q =
(∫⁻ y, klDiv (densMeasure nuT (posterior nuT p lik y)) (densMeasure nuT (q y))
∂marginalLaw nuT nuY p lik).toReal ∧
postBound nuT nuY p lik q ≤ eig nuT nuY p lik ∧
(postBound nuT nuY p lik q = eig nuT nuY p lik ↔
∀ᵐ y ∂marginalLaw nuT nuY p lik, q y =ᵐ[nuT] posterior nuT p lik y) := by sorry
end VariationalBOEDRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix two measurable spaces: a parameter space and an outcome space . Each carries a -finite reference measure, on and on . Let (the prior) and , written (the likelihood), be real-valued functions forming a model. This means:
- is measurable, satisfies for all , and has .
- is jointly measurable, satisfies everywhere, and has for every .
Each integral equal to is a Bochner integral. Such an integral is when the integrand is not integrable, so each of these conditions forces integrability.
Define the following objects.
- Marginal density:
This takes the value at any where the integrand is not integrable.
- Posterior density:
Division by is taken to be , so whenever .
-
Joint law : the measure on with density with respect to .
-
Marginal law : the measure on with density with respect to .
-
Expected information gain:
- Posterior bound:
In both of these, follows the conventions and for , and division by gives .
The function , written , is assumed to be a valid posterior approximation:
- is jointly measurable.
- everywhere.
- for every .
- For every with and every (pointwise, not almost everywhere), .
Two further integrability hypotheses are assumed:
- is -integrable.
- is -integrable.
For each , let and be the measures on with densities and with respect to . Let be the Kullback–Leibler divergence, in the general form
when and the log-likelihood ratio is -integrable, and otherwise. When both are probability measures this is the usual KL divergence. Finally, set
which is a lower (extended nonnegative) integral.
The theorem asserts all four of the following:
- .
- , with read as a real number.
- .
- if and only if, for -almost every , for -almost every .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.