NLA-lib Explorer

NLAlib.ShiftedQR.roundedLeafRest_reached

Library · theorem

Standard rounding

The rest of a leaf round on the good tapes: on a scalar machine with the standard model at 0 \le \boldsymbol{u} \le 1/100, from the geometry of the worklist in Schur mode with the failure word 0, a matrix \mathbf{A} of the shape with the popped range (lo, d), d \le k, the tracked pair of round j < 2(n + 1), and the leaf's output (\mathbf{U}_\mathbf{b}, \mathbf{T}_\mathbf{b}) stored, \mathbf{T}_\mathbf{b} upper triangular and tracked from (\mathbf{I}, \mathbf{A}_{lo:lo+d}) with (\varepsilon_L, \beta), writing the block back and updating the couplings and the accumulator reach the core of round j + 1, when the leaf error is within the round's budget e.

NLAlib.ShiftedQR.roundedLeafRest_reached {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)
  (hu0 : 0 ≤ u) (hu : u ≤ 1 / 100) {n k F T ns w m : ℕ} (hm2 : 2 * k * (k + 2) ≤ m) {ps : List ℝ}
  {εL β e N₀ : ℝ} (hεL : 0 ≤ εL) (he : β + (8 * (↑n + 1) * (↑k + 2) * u * N₀ + 2 * εL * N₀) ≤ e)
  (hroom : 2 * (↑n + 1) * (8 * (↑n + 1) * (↑k + 2) * u * N₀) ≤ N₀)
  {H U : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} (he0 : 0 ≤ e)
  (hN₀ : specNorm H + 2 * (↑n + 1) * e ≤ N₀) {tape : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {lo d j : ℕ}
  (hj : j < 2 * (n + 1)) (hdk : d ≤ k) {a t p uo f st wk ub r : ℕ × ℕ} {rs done : List (ℕ × ℕ)}
  {A U' : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {Ub Tb : Matrix (Fin d) (Fin d) ℂ}
  (hG : ShiftedQR.SchurGeometry (n + 1) ps.length 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) (hTb : HoldsMatrix wk Tb μ.store)
  (hUb : HoldsMatrix ub Ub μ.store) (hSt : ShiftedQR.StackHolds st rs μ.store)
  (hsh : ShiftedQR.SchurShape n (rs ++ [(lo, d)]) 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)
  (hleaf : IsTrackedUnitarySimilar εL β 1 (subBlock A (lo, d)) Ub Tb) (hup : Tb.IsUpperTriangular) :
  Ops.Writes Ops.Mode.total I tape ShiftedQR.roundedLeafRest
    (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.SchurReachedCore n H U u εL e m a uo f st (j + 1)) μ

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedSolveSchur.