NLAlib.ShiftedQR.roundedDecoupleUpdate_writes
Library · theorem
The words of the decoupling update: on a scalar machine with exact toNat and comparisons and every tape, for the block [lo, lo + d) with the cut row i + 1 < d, a closed log at lg of ns slots of w entries whose entries have their two planes lo + r, lo + r + 1 inside the order N, and the order-N matrices \mathbf{A} at a and \mathbf{U} at uo (three blocks apart), roundedDecoupleUpdate writes only the matrix and the accumulator and stores NLAlib.ShiftedQR.decoupleUpdateMatrix and the log replayed on the columns of \mathbf{U}. Shared by the trees of NLAlib.ShiftedQR.roundedLeafUpdate, NLAlib.ShiftedQR.roundedProcessLargeWith, NLAlib.ShiftedQR.roundedLargeRest.
NLAlib.ShiftedQR.roundedDecoupleUpdate_writes {O Q : Type} [Ops.Has Ops.ScalarOp O]
[Ops.Has Ops.CmpTst Q] [Ops.Has Ops.IdxTst Q] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ}
(hS : Ops.IsScalar M I) (hQ : Ops.IsToNat id I) (hC : Ops.IsCmp id I) {τ : Ops.Tape ℝ}
{μ : Ops.Mem ℝ} {N lo d i ns w : ℕ} (hN : lo + d ≤ N) (hi : i + 1 < d)
{L : List (Option (List GivensEntry))} {P : List GivensEntry}
(hrow : ∀ e ∈ slotEntries w L, lo + e.1 + 1 < N) {lg a uo : ℕ × ℕ}
{A U : Matrix (Fin N) (Fin N) ℂ} (hl : μ.Live [lg, a, uo])
(hlog : HoldsSlottedLog lg ns w L P μ.store) (hlen : L.length = ns) (hA : HoldsMatrix a A μ.store)
(hU : HoldsMatrix uo U μ.store) (hra : a.2 + 2 * (N * N) ≤ μ.store.len a.1)
(hga :
Ops.Fp.Disj (Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * w)))
(Ops.Store.inBlock a.1 a.2 (2 * (N * N))))
(hgu :
Ops.Fp.Disj (Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * w)))
(Ops.Store.inBlock uo.1 uo.2 (2 * (N * N))))
(hau :
Ops.Fp.Disj (Ops.Store.inBlock a.1 a.2 (2 * (N * N)))
(Ops.Store.inBlock uo.1 uo.2 (2 * (N * N)))) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.roundedDecoupleUpdate
(Ops.Env.frame [N, lo, d, i, ns, w] [lg, a, uo])
(Ops.Store.inBlock a.1 a.2 (2 * (N * N)) ⊔ Ops.Store.inBlock uo.1 uo.2 (2 * (N * N)))
(fun μ' ↦
μ'.pos = μ.pos ∧
HoldsMatrix a (ShiftedQR.decoupleUpdateMatrix M lo d i (slotEntries w L) A) μ'.store ∧
HoldsMatrix uo (List.foldl (replayColumnStep M lo 0 N) U (slotEntries w L)) μ'.store)
μImport NLAlib.Eigensolvers.ShiftedQR.RoundedSolveUpdates.