General-N certificate lemma: total_sub_suffix
ProvedGDGen3.total_sub_suffixcertificategd-last-iterate-tight-boundgeneral-ntotal_sub_suffix
Lemma total_sub_suffix 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 import Theorems.Thm_GDGen3_sum_prefix_indicator noncomputable section open Finset namespace GDGen3
Formal statement
lemma total_sub_suffix (F : ℕ → ℝ) (N a : ℕ) (ha : a ≤ N) :
(∑ i ∈ range (N + 1), F i) - (∑ i ∈ range (N + 1), if a < i then F i else 0)
= ∑ i ∈ range (a + 1), F 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.