General-N certificate lemma: weighted_squares
ProvedGDGen3.weighted_squarescertificategd-last-iterate-tight-boundgeneral-nweighted_squares
Lemma weighted_squares of the general-N certificate (manuscript sections 4-5), stated with index sequences over ℕ so that no concrete N is ever expanded.
Preamble
import Mathlib import Definitions.Def_GDGen3Base noncomputable section open Finset namespace GDGen3
Formal statement
lemma weighted_squares (L P : ℕ → ℕ → ℝ) (N : ℕ) :
(∑ i ∈ range (N + 1), ∑ j ∈ range (N + 1), L i j * (P i i + P j j)) =
∑ i ∈ range (N + 1), (∑ j ∈ range (N + 1), (L i j + L j i)) * P i i := by sorrySource
Companion supplementary proofs, Part III: the complete curve for the final gradient norm of GD. Formalized algebraic certificate layer: GD_General.lean, namespace GDGen3.