EuclideanSpace.abs_norm_sub_le_of_self_dot_sqrt
Library · theorem
Self-dot error followed by square-root error gives a relative norm error with coefficient e_d+e_s(1+e_d). The computed squared norm is nonnegative. [Higham2002, §3.1].
EuclideanSpace.abs_norm_sub_le_of_self_dot_sqrt.{u_2} {n : Type u_2} [Fintype n] {ed es σ β : ℝ}
{z : n → ℝ} (hes : 0 ≤ es) (hσ : 0 ≤ σ)
(hdot : |σ - ‖WithLp.toLp 2 z‖ ^ 2| ≤ ed * ‖WithLp.toLp 2 z‖ ^ 2) (hsqrt : |β - √σ| ≤ es * √σ) :
|‖WithLp.toLp 2 z‖ - β| ≤ (ed + es * (1 + ed)) * ‖WithLp.toLp 2 z‖Import NLAlib.ForMathlib.Analysis.InnerProductSpace.PiL2.