NLA-lib Explorer

NLAlib.SmallEig.decoupleLast_spec

Library · theorem

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

Standard rounding

Decouple decouples the last eigenvalue ([BanksGarzaVargasSrivastava2025, Proposition 4.3], capped; deterministic): on a scalar machine with the standard model at 0 \le \boldsymbol{u} < 1, index literals, exact natural literals up to n + 2 and exact comparisons: let \mathbf{H} \ne 0 of order n + 2 be upper Hessenberg, \mathbf{H}\mathbf{V} = \mathbf{V}\operatorname{diag}(\mathbf{d}) with \|\mathbf{V}\|_2\|\mathbf{V}^{-1}\|_2 \le B, the shift \lambda with \lvert\lambda\rvert \le C\|\mathbf{H}\|_2 (C \ge 0), at distance at least \eta_1 > 0 from every d_j and within \beta' of an eigenvalue d_i of weight w_i \ge p > 0, 4\beta' \le \omega, 1 \le m_2, B \le 2^{m_2}\sqrt p, the scan threshold t_L = qs[7] with (1 + \boldsymbol{u})^2\omega^2 \le t_L, and with \mathbf{x} = 300(n + 2)^2\boldsymbol{u}, for every \ell \le m_2, \mathbf{x} \le (16B)^{-1}(\eta_1/((2 + 2C)\|\mathbf{H}\|_2))^\ell and (66 + 2C)B\|\mathbf{H}\|_2((2 + 2C)\|\mathbf{H}\|_2/\eta_1)^\ell\sqrt{n + 2}\,\mathbf{x} \le \omega/2. Then from NLAlib.SmallEig.DecoupleInput, on every tape, the run writes only the matrix and the flag, sets the flag to 0, and stores an upper Hessenberg perturbed unitary similarity \widehat{\mathbf{H}}' of \mathbf{H} with backward error (1 + C)\|\mathbf{H}\|_2((1 + \mathbf{x})^{m_2} - 1) whose last subdiagonal entry is at most t_L^{1/2}/(1 - \boldsymbol{u}).

NLAlib.SmallEig.decoupleLast_spec {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
  [Ops.Has Ops.CmpTst Q] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ} (hS : Ops.IsScalar M I)
  (hM : Ops.StdModel u id M) (hu1 : u < 1) (hL : Ops.IsIndexLit M I) (hC : Ops.IsCmp id I)
  {n m₂ : ℕ} (hNat : Ops.IsExactNatLit id M (n + 2)) {H V : Matrix (Fin (n + 2)) (Fin (n + 2)) ℂ}
  {d : Fin (n + 2) → ℂ} {ζ : ℂ} {B C p η₁ β' ω : ℝ} (hH : IsUpperHessenberg H) (hH0 : H ≠ 0)
  (hV : IsUnit V) (hHV : H * V = V * diagonal d) (hκ : pseudoConditionNumber V ≤ B) (hC0 : 0 ≤ C)
  (hζ : ‖ζ‖ ≤ C * specNorm H) (hη₁ : 0 < η₁) (hdist : ∀ (j : Fin (n + 2)), η₁ ≤ ‖d j - ζ‖)
  {i : Fin (n + 2)} (hi : ‖ζ - d i‖ ≤ β') (hp : 0 < p) (hpi : p ≤ lastRowWeights V i)
  (hω : 4 * β' ≤ ω) (hm₂ : 1 ≤ m₂) (hm₂B : B ≤ 2 ^ m₂ * √p)
  (hxu : ∀ ℓ ≤ m₂, 300 * (↑n + 2) ^ 2 * u ≤ (16 * B)⁻¹ * (η₁ / ((2 + 2 * C) * specNorm H)) ^ ℓ)
  (hfwd :
    ∀ ℓ ≤ m₂,
      (66 + 2 * C) * B * specNorm H * ((2 + 2 * C) * specNorm H / η₁) ^ ℓ * √(↑n + 2) *
          (300 * (↑n + 2) ^ 2 * u) ≤
        ω / 2)
  {qs : List ℝ} (hqs : 8 ≤ qs.length) (htL : (1 + u) ^ 2 * ω ^ 2 ≤ qs.getD 7 0) {τ : Ops.Tape ℝ}
  {μ : Ops.Mem ℝ} {h lam qw f : ℕ × ℕ} (hin : SmallEig.DecoupleInput H ζ qs h lam qw f μ) {ns w : ℕ}
  {lg : ℕ × ℕ} {LL : List (Option (List GivensEntry))}
  (hlog : HoldsSlottedLog lg ns w LL [] μ.store) (hj : LL.length + m₂ ≤ ns) (hw : n + 1 ≤ w)
  (hlgl : μ.Live [lg]) (hlgb : ∀ b ∈ [h, lam, qw, f], b.1 ≠ lg.1) :
  Ops.Writes Ops.Mode.total I τ SmallEig.decoupleLast
    (Ops.Env.frame [n + 2, m₂, w, LL.length] [h, lam, qw, h, f, lg])
    (Ops.Store.inBlock h.1 h.2 (2 * ((n + 2) * (n + 2))) ⊔ Ops.Store.inBlock f.1 f.2 1 ⊔
      Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * w)))
    (fun μ' ↦
      μ'.store.get f.1 f.2 = some 0 ∧
        ∃ Ls H',
          Ls.length ≤ m₂ ∧
            (∀ x ∈ slotEntries w Ls, x.1 + 1 < n + 2) ∧
              HoldsSlottedLog lg ns w (LL ++ Ls) [] μ'.store ∧
                IsPerturbedUnitarySimilarBy (givensLog (n + 2) (slotEntries w Ls)) H H'
                    ((1 + C) * specNorm H * ((1 + 300 * (↑n + 2) ^ 2 * u) ^ m₂ - 1)) ∧
                  IsUpperHessenberg H' ∧
                    HoldsMatrix h H' μ'.store ∧
                      (1 - u) * ‖H' (Fin.last (n + 1)) (Fin.last n).castSucc‖ ≤ √(qs.getD 7 0))
    μ

Full source on GitHub

Import NLAlib.Eigensolvers.SmallEig.Decouple.