NLAlib.Ops.IsNrm2Err.dot_sqrt_bounds
Library · theorem
Extract the real self-dot and square-root bounds from an actual computed norm. The self-dot allowance below one makes its decoded input nonnegative, including zero vectors.
NLAlib.Ops.IsNrm2Err.dot_sqrt_bounds {K : Type} [Inhabited K] {dec : K → ℝ} {ed es : ℝ} {n : ℕ}
{xs : List K} {ν : K} (h : Ops.IsNrm2Err dec ed es n (Ops.vec xs) ν) (hd : ed < 1) :
∃ σ,
0 ≤ σ ∧
|σ - ‖WithLp.toLp 2 (Ops.decv dec n xs)‖ ^ 2| ≤ ed * ‖WithLp.toLp 2 (Ops.decv dec n xs)‖ ^ 2 ∧
|dec ν - √σ| ≤ es * √σImport NLAlib.Krylov.Lanczos.Math.NormGuard.