NLA-lib Explorer

NLAlib.Ops.StdModel.norm_rotatePair_sub_le

Library · theorem

Standard rounding

Rounded coefficients and rounded application: rotating a pair by the computed coefficients (\tilde c, \tilde s) of (u, \mathbf{v}) with the rounded linear combination is within 12\boldsymbol{u}, relatively, of rotating it by the exact Givens rotation of (u, \mathbf{v}) (the coefficient error contributes 4\sqrt 2\,\boldsymbol{u}, the application 5\boldsymbol{u} up to second order). The exact rotation is unitary, so the computed rotation of two rows is an NLAlib.IsRoundedRowRotation with \eta = 12\boldsymbol{u} for a unitary rotation. [Higham2002, Lemmas 19.7–19.8].

NLAlib.Ops.StdModel.norm_rotatePair_sub_le {M : Ops.Machine ℝ} {u : ℝ} (hM : Ops.StdModel u id M)
  (hu : 0 ≤ u) (hu' : u ≤ 1 / 100) (p q x y : ℂ) :
  ‖{
          re :=
            (Ops.Pair.linearWords M
                ((roundedGivensCoeffs M p q).1.re, (roundedGivensCoeffs M p q).1.im)
                ((roundedGivensCoeffs M p q).2.re, (roundedGivensCoeffs M p q).2.im) (x.re, x.im)
                (y.re, y.im)).1,
          im :=
            (Ops.Pair.linearWords M
                ((roundedGivensCoeffs M p q).1.re, (roundedGivensCoeffs M p q).1.im)
                ((roundedGivensCoeffs M p q).2.re, (roundedGivensCoeffs M p q).2.im) (x.re, x.im)
                (y.re, y.im)).2 } -
        ((givensCoeffs p q).1 * x + (givensCoeffs p q).2 * y)‖ ≤
    12 * u * √(‖x‖ ^ 2 + ‖y‖ ^ 2)

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.GivensRounded.