NLA-lib Explorer

NLAlib.Ops.StdModel.norm_linearWords_rotation_sub_le

Library · theorem

Standard rounding

A computed rotation of a pair is within 12\boldsymbol{u}, jointly: on a machine with the standard model at 0 \le \boldsymbol{u} \le 1/100, coefficient words a, \mathbf{b} within 4\boldsymbol{u} of a unit pair (\alpha, \beta), relatively, rotate (\mathbf{x}, y) by NLAlib.Ops.Pair.linearWords to the computed (a \mathbf{x} + \mathbf{b} y, -\bar \mathbf{b} \mathbf{x} + \bar a y), which is within 12\boldsymbol{u}\,\|(\mathbf{x}, y)\| of (\alpha \mathbf{x} + \beta y, -\bar\beta \mathbf{x} + \bar\alpha y) in the Euclidean norm of the pair. The coefficient errors contribute 4\boldsymbol{u} jointly (the error matrix is a multiple of a unitary one), the application 5\sqrt 2\,\boldsymbol{u} to first order. This is the per-pair hypothesis of NLAlib.IsRoundedRowRotation and NLAlib.IsRoundedColRotation with \eta = 12\boldsymbol{u}, for the row rotation by (\tilde c, \tilde s) and for the column rotation by (\bar{\tilde c}, \bar{\tilde s}). [Higham2002, Lemma 19.8].

NLAlib.Ops.StdModel.norm_linearWords_rotation_sub_le {M : Ops.Machine ℝ} {u : ℝ}
  (hM : Ops.StdModel u id M) (hu : 0 ≤ u) (hu' : u ≤ 1 / 100) {a b α β : ℂ}
  (hαβ : ‖α‖ ^ 2 + ‖β‖ ^ 2 = 1) (ha : ‖a - α‖ ≤ 4 * u * ‖α‖) (hb : ‖b - β‖ ≤ 4 * u * ‖β‖)
  (x y : ℂ) :
  √(‖{ re := (Ops.Pair.linearWords M (a.re, a.im) (b.re, b.im) (x.re, x.im) (y.re, y.im)).1,
                im :=
                  (Ops.Pair.linearWords M (a.re, a.im) (b.re, b.im) (x.re, x.im) (y.re, y.im)).2 } -
              (α * x + β * y)‖ ^
          2 +
        ‖{
                re :=
                  (Ops.Pair.linearWords M ((-star b).re, (-star b).im) ((star a).re, (star a).im)
                      (x.re, x.im) (y.re, y.im)).1,
                im :=
                  (Ops.Pair.linearWords M ((-star b).re, (-star b).im) ((star a).re, (star a).im)
                      (x.re, x.im) (y.re, y.im)).2 } -
              (-star β * x + star α * y)‖ ^
          2) ≤
    12 * u * √(‖x‖ ^ 2 + ‖y‖ ^ 2)

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.GivensRounded.