NLAlib.Schur.schurPipeline_scale_writes
Library · theorem
Standard rounding
The scaling of the pipeline: from a run memory holding \mathbf{A} and the norm estimate \mathbf{x} > 0 in S, the literal 1, the division r = \mathrm{fl}(1/\mathbf{x}) and the scaling of the words by r store an \mathbf{A}_1 with \|x\mathbf{A}_1 - \mathbf{A}\|_2 \le 3\boldsymbol{u}\|\mathbf{A}\|_{\mathsf F}. A step in the proof of NLAlib.Schur.schurPipeline_pos_pwrites, NLAlib.Schur.schurPipeline_pos_terminates.
NLAlib.Schur.schurPipeline_scale_writes {O Q : Type} [Ops.Has Ops.ScalarOp O] {Mch : Ops.Machine ℝ}
{I : Ops.Interp O Q ℝ} {u : ℝ} (hS : Ops.IsScalar Mch I) (hM : Ops.StdModel u id Mch)
(h1 : Mch.lit 1 = 1) (hu1 : u ≤ 1) {n nr nq k F T L : ℕ} {qs : List ℝ} {a p uo f : ℕ × ℕ}
{τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} (hm : Schur.SchurPipelineMem n qs a p uo f L m)
{A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} (hA : HoldsMatrix a A m.store) {x : ℝ}
(hx : m.store.get L 0 = some x) (hx0 : 0 < x) :
Ops.Writes Ops.Mode.total I τ
((Ops.Stmt.call (Ops.Has.inj (Ops.ScalarOp.lit 1)) [] []
[{ buf := 6, off := Ops.IExp.const 0 }]).seq
((Ops.Stmt.call (Ops.Has.inj Ops.ScalarOp.div) []
[{ buf := 6, off := Ops.IExp.const 0 }, { buf := 5, off := Ops.IExp.const 0 }]
[{ buf := 6, off := Ops.IExp.const 0 }]).seq
(Ops.Stmt.loop (Ops.IExp.const 2 * (Ops.IExp.var 0 * Ops.IExp.var 0))
(Ops.Stmt.call (Ops.Has.inj Ops.ScalarOp.mul) []
[{ buf := 0, off := Ops.IExp.var 6 + Ops.IExp.var 11 },
{ buf := 6, off := Ops.IExp.const 0 }]
[{ buf := 0, off := Ops.IExp.var 6 + Ops.IExp.var 11 }]))))
(Schur.schurPipelineEnv n nr nq k F T a p uo f L)
(Ops.Store.inBlock (L + 1) 0 1 ⊔ Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))))
(fun m' ↦
Schur.SchurPipelineMem n qs a p uo f L m' ∧
m'.store.get L 0 = some x ∧
∃ A₁, HoldsMatrix a A₁ m'.store ∧ specNorm (↑x • A₁ - A) ≤ 3 * u * frobNorm A)
mImport NLAlib.Eigensolvers.Schur.Pipeline.