A positive margin and a strict `L∞` Lipschitz budget certify the positive
ProvedCertifiedAdversarialRobustness.margin_lipschitz_implies_linf_certificateaether-catalogmachinelearning
A positive margin and a strict L∞ Lipschitz budget certify the positive
class throughout the prescribed ball.
theorem CertifiedAdversarialRobustness.margin_lipschitz_implies_linf_certificate{n : ℕ}
(score : (Fin n → ℝ) → ℝ) (x : Fin n → ℝ)
(margin L radius : ℝ)
(hmargin : margin ≤ score x) (hmargin_pos : 0 < margin)
(hbudget : L * radius < margin)
(hlip : ∀ y, linfDist x y < radius →
|score y - score x| ≤ L * linfDist x y)
(hL : 0 ≤ L) :
CertifiedAt linfDist score x radius := by sorry
Formalization Note Transplanted verbatim from the Aether Catalog source MachineLearning/CertifiedRobustness.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.
Preamble
-- Thm stub generated from MachineLearning/CertifiedRobustness.lean import Mathlib import Definitions.Def_MachineLearning_CertifiedRobustness /-! # Certified robustness and a finite cellular sheaf counterexample This file isolates a precise contrarian test of the proposed principle. The cohomology model is the degree-one cellular cohomology of the constant real sheaf on the graph consisting of two weight charts and their overlap. Its first cohomology vanishes, but this topological fact alone does not constrain a classifier's decision margin. A threshold classifier supplies a certified counterexample. We also prove a corrected analytic theorem: a positive margin together with a local Lipschitz estimate gives an explicit `L∞` certificate. -/ open CertifiedAdversarialRobustness /-! ## A two-chart cellular sheaf A section over the two vertices is a pair `(a,b)`. Its Čech/cellular coboundary on their oriented overlap is `b-a`. Degree-one cohomology vanishes when every overlap cochain is such a coboundary. -/ /-! ## Corrected positive statement Topology can organize local data, but a numerical certificate requires an analytic bridge. The next result gives that bridge without assuming any cohomology: positive score margin and a local Lipschitz bound imply robustness. -/
Formal statement
theorem CertifiedAdversarialRobustness.margin_lipschitz_implies_linf_certificate{n : ℕ}
(score : (Fin n → ℝ) → ℝ) (x : Fin n → ℝ)
(margin L radius : ℝ)
(hmargin : margin ≤ score x) (hmargin_pos : 0 < margin)
(hbudget : L * radius < margin)
(hlip : ∀ y, linfDist x y < radius →
|score y - score x| ≤ L * linfDist x y)
(hL : 0 ≤ L) :
CertifiedAt linfDist score x radius := by sorrySource