NLA-lib Explorer

NLAlib.ShiftedQR.clearBelowSubdiagonal_writes

Library · theorem

This statement changed in the recorded rename: 2026-11-smalleig.

The stored pass removes exactly the structural fill and preserves every other entry. Only literal zero must be exact; all other scalar operations of the machine may be rounded. The position on the random tape is unchanged. Deletion error is not absorbed into a QR bound. Shared by the trees of NLAlib.hessenbergReduceLast, NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.

NLAlib.ShiftedQR.clearBelowSubdiagonal_writes {Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
  {M : Ops.Machine ℝ} {I : Ops.Interp Op Tst ℝ} (hS : Ops.IsScalar M I) (hzero : M.lit 0 = 0)
  {τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} {n : ℕ} {a : ℕ × ℕ} {A : Matrix (Fin n) (Fin n) ℂ}
  (hl : m.Live [a]) (hA : HoldsMatrix a A m.store) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.clearBelowSubdiagonal (Ops.Env.frame [n] [a])
    (Ops.Store.inBlock a.1 a.2 (2 * (n * n)))
    (fun m' ↦
      m'.pos = m.pos ∧
        HoldsMatrix a (upperHessenbergPart A) m'.store ∧ IsUpperHessenberg (upperHessenbergPart A))
    m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.Hessenberg.