Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 12.2, fourth claim — subdifferential outside the set

Proved
ModernOnlineLearning.Reductions.lemma_12_2_subdiff

by mikedeng1 · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

convex-analysisdistance-functionp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1subgradient

Let VVV be nonempty, closed, and convex. If x∉Vx\notin Vx∈/V and y∈ΠV(x)y\in\Pi_V(x)y∈ΠV​(x), then a continuous linear functional ggg is a full-space subgradient of dVd_VdV​ at xxx exactly when

∥g∥∗=1,g(x−y)=∥x−y∥,g(u−y)≤0for every u∈V.\|g\|_*=1,\qquad g(x-y)=\|x-y\|,\qquad g(u-y)\le0\quad\text{for every }u\in V.∥g∥∗​=1,g(x−y)=∥x−y∥,g(u−y)≤0for every u∈V.

This characterizes the distance subgradients used by the linear surrogate choices.

Preamble
import Mathlib
import Definitions.Def_ModernOnlineLearning_Reductions_Setting
Formal statement
namespace ModernOnlineLearning.Reductions

/-- Orabona, Lemma 12.2, fourth claim, p. 193. -/
theorem lemma_12_2_subdiff {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
    [FiniteDimensional ℝ E] (V : Set E) (hV : V.Nonempty)
    (hclosed : IsClosed V) (hconv : Convex ℝ V)
    (x y : E) (hx : x ∉ V) (hy : IsProjection V x y) :
    ∀ g : E →L[ℝ] ℝ,
      IsSubgradient (distance V) x g ↔
        ‖g‖ = 1 ∧ g (x - y) = ‖x - y‖ ∧ ∀ u ∈ V, g (u - y) ≤ 0 := by sorry

end ModernOnlineLearning.Reductions
Source
Orabona, arXiv:1912.13213v10, Lemma 12.2, fourth claim, p. 193
Human review
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 9, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me