NLAlib.TriangularSolve.writes_mulSubDiv
Library · theorem
The accumulation loop followed by a division of the accumulator by a cell e off the accumulator and the scratch.
NLAlib.TriangularSolve.writes_mulSubDiv {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
{M : Ops.Machine K} {I : Ops.Interp Op Tst K} (hI : Ops.IsScalar M I) {τ : Ops.Tape K}
{ρ : Ops.Env} {m : Ops.Mem K} {bound : Ops.IExp} {N : ℕ} (hN : Ops.IExp.eval ρ.idx bound = some N)
{a b c d t : Ops.Operand} {p q : ℕ → ℕ × ℕ} {z w e : ℕ × ℕ}
(ha : ∀ k < N, Ops.Operand.eval (ρ.pushIdx k) a = some (p k))
(hb : ∀ k < N, Ops.Operand.eval (ρ.pushIdx k) b = some (q k)) (hc : Ops.Operand.eval ρ c = some z)
(hd : Ops.Operand.eval ρ d = some e) (ht : ∀ k < N, Ops.Operand.eval (ρ.pushIdx k) t = some w)
{A B : ℕ → K} {v D : K} (hA : ∀ k < N, m.store.get (p k).1 (p k).2 = some (A k))
(hB : ∀ k < N, m.store.get (q k).1 (q k).2 = some (B k)) (hv : m.store.get z.1 z.2 = some v)
(hD : m.store.get e.1 e.2 = some D) (hzw : z.1 ≠ w.1) (hpz : ∀ k < N, p k ≠ z)
(hqz : ∀ k < N, q k ≠ z) (hpw : ∀ k < N, (p k).1 ≠ w.1) (hqw : ∀ k < N, (q k).1 ≠ w.1)
(hez : e ≠ z) (hew : e.1 ≠ w.1) (hw : w.2 < m.store.len w.1) :
Ops.Writes Ops.Mode.total I τ
((Ops.Stmt.loop bound
((Ops.Stmt.call (Ops.Has.inj Ops.ScalarOp.mul) [] [a, b] [t]).seq
(Ops.Stmt.call (Ops.Has.inj Ops.ScalarOp.sub) [] [c, t] [c]))).seq
(Ops.Stmt.call (Ops.Has.inj Ops.ScalarOp.div) [] [c, d] [c]))
ρ (Ops.Store.inBlock z.1 z.2 1 ⊔ Ops.Store.inBlock w.1 w.2 1)
(fun m' ↦
m'.pos = m.pos ∧ m'.store.get z.1 z.2 = some (M.div (TriangularSolve.mulSubWord M A B v N) D))
mImport NLAlib.Matrix.Factorizations.TriangularSolve.Substitution.