NLA-lib Explorer

NLAlib.ShiftedQR.worklistSolve_writes

Library · theorem

Exact arithmetic

The initialized exact worklist returns the actual stored roots of a perturbation of norm at most n\tau, for an input matrix of order n+1. The input spectral separation, conditioning and iteration/grid parameters imply all local progress and capacity guarantees. The substituted decoupling theorem is about the fixed scalar implementation on one block. A fragment of NLAlib.ShiftedQR.deflationRoutine.

NLAlib.ShiftedQR.worklistSolve_writes {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
  [Ops.Has ShiftedQR.EigenvalueKernelOp O] [Ops.Has Ops.CmpTst Q] [Ops.Has Ops.IdxTst Q]
  {Mch : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} (hS : Ops.IsScalar Mch I)
  (hE : Ops.ExactModel id Mch) (hL : Ops.IsIndexLit Mch I) (hQ : Ops.IsToNat id I)
  (hC : Ops.IsCmp id I) {θ : ℝ} {K : ShiftedQR.KernelRoutines θ}
  (hK : ShiftedQR.IsEigenvalueKernels K I) (D : Ops.Stmt O Q)
  (hD : ShiftedQR.DecouplingContract θ D I) {tape : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {n m F M : ℕ}
  {a p stack out w r : ℕ × ℕ} {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {τ B α γ δ g : ℝ}
  (hG : ShiftedQR.WorklistGeometry (n + 1) a p stack out w r μ) (hHess : IsUpperHessenberg H)
  (hA : HoldsMatrix a H μ.store) (hGlobal : ShiftedQRHyps H B θ α γ δ g m F)
  (hτ : τ = δ * frobNorm H) (hM : M = ⌈√2 / exceptionalSpacing (2 ^ m) B θ α ((1 - γ) ^ 2)⌉₊)
  (hParams : μ.store.readBlock p.1 p.2 5 = some [τ, B, θ, α, γ]) :
  Ops.Writes Ops.Mode.total I tape (ShiftedQR.worklistSolve D)
    (Ops.Env.frame [n + 1, m, 2 ^ m, F, M] [a, p, stack, out, w, r])
    (ShiftedQR.worklistFp (n + 1) a stack out w r)
    (fun μ' ↦
      μ'.pos = μ.pos ∧
        ∃ roots E,
          HoldsMatrix out (of fun i x ↦ roots i) μ'.store ∧
            specNorm E ≤ ↑n * τ ∧ (H + E).charpoly.roots = ↑(List.ofFn roots))
    μ

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.WorklistExecute.