NLA-lib Explorer

NLAlib.Krylov.CG.norm_sq_le_of_residualCache_eq_zero

Library · theorem

A mixed-error residual cache can vanish only within its explicit underflow threshold.

NLAlib.Krylov.CG.norm_sq_le_of_residualCache_eq_zero {r : ℕ → ℝ} {n : ℕ} {u eta cache : ℝ}
  (herr :
    Computation.AbsRelErr ((1 + u) ^ (2 * n) - 1) (↑n * (1 + u) ^ (2 * n) * (2 + u) * eta)
      (‖WithLp.toLp 2 fun i ↦ r ↑i‖ ^ 2) cache)
  (hsmall : (1 + u) ^ (2 * n) < 2) (hzero : cache = 0) :
  ‖WithLp.toLp 2 fun i ↦ r ↑i‖ ^ 2 ≤
    ↑n * (1 + u) ^ (2 * n) * (2 + u) * eta / (2 - (1 + u) ^ (2 * n))

Full source on GitHub

Import NLAlib.Krylov.CG.ResidualCache.