NLAlib.Schur.schurPipeline_pos_completes
Library · theorem
The positive branch of the pipeline runs to completion on any scalar machine with completing stages.
NLAlib.Schur.schurPipeline_pos_completes {O Q : Type} [Ops.Has Ops.ScalarOp O] {Mch : Ops.Machine ℝ}
{I : Ops.Interp O Q ℝ} (hS : Ops.IsScalar Mch I) (h0 : Mch.lit 0 = 0) (h1 : Mch.lit 1 = 1)
{Reg Red Core : Ops.Stmt O Q} {n k F T L : ℕ} {qR qC : List ℝ}
(hReg :
∀ {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {a q : ℕ × ℕ} (A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ),
HoldsMatrix a A μ.store →
μ.store.readBlock q.1 q.2 qR.length = some qR →
μ.Live [a, q] →
Ops.Fp.Disj (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))))
(Ops.Store.inBlock q.1 q.2 qR.length) →
Ops.Writes Ops.Mode.total I τ Reg (Ops.Env.frame [n + 1, qR.length] [a, q, a])
(Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))))
(fun μ' ↦ ∃ A', HoldsMatrix a A' μ'.store) μ)
(hRed : Schur.CompletingReducer (n + 1) Red I)
(hCore : Schur.CompletingSchurCore k F T (n + 1) qC Core I) {a p uo f : ℕ × ℕ}
{A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {m : Ops.Mem ℝ}
(hm : Schur.SchurPipelineMem n (qR ++ qC) a p uo f L m) (hA : HoldsMatrix a A m.store) {x : ℝ}
(hx : m.store.get L 0 = some x) (τ : Ops.Tape ℝ) :
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 }])).seq
((Ops.Stmt.frame [Ops.IExp.var 0, Ops.IExp.var 1]
[{ buf := 0, off := Ops.IExp.var 6 }, { buf := 1, off := Ops.IExp.var 7 },
{ buf := 0, off := Ops.IExp.var 6 }]
Reg).seq
((Ops.Stmt.frame [Ops.IExp.var 0] [{ buf := 3, off := Ops.IExp.var 9 }]
Ops.PairMatrix.identity).seq
((Ops.Stmt.frame [Ops.IExp.var 0]
[{ buf := 0, off := Ops.IExp.var 6 }, { buf := 3, off := Ops.IExp.var 9 },
{ buf := 0, off := Ops.IExp.var 6 }, { buf := 3, off := Ops.IExp.var 9 }]
Red).seq
((Ops.Stmt.frame
[Ops.IExp.var 0, Ops.IExp.var 2, Ops.IExp.var 3, Ops.IExp.var 4,
Ops.IExp.var 5]
[{ buf := 0, off := Ops.IExp.var 6 },
{ buf := 1, off := Ops.IExp.var 7 + Ops.IExp.var 1 },
{ buf := 3, off := Ops.IExp.var 9 }, { buf := 0, off := Ops.IExp.var 6 },
{ buf := 3, off := Ops.IExp.var 9 }, { buf := 4, off := Ops.IExp.var 10 }]
Core).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 := 5, off := Ops.IExp.const 0 }]
[{ buf := 0, off := Ops.IExp.var 6 + Ops.IExp.var 11 }])))))))))
(Schur.schurPipelineEnv n qR.length qC.length k F T a p uo f L)
(Schur.schurFp n a uo f ⊔ Ops.Store.inBlock (L + 1) 0 1) (fun x ↦ True) mImport NLAlib.Eigensolvers.Schur.Completion.