General-N certificate lemma: small_history_nonneg
ProvedGDGen3.small_history_nonnegcertificategd-last-iterate-tight-boundgeneral-nsmall_history_nonneg
Lemma small_history_nonneg of the general-N certificate (manuscript section 6), stated with index sequences over ℕ so that no concrete N is ever expanded.
Preamble
import Mathlib import Definitions.Def_GDGen3Base import Definitions.Def_GDGen3RootBase noncomputable section open Finset namespace GDGen3
Formal statement
theorem small_history_nonneg
(r : ℝ) (hr : 0 < r) (hr1 : r < 1) (N : ℕ) (hN : 1 ≤ N)
(hboundary : 1 / r ^ N = 1 + (N : ℝ) * (1 + r))
(h : ℝ) (hh : 0 < h) (hha : h ≤ 1 + r)
(f : ℕ → ℝ) (P : ℕ → ℕ → ℝ) (hP : ∀ i j, P i j = P j i)
(hQ : ∀ i j, i ≤ N → j ≤ N → i ≠ j → 0 ≤ Qv h f P i j)
(hdiff : ∀ i j, i ≤ N → j ≤ N → 0 ≤ P i i + P j j - 2 * P i j) :
0 ≤ smallK N h f (fun 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.