Lemma 2: error bound for the marginal + likelihood estimate
ProvedVariationalBOED.ml_error_boundLet be a model. Let be a probability density with the same support as , and a conditional density with the same support as . Suppose the expectations , , and are finite. Then
where does not depend on or . Further, the right-hand side is if and only if for -almost all and for almost all with respect to .
This justifies training and by maximizing for implicit-likelihood models.
Formalization Note The finiteness hypotheses make and every expectation in (13) a real number, as the paper's statement presupposes. The paper's "for almost all " is read with respect to (equivalently , by the support condition) for and with respect to for .
import Mathlib import Definitions.Def_VariationalBOED_Basic open MeasureTheory ProbabilityTheory InformationTheory Filter Topology open scoped ENNReal
namespace VariationalBOED
theorem ml_error_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)
(qm : Y → ℝ) (hqm : IsValidMarginalApprox nuT nuY p lik qm)
(ql : Th → Y → ℝ) (hql : IsValidLikelihoodApprox nuY lik ql)
(hlik : Integrable (fun z : Th × Y => Real.log (lik z.1 z.2)) (jointLaw nuT nuY p lik))
(hmarg : Integrable (fun z : Th × Y => Real.log (marginal nuT p lik z.2))
(jointLaw nuT nuY p lik))
(hqmi : Integrable (fun z : Th × Y => Real.log (qm z.2)) (jointLaw nuT nuY p lik))
(hqli : Integrable (fun z : Th × Y => Real.log (ql z.1 z.2)) (jointLaw nuT nuY p lik)) :
|mlEstimate nuT nuY p lik qm ql - eig nuT nuY p lik| ≤
-(∫ z, (Real.log (qm z.2) + Real.log (ql z.1 z.2)) ∂jointLaw nuT nuY p lik) +
(-diffEntropy nuY (marginal nuT p lik) -
∫ θ, diffEntropy nuY (lik θ) ∂densMeasure nuT p) ∧
(-(∫ z, (Real.log (qm z.2) + Real.log (ql z.1 z.2)) ∂jointLaw nuT nuY p lik) +
(-diffEntropy nuY (marginal nuT p lik) -
∫ θ, diffEntropy nuY (lik θ) ∂densMeasure nuT p) = 0 ↔
qm =ᵐ[nuY] marginal nuT p lik ∧
∀ᵐ z ∂(densMeasure nuT p).prod nuY, ql z.1 z.2 = lik z.1 z.2) := 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 be a function (the "prior") and a function (the "likelihood", ). All integrals below are Lebesgue/Bochner integrals with the convention that a non-integrable function has integral . Also , for , and .
Derived objects.
- Marginal. The marginal is
- Joint law. is the measure on with density with respect to .
- Prior law. is the measure on with density with respect to .
- Differential entropy. For a function and measure ,
Hypotheses.
- Model. is measurable, everywhere, and . The function is jointly measurable, everywhere, and for every . These conditions force , and hence , to be nonempty.
- Marginal approximation. is measurable, everywhere, and . For every , .
- Likelihood approximation. is jointly measurable, everywhere, and for every . For every and , .
- Integrability. Each of the four functions
is integrable with respect to .
No integrability is assumed for the entropy terms below. In particular, if is not -integrable, its integral is taken to be .
Quantities compared. The estimate is
and the expected information gain is
The bound is
Conclusion. The theorem asserts both of the following:
- The error is bounded by :
- holds if and only if both of these hold:
- for -almost every ;
- for almost every with respect to the product measure . Note that this is the prior law times the reference measure on , not the joint law .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.