NLA-lib Explorer

NLAlib.ShiftedQR.multiStep_writes

Library · theorem

Exact arithmetic

The scoped finite-list program returns the mathematical multi-shifted QR matrix and releases the single temporary matrix used by every round. Stated in operand form; it is a statement about a tree, not the contract of a routine.

NLAlib.ShiftedQR.multiStep_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 : ℕ × ℕ} {ss : List ℂ}
  {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} (hl : m.Live [a, s, a]) (hH : HoldsMatrix a H m.store)
  (hSS : HoldsMatrix s (shiftColumn ss) m.store)
  (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))))) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.multiStep (Ops.Env.frame [n + 1, ss.length] [a, s, a])
    (Ops.Store.inBlock a.1 a.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.