The normalized-at-zero function class (normalized setting of §1)
DefinitionNAGUpperBoundrational-momentum-nag
This module introduces the normalised function class in which the whole upper-bound argument of Part I is carried out, after the source's normalisation , , . NormalizedAtZero f is a structure requiring that be convex on the whole space, differentiable, with a -Lipschitz gradient ( for all ), and that the origin be an optimizer with vanishing value and gradient and minimal value:
This is exactly the source's normalised setting of §1, in which the target inequality reads with the normalised initial point. The module is also the home of the dedicated boundary certificate for the case (source (18.1)).
Definition code
-- Generated from F:/20261008/FullFormalization\FullFormalization\NAGUpperBound.lean by skeleton subtraction (Phase 3-4):
-- every unselected declaration deleted, project imports rewritten.
/-
FullFormalization.NAGUpperBound
Source section 18: the dedicated exact certificate for the boundary case `N = 1`.
Source (18.1):
‖r‖²/6 - F_1 = (1/2)(I_{⋆,0} + I_{0,1} + I_{⋆,1})
+ (3/8) ‖g_0 - r/3‖² + (1/2) ‖g_1 - x_1/2‖²
and the resulting bound `F_1 ≤ ‖r‖²/6`, which agrees with
`2/(1² + 7·1 + 4) = 1/6`, so that the all-`N` formula has no gap at `N = 1`.
The general `N ≥ 2` chain certificate does *not* cover `N = 1` (its index
ranges are empty), which is exactly why the source gives this case
separately.
**Scalar-multiplication pitfall.** In Lean a bare `(1 / 3) • r` elaborates
the numeral `1 / 3` at type `ℕ` (where it is `0`), silently turning the term
into `0 • r`. Every scalar below is therefore written with an explicit `ℝ`
ascription, e.g. `((1 : ℝ) / 3) • r`.
-/
import Mathlib
import Mathlib.Analysis.Calculus.Deriv.MeanValue
import Mathlib.Analysis.Convex.Deriv
import Mathlib.Analysis.InnerProductSpace.Dual
import Definitions.Def_Certificate
import Definitions.Def_Coefficients
import Definitions.Def_FunctionClass
import Definitions.Def_RationalNAG
open scoped Gradient RealInnerProductSpace
set_option linter.unusedSectionVars false
set_option linter.unusedTactic false
set_option maxHeartbeats 2000000
namespace FullFormalization
variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E]
/-- The normalised setting of source section 1: the optimizer has been
translated to `0`, its value to `0`, and `L` to `1`. -/
structure NormalizedAtZero (f : E → ℝ) : Prop where
convex : ConvexOn ℝ Set.univ f
differentiable : Differentiable ℝ f
smooth : ∀ a b : E, ‖∇ f a - ∇ f b‖ ≤ ‖a - b‖
value_at_zero : f 0 = 0
grad_at_zero : ∇ f 0 = 0
min_at_zero : ∀ x : E, f 0 ≤ f x
end FullFormalization
Source
《有理动量 Nesterov 紧界与半径归一化五算法共同最坏情形 — 可审计完整证明稿》 (manuscript, 2026-10-08), §1 (normalization), source lines 120-176, and §18 eq. (18.1); Lean: FullFormalization.NAGUpperBound lines 1-60