Lean module · Hinge loss
BanditRLProof.OnlineHinge
Orabona arXiv:1912.13213v10, Example2.27 printed18 / PDF30. The actual loss max(1-inner(z,x),0) has the full three-branch global subdifferential, including the entire closed segment at equality and z=0. Affine supports are constructed, and the full finite-maximum rule is actually instantiated. This package is not Chapter2 or whole-book completion.
Module map
Imports
BanditRLProof.OnlineSubgradientMax
Imported by
BanditRLProof, BanditRLProof.OnlineNonsmoothExamples, BanditRLProof.OnlineUnboundedOSD
Declarations
Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.
def
BanditRL.OnlineConvex.sourceHinge
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Canonical node identity
declaration:BanditRL.OnlineConvex.sourceHingeReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def sourceHinge (z x : E) : EReal
theorem
BanditRL.OnlineConvex.affine_subdifferential
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Canonical node identity
declaration:BanditRL.OnlineConvex.affine_subdifferentialReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem affine_subdifferential (a : E) (b : ℝ) (x : E) : SourceSubdifferential (fun y => ((inner ℝ a y + b : ℝ) : EReal)) x = {a}
def
BanditRL.OnlineConvex.hingeFamily
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Canonical node identity
declaration:BanditRL.OnlineConvex.hingeFamilyReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def hingeFamily (z : E) (i : Bool) (y : E) : EReal
theorem
BanditRL.OnlineConvex.affine_proper
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Canonical node identity
declaration:BanditRL.OnlineConvex.affine_properReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem affine_proper (a : E) (b : ℝ) : SourceProper (fun y => ((inner ℝ a y + b : ℝ) : EReal))
theorem
BanditRL.OnlineConvex.affine_convex
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Canonical node identity
declaration:BanditRL.OnlineConvex.affine_convexReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem affine_convex (a : E) (b : ℝ) : IsConvexExtended (fun y => ((inner ℝ a y + b : ℝ) : EReal))
theorem
BanditRL.OnlineConvex.affine_continuous
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Canonical node identity
declaration:BanditRL.OnlineConvex.affine_continuousReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem affine_continuous (a : E) (b : ℝ) (x : E) : ContinuousAt (fun y => ((inner ℝ a y + b : ℝ) : EReal)) x
theorem
BanditRL.OnlineConvex.hinge_max_identity
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Canonical node identity
declaration:BanditRL.OnlineConvex.hinge_max_identityReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem hinge_max_identity (z : E) : SourceFiniteMax (hingeFamily z) = sourceHinge z
theorem
BanditRL.OnlineConvex.hinge_subdifferential_hull
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Canonical node identity
declaration:BanditRL.OnlineConvex.hinge_subdifferential_hullReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem hinge_subdifferential_hull [FiniteDimensional ℝ E] (z x : E) : SourceSubdifferential (sourceHinge z) x = convexHull ℝ (SourceActiveSubgradientUnion (hingeFamily z) x)
theorem
BanditRL.OnlineConvex.hinge_family_support
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Canonical node identity
declaration:BanditRL.OnlineConvex.hinge_family_supportReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem hinge_family_support (z : E) (i : Bool) (x : E) : SourceSubdifferential (hingeFamily z i) x = {if i then -z else 0}
theorem
BanditRL.OnlineConvex.hinge_family_false
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Canonical node identity
declaration:BanditRL.OnlineConvex.hinge_family_falseReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem hinge_family_false (z x : E) : hingeFamily z false x = ((0 : ℝ) : EReal)
theorem
BanditRL.OnlineConvex.hinge_family_true
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Canonical node identity
declaration:BanditRL.OnlineConvex.hinge_family_trueReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem hinge_family_true (z x : E) : hingeFamily z true x = ((1 - inner ℝ z x : ℝ) : EReal)
theorem
BanditRL.OnlineConvex.hinge_active_negative
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Canonical node identity
declaration:BanditRL.OnlineConvex.hinge_active_negativeReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem hinge_active_negative (z x : E) (h : 1 - inner ℝ z x < 0) : SourceActiveSubgradientUnion (hingeFamily z) x = {(0 : E)}
theorem
BanditRL.OnlineConvex.hinge_active_positive
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Canonical node identity
declaration:BanditRL.OnlineConvex.hinge_active_positiveReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem hinge_active_positive (z x : E) (h : 0 < 1 - inner ℝ z x) : SourceActiveSubgradientUnion (hingeFamily z) x = {-z}
theorem
BanditRL.OnlineConvex.hinge_active_zero
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Canonical node identity
declaration:BanditRL.OnlineConvex.hinge_active_zeroReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem hinge_active_zero (z x : E) (h : 1 - inner ℝ z x = 0) : SourceActiveSubgradientUnion (hingeFamily z) x = {(0 : E), -z}
theorem
BanditRL.OnlineConvex.example_2_27
Compiled
No declaration docstring is present; use the chapter context and exact statement below.
Used in these reading views: Online Learning Book
Canonical node identity
declaration:BanditRL.OnlineConvex.example_2_27Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem example_2_27 [FiniteDimensional ℝ E] (z x : E) : SourceSubdifferential (sourceHinge z) x = if 1 - inner ℝ z x < 0 then {0} else if 1 - inner ℝ z x = 0 then {g | ∃ α ∈ Icc (0 : ℝ) 1, g = -(α • z)} else {-z}