General-N certificate lemma: optimal_history_nonneg
ProvedGDGen3.optimal_history_nonnegcertificategd-last-iterate-tight-boundgeneral-noptimal_history_nonneg
Lemma optimal_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 optimal_history_nonneg (r : ℝ) (hr : 0 < r) (hr1 : r < 1) (N : ℕ) (hN : 1 ≤ N)
(hboundary : 1 / r ^ N = 1 + (N : ℝ) * (1 + r))
(f : ℕ → ℝ) (P : ℕ → ℕ → ℝ) (hP : ∀ i j, P i j = P j i)
(hQ : ∀ i j, i ≤ N → j ≤ N → i ≠ j → 0 ≤ Qv (1 + r) f P i j) :
0 ≤ smallK N (1 + r) 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.