NLAlib.givensReplayRows_writes_word
Library · theorem
The words of a row replay: on a scalar machine with exact toNat and comparisons and every tape, the replay of a closed log whose entries have their two rows lo + r, lo + r + 1 in range, on the columns j_0, \dots, j_0 + n_c - 1 of the matrix at x, writes only the matrix and stores the left fold of NLAlib.replayRowStep over the valid entries. Shared by the trees of NLAlib.ShiftedQR.roundedAbort, NLAlib.ShiftedQR.roundedDecoupleUpdate.
NLAlib.givensReplayRows_writes_word {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.CmpTst Q]
[Ops.Has Ops.IdxTst Q] {Mch : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} (hS : Ops.IsScalar Mch I)
(hQ : Ops.IsToNat id I) (hC : Ops.IsCmp id I) {N lo j0 nc ns w : ℕ} (hj : j0 + nc ≤ N)
{L : List (Option (List GivensEntry))} {P : List GivensEntry}
(hrow : ∀ e ∈ slotEntries w L, lo + e.1 + 1 < N) {lg x : ℕ × ℕ} {X : Matrix (Fin N) (Fin N) ℂ}
{τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} (hlog : HoldsSlottedLog lg ns w L P μ.store)
(hlen : L.length = ns) (hX : HoldsMatrix x X μ.store) (hl : μ.Live [lg, x])
(hd :
Ops.Fp.Disj (Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * w)))
(Ops.Store.inBlock x.1 x.2 (2 * (N * N)))) :
Ops.Writes Ops.Mode.total I τ givensReplayRows (Ops.Env.frame [N, lo, j0, nc, ns, w] [lg, x, x])
(Ops.Store.inBlock x.1 x.2 (2 * (N * N)))
(fun μ' ↦
μ'.pos = μ.pos ∧
HoldsMatrix x (List.foldl (replayRowStep Mch lo j0 nc) X (slotEntries w L)) μ'.store)
μImport NLAlib.Matrix.FinitePrecision.GivensReplay.