NLA-lib Explorer

NLAlib.hessenbergReduceLast_isPerturbedUnitarySimilarBy

Library · theorem

Standard rounding

The bottom-up Hessenberg reduction is backward stable by the unitary of its log ([BanksGarzaVargasSrivastava2025, Definition 5.1], proved for rounded rotations, with the unitary named): 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, the stored matrix \widehat{\mathbf{H}} of a complex \mathbf{A} of order n + 1 is upper Hessenberg, the exact unitary \mathbf{Q} of the recorded rotations (NLAlib.givensLog of the entries NLAlib.hessenbergReduceLastSlots, the exact Givens rotations of the recorded pairs) fixes \mathbf{e}_{n+1}, and \widehat{\mathbf{H}} = \mathbf{Q}^{\mathsf H}(\mathbf{A} + \mathbf{E})\mathbf{Q} with \|\mathbf{E}\|_2 \le 50(n + 1)^2\boldsymbol{u}\|\mathbf{A}\|_2.

NLAlib.hessenbergReduceLast_isPerturbedUnitarySimilarBy {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)) ℂ) :
  IsUpperHessenberg (hessenbergReduceLastWord M A) ∧
    (∀ (i : Fin (n + 1)),
        givensLog (n + 1) (hessenbergReduceLastSlots M A).flatten i (Fin.last n) =
          if i = Fin.last n then 1 else 0) ∧
      IsPerturbedUnitarySimilarBy (givensLog (n + 1) (hessenbergReduceLastSlots M A).flatten) A
        (hessenbergReduceLastWord M A) (50 * (↑n + 1) ^ 2 * u * specNorm A)

Full source on GitHub

Import NLAlib.Eigensolvers.HessenbergReduction.