EuclideanSpace.normalization_bounds_of_self_dot_sqrt_div
Library · theorem
Actual self-dot, square-root and guarded component-division bounds imply a nonnegative computed norm, a normalization residual bound, and a squared near-unit bound whenever the stored norm is nonzero. The terminal zero-norm case is included. [Higham2002, §3.1].
EuclideanSpace.normalization_bounds_of_self_dot_sqrt_div.{u_2} {n : Type u_2} [Fintype n]
{ed es eq σ β : ℝ} {z q : n → ℝ} (hed : 0 ≤ ed) (hes : 0 ≤ es) (heq : 0 ≤ eq) (hσ : 0 ≤ σ)
(hdot : |σ - ‖WithLp.toLp 2 z‖ ^ 2| ≤ ed * ‖WithLp.toLp 2 z‖ ^ 2) (hsqrt : |β - √σ| ≤ es * √σ)
(hdiv : β ≠ 0 → ∀ (i : n), |z i / β - q i| ≤ eq * |z i / β|) (hg : ed + es * (1 + ed) < 1) :
0 ≤ β ∧
‖WithLp.toLp 2 (z - β • q)‖ ≤ eq * ‖WithLp.toLp 2 z‖ ∧
(β ≠ 0 →
have t := (eq + (ed + es * (1 + ed))) / (1 - (ed + es * (1 + ed)));
|‖WithLp.toLp 2 q‖ ^ 2 - 1| ≤ t * (2 + t))Import NLAlib.ForMathlib.Analysis.InnerProductSpace.PiL2.