Appendix A.2 (eq. 9): the variational marginal bound is an upper bound on the EIG
ProvedVariationalBOED.marginal_bound_ge_eigLet be a model and let be a valid marginal approximation, that is, a probability density with the same support as . Suppose and are finite. Then ,
and if and only if for -almost all .
This upper bound underlies the variational marginal estimator , which is trained by minimizing .
Formalization Note Finiteness of and is assumed explicitly. The KL divergence is Mathlib's klDiv.
import Mathlib import Definitions.Def_VariationalBOED_Basic open MeasureTheory ProbabilityTheory InformationTheory Filter Topology open scoped ENNReal
namespace VariationalBOED
theorem marginal_bound_ge_eig {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)
(qm : Y → ℝ) (hqm : IsValidMarginalApprox nuT nuY p lik qm)
(hEIG : Integrable (eigIntegrand nuT p lik) (jointLaw nuT nuY p lik))
(hU : Integrable (margIntegrand lik qm) (jointLaw nuT nuY p lik)) :
klDiv (densMeasure nuY (marginal nuT p lik)) (densMeasure nuY qm) ≠ ⊤ ∧
margBound nuT nuY p lik qm - eig nuT nuY p lik =
(klDiv (densMeasure nuY (marginal nuT p lik)) (densMeasure nuY qm)).toReal ∧
eig nuT nuY p lik ≤ margBound nuT nuY p lik qm ∧
(margBound nuT nuY p lik qm = eig nuT nuY p lik ↔ qm =ᵐ[nuY] marginal nuT p lik) := by sorry
end VariationalBOEDRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let and be measurable spaces carrying -finite reference measures on and on . Let and , written , be real-valued functions forming a model:
- is measurable, satisfies for all , and .
- is jointly measurable, satisfies everywhere, and for every .
All integrals here are Lebesgue/Bochner integrals with the convention that a non-integrable function has integral . An integral equal to therefore forces integrability.
Derived objects. The marginal is
which takes the value at any where this integrand is not integrable.
The joint law is the measure on with density with respect to the product measure .
Let be a valid marginal approximation:
- is measurable, satisfies , and .
- For every , .
Write and for the measures on with densities and with respect to . Define
These use real-valued conventions for junk values:
- .
- .
- for .
So, for instance, the integrand is wherever , , or .
Integrability assumptions. The theorem additionally assumes:
- is -integrable.
- is -integrable.
KL divergence. denotes the extended-valued Kullback–Leibler divergence. It equals
(clipped below at ) when and is -integrable, and otherwise.
Conclusion. Under all these hypotheses, the following four statements hold simultaneously:
- .
- equals , viewed as a real number.
- .
- if and only if for -almost every .
Remark on the hypotheses. They are not vacuous in general, but they are unsatisfiable if, for example:
- or is the zero measure, since then no density integrates to ; or
- is empty while is nonempty.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.