Eq. (2) — one projected gradient step: 2∇ᵀ(x − u) ≤ (‖x − u‖² − ‖x' − u‖²)/η + ηG²
ProvedLogRegretOCO.OGD.one_step_inequalityLet be convex, let , let and with , and let be the Euclidean projection of the gradient step onto . Then for every ,
This is display (2) in the proof of Theorem 1, applied there with , , , and . It bounds the linearised regret of one round by a telescoping difference of squared distances plus a step-size term, which is Zinkevich's analysis of projected gradient descent.
Formalization Note The paper prints the second line as ""; the is a typo for : the line follows from the first one by rearranging, and the proof then sums (2) against (1), which needs the factor . The Lean states . The point is not required to lie in (the inequality holds anyway), and the comparator is any rather than the minimiser . Points are EuclideanSpace ℝ (Fin n).
import Mathlib import Definitions.Def_LogRegretOCO_OGD_Model
namespace LogRegretOCO.OGD
/-- **Eq. (2)** (p. 175): one projected gradient step `z = Π_P(x − η g)` with `η > 0`,
`‖g‖ ≤ G`, measured against any `u ∈ P`:
`‖z − u‖² ≤ ‖x − u‖² + η² ‖g‖² − 2η gᵀ(x − u)` and
`2 gᵀ(x − u) ≤ (‖x − u‖² − ‖z − u‖²)/η + η G²`.
(The paper prints `5∇_t^⊤` in the second line; it is `2∇_t^⊤`.) -/
theorem one_step_inequality {n : ℕ} (P : Set (E n)) (hPc : Convex ℝ P) (x g z u : E n)
(η G : ℝ) (hη : 0 < η) (hg : ‖g‖ ≤ G) (hz : IsProj P (x - η • g) z) (hu : u ∈ P) :
‖z - u‖ ^ 2 ≤ ‖x - u‖ ^ 2 + η ^ 2 * ‖g‖ ^ 2 - 2 * η * inner ℝ g (x - u) ∧
2 * inner ℝ g (x - u) ≤ (‖x - u‖ ^ 2 - ‖z - u‖ ^ 2) / η + η * G ^ 2 := by sorry
end LogRegretOCO.OGD
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The inputs are:
- a natural number , with carrying the Euclidean norm and inner product ;
- a set , assumed convex;
- points ;
- real numbers and .
The hypotheses are:
- .
- .
- is a projection of onto . That is, and for every . So is some nearest point of to , and uniqueness is not assumed.
- .
Nothing requires , and nothing requires to be closed.
The theorem asserts that both of the following hold:
The division by is a genuine division, because .
Degenerate cases.
- Hypothesis 2 forces .
- If is empty, or has no nearest point to , hypothesis 3 cannot hold and the statement is vacuous for those data.
- If , all vectors are . The inequalities become and , and the second holds because .
- If , the first inequality says , where is a nearest point of to .
- If is a single point, then and the left side of the first inequality is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.