NLAlib.ShiftedQR.findRitzNorms_writes
Library · theorem
Exact arithmetic
Both actual half-norm calls retain the source blocks and search indices and store the same two squared norms compared by the mathematical search. A fragment: its tree runs only inside the tree of NLAlib.ShiftedQR.findRitzWindow. Shared by the trees of NLAlib.ShiftedQR.findRitzWindow, NLAlib.ShiftedQR.halfNormWithScratch, NLAlib.ShiftedQR.halfNorm.
NLAlib.ShiftedQR.findRitzNorms_writes {Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
[Ops.Has Ops.CmpTst Tst] {M : Ops.Machine ℝ} {I : Ops.Interp Op Tst ℝ} (hS : Ops.IsScalar M I)
(hE : Ops.ExactModel id M) (hCmp : Ops.IsCmp id I) {τ : Ops.Tape ℝ} {m : Ops.Mem ℝ}
{n k a h e : ℕ} {b ss r : ℕ × ℕ} {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {shifts : List ℂ}
(hH : IsUpperHessenberg H) (hB : HoldsMatrix b H m.store)
(hSS : ShiftedQR.HoldsShifts ss shifts m.store) (hwords : ShiftedQR.SearchWords r a h e m.store)
(hdet : ∀ shift ∈ shifts, (H - shift • 1).det ≠ 0) (hak : a + 2 * h ≤ k)
(hal : a + 2 * h ≤ shifts.length) (hra : r.1 ≠ b.1) (hrs : r.1 ≠ ss.1) (hl : m.Live [b, ss, r, r])
(hr : r.2 + 6 ≤ m.store.len r.1) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.findRitzNorms
(Ops.Env.frame [n + 1, k, a, h, e] [b, ss, r, r]) (Ops.Store.inBlock r.1 r.2 6)
(fun m' ↦
m'.pos = m.pos ∧
HoldsMatrix b H m'.store ∧
ShiftedQR.HoldsShifts ss shifts m'.store ∧
ShiftedQR.SearchWords r a h e m'.store ∧
m'.store.get r.1 (r.2 + 3) = some (ShiftedQR.halfNormSq H shifts a h e) ∧
m'.store.get r.1 (r.2 + 4) = some (ShiftedQR.halfNormSq H shifts (a + h) h e))
mImport NLAlib.Eigensolvers.ShiftedQR.FindRitzNorms.