NLA-lib Explorer

NLAlib.ShiftedQR.shPrefix_writes

Library · theorem

This statement changed in the recorded rename: 2026-11-schur.

Standard rounding

The start of Sh: from the context NLAlib.ShiftedQR.ShCtx, the rounded potential, Find and the computation of the comptau test (NLAlib.ShiftedQR.shPotential_writes, NLAlib.ShiftedQR.shFind_writes, NLAlib.ShiftedQR.shTest_writes) reach NLAlib.ShiftedQR.ShState3 with \alpha = (1.01B)^{4m/2^m}. Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine, on their scratch.

NLAlib.ShiftedQR.shPrefix_writes {n : ℕ} {O Q : Type} [Ops.Has Ops.ScalarOp O]
  [Ops.Has Ops.IndexOp O] [Ops.Has Ops.CmpTst Q] [Ops.Has Ops.IdxTst Q] {M : Ops.Machine ℝ}
  {I : Ops.Interp O Q ℝ} {u : ℝ} (hS : Ops.IsScalar M I) (hM : Ops.StdModel u id M)
  (hL : Ops.IsIndexLit M I) (hC : Ops.IsCmp id I) (hQ : Ops.IsToNat id I)
  (hNat : Ops.IsExactNatLit id M (n + 1)) {τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} {L k q : ℕ}
  (hkq : k = 2 ^ q) (hk : 2 ≤ 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)
  (hlen : ss.length = k) (hs : ∀ s ∈ ss, ‖s‖ ≤ C * specNorm H)
  (hdist : ∀ s ∈ ss, ∀ (i : Fin (n + 1)), d ≤ ‖e i - s‖) (hα : α = (1.01 * B) ^ (4 * ↑q / 2 ^ q))
  (hnu : (↑n + 1) * u ≤ 1 / 2500) (hku : 100000 * ↑k * u ≤ 1)
  (hxuT : 300 * (↑n + 1) ^ 2 * u ≤ (8004 * B)⁻¹ * (d / ((2 + 2 * C) * specNorm H)) ^ k)
  (hxuF : 300 * (↑n + 1) ^ 2 * u ≤ (8004 * B)⁻¹ * (d / ((2 + 2 * C) * specNorm H)) ^ (k / 2))
  (hm : ShiftedQR.ShCtx L k ε H ss cg cr cw cp tv a s wg wr ww wp g thr f m) {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.shPrefix
    (Ops.Env.frame [n + 1, q, k, w, LL.length]
      [a, s, wg, (L, 0), (L + 1, 0), (L + 3, 0), (L + 4, 0), (L + 5, 0), (L + 6, 0), lg])
    (Ops.Store.inBlock (L + 1) 0 1 ⊔ Ops.Store.inBlock L 0 2 ⊔
        (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) m

Full source on GitHub

Import NLAlib.Eigensolvers.ShiftedQR.RoundedShStep.