General-N certificate lemma: symmetric_sum_diagonal
ProvedGDGen3.symmetric_sum_diagonalcertificategd-last-iterate-tight-boundgeneral-nsymmetric_sum_diagonal
Lemma symmetric_sum_diagonal 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 symmetric_sum_diagonal (B P : ℕ → ℕ → ℝ) (N : ℕ)
(hP : ∀ i j, P i j = P j i)
(hB : ∀ i j, i ≤ N → j ≤ N → i ≠ j → B i j + B j i = 0) :
(∑ i ∈ range (N + 1), ∑ j ∈ range (N + 1), B i j * P i j)
= ∑ i ∈ range (N + 1), B i 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.