Lemma 14.7 (on ℝ^d): a convex f is ρ-Lipschitz iff every subgradient at every point has norm ≤ ρ
ProvedUnderstandingML.lipschitz_iff_subgradient_boundedlipschitzsubgradients
Lemma 14.7. Let be a convex open set and let be a convex function. Then is -Lipschitz over iff for all and we have .
Formally: for and a Lipschitz constant . (On , a single point, every function is -Lipschitz for every , while has norm , so the equivalence needs .)
Preamble
import Definitions.Def_UnderstandingML_SGD open MeasureTheory open scoped InnerProductSpace
Formal statement
namespace UnderstandingML
/-- **Lemma 14.7** (p. 190), for `A = ℝ^d`. Let `f : ℝ^d → ℝ` be a convex function. Then `f` is
`ρ`-Lipschitz iff for all `w` and `v ∈ ∂f(w)` we have `‖v‖ ≤ ρ`. The Lipschitz constant is
nonnegative: on `ℝ⁰` every function is `ρ`-Lipschitz for every `ρ`, while `0 ∈ ∂f(0)`. -/
theorem lipschitz_iff_subgradient_bounded {d : ℕ} (f : Vec d → ℝ) (hf : ConvexOn ℝ Set.univ f)
(ρ : ℝ) (hρ : 0 ≤ ρ) :
(∀ u v, |f u - f v| ≤ ρ * ‖u - v‖) ↔ ∀ w v, IsSubgradient f w v → ‖v‖ ≤ ρ := by sorry
end UnderstandingML
Source
Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press 2014, doi:10.1017/CBO9781107298019, §14.2.2 p. 190, Lemma 14.7 with its proof (for A = ℝ^d)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.