Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The normalized-at-zero function class (normalized setting of §1)

Definition
NAGUpperBound

by Somehow · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

rational-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 x⋆↦0x_\star \mapsto 0x⋆​↦0, f⋆↦0f_\star \mapsto 0f⋆​↦0, L↦1L \mapsto 1L↦1. NormalizedAtZero f is a structure requiring that fff be convex on the whole space, differentiable, with a 111-Lipschitz gradient (∥∇f(a)−∇f(b)∥≤∥a−b∥\|\nabla f(a) - \nabla f(b)\| \le \|a-b\|∥∇f(a)−∇f(b)∥≤∥a−b∥ for all a,ba, ba,b), and that the origin be an optimizer with vanishing value and gradient and minimal value:

f(0)=0,∇f(0)=0,f(0)≤f(x)    ∀x.f(0) = 0, \qquad \nabla f(0) = 0, \qquad f(0) \le f(x) \;\; \forall x.f(0)=0,∇f(0)=0,f(0)≤f(x)∀x.

This is exactly the source's normalised setting of §1, in which the target inequality reads FN≤τN∥r∥2F_N \le \tau_N\|r\|^2FN​≤τN​∥r∥2 with rrr the normalised initial point. The module is also the home of the dedicated boundary certificate for the case N=1N = 1N=1 (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

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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me