Eq. (4):
ProvedXuMannorRobust.Standard.eq4_gap_le_cell_deviationLet be a probability measure on a measurable space , and let be a loss with for all and measurable for every . Let , let be a learning algorithm and , and let be a partition of into pairwise disjoint measurable sets such that, for every training set , every training point , every and every ,
(condition (2) of Definition 2). Then for every training set , with the number of training points in ,
This is Eq. (4), the deterministic half of the proof of Theorem 1: it reduces the generalization gap of a robust algorithm to the deviation of the empirical cell frequencies from the true cell probabilities.
Formalization Note Measurability of and of the cells is added to the paper's standing assumptions (which ignore measurability); with the bound it makes integrable, so is the true expectation. The statement is the last line (4) of the paper's chain, which avoids conditional expectations on cells of measure zero. The partition is named explicitly rather than through Definition 2's existential.
import Mathlib import Definitions.Def_XuMannorRobust_Standard_Losses import Definitions.Def_XuMannorRobust_Standard_CellCount open MeasureTheory
namespace XuMannorRobust.Standard
/-- **Eq. (4)** (Xu & Mannor 2012, p. 397, proof of Theorem 1). Let the loss take values in
`[0, M]` with `l h` measurable for every `h`, let `μ` be a probability measure, and let the
measurable partition `C_1, …, C_K` of `Z` witness condition (2) of Definition 2 for the algorithm
`A` with `ε(·)`. Then for every training set `s` of size `n ≥ 1` (deterministically),
`|𝓛(A_s) − l_emp(A_s)| ≤ ε(s) + M ∑_i ||N_i|/n − μ(C_i)|`. -/
theorem eq4_gap_le_cell_deviation {Z H : Type*} [MeasurableSpace Z] (μ : Measure Z)
[IsProbabilityMeasure μ] (l : H → Z → ℝ) (M : ℝ) (hl_bound : ∀ h z, 0 ≤ l h z ∧ l h z ≤ M)
(hl_meas : ∀ h, Measurable (l h)) {n : ℕ} (hn : 0 < n) (A : (Fin n → Z) → H) {K : ℕ}
(ε : (Fin n → Z) → ℝ) (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)
(hC_robust : ∀ s : Fin n → Z, ∀ j : Fin n, ∀ z : Z, ∀ i : Fin K,
s j ∈ C i → z ∈ C i → |l (A s) (s j) - l (A s) z| ≤ ε s) :
∀ s : Fin n → Z,
|expectedLoss μ l (A s) - empiricalLoss l (A s) s|
≤ ε s + M * ∑ i, |(cellCount C s i : ℝ) / (n : ℝ) - (μ (C i)).toReal| := by sorry
end XuMannorRobust.Standard
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.