NLAlib.ShiftedQR.roundedLeafBranch_terminates
Library · theorem
The leaf branch keeps the core: on a scalar machine, with the standard model at \boldsymbol{u} \le 1/100 if P, and a Schur leaf on orders at most \min(k, n + 1) whose accumulator is within \varepsilon_L \ge 0 of a unitary if P (NLAlib.ShiftedQR.TerminatingLeafRoutineIf), from the geometry of the worklist in Schur mode with the parameter words stored, any failure word, a matrix \mathbf{A} whose block on (lo, d), d \le k, is in the work matrix, a stack whose ranges after (lo, d) fit with a leaf count \ell, and the accumulator within its factor at round j (2k(k + 2) \le m), the leaf, the copy back and NLAlib.ShiftedQR.roundedLeafUpdate reach the core of round j + 1 with \ell + 1 leaves.
NLAlib.ShiftedQR.roundedLeafBranch_terminates {O Q : Type} [Ops.Has Ops.ScalarOp O]
{Mch : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ} (hS : Ops.IsScalar Mch I) {P : Prop}
(hP : P → Ops.StdModel u id Mch ∧ u ≤ 1 / 100) {n k F T ns w m : ℕ} (hm : 2 * k * (k + 2) ≤ m)
{ps : List ℝ} {εL : ℝ} (hεL : P → 0 ≤ εL) (L : Ops.Stmt O Q)
(hLeaf : ShiftedQR.TerminatingLeafRoutineIf P εL (min k (n + 1)) ps T L I) {tape : Ops.Tape ℝ}
{μ : Ops.Mem ℝ} {lo d j ℓ : ℕ} {a t p uo f st wk ub r : ℕ × ℕ} {rs : List (ℕ × ℕ)}
{A U : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {x : ℝ}
(hG : ShiftedQR.SchurGeometry (n + 1) ps.length a t p uo f st wk ub r μ)
(hp : μ.store.readBlock p.1 p.2 ps.length = some ps) (hf : μ.store.get f.1 f.2 = some x)
(hA : HoldsMatrix a A μ.store) (hW : HoldsMatrix wk (subBlock A (lo, d)) μ.store)
(hSt : ShiftedQR.StackHolds st rs μ.store) (hfit : ShiftedQR.RangesFit (n + 1) ((lo, d) :: rs))
(hℓ : ℓ + d + (List.map Prod.snd rs).sum ≤ n + 1) (hdk : d ≤ k)
(hacc : ShiftedQR.AccumIf P U ((1 + 24 * u) ^ (j * m) * (1 + εL) ^ ℓ) uo μ) :
Ops.Writes Ops.Mode.total I tape
((Ops.Stmt.frame [Ops.IExp.var 8, Ops.IExp.var 2, Ops.IExp.var 4]
[{ buf := 5, off := Ops.IExp.var 14 }, { buf := 2, off := Ops.IExp.var 11 },
{ buf := 5, off := Ops.IExp.var 14 }, { buf := 6, off := Ops.IExp.var 15 }]
L).seq
((Ops.Stmt.frame [Ops.IExp.var 0, Ops.IExp.var 7, Ops.IExp.var 8]
[{ buf := 5, off := Ops.IExp.var 14 }, { buf := 0, off := Ops.IExp.var 9 }]
ShiftedQR.copyToGlobal).seq
(Ops.Stmt.frame [Ops.IExp.var 0, Ops.IExp.var 7, Ops.IExp.var 8]
[{ buf := 6, off := Ops.IExp.var 15 }, { buf := 0, off := Ops.IExp.var 9 },
{ buf := 4, off := Ops.IExp.var 13 }]
ShiftedQR.roundedLeafUpdate)))
(Ops.Env.frame [n + 1, k, ps.length, F, T, ns, w, lo, d] [a, t, p, st, uo, wk, ub, r, f])
(ShiftedQR.schurRoundFp (n + 1) a uo f st wk ub r)
(ShiftedQR.SchurStoredCore n P U u εL m a uo f st (j + 1)) μImport NLAlib.Eigensolvers.ShiftedQR.RoundedSolveCompletion.