NLA-lib Explorer

NLAlib.Krylov.Lanczos.Rounded.Precision.nrm2_bounds

Library · theorem

An actual computed norm satisfies the common error envelope and is nonnegative. The proof uses its actual dot/square-root witnesses rather than an assumed norm oracle.

NLAlib.Krylov.Lanczos.Rounded.Precision.nrm2_bounds {em u E : ℝ} {e : Ops.Blas1Err} {n : ℕ}
  {K : Type} [Inhabited K] {dec : K → ℝ} (h : Krylov.Lanczos.Rounded.Precision em u E e n)
  {xs : List K} {b : K} (hn : Ops.IsNrm2Err dec (e.dot n) u n (Ops.vec xs) b) :
  0 ≤ dec b ∧
    |dec b - ‖WithLp.toLp 2 (Ops.decv dec n xs)‖| ≤ E * ‖WithLp.toLp 2 (Ops.decv dec n xs)‖

Full source on GitHub

Import NLAlib.Krylov.Lanczos.Rounded.Precision.