Proof of Theorem 8 — generalization gap at most
ProvedXuMannorRobust.WeakRobust.theorem8_sufficiency_boundLet be a measurable space with a probability measure , a set of hypotheses, and a loss measurable in its sample argument. Let , , and , and let . Let . Suppose
- , and
- for every .
Then
This is the finite- inequality behind the sufficiency half of Theorem 8: applied with , and the sets of weak robustness, it shows that the generalization gap is eventually at most for arbitrary .
Formalization Note The paper has and a strict bound in (7); the hypotheses here are the non-strict forms, which are weaker, so the statement is stronger and still the paper's inequality. The probability of the complement is Measure.pi (fun _ : Fin n => μ) Dᶜ, the outer measure when is not measurable. Measurability of is added.
import Mathlib import Definitions.Def_XuMannorRobust_WeakRobust_Setup open MeasureTheory
namespace XuMannorRobust.WeakRobust
/-- Xu & Mannor 2012, p. 410, proof of Theorem 8 (sufficiency display): if a set `D ⊆ Zⁿ` has
`Pr(t(n) ∉ D) ≤ δ` and every `ŝ ∈ D` has `|L(h, ŝ) − L(h, s)| ≤ ε`, then
`|𝓛(h) − L(h, s)| ≤ δ M + ε`, for a loss measurable with values in `[0, M]` and `n ≥ 1`. -/
theorem theorem8_sufficiency_bound {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) (h : H) (s : Fin n → Z) (D : Set (Fin n → Z))
(δ ε : ℝ) (hδ : 0 ≤ δ) (hε : 0 ≤ ε)
(hD : Measure.pi (fun _ : Fin n => μ) Dᶜ ≤ ENNReal.ofReal δ)
(hDε : ∀ t ∈ D, |avgLoss l h t - avgLoss l h s| ≤ ε) :
|expectedLoss μ l h - avgLoss l h s| ≤ δ * M + ε := by sorry
end XuMannorRobust.WeakRobust
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.