NLA-lib Explorer

NLAlib.SmallEig.rhess_isPerturbedUnitarySimilar

Library · theorem

This statement changed in the recorded rename: 2026-11-schur.

Standard rounding

RHess is a backward-stable unitary similarity to a random direction, by the unitary of its log ([BanksGarzaVargasSrivastava2025, Proposition 5.3], deterministic part): on a machine with the standard model at the unit roundoff \boldsymbol{u}, \mathbf{M}.\mathrm{lit}(0) = 0 and 100(n + 1)^2\boldsymbol{u} \le 1, for \mathbf{A} of order n + 1 and words \mathbf{x} whose vector \mathbf{g} = (\mathbf{x}_{2i} + i \mathbf{x}_{2i+1})_i is not zero, the stored \widehat{\mathbf{H}} (NLAlib.SmallEig.rhessWord) is upper Hessenberg, and the unitary \mathbf{Q} of the recorded entries (NLAlib.givensLog of NLAlib.SmallEig.rhessSlots) has, for some \lvert c\rvert = 1, \|\mathbf{Q}\mathbf{e}_{n+1} - c\,\mathbf{g}/\|\mathbf{g}\|\| \le 60(n + 1)\boldsymbol{u}, \qquad \|\widehat{\mathbf{H}} - \mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q}\|_2 \le 200(n + 1)^2\boldsymbol{u}\,\|\mathbf{A}\|_2\,.

NLAlib.SmallEig.rhess_isPerturbedUnitarySimilar {M : Ops.Machine ℝ} {u : ℝ}
  (hM : Ops.StdModel u id M) (hzero : M.lit 0 = 0) {n : ℕ} (hnu : 100 * (↑n + 1) ^ 2 * u ≤ 1)
  (A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ) (x : ℕ → ℝ) (hg : SmallEig.pairVector x (n + 1) ≠ 0) :
  IsUpperHessenberg (SmallEig.rhessWord M A x) ∧
    HasOrthonormalCols (givensLog (n + 1) (SmallEig.rhessSlots M A x).flatten) ∧
      ∃ c,
        ‖c‖ = 1 ∧
          ‖WithLp.toLp 2
                  ((fun k ↦ givensLog (n + 1) (SmallEig.rhessSlots M A x).flatten k (Fin.last n)) -
                    (c * ↑‖WithLp.toLp 2 (SmallEig.pairVector x (n + 1))‖⁻¹) •
                      SmallEig.pairVector x (n + 1))‖ ≤
              60 * (↑n + 1) * u ∧
            specNorm
                (SmallEig.rhessWord M A x -
                  (givensLog (n + 1) (SmallEig.rhessSlots M A x).flatten)ᴴ * A *
                    givensLog (n + 1) (SmallEig.rhessSlots M A x).flatten) ≤
              200 * (↑n + 1) ^ 2 * u * specNorm A

Full source on GitHub

Import NLAlib.Eigensolvers.SmallEig.RandomHessenberg.