NLAlib.ShiftedQR.rowPolyLoop_writes_word
Library · theorem
The row recurrence on any scalar machine: with \mathbf{r}_0 at V, \mathbf{H} at A, the shifts ss stored as pairs at S, the pair oo at O, the scratch views W, T, Z, Y apart from each other and from the inputs, and V apart from the other inputs, rowPolyLoop stores at V the vector NLAlib.ShiftedQR.rowPolyVec after all the shifts, and writes only V and the scratch. Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine, on their scratch.
NLAlib.ShiftedQR.rowPolyLoop_writes_word {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 ℝ} {n : ℕ} {v a s o w t z y : ℕ × ℕ} {r₀ : Fin (n + 1) → ℂ}
{H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {ss : List ℂ} {oo : ℝ × ℝ}
(hV : HoldsMatrix v (replicateCol (Fin 1) r₀) m.store) (hA : HoldsMatrix a H m.store)
(hs : m.store.readBlock s.1 s.2 (2 * ss.length) = some (List.flatMap (fun z ↦ [z.re, z.im]) ss))
(ho : m.store.readBlock o.1 o.2 2 = some [oo.1, oo.2])
(hw : w.2 + 2 * ((n + 1) * (n + 1)) ≤ m.store.len w.1) (ht : t.2 + 2 ≤ m.store.len t.1)
(hz : z.2 + 2 ≤ m.store.len z.1) (hy : y.2 + 2 * (1 * (n + 1)) ≤ m.store.len y.1)
(hl : m.Live [v, a, s, o, w, t, z, y])
(hsep :
(Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1))) ⊔ Ops.Store.inBlock t.1 t.2 2 ⊔
Ops.Store.inBlock z.1 z.2 2 ⊔
Ops.Store.inBlock y.1 y.2 (2 * (1 * (n + 1)))).Disj
(Ops.Store.inBlock v.1 v.2 (2 * (1 * (n + 1))) ⊔
Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))) ⊔
Ops.Store.inBlock s.1 s.2 (2 * ss.length) ⊔
Ops.Store.inBlock o.1 o.2 2))
(hvin :
Ops.Fp.Disj (Ops.Store.inBlock v.1 v.2 (2 * (1 * (n + 1))))
(Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))) ⊔
Ops.Store.inBlock s.1 s.2 (2 * ss.length) ⊔
Ops.Store.inBlock o.1 o.2 2))
(hwt :
Ops.Fp.Disj (Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1)))) (Ops.Store.inBlock t.1 t.2 2))
(hwz :
Ops.Fp.Disj (Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1)))) (Ops.Store.inBlock z.1 z.2 2))
(hwy :
Ops.Fp.Disj (Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1))))
(Ops.Store.inBlock y.1 y.2 (2 * (1 * (n + 1)))))
(htz : Ops.Fp.Disj (Ops.Store.inBlock t.1 t.2 2) (Ops.Store.inBlock z.1 z.2 2))
(hty : Ops.Fp.Disj (Ops.Store.inBlock t.1 t.2 2) (Ops.Store.inBlock y.1 y.2 (2 * (1 * (n + 1)))))
(hzy :
Ops.Fp.Disj (Ops.Store.inBlock z.1 z.2 2) (Ops.Store.inBlock y.1 y.2 (2 * (1 * (n + 1))))) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.rowPolyLoop
(Ops.Env.frame [n + 1, ss.length] [v, a, s, o, w, t, z, y, v])
(Ops.Store.inBlock v.1 v.2 (2 * (1 * (n + 1))) ⊔
(Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1))) ⊔ Ops.Store.inBlock t.1 t.2 2 ⊔
Ops.Store.inBlock z.1 z.2 2 ⊔
Ops.Store.inBlock y.1 y.2 (2 * (1 * (n + 1)))))
(fun m' ↦
m'.pos = m.pos ∧
HoldsMatrix v (replicateCol (Fin 1) (ShiftedQR.rowPolyVec M oo H ss r₀ ss.length)) m'.store)
mImport NLAlib.Eigensolvers.ShiftedQR.RoundedRowPoly.