NLAlib.ShiftedQR.roundedSplitUpdate_reached
Library · theorem
Standard rounding
The split after a decoupled block on the good tapes: on a scalar machine with the standard model at 0 \le \boldsymbol{u} \le 1/100, exact natural literals up to n + 1 and exact toNat and comparisons, from the geometry with the failure word 0, a matrix \mathbf{A} of the shape with the popped range (lo, d + 1), the tracked pair of round j < 2(n + 1), a closed log at (lgb, 0) (a fresh buffer) of ns slots whose entries are inside the block, an upper Hessenberg \mathbf{H}' in the work matrix that is a perturbed unitary similarity of the block of \mathbf{A} with error \varepsilon_D by the log's unitary, and the cut i < d with |h'_{i+1,i}| \le c, writeAndSplit and roundedDecoupleUpdate reach the core of round j + 1, when the decoupling error is within the round's budget e.
NLAlib.ShiftedQR.roundedSplitUpdate_reached {O Q : Type} [Ops.Has Ops.ScalarOp O]
[Ops.Has Ops.IndexOp O] [Ops.Has Ops.CmpTst Q] [Ops.Has Ops.IdxTst Q] {Mch : Ops.Machine ℝ}
{I : Ops.Interp O Q ℝ} {u : ℝ} (hS : Ops.IsScalar Mch I) (hM : Ops.StdModel u id Mch)
(hu0 : 0 ≤ u) (hu : u ≤ 1 / 100) (hL : Ops.IsIndexLit Mch I) {n : ℕ}
(hNat : Ops.IsExactNatLit id Mch (n + 1)) (hQ : Ops.IsToNat id I) (hC : Ops.IsCmp id I)
{k F T ns w m : ℕ} (hm : ns * w ≤ m) {np : ℕ} {tape : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {lo d j lgb : ℕ}
(hj : j < 2 * (n + 1)) {a t p uo f st wk ub r : ℕ × ℕ} {rs done : List (ℕ × ℕ)}
{H U A U' : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {H' : Matrix (Fin (d + 1)) (Fin (d + 1)) ℂ}
{εL εD c e N₀ : ℝ} (hεL : 0 ≤ εL) (he : εD + 78 * u * ↑(ns * w) * N₀ + c ≤ e)
(hroom : 2 * (↑n + 1) * (78 * u * ↑(ns * w) * N₀) ≤ N₀) (he0 : 0 ≤ e)
(hN₀ : specNorm H + 2 * (↑n + 1) * e ≤ N₀) {L : List (Option (List GivensEntry))}
(hG : ShiftedQR.SchurGeometry (n + 1) np a t p uo f st wk ub r μ)
(hf : μ.store.get f.1 f.2 = some 0) (hA : HoldsMatrix a A μ.store)
(hU' : HoldsMatrix uo U' μ.store) (hW : HoldsMatrix wk H' μ.store)
(hSt : ShiftedQR.StackHolds st rs μ.store)
(hsh : ShiftedQR.SchurShape n (rs ++ [(lo, d + 1)]) done A)
(hcnt : 2 * done.length + rs.length = j)
(htr :
IsTrackedUnitarySimilar ((1 + 24 * u) ^ (j * m) * (1 + εL) ^ done.length - 1) (↑j * e) U H U' A)
(hlog : HoldsSlottedLog (lgb, 0) ns w L [] μ.store) (hlen : L.length = ns)
(hpl : ∀ e ∈ slotEntries w L, e.1 + 1 < d + 1) (hlgb : lgb < List.length μ.store)
(hlgv : ∀ v ∈ [a, t, p, uo, f, st, wk, ub, r], v.1 < lgb)
(hblk :
IsPerturbedUnitarySimilarBy (givensLog (d + 1) (slotEntries w L)) (subBlock A (lo, d + 1)) H'
εD)
(hH' : IsUpperHessenberg H') (i : Fin d) (hc : ‖H' i.succ i.castSucc‖ ≤ c) :
Ops.Writes Ops.Mode.total I tape
((Ops.Stmt.frame [Ops.IExp.var 0, Ops.IExp.var 7, Ops.IExp.var 8, Ops.IExp.var 17]
[{ buf := 0, off := Ops.IExp.var 9 }, { buf := 3, off := Ops.IExp.var 12 },
{ buf := 5, off := Ops.IExp.var 14 }]
ShiftedQR.writeAndSplit).seq
(Ops.Stmt.frame
[Ops.IExp.var 0, Ops.IExp.var 7, Ops.IExp.var 8, Ops.IExp.var 17, Ops.IExp.var 5,
Ops.IExp.var 6]
[{ buf := 8, off := Ops.IExp.const 0 }, { buf := 0, off := Ops.IExp.var 9 },
{ buf := 4, off := Ops.IExp.var 13 }]
ShiftedQR.roundedDecoupleUpdate))
({
idx :=
(Ops.Env.frame [n + 1, k, np, F, T, ns, w, lo, d + 1] [a, t, p, st, uo, wk, r, f]).idx,
buf :=
(Ops.Env.frame [n + 1, k, np, F, T, ns, w, lo, d + 1]
[a, t, p, st, uo, wk, r, f]).buf ++
[lgb] }.pushIdx
↑i)
(ShiftedQR.schurRoundFp (n + 1) a uo f st wk ub r)
(ShiftedQR.SchurReachedCore n H U u εL e m a uo f st (j + 1)) μImport NLAlib.Eigensolvers.ShiftedQR.RoundedSolveSchur.