Theorem 6: a locally stable loss gives -robustness
ProvedXuMannorRobust.Lasso.theorem6_covering_robustLet be a metric space of samples, fix , and let be a learning algorithm with loss . Recall that a set is a -cover of if every point of lies within distance of some point of , and that the covering number is the minimal cardinality of such a cover. Suppose that for every training set ,
and that . Then is -robust.
The theorem turns a local stability property of the loss around training points into robustness with a number of cells given by a covering number; Examples 4–8 of the paper are all derived from it.
Formalization Note is a set Z in a metric space α with the restricted distance. The covering number is Mathlib's Metric.coveringNumber (closed balls, centres in Z, value in ℕ∞) at radius Real.toNNReal (γ/2); since it is assumed finite, toNat returns its true value. In the hypothesis, is a training point and ranges over Z.
import Mathlib import Definitions.Def_XuMannorRobust_Lasso_IsRobustOn
namespace XuMannorRobust.Lasso
/-- **Theorem 6** (Xu & Mannor 2012, p. 402). Let `Z` be a subset of a metric space `α` (the
metric of `Z` is the restriction of `dist`), and fix `γ > 0`. Suppose that for every training set
`s ∈ Zⁿ`, every training point `z₁ = s_j` and every `z₂ ∈ Z` with `dist z₁ z₂ ≤ γ`,
`|l(A_s, z₁) − l(A_s, z₂)| ≤ ε(s)`, and that the covering number `N(γ/2, Z, dist)` is finite.
Then `A` is `(N(γ/2, Z, dist), ε(·))`-robust.
`N(γ/2, Z, dist)` is Mathlib's (internal) covering number `Metric.coveringNumber`: the least
cardinality of a set of centres in `Z` such that every point of `Z` is within distance `≤ γ/2` of
some centre (Definition 1, p. 394, with the metric space of Definition 1 taken to be `Z`). -/
theorem theorem6_covering_robust {α H : Type*} [MetricSpace α] {n : ℕ} (Z : Set α)
(l : H → α → ℝ) (A : (Fin n → α) → H) (ε : (Fin n → α) → ℝ) (γ : ℝ) (hγ : 0 < γ)
(hA : ∀ s : Fin n → α, (∀ j, s j ∈ Z) → ∀ j : Fin n, ∀ z ∈ Z,
dist (s j) z ≤ γ → |l (A s) (s j) - l (A s) z| ≤ ε s)
(hN : Metric.coveringNumber (Real.toNNReal (γ / 2)) Z < ⊤) :
IsRobustOn Z l A (Metric.coveringNumber (Real.toNNReal (γ / 2)) Z).toNat ε := by sorry
end XuMannorRobust.Lasso
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.