NLA-lib Explorer

NLAlib.Computation.abs_norm_sub_one_le_of_div_of_absRelErr

Library · theorem

Rounded component divisions give a linear near-unit estimate \lvert\|\mathbf{y}\|-1\rvert\le(D+\mathbf{A})/\mathbf{b}, where D=u\|\mathbf{x}\|+\mathbf{b}\sqrt d\eta. The actual divisor \mathbf{b} is positive, \mathbf{A} bounds its norm error, and the arithmetic allowances are nonnegative. An explicit margin (D+\mathbf{A})/\mathbf{b}<1 therefore suffices for a nonzero output vector. No execution success is asserted.

NLAlib.Computation.abs_norm_sub_one_le_of_div_of_absRelErr.{u_1} {n : Type u_1} [Fintype n]
  {u η b A : ℝ} {x y : n → ℝ} (h : ∀ (i : n), Computation.AbsRelErr u η (x i / b) (y i))
  (hu : 0 ≤ u) (hη : 0 ≤ η) (hb : 0 < b) (hscale : |‖WithLp.toLp 2 x‖ - b| ≤ A) :
  have D := u * ‖WithLp.toLp 2 x‖ + b * √↑(Fintype.card n) * η;
  have t := (D + A) / b;
  |‖WithLp.toLp 2 y‖ - 1| ≤ t

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.NormalizationErrors.