NLAlib.Schur.writes_loop_sub_cells
Library · theorem
An in-place subtraction loop: the loop of N rounds whose round t replaces the cell o + t of the buffer \mathbf{b} by the machine difference of the cell o' + t of \mathbf{b}' (a block apart) and its old word; it writes only the block and keeps the tape position. A step in the proof of NLAlib.Schur.schurResidualCheck_meets.
NLAlib.Schur.writes_loop_sub_cells {O Q : Type} [Ops.Has Ops.ScalarOp O] {M : Ops.Machine ℝ}
{I : Ops.Interp O Q ℝ} (hS : Ops.IsScalar M I) {τ : Ops.Tape ℝ} {ρ : Ops.Env} {m : Ops.Mem ℝ}
{n : Ops.IExp} {N b o b' o' : ℕ} {X Y : Ops.Operand} (hn : Ops.IExp.eval ρ.idx n = some N)
(hXY : ∀ t < N, Ops.Operand.evalList (ρ.pushIdx t) [Y, X] = some [(b', o' + t), (b, o + t)])
(hX : ∀ t < N, Ops.Operand.evalList (ρ.pushIdx t) [X] = some [(b, o + t)])
(hl : m.Live [(b, o), (b', o')]) (hv : ∀ t < N, ∃ w, m.store.get b (o + t) = some w)
(hv' : ∀ t < N, ∃ w, m.store.get b' (o' + t) = some w)
(hd : Ops.Fp.Disj (Ops.Store.inBlock b o N) (Ops.Store.inBlock b' o' N)) :
Ops.Writes Ops.Mode.total I τ
(Ops.Stmt.loop n (Ops.Stmt.call (Ops.Has.inj Ops.ScalarOp.sub) [] [Y, X] [X])) ρ
(Ops.Store.inBlock b o N)
(fun m' ↦
m'.pos = m.pos ∧
∀ t < N,
∀ (v w : ℝ),
m.store.get b' (o' + t) = some v →
m.store.get b (o + t) = some w → m'.store.get b (o + t) = some (M.sub v w))
mImport NLAlib.Eigensolvers.Schur.ResidualCheck.