NLA-lib Explorer

NLAlib.ShiftedQR.multiStepWithScratch_writes

Library · theorem

Exact arithmetic

A stored finite shift column composes exactly the mathematical list of shifted QR steps. The matrix temporary is reused across the entire list. A fragment: its tree runs only inside the tree of NLAlib.ShiftedQR.multiStep. A fragment of the tree NLAlib.ShiftedQR.multiStep.

NLAlib.ShiftedQR.multiStepWithScratch_writes {Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
  [Ops.Has Ops.CmpTst Tst] {M : Ops.Machine ℝ} {I : Ops.Interp Op Tst ℝ} (hS : Ops.IsScalar M I)
  (hE : Ops.ExactModel id M) (hCmp : Ops.IsCmp id I) {τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} {n : ℕ}
  {a s t : ℕ × ℕ} {ss : List ℂ} {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
  (hl : m.Live [a, s, t, a]) (hH : HoldsMatrix a H m.store)
  (hSS : HoldsMatrix s (shiftColumn ss) m.store)
  (ht : t.2 + 2 * ((n + 1) * (n + 1)) ≤ m.store.len t.1)
  (hat :
    Ops.Fp.Disj (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))))
      (Ops.Store.inBlock t.1 t.2 (2 * ((n + 1) * (n + 1)))))
  (hsa :
    Ops.Fp.Disj (Ops.Store.inBlock s.1 s.2 (2 * ss.length))
      (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1)))))
  (hst :
    Ops.Fp.Disj (Ops.Store.inBlock s.1 s.2 (2 * ss.length))
      (Ops.Store.inBlock t.1 t.2 (2 * ((n + 1) * (n + 1))))) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.multiStepWithScratch
    (Ops.Env.frame [n + 1, ss.length] [a, s, t, a])
    (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))) ⊔
      Ops.Store.inBlock t.1 t.2 (2 * ((n + 1) * (n + 1))))
    (fun μ ↦ μ.pos = m.pos ∧ HoldsMatrix a (multiShiftedQRStep H ss) μ.store) m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.MultiStep.