NLAlib.Ops.StdModel.add_mul_self_bounds
Library · theorem
Standard rounding
Under the standard model with 0 \le u \le 1, the rounded sum of rounded squares \mathrm{fl}(\mathrm{fl}(\mathbf{x}^2) + \mathrm{fl}(y^2)) lies between (1-u)^2(\mathbf{x}^2+y^2) and (1+u)^2(\mathbf{x}^2+y^2).
NLAlib.Ops.StdModel.add_mul_self_bounds {M : Ops.Machine ℝ} {u : ℝ} (hM : Ops.StdModel u id M)
(hu : 0 ≤ u) (hu1 : u ≤ 1) (x y : ℝ) :
(1 - u) ^ 2 * (x ^ 2 + y ^ 2) ≤ M.add (M.mul x x) (M.mul y y) ∧
M.add (M.mul x x) (M.mul y y) ≤ (1 + u) ^ 2 * (x ^ 2 + y ^ 2)Import NLAlib.Ops.Blas.NormSq.