Documentation

LeanPool.ParameterFreeGradient.O3.Stage9Theta

Source-exact OGM-G theta and kappa coefficients #

This file isolates the scalar coefficient arithmetic in TeX Lemma lem:ogmg. The representation is Nat-indexed because the certificate sums over i = 0, ..., n; every theorem that uses a source index records the appropriate boundary hypothesis explicitly.

noncomputable def O3.stage9Theta (n i : ℕ) :

The source OGM-G coefficient theta_i at horizon n. Index zero uses the special doubled radical, while positive indices use the ordinary backward tail ending in theta_n = 1.

Equations
Instances For
    theorem O3.stage9Theta_of_pos {n i : ℕ} (hi : 0 < i) :
    @[simp]
    theorem O3.stage9Theta_endpoint {n : ℕ} (hn : 1 ≤ n) :
    theorem O3.thetaStep_gt_half (t : ℝ) :
    1 / 2 < thetaStep t
    theorem O3.stage9Theta_pos (n i : ℕ) :
    theorem O3.stage9Theta_ne_zero (n i : ℕ) :

    In particular every denominator theta_i used by OGM-G is positive.

    The other source denominator 2 theta_i - 1 is strictly positive.

    theorem O3.stage9Theta_ordinary_equation {n i : ℕ} (hi : 1 ≤ i) (hin : i < n) :
    stage9Theta n i ^ 2 - stage9Theta n i = stage9Theta n (i + 1) ^ 2

    The ordinary backward equation, valid exactly at 1 <= i < n.

    theorem O3.stage9Theta_special_equation {n : ℕ} (_hn : 1 ≤ n) :

    The source's special doubled first equation.

    theorem O3.stage9Theta_succ_le {n i : ℕ} (hin : i < n) :

    Adjacent theta coefficients decrease with their source index.

    noncomputable def O3.stage9Kappa (n i : ℕ) :

    Source definition of kappa: the zeroth coefficient is one and every positive coefficient is theta_0^2 / (2 theta_i^2).

    Equations
    Instances For
      @[simp]
      theorem O3.stage9Kappa_zero (n : ℕ) :
      theorem O3.stage9Kappa_of_pos {n i : ℕ} (hi : 0 < i) :
      stage9Kappa n i = stage9Theta n 0 ^ 2 / (2 * stage9Theta n i ^ 2)
      theorem O3.stage9Kappa_mul_theta_sq {n i : ℕ} (hi : 1 ≤ i) :

      The constant product used at the quadratic telescoping endpoint.

      theorem O3.stage9Kappa_zero_le_one {n : ℕ} (hn : 1 ≤ n) :

      The first increment is nonnegative; this is the step that uses the special identity theta_0^2 - theta_0 = 2 theta_1^2.

      theorem O3.stage9Kappa_mono_succ {n i : ℕ} (hin : i < n) :

      kappa_i is nondecreasing on the entire source interval.

      theorem O3.stage9Kappa_mono {n i j : ℕ} (hij : i ≤ j) (hjn : j ≤ n) :

      Interval form of monotonicity, convenient for finite certificate sums.

      noncomputable def O3.stage9Delta (n i : ℕ) :

      The source increment delta_i = kappa_(i+1) - kappa_i.

      Equations
      Instances For
        theorem O3.stage9Delta_nonneg {n i : ℕ} (hin : i < n) :
        theorem O3.stage9Delta_eq_kappa_div_theta {n i : ℕ} (hin : i < n) :

        Exact coefficient increment used in the p-sequence induction. The i=0 branch uses the special doubled theta equation, while positive indices use the ordinary equation.

        theorem O3.stage9Kappa_eq_next_mul_one_sub_inv {n i : ℕ} (hin : i < n) :
        stage9Kappa n i = stage9Kappa n (i + 1) * (1 - 1 / stage9Theta n i)

        Rearranged delta identity in precisely the form used to update the weighted-gradient partial sum.

        theorem O3.stage9Theta_zero_lower {n : ℕ} (hn : 1 ≤ n) :
        (↑n + 1) / √2 ≤ stage9Theta n 0

        The source endpoint lower bound, now exposed through the Nat-indexed coefficient representation used by Stage 9.