Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 3 — exp-concave functions admit a quadratic lower bound built from the gradient

Proved
LogRegretOCO.ONS.exp_concave_quadratic_lower_bound

by mikedeng1 · Sep 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

convex-analysisexp-concavityonline-convex-optimizationp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let P⊆Rn\mathcal P\subseteq\mathbb R^nP⊆Rn have diameter at most D>0D>0D>0, i.e. ∥x−y∥≤D\|x-y\|\le D∥x−y∥≤D for all x,y∈Px,y\in\mathcal Px,y∈P. Let f:Rn→Rf:\mathbb R^n\to\mathbb Rf:Rn→R be differentiable at every point of P\mathcal PP with ∥∇f(x)∥≤G\|\nabla f(x)\|\le G∥∇f(x)∥≤G for all x∈Px\in\mathcal Px∈P, where G>0G>0G>0, and suppose that x↦exp⁡(−αf(x))x\mapsto\exp(-\alpha f(x))x↦exp(−αf(x)) is concave on P\mathcal PP. Then for every β\betaβ with

0<β≤12min⁡{14GD, α}0<\beta\le\tfrac12\min\Big\{\frac1{4GD},\,\alpha\Big\}0<β≤21​min{4GD1​,α}

and all x,y∈Px,y\in\mathcal Px,y∈P,

f(x) ≥ f(y)+∇f(y)⊤(x−y)+β2 (x−y)⊤∇f(y)∇f(y)⊤(x−y).f(x)\ \ge\ f(y)+\nabla f(y)^\top(x-y)+\frac\beta2\,(x-y)^\top\nabla f(y)\nabla f(y)^\top(x-y).f(x) ≥ f(y)+∇f(y)⊤(x−y)+2β​(x−y)⊤∇f(y)∇f(y)⊤(x−y).

The lemma replaces the Hessian in a second-order Taylor bound by the rank-one matrix ∇f(y)∇f(y)⊤\nabla f(y)\nabla f(y)^\top∇f(y)∇f(y)⊤; this is what lets the Online Newton Step work from gradients alone. It gives the per-round inequality (3) of the proof of Theorem 2.

Formalization Note The quadratic term is written as β/2⋅(∇f(y)⊤(x−y))2\beta/2\cdot(\nabla f(y)^\top(x-y))^2β/2⋅(∇f(y)⊤(x−y))2, which equals (x−y)⊤∇f(y)∇f(y)⊤(x−y)(x-y)^\top\nabla f(y)\nabla f(y)^\top(x-y)(x−y)⊤∇f(y)∇f(y)⊤(x−y). The hypotheses G>0G>0G>0, D>0D>0D>0 are the non-degeneracy the formula 1/(4GD)1/(4GD)1/(4GD) presupposes (in Lean 1/0=01/0=01/0=0). The hypothesis β>0\beta>0β>0 is added: the paper's proof divides by β\betaβ, and it forces α>0\alpha>0α>0, which is part of the paper's definition of α\alphaα-exp-concavity. The diameter is used only as the upper bound ∥x−y∥≤D\|x-y\|\le D∥x−y∥≤D, which makes the statement slightly more general. The paper's standing assumptions that fff is convex and twice differentiable are not needed (convexity follows from exp-concavity) and are omitted.

Preamble
import Mathlib
open scoped RealInnerProductSpace
Formal statement
namespace LogRegretOCO.ONS

/-- Lemma 3 (Hazan–Agarwal–Kale 2007, p. 177). Let `P` have diameter at most `D`, let `f` be
differentiable at every point of `P` with `‖∇f(x)‖ ≤ G` there, and let `exp(−α f)` be concave on
`P`. Then for every `0 < β ≤ ½ min{1/(4GD), α}` and all `x, y ∈ P`,
`f(x) ≥ f(y) + ∇f(y)ᵀ(x − y) + (β/2) (x − y)ᵀ ∇f(y) ∇f(y)ᵀ (x − y)`.
`0 < G`, `0 < D` are the non-degeneracy the formula `1/(4GD)` presupposes; `0 < β` excludes the
degenerate step size (the proof divides by `β`). -/
theorem exp_concave_quadratic_lower_bound {n : ℕ} (P : Set (EuclideanSpace ℝ (Fin n)))
    (G D α β : ℝ) (hG : 0 < G) (hD : 0 < D)
    (hdiam : ∀ x ∈ P, ∀ y ∈ P, ‖x - y‖ ≤ D)
    (f : EuclideanSpace ℝ (Fin n) → ℝ)
    (hdiff : ∀ x ∈ P, DifferentiableAt ℝ f x)
    (hgrad : ∀ x ∈ P, ‖gradient f x‖ ≤ G)
    (hexp : ConcaveOn ℝ P (fun x => Real.exp (-α * f x)))
    (hβ_pos : 0 < β) (hβ : β ≤ (1 / 2) * min (1 / (4 * G * D)) α) :
    ∀ x ∈ P, ∀ y ∈ P,
      f y + ⟪gradient f y, x - y⟫ + (β / 2) * ⟪gradient f y, x - y⟫ ^ 2 ≤ f x := by sorry

end LogRegretOCO.ONS
Source
Hazan, Agarwal, Kale, Logarithmic regret algorithms for online convex optimization, Mach Learn 69 (2007), p. 177, Lemma 3
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. Let n∈Nn\in\mathbb{N}n∈N and let P⊆RnP\subseteq\mathbb{R}^nP⊆Rn, where Rn\mathbb{R}^nRn is Euclidean space. Let G,D,α,βG,D,\alpha,\betaG,D,α,β be real numbers and let f:Rn→Rf:\mathbb{R}^n\to\mathbb{R}f:Rn→R.

Hypotheses:

  • G>0G>0G>0 and D>0D>0D>0.
  • For all x,y∈Px,y\in Px,y∈P, ∥x−y∥≤D\|x-y\|\le D∥x−y∥≤D (Euclidean norm).
  • fff is differentiable at every point of PPP.
  • For every x∈Px\in Px∈P, ∥∇f(x)∥≤G\|\nabla f(x)\|\le G∥∇f(x)∥≤G.
  • The function x↦e−αf(x)x\mapsto e^{-\alpha f(x)}x↦e−αf(x) is concave on PPP. As formulated, this concavity hypothesis includes the requirement that PPP is convex.
  • 0<β≤12min⁡{14GD,α}0<\beta\le \tfrac12\min\{\frac{1}{4GD},\alpha\}0<β≤21​min{4GD1​,α}. Since min⁡{⋅,α}≤α\min\{\cdot,\alpha\}\le\alphamin{⋅,α}≤α, this forces α≥2β>0\alpha\ge 2\beta>0α≥2β>0.

Conclusion. For all x,y∈Px,y\in Px,y∈P,

f(y)+⟨∇f(y), x−y⟩+β2 ⟨∇f(y), x−y⟩2  ≤  f(x).f(y)+\langle\nabla f(y),\,x-y\rangle+\frac{\beta}{2}\,\langle\nabla f(y),\,x-y\rangle^2\;\le\;f(x).f(y)+⟨∇f(y),x−y⟩+2β​⟨∇f(y),x−y⟩2≤f(x).

Here ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle⟨⋅,⋅⟩ is the standard inner product and ∇f(y)\nabla f(y)∇f(y) is the Euclidean gradient. Because fff is differentiable at y∈Py\in Py∈P, this gradient is the genuine gradient.

Degenerate cases:

  • PPP empty: every hypothesis about PPP holds vacuously and the conclusion is vacuous.
  • PPP a single point: only x=yx=yx=y arises, and the inequality reads f(y)≤f(y)f(y)\le f(y)f(y)≤f(y).
  • n=0n=0n=0:
    • PPP is either empty or the single zero point, and the gradient is the zero vector;
    • the conclusion reduces to f(0)≤f(0)f(0)\le f(0)f(0)≤f(0).
  • α\alphaα: it is not assumed positive directly, but the hypotheses on β\betaβ force α>0\alpha>0α>0.
  • Division: 14GD\frac{1}{4GD}4GD1​ is a genuine quotient, since G,D>0G,D>0G,D>0.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me