NLAlib.rotateColumnsOn_writes_word
Library · theorem
Scalar pair rotations of the columns k, k + 1 over the rows i_0, \dots, i_0 + n_r - 1 store NLAlib.machineColRotationOn, on any machine; the conditions are those of NLAlib.rotateColumnsWithScratch_writes_word. [GolubVanLoan2013, §5.1.8]. Shared by the trees of NLAlib.givensReplayRows, NLAlib.givensReplayColumns.
NLAlib.rotateColumnsOn_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 k i0 nr : ℕ}
{a c s t : ℕ × ℕ} {H : Matrix (Fin n) (Fin n) ℂ} {cv sv : ℂ} (hk : k + 1 < n) (hi : i0 + nr ≤ n)
(hH : HoldsMatrix a H m.store) (hc : m.store.readBlock c.1 c.2 2 = some [cv.re, cv.im])
(hs : m.store.readBlock s.1 s.2 2 = some [sv.re, sv.im])
(hca : Ops.Fp.Disj (Ops.Store.inBlock a.1 a.2 (2 * (n * n))) (Ops.Store.inBlock c.1 c.2 2))
(hsa : Ops.Fp.Disj (Ops.Store.inBlock a.1 a.2 (2 * (n * n))) (Ops.Store.inBlock s.1 s.2 2))
(hta : t.1 ≠ a.1) (htc : t.1 ≠ c.1) (hts : t.1 ≠ s.1) (ht : t.2 + 10 ≤ m.store.len t.1) :
Ops.Writes Ops.Mode.total I τ rotateColumnsOn (Ops.Env.frame [n, k, i0, nr] [a, c, s, t, a])
(Ops.Store.inBlock a.1 a.2 (2 * (n * n)) ⊔ Ops.Store.inBlock t.1 t.2 10)
(fun m' ↦
m'.pos = m.pos ∧
HoldsMatrix a (machineColRotationOn M ⟨k, ⋯⟩ ⟨k + 1, hk⟩ cv sv i0 nr H) m'.store)
mImport NLAlib.Matrix.FinitePrecision.GivensPrograms.