NLAlib.ShiftedQR.roundedRange_pwrites
Library · theorem
This statement changed in the recorded rename: 2026-11-schur, 2026-11-smalleig.
Standard rounding
Processing a popped range on the good tapes: from the popped state of round j < 2(n + 1) on the range (lo, d), lo + d \le n + 1, the copy of its block, then the leaf branch (order at most k) or the large branch reach the state before round j + 1, except with probability at most \varphi_L + \varphi_D.
Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.
NLAlib.ShiftedQR.roundedRange_pwrites {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) (hI : I.IsMeasurable) {win : O → List ℕ → ℕ}
(hloc : ∀ (o : O), I.TapeLocal o (win o)) {law : ℕ → Measure ℝ} {B g φD φL N₀ εL β e ω c thr : ℝ}
{k F T ns w m : ℕ} (hm1 : ns * w ≤ m) (hm2 : 2 * k * (k + 2) ≤ m) {ps : List ℝ} {ε : ℝ → ℝ}
(D : Ops.Stmt O Q)
(hD : ShiftedQR.RandomDecouplingRoutineContract law (2 * B) (g / 2) φD k F T n N₀ ps ns w ω ε D I)
(L : Ops.Stmt O Q) (hLeaf : Schur.RandomSchurLeafContract law εL β φL (min k (n + 1)) N₀ ps T L I)
(hφD : 0 ≤ φD) (hφL : 0 ≤ φL) {H U V : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
{dd : Fin (n + 1) → ℂ} (hV : IsUnit V) (hHV : H * V = V * diagonal dd)
(hκ : pseudoConditionNumber V ≤ B) (hg : 0 < g)
(hgap : ∀ (i j : Fin (n + 1)), i ≠ j → g ≤ ‖dd i - dd j‖) (hεL : 0 ≤ εL)
(hfind : (1 + u) ^ 2 * ω ^ 2 ≤ thr) (hcut : thr ≤ (1 - u) ^ 2 * c ^ 2) (hc : 0 ≤ c)
(heD : ε N₀ + 78 * u * ↑(ns * w) * N₀ + c ≤ e)
(heL : β + (8 * (↑n + 1) * (↑k + 2) * u * N₀ + 2 * εL * N₀) ≤ e)
(hroomD : 2 * (↑n + 1) * (78 * u * ↑(ns * w) * N₀) ≤ N₀)
(hroomL : 2 * (↑n + 1) * (8 * (↑n + 1) * (↑k + 2) * u * N₀) ≤ N₀) (he0 : 0 ≤ e)
(hN₀ : specNorm H + 2 * (↑n + 1) * e ≤ N₀) (hsmall : 2 * (↑n + 1) * e ≤ g / (16 * (↑n + 1) * B))
{a t p uo f st wk ub r : ℕ × ℕ} {j lo d : ℕ} (hj : j < 2 * (n + 1)) (hd : lo + d ≤ n + 1) :
Ops.PWrites law I (ShiftedQR.roundedProcessRangeWith D L)
(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.SchurPopped false n H U u εL e m thr ps a t p uo f st wk ub r j lo d)
(ShiftedQR.SchurReached n H U u εL e m thr ps a t p uo f st wk ub r (j + 1)) (φL + φD)Import NLAlib.Eigensolvers.ShiftedQR.RoundedWorklistSchur.