Lemma 4.2 — exp-concavity via the Hessian
DisprovedOnlineConvexOpt.SecondOrder.exp_concave_iff_hessianThis is the Hessian characterization of pointwise exp-concavity referenced in the definitions above. Let be twice differentiable at a point of a real inner-product space , and let . Then is -exp-concave at — i.e. is concave to second order at — if and only if
meaning that for every direction ,
Since has rank one, this says the Hessian of need only dominate times the outer product of the gradient with itself: strong curvature exactly along the gradient direction, unlike -strong convexity, which demands in every direction. This is the precise sense in which exp-concave functions form a strictly larger class than strongly convex, Lipschitz functions, and it is what allows functions with a low-rank Hessian, such as the negative log-loss of online portfolio selection, to be exp-concave.
Formalization Note is the iterated Fréchet derivative
(fderiv ℝ (fderiv ℝ f) x) v v, and is the differential
(fderiv ℝ f x) v; both sides avoid naming a gradient vector via Riesz representation.
Retired. Retired because its Lean statement was unfaithful to Hazan (see the replacement's Formalization Note); replaced by OnlineConvexOpt.SecondOrder.exp_concave_iff_hessian_v2.
import Mathlib import Definitions.Def_OnlineConvexOpt_SecondOrder_ExpConcave open OnlineConvexOpt.SecondOrder
namespace OnlineConvexOpt.SecondOrder
variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
/-- Lemma 4.2 (Hazan, *Introduction to Online Convex Optimization*, 2nd ed.,
arXiv:1909.05207v3, p. 59, PDF p. 81). A twice-differentiable function `f : E → ℝ` is
`α`-exp-concave at `x` (`IsExpConcaveAt`, the pointwise Hessian formulation of `g(y) =
exp(-α f(y))` being concave to second order at `x`) if and only if `∇²f(x) ⪰ α∇f(x)∇f(x)^⊤`.
The matrix inequality is stated as a comparison of the two quadratic forms it induces: for every
direction `v`, `v^⊤∇²f(x)v ≥ α(∇f(x)^⊤v)^2`, where `v^⊤∇²f(x)v` is the iterated Fréchet
derivative `(fderiv ℝ (fderiv ℝ f) x) v v` and `∇f(x)^⊤v` is the differential `(fderiv ℝ f x) v`.
-/
theorem exp_concave_iff_hessian (α : ℝ) (f : E → ℝ) (x : E) (hf : ContDiffAt ℝ 2 f x) :
IsExpConcaveAt α f x ↔
∀ v : E, α * ((fderiv ℝ f x) v) ^ 2 ≤ (fderiv ℝ (fderiv ℝ f) x) v v := by sorry
end OnlineConvexOpt.SecondOrder
Read-back
What the Lean code literally says, in plain math · claude-opus-5
This declaration fixes an arbitrary real number , an arbitrary real inner product space (a normed additive commutative group carrying a real inner product structure, with no completeness, finite-dimensionality, or nontriviality assumed), an arbitrary function , and an arbitrary point . It assumes a single hypothesis, : that is twice continuously differentiable at in the sense of ContDiffAt ℝ 2 f x, i.e. agrees with a function on some neighbourhood of . Under these assumptions it asserts a two-way equivalence (an "if and only if", not a one-directional implication):
Here the right-hand side quantifies universally over every vector , with no restriction (no normalization , no nonzero requirement, no restriction to a domain or convex set). The quantity is the Fréchet derivative of at , a continuous linear functional on , evaluated at ; the expression is the square of that real number. The quantity is obtained by forming the map (a function from into the space of continuous linear functionals on ), taking its Fréchet derivative at — a continuous linear map from into that functional space — applying it to , and then applying the resulting functional to again. The inequality is a non-strict , oriented so that times the squared first-order term is at most the second-order term.
The predicate on the left is not a standard notion and its definition is not visible in the code presented to me: it is imported from a separate module (Definitions.Def_OnlineConvexOpt_SecondOrder_ExpConcave) and only described in the documentation comment, which is not part of the asserted mathematical content. I therefore cannot expand what it literally means; a reader of this read-back must consult that definition separately to know what is being claimed equivalent to the displayed quantitative inequality. Nothing in this statement constrains it beyond the equivalence itself. Likewise, nothing here requires , or ; may be negative or zero.
Note also what the statement does not say. It does not assert that is convex, exp-concave, or differentiable anywhere other than at . It makes no claim about any point besides the single fixed , and no claim about a domain, a constraint set, or a global property of . It does not assert that is symmetric or positive semidefinite in general — only the stated comparison of the two quadratic forms, and only in the direction paired with itself (the "off-diagonal" values for are never mentioned).
In the degenerate cases the hypotheses permit: if is the zero space (a single point), the universal quantifier ranges over only, where both sides are and the inequality holds trivially, so the right-hand side of the equivalence is vacuously true and the theorem then asserts that holds for every , every and the unique (whatever that predicate turns out to mean). Taking in a general likewise contributes only the trivial instance , so it imposes nothing. Because Lean's fderiv is a total function that returns the zero map whenever (respectively ) fails to be differentiable at the point in question, the symbols and are always well-formed even where no derivative exists; the hypothesis is what is meant to rule that out for itself, but note that ContDiffAt ℝ 2 f x gives twice continuous differentiability on a neighbourhood of and does not, on its own syntactic face, guarantee that the outer fderiv ℝ (fderiv ℝ f) is not silently the junk zero map — if it were, the right-hand condition would degrade to , which for forces . Finally, the hypothesis is satisfiable (constant functions on any satisfy it), so the theorem is not vacuous for that reason; but if one instantiates with a function failing to be near , the hypothesis is unsatisfiable at that instance and the statement says nothing there. The conclusion is proved by sorry, i.e. no proof is supplied in this code.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.