First-order conditions for convex functions on normed spaces #
A convex function lies above its tangent hyperplanes: if f is convex on K and differentiable
within K at x ∈ K with derivative f', then f x + f' (y - x) ≤ f y for y ∈ K (strictly
when f is strictly convex and y ≠ x). In a
Hilbert space with gradient g this reads f x + ⟪g, y - x⟫ ≤ f y, so the gradient is a
subgradient relative to K. For m-strongly convex functions the bound improves by
m / 2 * ‖y - x‖ ^ 2. Mathlib proves
the one-dimensional statements (ConvexOn.le_slope_of_hasDerivWithinAt_Ioi and its relatives);
here they are lifted along the segment s ↦ x + s • (y - x).
These are the forms of convexity and strong convexity assumed by online convex optimization ([Haz22] §2.1).
Main results #
ConvexOn.add_le_of_hasFDerivWithinAt: the tangent-hyperplane inequality on a real normed space, for a derivative withinK(so boundary points ofKare allowed);ConvexOn.add_le_of_hasFDerivAtis the special case of a full derivative, andStrictConvexOn.add_lt_of_hasFDerivWithinAt/StrictConvexOn.add_lt_of_hasFDerivAtare the strict inequalities for strictly convex functions.ConcaveOn.le_add_mul_of_hasDerivWithinAtgives the one-dimensional concave formf y ≤ f x + d * (y - x).ConvexOn.add_inner_le_of_hasGradientWithinAt,ConvexOn.add_inner_le_of_hasGradientAt: the gradient form in a Hilbert space.StrongConvexOn.add_inner_add_le_of_hasGradientWithinAt,StrongConvexOn.add_inner_add_le_of_hasGradientAt: the strongly convex gradient formf x + ⟪g, y - x⟫ + m / 2 * ‖y - x‖ ^ 2 ≤ f y.convexOn_of_forall_add_le,strictConvexOn_of_forall_add_lt,convexOn_of_forall_add_inner_le: conversely, a function with a (strict) subgradient relative toKat every point ofKis (strictly) convex onK.abs_sub_le_of_forall_add_inner_le: subgradients of norm at mostρmake the functionρ-Lipschitz onK.hasDerivWithinAt_nonpos_of_eventually_le,eventually_add_mul_nonneg_nhdsGE,eventually_add_mul_le_nhdsGE: first-order right-derivative optimality and feasible boundary-ray helpers on[0, ∞)(used for KKT multiplier extraction on polyhedral domains).
References #
A convex function lies above its tangent hyperplane at any point where it is differentiable
within its domain: f x + f' (y - x) ≤ f y for x y ∈ K.
A convex function lies above its tangent hyperplane at any point of differentiability:
f x + f' (y - x) ≤ f y for x y ∈ K.
A concave function on ℝ lies below its tangent line at any point where it is differentiable
within its domain: f y ≤ f x + d * (y - x) for x y ∈ K.
Conversely, a function with a subgradient relative to K at every point of a convex set K
is convex on K: if f x + g x (y - x) ≤ f y for all x y ∈ K, then f is convex on K.
A strictly convex function lies strictly above its tangent hyperplane at any point where it is
differentiable within its domain: f x + f' (y - x) < f y for x y ∈ K with y ≠ x.
A strictly convex function lies strictly above its tangent hyperplane at any point of
differentiability: f x + f' (y - x) < f y for x y ∈ K with y ≠ x.
Conversely, a function with a strict subgradient relative to K at every point of a convex set
K is strictly convex on K: if f x + g x (y - x) < f y for all x y ∈ K with y ≠ x, then
f is strictly convex on K.
The gradient of a convex function within its domain is a subgradient relative to the domain:
f x + ⟪g, y - x⟫ ≤ f y for x y ∈ K.
The gradient of a convex function is a subgradient relative to its domain:
f x + ⟪g, y - x⟫ ≤ f y for x y ∈ K.
Conversely, a function with a subgradient relative to K at every point of a convex set K
is convex on K: if f x + ⟪g x, y - x⟫ ≤ f y for all x y ∈ K, then f is convex on K.
Bounded subgradients make a function Lipschitz: if f x + ⟪g x, y - x⟫ ≤ f y for x y ∈ K
and ‖g x‖ ≤ ρ on K, then |f x - f y| ≤ ρ * ‖x - y‖ for x y ∈ K.
The first-order bound for an m-strongly convex function with a gradient within its domain:
f x + ⟪g, y - x⟫ + m / 2 * ‖y - x‖ ^ 2 ≤ f y for x y ∈ K.
The first-order bound for an m-strongly convex function:
f x + ⟪g, y - x⟫ + m / 2 * ‖y - x‖ ^ 2 ≤ f y for x y ∈ K.
First-order directional derivative nonpositivity for a right-differentiable function at a local
maximum on [0, ∞): if φ has right derivative d at 0 within [0, ∞) and φ t ≤ φ 0
eventually as t → 0⁺, then d ≤ 0.