NLA-lib Explorer

NLAlib.Ops.StdModel.abs_mul_sqrtHalf_sub_one_le

Library · theorem

Standard rounding

The actual square-root-of-one-half word has relative normalization error at most (2+u)*u, when literals one and two are exact and u is at most one tenth. Division and square root are both charged by the standard scalar model.

NLAlib.Ops.StdModel.abs_mul_sqrtHalf_sub_one_le {K : Type} {M : Ops.Machine K} {dec : K → ℝ} {u : ℝ}
  (h : Ops.StdModel u dec M) (hu : 0 ≤ u) (hu1 : u ≤ 1 / 10) (hlit : Ops.IsExactNatLit dec M 2) :
  |√2 * dec M.sqrtHalf - 1| ≤ (2 + u) * u

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.OpsSampling.