NLA-lib Explorer

NLAlib.LinearSystems.Refinement.Rounded.norm_toLp_sub_le_of_abs_sub_le

Library · theorem

A componentwise relative error is a normwise one. For c \ge 0, if \lvert y_i - \mathbf{x}_i \rvert \le c \lvert \mathbf{x}_i \rvert for every i, then \|\mathbf{x} - \mathbf{y}\| \le c \|\mathbf{x}\| in the Euclidean norm.

NLAlib.LinearSystems.Refinement.Rounded.norm_toLp_sub_le_of_abs_sub_le {n : ℕ} {x y : Fin n → ℝ}
  {c : ℝ} (hc : 0 ≤ c) (h : ∀ (i : Fin n), |y i - x i| ≤ c * |x i|) :
  ‖WithLp.toLp 2 (x - y)‖ ≤ c * ‖WithLp.toLp 2 x‖

Full source on GitHub

Import NLAlib.LinearSystems.Refinement.Rounded.Bounds.