NLA-lib Explorer

NLAlib.Krylov.CG.residualCache_error

Library · theorem

Mixed arithmetic and an input-only radius certificate bound the actual self-dot word.

NLAlib.Krylov.CG.residualCache_error {K : Type} {M : Ops.Machine K} {dec : K → ℝ} {u eta B : ℝ}
  {safe : ℝ → Prop} (hM : Ops.MixedModel u eta dec M safe) (hzero : dec (M.lit 0) = 0) (n : ℕ)
  (r : ℕ → K) (hSafe : ∀ (z : ℝ), |z| ≤ B → safe z)
  (hRange :
    (1 + u) ^ (2 * n) * ‖WithLp.toLp 2 fun i ↦ dec (r ↑i)‖ ^ 2 +
        ↑n * (1 + u) ^ (2 * n) * (2 + u) * eta ≤
      B) :
  Computation.AbsRelErr ((1 + u) ^ (2 * n) - 1) (↑n * (1 + u) ^ (2 * n) * (2 + u) * eta)
    (‖WithLp.toLp 2 fun i ↦ dec (r ↑i)‖ ^ 2) (dec (Ops.sumSeqF M (fun i ↦ M.mul (r i) (r i)) n))

Full source on GitHub

Import NLAlib.Krylov.CG.ResidualCache.