Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions of Coefficients

Definition
Coefficients

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

rational-momentum-nag

This module introduces every scalar sequence of the certificate, as exact real-valued functions of the integer indices. The rational-momentum coefficient is

mk=kk+3,m_k = \frac{k}{k+3},mk​=k+3k​,

and the two distinguished sequences are

dj=j(j+7)8,τN=2N2+7N+4=12(2dN+1).d_j = \frac{j(j+7)}{8}, \qquad \tau_N = \frac{2}{N^2 + 7N + 4} = \frac{1}{2(2d_N+1)}.dj​=8j(j+7)​,τN​=N2+7N+42​=2(2dN​+1)1​.

The denominator sequence DDD follows the source's genuine two-case split, D0=2dN+1D_0 = 2d_N + 1D0​=2dN​+1 and Dj=2dN−dj−1D_j = 2d_N - d_{j-1}Dj​=2dN​−dj−1​ for 1≤j≤N1 \le j \le N1≤j≤N (formula (4.8) must not be extended mechanically to j=0j = 0j=0). The auxiliary sequences are

hj=j+22−j(j+1)(j+2)2(N+1)(N+2),Hj=(j+1)(j+4)4−j(j+1)(j+2)(j+3)8(N+1)(N+2),h_j = \frac{j+2}{2} - \frac{j(j+1)(j+2)}{2(N+1)(N+2)}, \qquad H_j = \frac{(j+1)(j+4)}{4} - \frac{j(j+1)(j+2)(j+3)}{8(N+1)(N+2)},hj​=2j+2​−2(N+1)(N+2)j(j+1)(j+2)​,Hj​=4(j+1)(j+4)​−8(N+1)(N+2)j(j+1)(j+2)(j+3)​,

and the interpolation weights are aj=Hj/Dj+1a_j = H_j / D_{j+1}aj​=Hj​/Dj+1​ for 0≤j<N0 \le j < N0≤j<N together with the separate endpoint aN=1a_N = 1aN​=1 (a real case split, since HN/DN+1≠1H_N/D_{N+1} \ne 1HN​/DN+1​=1), and bj=aj−aj−1b_j = a_j - a_{j-1}bj​=aj​−aj−1​ for 0≤j≤N0 \le j \le N0≤j≤N with the source's convention a−1=0a_{-1} = 0a−1​=0 absorbed into b0=a0b_0 = a_0b0​=a0​. All divisions are exact divisions in R\mathbb RR: no floating point arithmetic and no finite enumeration is used anywhere.

Definition code
-- Generated from F:/20261008/FullFormalization\FullFormalization\Coefficients.lean by skeleton subtraction (Phase 3-4):
-- every unselected declaration deleted, project imports rewritten.
/-
  FullFormalization.Coefficients

  Source: `auditable_full_proof_nag_and_five_algorithm_cn.md`, sections 4 and 5.

  All scalar coefficient sequences of the rational-momentum Nesterov
  certificate, transcribed verbatim from the source:

    (4.1)  d_j = j (j+7) / 8
    (4.2)  tau = 1/(2 (2 d_N + 1)) = 2 / (N^2 + 7 N + 4)
    (4.3)  h_j = (j+2)/2 - j(j+1)(j+2) / (2 (N+1)(N+2))
    (4.4)  H_j = (j+1)(j+4)/4 - j(j+1)(j+2)(j+3) / (8 (N+1)(N+2))
    (4.7)  D_0 = 2 d_N + 1
    (4.8)  D_j = 2 d_N - d_{j-1}          (1 <= j <= N)
    (4.11) a_j = H_j / D_{j+1}            (0 <= j < N)
    (4.12) a_{-1} = 0,  a_N = 1
    (4.13) b_j = a_j - a_{j-1}            (0 <= j <= N)
    (3.2)  m_k = k / (k+3)

  Representation choices (recorded in DEPENDENCY_MAP.md, section 9, and in
  THEOREM_AUDIT.md):

  * Coefficients are real-valued.  Every division below is a division in the
    exact characteristic-zero field `R`; no floating point arithmetic and no
    finite enumeration is used anywhere.  All identities in
    `CoefficientIdentities.lean` are proved symbolically in `N` and `j`.

  * `D` is defined by the source's two-case definition: index `0` uses the
    separately-declared `D_0`, and the source explicitly warns (line 427) that
    formula (4.8) must not be extended mechanically to `j = 0`.  The Lean
    definition reproduces exactly that two-case split.

  * `a` uses the source's separate endpoint values: `a_N = 1` is *not* equal to
    `H_N / D_{N+1}`, so it is a genuine case split, not a convenience.

  * `a_{-1} = 0` is not an index of `a : Nat -> R`; it is absorbed into the
    definition of `b`, where `b_0 := a_0 - a_{-1} = a_0`.
-/

import Mathlib

namespace FullFormalization

/-- (4.1) `d_j = j (j + 7) / 8`. -/
noncomputable def d (j : ℕ) : ℝ := (j : ℝ) * ((j : ℝ) + 7) / 8

/-- (3.2) `m_k = k / (k + 3)`, the rational momentum coefficient.

Source line 299 defines `m_k = k/(k+3)` for `k = 0, ..., N-1`. -/
noncomputable def mom (k : ℕ) : ℝ := (k : ℝ) / ((k : ℝ) + 3)

/-- (4.7), (4.8) `D_0 = 2 d_N + 1` and `D_j = 2 d_N - d_{j-1}` for `1 <= j <= N`.

The index `0` is a genuine special case (source line 427). -/
noncomputable def D (N j : ℕ) : ℝ :=
  if j = 0 then 2 * d N + 1 else 2 * d N - d (j - 1)

/-- (4.3) `h_j = (j+2)/2 - j(j+1)(j+2) / (2 (N+1)(N+2))`, defined for `0 <= j < N`. -/
noncomputable def h (N j : ℕ) : ℝ :=
  ((j : ℝ) + 2) / 2
    - (j : ℝ) * ((j : ℝ) + 1) * ((j : ℝ) + 2)
        / (2 * ((N : ℝ) + 1) * ((N : ℝ) + 2))

/-- (4.4) `H_j = (j+1)(j+4)/4 - j(j+1)(j+2)(j+3) / (8 (N+1)(N+2))`. -/
noncomputable def H (N j : ℕ) : ℝ :=
  ((j : ℝ) + 1) * ((j : ℝ) + 4) / 4
    - (j : ℝ) * ((j : ℝ) + 1) * ((j : ℝ) + 2) * ((j : ℝ) + 3)
        / (8 * ((N : ℝ) + 1) * ((N : ℝ) + 2))

/-- (4.11), (4.12) `a_j = H_j / D_{j+1}` for `0 <= j < N`, with `a_N = 1`.

`a_{-1} = 0` is handled in `b` (see below), since `-1` is not an index of `ℕ`. -/
noncomputable def a (N j : ℕ) : ℝ :=
  if j = N then 1 else H N j / D N (j + 1)

/-- (4.13) `b_j = a_j - a_{j-1}` for `0 <= j <= N`, with the source's `a_{-1} = 0`. -/
noncomputable def b (N j : ℕ) : ℝ :=
  if j = 0 then a N 0 else a N j - a N (j - 1)

/-- (4.2) `tau_N = 2 / (N^2 + 7 N + 4)`. -/
noncomputable def tau (N : ℕ) : ℝ := 2 / ((N : ℝ) ^ 2 + 7 * (N : ℝ) + 4)

/-! ## Basic closed forms used throughout

These are the elementary evaluations that every later module relies on.
They are consequences of the definitions, not extra assumptions. -/

























/-! ## `tau` vs `1 / (2 (2 d_N + 1))`  (source (4.2)) -/













end FullFormalization
Source
《有理动量 Nesterov 紧界与半径归一化五算法共同最坏情形 — 可审计完整证明稿》 (manuscript, 2026-10-08), §3-4, eq. (3.2) and (4.1)-(4.13); Lean: FullFormalization.Coefficients lines 1-129

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