Eq. (3): w.p. ,
ProvedXuMannorRobust.Standard.eq3_cell_deviation_boundLet be a probability measure on a measurable space , let be a partition of into pairwise disjoint measurable sets, and let be i.i.d. draws from , with the number of draws in . Then for every , with probability at least ,
This is Eq. (3) in the proof of Theorem 1 of Xu and Mannor: the Bretagnolle–Huber–Carol inequality solved for the deviation level at confidence . It is the only probabilistic ingredient of Theorem 1.
Formalization Note "With probability at least " is stated as: the outer measure under of the set of training sets violating the inequality is at most ; no measurability of that set is needed. For the radicand is negative and Lean's square root returns ; the statement remains true there (and trivial for ), so no upper bound on is imposed.
import Mathlib import Definitions.Def_XuMannorRobust_Standard_CellCount open MeasureTheory
namespace XuMannorRobust.Standard
/-- **Eq. (3)** (Xu & Mannor 2012, p. 397, proof of Theorem 1). For a measurable partition
`C_1, …, C_K` of `Z`, `n ≥ 1` i.i.d. draws from a probability measure `μ` and `δ > 0`, with
probability at least `1 − δ`,
`∑_i ||N_i|/n − μ(C_i)| ≤ √((2K ln 2 + 2 ln(1/δ))/n)`: the outer measure under `μⁿ` of the set
where this fails is at most `δ`. -/
theorem eq3_cell_deviation_bound {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) (δ : ℝ) (hδ : 0 < δ) :
(Measure.pi fun _ : Fin n => μ)
{s | ¬ (∑ i, |(cellCount C s i : ℝ) / (n : ℝ) - (μ (C i)).toReal|
≤ Real.sqrt ((2 * (K : ℝ) * Real.log 2 + 2 * Real.log (1 / δ)) / (n : ℝ)))}
≤ ENNReal.ofReal δ := by sorry
end XuMannorRobust.Standard
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.