NLA-lib Explorer

NLAlib.SmallEig.smallEigDecoupler_decouple_writes

Library · theorem

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

Standard rounding

Decouple inside the decoupler, with its log ([BanksGarzaVargasSrivastava2025, Proposition 4.3] at the parameters of NLAlib.SmallEig.smallEigParams; deterministic): let \mathbf{H}_1 of order k + 2 \le n_{\max} + 1 be the block after RHess, a perturbed unitary similarity by \mathbf{Q}_1 with error at most 200(n_{\max} + 1)^2\boldsymbol{u}N of a block \mathbf{H} of norm at most N \le 2\Sigma, upper Hessenberg with condition at most 4B_c, separation g_c/4 and last-row weights at least p, and let the shift z of OneEig be at distance between \eta_1 and \beta' from the spectrum. Then on every tape Decouple, from a log with the closed slots LL and room for m_2 more, sets the flag to 0, closes at most m_2 slots Ls (planes below k + 1), and stores an upper Hessenberg perturbed unitary similarity of \mathbf{H} by \mathbf{Q}_1 times the unitary of Ls with the error NLAlib.SmallEig.smallEigDecoupleError at N whose last subdiagonal entry is at most 1.5\,\omega.

Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.

NLAlib.SmallEig.smallEigDecoupler_decouple_writes {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) (hL : Ops.IsIndexLit M I) (hC : Ops.IsCmp id I)
  {c₁ c₂ : PolyLogTail} (hb₁ : 0 < c₁.b) (hb₂ : 0 < c₂.b) {nmax : ℕ} (hn1 : 1 ≤ nmax) {S δ φ : ℝ}
  (hδ : 0 < δ) (hδS : δ ≤ S) (hφ : 0 < φ) (hφ1 : φ ≤ 1)
  (hu : u ≤ SmallEig.uSmallEig nmax S δ φ c₁ c₂) {k : ℕ} (hk : k + 1 ≤ nmax)
  (hNat : Ops.IsExactNatLit id M (k + 1 + 1)) {N ε₁ : ℝ}
  {H H₁ V Q₁ : Matrix (Fin (k + 1 + 1)) (Fin (k + 1 + 1)) ℂ} {d : Fin (k + 1 + 1) → ℂ}
  (hHN : specNorm H ≤ N) (hN : N ≤ 2 * S) (hH₁ : IsPerturbedUnitarySimilarBy Q₁ H H₁ ε₁)
  (hε₁ : ε₁ ≤ 200 * (↑nmax + 1) ^ 2 * u * N) (hHess : IsUpperHessenberg H₁) (hV : IsUnit V)
  (hHV : H₁ * V = V * diagonal d)
  (hκ : pseudoConditionNumber V ≤ 4 * SmallEig.smallEigCondition nmax S δ φ c₂)
  (hgap :
    ∀ (i j : Fin (k + 1 + 1)), i ≠ j → SmallEig.smallEigSeparation nmax S δ φ c₁ / 4 ≤ ‖d i - d j‖)
  (hw : ∀ (i : Fin (k + 1 + 1)), SmallEig.smallEigWeight nmax S δ φ c₂ ≤ lastRowWeights V i) {z : ℂ}
  (hz1 : SmallEig.smallEigInnerRadius nmax S δ φ c₁ c₂ ≤ ⨅ i, ‖z - d i‖)
  (hz2 : ⨅ i, ‖z - d i‖ ≤ SmallEig.smallEigAccuracy nmax S δ φ c₁ c₂) {τ : Ops.Tape ℝ}
  {μ : Ops.Mem ℝ} {h lam qw f : ℕ × ℕ}
  (hin : SmallEig.DecoupleInput H₁ z (SmallEig.smallEigParams nmax S δ φ c₁ c₂) h lam qw f μ)
  {ns ws : ℕ} {lg : ℕ × ℕ} {LL : List (Option (List GivensEntry))}
  (hlog : HoldsSlottedLog lg ns ws LL [] μ.store)
  (hj : LL.length + SmallEig.smallEigDecoupleSteps nmax S δ φ c₂ ≤ ns) (hws : k + 1 ≤ ws)
  (hlgl : μ.Live [lg]) (hlgb : ∀ b ∈ [h, lam, qw, f], b.1 ≠ lg.1) :
  Ops.Writes Ops.Mode.total I τ SmallEig.decoupleLast
    (Ops.Env.frame [k + 1 + 1, SmallEig.smallEigDecoupleSteps nmax S δ φ c₂, ws, LL.length]
      [h, lam, qw, h, f, lg])
    (Ops.Store.inBlock h.1 h.2 (2 * ((k + 1 + 1) * (k + 1 + 1))) ⊔ Ops.Store.inBlock f.1 f.2 1 ⊔
      Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * ws)))
    (fun μ' ↦
      μ'.store.get f.1 f.2 = some 0 ∧
        ∃ Ls H',
          Ls.length ≤ SmallEig.smallEigDecoupleSteps nmax S δ φ c₂ ∧
            (∀ x ∈ slotEntries ws Ls, x.1 + 1 < k + 1 + 1) ∧
              HoldsSlottedLog lg ns ws (LL ++ Ls) [] μ'.store ∧
                IsPerturbedUnitarySimilarBy (Q₁ * givensLog (k + 1 + 1) (slotEntries ws Ls)) H H'
                    (SmallEig.smallEigDecoupleError nmax S δ φ c₂ u N) ∧
                  IsUpperHessenberg H' ∧
                    (∃ i,
                        k + 1 ≤ ↑i + 1 ∧
                          ‖H' i.succ i.castSucc‖ ≤ 1.5 * SmallEig.smallEigOmega nmax S δ φ c₁ c₂) ∧
                      HoldsMatrix h H' μ'.store)
    μ

Full source on GitHub

Import NLAlib.Eigensolvers.SmallEig.Decoupler.