Lemma 2 — a method that is not weakly robust has a gap with probability infinitely often
ProvedXuMannorRobust.WeakRobust.lemma2_not_weakly_robustLet be a measurable space with a probability measure , a set of hypotheses, a loss measurable in its sample argument, a learning method and a fixed sequence of training samples. Let . If is not weakly robust w.r.t. , then there exist such that for infinitely many
This is the first step of the necessity half of Theorem 8: failure of weak robustness is turned into a quantitative, recurring discrepancy between test and training average losses.
Formalization Note "For infinitely many " is ∃ᶠ n in atTop. The probability is the product measure Measure.pi (fun _ : Fin n => μ) of the event, compared in with ENNReal.ofReal δ*. The bound and measurability of the loss are carried as the paper's standing assumptions of the section; measurability is added.
import Mathlib import Definitions.Def_XuMannorRobust_WeakRobust_WeaklyRobust open MeasureTheory Filter
namespace XuMannorRobust.WeakRobust
/-- Xu & Mannor 2012, p. 410, Lemma 2: if the learning method `A` is not weakly robust w.r.t. the
training sequence `s*`, there are `ε*, δ* > 0` such that for infinitely many `n`,
`Pr(|L(A_{s*(n)}, t(n)) − L(A_{s*(n)}, s*(n))| ≥ ε*) ≥ δ*`, with `t(n) ∼ μⁿ`. -/
theorem lemma2_not_weakly_robust {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))
(A : (n : ℕ) → (Fin n → Z) → H) (sStar : ℕ → Z)
(hnot : ¬ WeaklyRobust μ l A sStar) :
∃ ε > 0, ∃ δ > 0, ∃ᶠ n in atTop,
ENNReal.ofReal δ ≤ Measure.pi (fun _ : Fin n => μ)
{t | ε ≤ |avgLoss l (A n (firstN sStar n)) t
- avgLoss l (A n (firstN sStar n)) (firstN sStar n)|} := by sorry
end XuMannorRobust.WeakRobust
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.