NLA-lib Explorer

NLAlib.ShiftedQR.roundedWorklist_pwrites

Library · theorem

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

Standard rounding

The capped worklist in Schur mode on the good tapes: from the views of the worklist in Schur mode holding an upper Hessenberg \mathbf{H}, diagonalizable with condition at most B and eigenvalues separated by g > 0, an accumulator \mathbf{U}, the threshold word and the parameter words, with the decoupler and the Schur leaf as in NLAlib.ShiftedQR.roundedRange_pwrites and the round errors within e, the initialization and the 2(n + 1) capped rounds reach, except with probability at most 2(n + 1)(\varphi_L + \varphi_D), the failure word 0, an upper triangular stored matrix and an accumulator tracked from (\mathbf{U}, \mathbf{H}) with the errors ((1 + 24\boldsymbol{u})^{2(n+1)m}(1 + \varepsilon_L)^{n+1} - 1, 2(n + 1)e).

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

NLAlib.ShiftedQR.roundedWorklist_pwrites {O Q : Type} [Ops.Has Ops.ScalarOp O]
  [Ops.Has Ops.IndexOp O] [Ops.Has Ops.CmpTst Q] [Ops.Has Ops.IdxTst Q] {Mch : Ops.Machine ℝ}
  {I : Ops.Interp O Q ℝ} {u : ℝ} (hS : Ops.IsScalar Mch I) (hM : Ops.StdModel u id Mch)
  (hu0 : 0 ≤ u) (hu : u ≤ 1 / 100) (hL : Ops.IsIndexLit Mch I) {n : ℕ}
  (hNat : Ops.IsExactNatLit id Mch (n + 1)) (hQ : Ops.IsToNat id I) (hC : Ops.IsCmp id I)
  (hI : I.IsMeasurable) {win : O → List ℕ → ℕ} (hloc : ∀ (o : O), I.TapeLocal o (win o))
  {law : ℕ → Measure ℝ} {B g φD φL N₀ εL β e ω c thr : ℝ} {k F T ns w m : ℕ} (hm1 : ns * w ≤ m)
  (hm2 : 2 * k * (k + 2) ≤ m) {ps : List ℝ} {ε : ℝ → ℝ} (D : Ops.Stmt O Q)
  (hD : ShiftedQR.RandomDecouplingRoutineContract law (2 * B) (g / 2) φD k F T n N₀ ps ns w ω ε D I)
  (L : Ops.Stmt O Q) (hLeaf : Schur.RandomSchurLeafContract law εL β φL (min k (n + 1)) N₀ ps T L I)
  (hφD : 0 ≤ φD) (hφL : 0 ≤ φL) {H U V : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
  {dd : Fin (n + 1) → ℂ} (hHess : IsUpperHessenberg H) (hV : IsUnit V)
  (hHV : H * V = V * diagonal dd) (hκ : pseudoConditionNumber V ≤ B) (hg : 0 < g)
  (hgap : ∀ (i j : Fin (n + 1)), i ≠ j → g ≤ ‖dd i - dd j‖) (hεL : 0 ≤ εL)
  (hfind : (1 + u) ^ 2 * ω ^ 2 ≤ thr) (hcut : thr ≤ (1 - u) ^ 2 * c ^ 2) (hc : 0 ≤ c)
  (heD : ε N₀ + 78 * u * ↑(ns * w) * N₀ + c ≤ e)
  (heL : β + (8 * (↑n + 1) * (↑k + 2) * u * N₀ + 2 * εL * N₀) ≤ e)
  (hroomD : 2 * (↑n + 1) * (78 * u * ↑(ns * w) * N₀) ≤ N₀)
  (hroomL : 2 * (↑n + 1) * (8 * (↑n + 1) * (↑k + 2) * u * N₀) ≤ N₀) (he0 : 0 ≤ e)
  (hN₀ : specNorm H + 2 * (↑n + 1) * e ≤ N₀) (hsmall : 2 * (↑n + 1) * e ≤ g / (16 * (↑n + 1) * B))
  {a t p uo f st wk ub r : ℕ × ℕ} :
  Ops.PWrites law I (ShiftedQR.roundedWorklistWith D L)
    (Ops.Env.frame [n + 1, k, ps.length, F, T, ns, w] [a, t, p, uo, st, wk, ub, r, f])
    (ShiftedQR.schurRoundFp (n + 1) a uo f st wk ub r)
    (fun μ ↦
      ShiftedQR.SchurGeometry (n + 1) ps.length a t p uo f st wk ub r μ ∧
        HoldsMatrix a H μ.store ∧
          HoldsMatrix uo U μ.store ∧
            μ.store.get t.1 t.2 = some thr ∧ μ.store.readBlock p.1 p.2 ps.length = some ps)
    (fun μ' ↦
      μ'.store.get f.1 f.2 = some 0 ∧
        ∃ U' Tm,
          HoldsMatrix a Tm μ'.store ∧
            HoldsMatrix uo U' μ'.store ∧
              Tm.IsUpperTriangular ∧
                IsTrackedUnitarySimilar ((1 + 24 * u) ^ (2 * (n + 1) * m) * (1 + εL) ^ (n + 1) - 1)
                  (2 * (↑n + 1) * e) U H U' Tm)
    (2 * (↑n + 1) * (φL + φD))

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedWorklistSchur.