NLA-lib Explorer

NLAlib.ShiftedQR.processRange_writes

Library · theorem

Exact arithmetic

The actual range processor copies the active diagonal block and advances the complete invariant through the size-selected branch. The only substituted proof concerns the fixed scalar decoupling implementation on one local matrix, under raw quantitative hypotheses. A fragment: its tree runs only inside the tree of NLAlib.ShiftedQR.worklistRound. Shared by the trees of NLAlib.ShiftedQR.finishRange, NLAlib.ShiftedQR.worklistRound.

NLAlib.ShiftedQR.processRange_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 d lo j m F M : ℕ}
  {a p stack out w r : ℕ × ℕ} {H A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {roots : Fin (n + 1) → ℂ}
  {τ ε B α γ δ g : ℝ} {rest done : List (ℕ × ℕ)}
  (hG : ShiftedQR.WorklistGeometry (n + 1) a p stack out w r μ)
  (hInv : DeflationInv H ε ((lo, d) :: rest) done A roots)
  (hGlobal : ShiftedQRHyps H B θ α γ δ g m F) (hτ : τ = δ * frobNorm H)
  (hM : M = ⌈√2 / exceptionalSpacing (2 ^ m) B θ α ((1 - γ) ^ 2)⌉₊) (hA : HoldsMatrix a A μ.store)
  (hParams : μ.store.readBlock p.1 p.2 5 = some [τ, B, θ, α, γ])
  (hOut : ShiftedQR.FinishedHolds out done roots μ.store)
  (hSt : ShiftedQR.StackHolds stack rest.reverse μ.store)
  (hε : ε = ↑(((lo, d) :: rest ++ done).length - 1) * τ)
  (hj : 2 * done.length + ((lo, d) :: rest).length = j + 1) :
  Ops.Writes Ops.Mode.total I tape (ShiftedQR.processRange D)
    (Ops.Env.frame [n + 1, m, 2 ^ m, F, M, lo, d] [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.RangeProcess.