NLAlib.ShiftedQR.shTest_writes
Library · theorem
This statement changed in the recorded rename: 2026-11-schur.
Standard rounding
The computation of the comptau test of Sh (NLAlib.ShiftedQR.shTestStep_writes) reaches NLAlib.ShiftedQR.ShState3 from NLAlib.ShiftedQR.ShState2, for 1 \le k \le n and shifts at distance at least d > 0 from the spectrum and in \mathbb{D}(0, C\|\mathbf{H}\|_2). Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine, on their scratch.
NLAlib.ShiftedQR.shTest_writes {n : ℕ} {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
[Ops.Has Ops.CmpTst Q] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ} (hS : Ops.IsScalar M I)
(hM : Ops.StdModel u id M) (hC : Ops.IsCmp id I) {τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} {L k : ℕ}
(hk0 : 0 < k) (hkn : k ≤ n) {ε : ℝ} {a s wg wr ww wp g thr f : ℕ × ℕ}
(hv : ShiftedQR.ShViews L n k ε a s wg wr ww wp g thr f)
{H V : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {e : Fin (n + 1) → ℂ} {ss : List ℂ}
{B C d α cg cr cw cp tv : ℝ} (hH : IsUpperHessenberg H) (hH0 : H ≠ 0) (hV : IsUnit V)
(hHV : H * V = V * diagonal e) (hκ : pseudoConditionNumber V ≤ B) (hC0 : 0 ≤ C) (hd : 0 < d)
(hs : ∀ s ∈ ss, ‖s‖ ≤ C * specNorm H) (hdist : ∀ s ∈ ss, ∀ (i : Fin (n + 1)), d ≤ ‖e i - s‖)
(hnu : (↑n + 1) * u ≤ 1 / 2500) (hu : 30000 * (↑k + 1) * u ≤ 1)
(hxu : 300 * (↑n + 1) ^ 2 * u ≤ (8004 * B)⁻¹ * (d / ((2 + 2 * C) * specNorm H)) ^ k)
(hm : ShiftedQR.ShState2 u L k ε H V e ss α cg cr cw cp tv a s wg wr ww wp g thr f m)
(hL : Ops.IsIndexLit M I) (hNat : Ops.IsExactNatLit id M (n + 1)) {ns w : ℕ} {lg : ℕ × ℕ}
{LL : List (Option (List GivensEntry))} (hlog : HoldsSlottedLog lg ns w LL [] m.store)
(hj : LL.length < ns) (hw : k * n ≤ w) (hlgL : lg.1 < L)
(hlgv : ∀ b ∈ [a, s, wg, wr, ww, wp, g, thr, f], b.1 ≠ lg.1) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.shTestStep
(Ops.Env.frame [n + 1, k, w, LL.length]
[a, (L, 0), wg, (L + 5, 0), (L + 6, 0), (L + 3, 0), (L + 4, 0), lg])
(Ops.Store.inBlock (L + 5) 0 (2 * ((n + 1) * (n + 1))) ⊔ Ops.Store.inBlock (L + 6) 0 (2 * k) ⊔
Ops.Store.inBlock (L + 3) 0 1 ⊔
Ops.Store.inBlock (L + 4) 0 1 ⊔
Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * w)))
(ShiftedQR.ShState3 M u L k ε H V e ss α cg cr cw cp tv a s wg wr ww wp g thr f lg ns w LL) mImport NLAlib.Eigensolvers.ShiftedQR.RoundedSh.