NLA-lib Explorer

NLAlib.ShiftedQR.worklistRound_writes

Library · theorem

Exact arithmetic

The actual top range is bounded-read and processed under the global input hypotheses. Persistent geometry supplies capacity for the stack, output and scratch before execution. A fragment: its tree runs only inside the tree of NLAlib.ShiftedQR.worklistSolve. A fragment of the tree NLAlib.ShiftedQR.worklistSolve.

NLAlib.ShiftedQR.worklistRound_writes {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
  [Ops.Has ShiftedQR.EigenvalueKernelOp O] [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) {θ : ℝ} {K : ShiftedQR.KernelRoutines θ}
  (hK : ShiftedQR.IsEigenvalueKernels K I) (D : Ops.Stmt O Q)
  (hD : ShiftedQR.DecouplingContract θ D I) {tape : Ops.Tape ℝ} {μ : Ops.Mem ℝ}
  {n j count 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 μ)
  (hInv : ShiftedQR.WorklistInv H τ a stack out j μ) (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, θ, α, γ])
  (hCount : μ.store.get stack.1 stack.2 = some ↑count) (hpos : 0 < count) :
  Ops.Writes Ops.Mode.total I tape (ShiftedQR.worklistRound 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 ∧ ShiftedQR.WorklistInv H τ a stack out (j + 1) μ') μ

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.WorklistRound.