NLAlib.Ops.ContextDenseRounded.callS_source_of_ne
Library · theorem
An arbitrary source operation implemented by the selected dense context leaf meets the original local matrix-vector post. This rule supports several stored operators in the same program without duplicating the operand, liveness or frame argument.
NLAlib.Ops.ContextDenseRounded.callS_source_of_ne {Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
{Src : Type} {I : Ops.Interp Op Tst ℝ} {M : Ops.Machine ℝ} (hS : Ops.IsScalar M I)
(context : List (ℕ × ℕ)) (index : Fin context.length) {table : Ops.ContextTable Src Op Tst}
{o : Src} (hTable : table o = Sum.inl (Ops.ContextDense.impl context.length ↑index)) {n : ℕ}
{error : ℝ} (raw : List ℝ)
(hError :
∀ (xs : List ℝ),
‖WithLp.toLp 2
(Ops.StoredOperator.denseMatrix n n raw *ᵥ Ops.decv id n xs -
Ops.decv id n (List.map (Ops.StoredDense.rowWord M n n raw xs) (List.range n)))‖ ≤
error * ‖WithLp.toLp 2 (Ops.decv id n xs)‖)
{τ : Ops.Tape ℝ} {mem : Ops.Mem ℝ} (hLive : mem.Live context)
(hData : mem.store.readBlock context[index].1 context[index].2 (n * n) = some raw) {d : List ℕ}
{ins outs : List (ℕ × ℕ)} (hOut : ∀ z ∈ outs, z.1 ≠ context[index].1)
(hp :
(((Ops.matvecErrorRel id (Ops.StoredOperator.denseMatrix n n raw) error).spec
(Ops.MatvecOperands n n)).on
Ops.Mode.total d ins outs τ mem).pre
mem) :
Ops.Mode.total.Holds ((I.linkContext table context).callS o d ins outs τ mem)
((((Ops.matvecErrorRel id (Ops.StoredOperator.denseMatrix n n raw) error).spec
(Ops.MatvecOperands n n)).on
Ops.Mode.total d ins outs τ mem).post
mem)Import NLAlib.Ops.Profiles.ContextLinearRoundedGuarded.