Proof of Theorem 1: (Bretagnolle–Huber–Carol)
ProvedXuMannorRobust.Standard.bretagnolle_huber_carolLet be a probability measure on a measurable space and let be a partition of into pairwise disjoint measurable sets. Draw a training set of i.i.d. samples from and let be the number of samples falling in . Then for every ,
This is the Bretagnolle–Huber–Carol inequality for the multinomial vector (van der Vaart and Wellner 2000, Proposition A.6.6), which Xu and Mannor invoke in the proof of Theorem 1. It controls the distance between the empirical and the true cell probabilities uniformly in the partition's geometry: only the number of cells enters.
Formalization Note The probability is the outer measure of the event under the product measure on Fin n → Z. The hypothesis is added: for the event is everything while the right side can be below , and the paper uses the inequality only at . is taken as a real number (ENNReal.toReal), which is exact for a probability measure.
import Mathlib import Definitions.Def_XuMannorRobust_Standard_CellCount open MeasureTheory
namespace XuMannorRobust.Standard
/-- **Bretagnolle–Huber–Carol inequality** as used in the proof of Theorem 1 (Xu & Mannor 2012,
p. 396; van der Vaart–Wellner 2000, Prop. A.6.6). For a measurable partition `C_1, …, C_K` of `Z`,
`n ≥ 1` i.i.d. draws from a probability measure `μ` and `λ ≥ 0`,
`Pr{∑_i ||N_i|/n − μ(C_i)| ≥ λ} ≤ 2^K exp(−nλ²/2)`. The probability is the outer measure of the
event under `μⁿ`. The hypothesis `λ ≥ 0` is added (the display is false for `λ < 0`). -/
theorem bretagnolle_huber_carol {Z : Type*} [MeasurableSpace Z] (μ : Measure Z)
[IsProbabilityMeasure μ] {K : ℕ} (C : Fin K → Set Z) (hC_meas : ∀ i, MeasurableSet (C i))
(hC_disj : Pairwise (Function.onFun Disjoint C)) (hC_cover : (⋃ i, C i) = Set.univ)
{n : ℕ} (hn : 0 < n) (lam : ℝ) (hlam : 0 ≤ lam) :
(Measure.pi fun _ : Fin n => μ)
{s | lam ≤ ∑ i, |(cellCount C s i : ℝ) / (n : ℝ) - (μ (C i)).toReal|}
≤ ENNReal.ofReal ((2 : ℝ) ^ K * Real.exp (-((n : ℝ) * lam ^ 2) / 2)) := by sorry
end XuMannorRobust.Standard
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.