NLA-lib Explorer

NLAlib.ShiftedQR.clearComplexEntry_writes_lit

Library · theorem

One complex entry set by NLAlib.ShiftedQR.clearComplexEntry: the two words are the literal 0 of the machine, whatever it is. Shared by the trees of NLAlib.hessenbergReduceLast, NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.

NLAlib.ShiftedQR.clearComplexEntry_writes_lit {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 ℝ} {z : ℕ × ℕ} (hz : z.2 + 2 ≤ m.store.len z.1) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.clearComplexEntry (Ops.Env.frame [] [z])
    (Ops.Store.inBlock z.1 z.2 2)
    (fun m' ↦
      (∀ (u : Fin 2),
          m'.store.get z.1 (z.2 + ↑u) = some ((Ops.EntryCodec.pair ℝ).words (M.lit 0, M.lit 0) u)) ∧
        m'.pos = m.pos)
    m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.Hessenberg.