Lemma 8 — generalized projections onto a convex set do not increase A-distances to points of the set
ProvedLogRegretOCO.ONS.gen_proj_ineqLet be convex, let be a positive semidefinite matrix, let , and let be a generalized projection of onto with respect to , i.e. minimises over . Then for every ,
This is the generalized Pythagorean inequality; in the analysis of the Online Newton Step it shows that the projection step can only decrease the -distance to the comparator.
Formalization Note "Positive semidefinite" is Mathlib's Matrix.PosSemidef (symmetric with nonnegative quadratic form). The paper's display defines with "min"; it means the minimising point (argmin), which is what the predicate encodes. No existence or uniqueness of the projection is assumed: the conclusion holds for every minimiser.
import Mathlib import Definitions.Def_LogRegretOCO_ONS_Basic
namespace LogRegretOCO.ONS
/-- Lemma 8 (folklore; Hazan–Agarwal–Kale 2007, p. 188). Let `P ⊆ ℝⁿ` be convex, `A` positive
semidefinite, `y ∈ ℝⁿ`, and `z` a generalized projection of `y` onto `P` with respect to `A`.
Then `(y − a)ᵀ A (y − a) ≥ (z − a)ᵀ A (z − a)` for every `a ∈ P`. -/
theorem gen_proj_ineq {n : ℕ} (P : Set (EuclideanSpace ℝ (Fin n))) (hP : Convex ℝ P)
(A : Matrix (Fin n) (Fin n) ℝ) (hA : A.PosSemidef)
(y z : EuclideanSpace ℝ (Fin n)) (hz : IsGenProj P A y z) :
∀ a ∈ P, quadForm A (z - a) ≤ quadForm A (y - a) := by sorry
end LogRegretOCO.ONS
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let and let be convex. Let be a real matrix that is positive semidefinite, meaning both:
- is symmetric;
- for all .
Let .
Hypothesis. is a generalized projection of onto with respect to . That is:
- ;
- for every .
Conclusion. For every ,
Assumptions not made: closedness or boundedness of is not assumed. The existence of the minimizer is itself a hypothesis.
Degenerate cases:
- empty: the projection hypothesis cannot hold, so the statement is vacuous.
- : then attains . With the conclusion says .
- :
- every point of is a generalized projection;
- the conclusion is .
- : both sides are .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.