NLA-lib Explorer

NLAlib.ShiftedQR.scanRound_writes

Library · theorem

Exact arithmetic

One visit updates exactly the last-index specification using its actual scalar comparison. The matrix and threshold have disjoint views from the five arithmetic/flag/index words. Shared by the trees of NLAlib.ShiftedQR.scalarDecouple, NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.

NLAlib.ShiftedQR.scanRound_writes {Op Tst : Type} [Ops.Has Ops.ScalarOp Op] [Ops.Has Ops.IndexOp Op]
  [Ops.Has Ops.CmpTst Tst] {M : Ops.Machine ℝ} {I : Ops.Interp Op Tst ℝ} (hS : Ops.IsScalar M I)
  (hE : Ops.ExactModel id M) (hL : Ops.IsIndexLit M I) (hC : Ops.IsCmp id I) {τ : Ops.Tape ℝ}
  {m : Ops.Mem ℝ} {n k : ℕ} {a t r : ℕ × ℕ} {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
  {threshold : ℝ} (hk : k < n) (hH : HoldsMatrix a H m.store)
  (ht : m.store.get t.1 t.2 = some threshold) (hstate : ShiftedQR.ScanHolds H threshold k r m.store)
  (hl : m.Live [a, t, r]) (hroom : r.2 + 5 ≤ m.store.len r.1)
  (hA :
    Ops.Fp.Disj (Ops.Store.inBlock r.1 r.2 5) (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1)))))
  (hT : Ops.Fp.Disj (Ops.Store.inBlock r.1 r.2 5) (Ops.Store.inBlock t.1 t.2 1)) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.scanRound (Ops.Env.frame [n + 1, k] [a, t, r])
    (Ops.Store.inBlock r.1 r.2 5)
    (fun m' ↦ m'.pos = m.pos ∧ ShiftedQR.ScanHolds H threshold (k + 1) r m'.store) m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.Scan.