BanditAlgorithm.bretagnolle_huber_inequality
Proved(Bretagnolle–Huber, GOAL) Let and be probability measures on the same measurable space with klDiv P Q finite, and let be measurable. Then
with probabilities as Measure.real. CRITICAL BOUNDARY: the hypothesis is REQUIRED — without it the Lean statement is FALSE, since (∞).toReal = 0 would make the right-hand side while e.g. , , gives . The book's statement is trivially true at (right-hand side ); only the toReal junk-value encoding breaks.
import Mathlib.InformationTheory.KullbackLeibler.Basic open MeasureTheory InformationTheory Real open scoped ENNReal
theorem BanditAlgorithm.bretagnolle_huber_inequality {Ω : Type} {mΩ : MeasurableSpace Ω}
(P Q : Measure Ω) [IsProbabilityMeasure P] [IsProbabilityMeasure Q]
{A : Set Ω} (hA : MeasurableSet A) (hD : klDiv P Q ≠ ∞) :
2⁻¹ * exp (-(klDiv P Q).toReal) ≤ P.real A + Q.real Aᶜ := by
sorry
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Setup and notation. Let be an arbitrary measurable space, two probability measures on it, and a measurable set. Here denotes the library's Kullback–Leibler divergence: when is absolutely continuous with respect to and the log-likelihood ratio is -integrable, is the image in of the real integral (a negative value — impossible for probability measures — would be truncated to ); in every other case . Assume and write for its finite real value. Write and for the real-valued measures of and of its complement (the extended-nonnegative measure values converted to reals — finite here, since both are probability measures).
Assertion. As an inequality between real numbers,
Hypotheses:
- and are both probability measures on the same measurable space .
- is a measurable subset of (the claim is universally quantified over such ).
- — in particular with -integrable log-likelihood ratio.
Edge cases and caveats:
- is obtained from the extended-real divergence by the conversion that sends to ; the finiteness hypothesis blocks that junk case (without it, at the left side would evaluate to , a stronger, unintendedly different claim).
- The left-hand side is always strictly positive, so the statement is never vacuous under its hypotheses.
- The inequality is non-strict; the right-hand side pairs on the set with on the complement of .
Confirmed by the mission captain (proposal self-audit).