NLA-lib Explorer

NLAlib.Computation.RelErr.abs_norm_sq_sub_one_le

Library · theorem

Relative error in a stored norm and componentwise error in division give a squared Euclidean norm defect bounded by the normalization factor.

NLAlib.Computation.RelErr.abs_norm_sq_sub_one_le {n : ℕ} {u q : ℝ} {x y : Fin n → ℝ} (hu : 0 ≤ u)
  (hn : ↑(n + 1) * u < 1) (hsmall : Computation.roundingFactor (n + 1) u < 1)
  (hx : 0 < ‖WithLp.toLp 2 x‖)
  (hq : |‖WithLp.toLp 2 x‖ - q| ≤ Computation.roundingFactor (n + 1) u * ‖WithLp.toLp 2 x‖)
  (h : ∀ (i : Fin n), Computation.RelErr u (x i) (q * y i)) :
  |‖WithLp.toLp 2 y‖ ^ 2 - 1| ≤ Computation.normalizationRoundingFactor n u

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.Normalization.