Finite PAC-Bayes interoperability with mathlib probability measures #
This module connects FormalSLT's finite real-valued probability mass functions,
posterior averages, and KL divergence to mathlib's PMF, Measure, and
InformationTheory.klDiv APIs.
The KL bridge requires the posterior support to be contained in the prior support. This is exactly the finite absolute-continuity condition. Without it, FormalSLT's totalized real-valued finite sum is not the same object as mathlib's extended-real KL divergence, which is infinite when absolute continuity fails.
Real-valued PMFs as mathlib PMFs #
Convert a finite nonnegative real-valued PMF into mathlib's PMF type.
Equations
- hρ.toPMF = PMF.ofFintype (fun (i : ι) => ENNReal.ofReal (ρ i)) ⋯
Instances For
Posterior averages as Bochner integrals #
Integration against the mathlib PMF associated to a FormalSLT finite PMF is the corresponding finite weighted sum.
A FormalSLT finite posterior average is the Bochner integral against the corresponding mathlib probability measure.
Support-aware measure and KL bridges #
Finite support inclusion induces absolute continuity between the associated mathlib probability measures.
A full-support prior dominates every finite posterior PMF.
FormalSLT's finite KL sum is nonnegative under the minimal finite absolute-continuity assumption.
Under finite support inclusion, mathlib's extended-real KL divergence is
exactly ENNReal.ofReal of FormalSLT's finite KL sum.
Real-valued form of the support-aware finite KL interoperability theorem.
Full-support specialization of the extended-real finite KL bridge used by FormalSLT's finite PAC-Bayes theorems.
Full-support specialization of the real-valued finite KL bridge used by FormalSLT's finite PAC-Bayes theorems.