Rational-momentum Nesterov iterates with
DefinitionRationalNAGrational-momentum-nag
This module defines the two-sequence rational-momentum Nesterov method of §3, indexed from with no off-by-one shift, and singles out the final extrapolated point as the reported output:
for , where is the smoothness constant and the objective. The pair is generated by a single recursion: the state is produced by nagPair, with nagPair … 0 = (x_0, x_0) encoding the initialisation , while nagX and nagY project out and . The three relations (3.1)-(3.3) are recorded verbatim. The proof variable of the source is deliberately not part of this definition: the algorithm performs no gradient query at its output point, so appears only as a free variable inside the certificate.
Definition code
-- Generated from F:/20261008/FullFormalization\FullFormalization\RationalNAG.lean by skeleton subtraction (Phase 3-4):
-- every unselected declaration deleted, project imports rewritten.
/-
FullFormalization.RationalNAG
The rational-momentum Nesterov method, source section 3.
Source lines 27-45 and 285-310:
y_0 = x_0
y_{k+1} = x_k - (1/L) ∇f(x_k)
x_{k+1} = y_{k+1} + m_k (y_{k+1} - y_k), m_k = k/(k+3), k = 0, ..., N-1
and the reported output is the **final extrapolated point `x_N`**
(source line 46, emphasised). This module defines exactly that two-sequence
method and records the three relations (3.1), (3.2), (3.3) verbatim.
There is no off-by-one shift anywhere: `nagX f L x₀ k` is `x_k` and
`nagY f L x₀ k` is `y_k`, both indexed from `0`, and `nagPair … 0 = (x₀, x₀)`
encodes `y_0 = x_0`.
The proof variable `g_N = ∇f(x_N)` of source lines 312-319 is *not* part of
this definition: the algorithm performs no gradient query at its output
point. `g_N` appears only inside `Certificate.lean`, as a free variable.
-/
import Mathlib
import Definitions.Def_Coefficients
import Definitions.Def_FunctionClass
namespace FullFormalization
open scoped Gradient
variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E]
/-- The `(x_k, y_k)` pair of the rational-momentum Nesterov method, source
(3.1)-(3.2). `nagPair f L x₀ k = (x_k, y_k)`. -/
noncomputable def nagPair (f : E → ℝ) (L : ℝ) (x₀ : E) : ℕ → E × E
| 0 => (x₀, x₀)
| k + 1 =>
let p := nagPair f L x₀ k
let y' := p.1 - (1 / L) • ∇ f p.1
(y' + mom k • (y' - p.2), y')
/-- `x_k`, the extrapolated iterate. -/
noncomputable def nagX (f : E → ℝ) (L : ℝ) (x₀ : E) (k : ℕ) : E :=
(nagPair f L x₀ k).1
/-- `y_k`, the gradient-step iterate. -/
noncomputable def nagY (f : E → ℝ) (L : ℝ) (x₀ : E) (k : ℕ) : E :=
(nagPair f L x₀ k).2
end FullFormalization
Source
《有理动量 Nesterov 紧界与半径归一化五算法共同最坏情形 — 可审计完整证明稿》 (manuscript, 2026-10-08), §3, eq. (3.1)-(3.3) (source lines 27-45 and 285-310); Lean: FullFormalization.RationalNAG lines 1-73