NLA-lib Explorer

NLAlib.ShiftedQR.clearBelowSubdiagonal_writes_region

Library · theorem

The entries below the subdiagonal written by NLAlib.ShiftedQR.clearBelowSubdiagonal are the pair of the literal 0 of the machine, and only they are written. Shared by the trees of NLAlib.hessenbergReduceLast, NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.

NLAlib.ShiftedQR.clearBelowSubdiagonal_writes_region {Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
  {M : Ops.Machine ℝ} {I : Ops.Interp Op Tst ℝ} (hS : Ops.IsScalar M I) {τ : Ops.Tape ℝ}
  {m : Ops.Mem ℝ} {n : ℕ} {a : ℕ × ℕ} (hl : m.Live [a])
  (ha : 0 < n → a.2 + 2 * (n * n) ≤ m.store.len a.1) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.clearBelowSubdiagonal (Ops.Env.frame [n] [a])
    ((Ops.EntryCodec.pair ℝ).regionFp a.1 a.2 n (fun j i ↦ j * n + i) fun i ↦ i - 1)
    (fun m' ↦
      (m'.store.HoldsEntryRegion (Ops.EntryCodec.pair ℝ) a.1 a.2 n (fun j i ↦ j * n + i)
          (fun i ↦ i - 1) fun x x_1 ↦ (M.lit 0, M.lit 0)) ∧
        m'.pos = m.pos)
    m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.Hessenberg.