NLA-lib Explorer

NLAlib.ShiftedQR.halfRound_writes

Library · theorem

Exact arithmetic

One segment computes its inverse-row fold or retains a witnessed singular candidate. All source words are preserved and no unused shift is tested. [BanksGarzaVargasSrivastava2021, §4.3]. A fragment: its tree runs only inside the tree of NLAlib.ShiftedQR.halfRounds. A fragment of the tree NLAlib.ShiftedQR.halfRounds.

NLAlib.ShiftedQR.halfRound_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 k a h : ℕ} {b ss v f : ℕ × ℕ}
  {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {shifts : List ℂ} {w : Fin (n + 1) → ℂ}
  (hH : IsUpperHessenberg H) (hB : HoldsMatrix b H m.store)
  (hSS : ShiftedQR.HoldsShifts ss shifts m.store) (hak : a + h ≤ k) (hal : a + h ≤ shifts.length)
  (hSep : ShiftedQR.HalfSolveSeparate (n + 1) k b ss v f) (hl : m.Live [b, ss, v, f, v, f])
  (hf : f.2 + 1 ≤ m.store.len f.1)
  (hstate : ShiftedQR.HalfVectorState v f H (ShiftedQR.halfSegment shifts a h) w m.store) :
  Ops.Writes Ops.Mode.total I τ ShiftedQR.halfRound
    (Ops.Env.frame [n + 1, k, a, h] [b, ss, v, f, v, f])
    (Ops.Store.inBlock v.1 v.2 (2 * (n + 1)) ⊔ Ops.Store.inBlock f.1 f.2 1)
    (fun m' ↦
      m'.pos = m.pos ∧
        HoldsMatrix b H m'.store ∧
          ShiftedQR.HoldsShifts ss shifts m'.store ∧
            ShiftedQR.HalfVectorState v f H (ShiftedQR.halfSegment shifts a h)
              (ShiftedQR.shiftSolvePrefix H (ShiftedQR.halfSegment shifts a h) w h) m'.store)
    m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RowSolveHalfLoops.