NLAlib.ShiftedQR.halfNormAtRegister_writes
Library · theorem
Exact arithmetic
A total half-norm call gives its exact numeric branch under the caller's mathematical nonsingularity condition. It preserves the source blocks and three index words. A step in the proof of findRitzNorms_writes.
NLAlib.ShiftedQR.halfNormAtRegister_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 start size exponent j : ℕ} {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 start size exponent m.store)
(hdet : ∀ shift ∈ shifts, (H - shift • 1).det ≠ 0) (hak : a + h ≤ k) (hal : a + h ≤ shifts.length)
(hj : j = 3 ∨ j = 4) (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.halfNorm
(Ops.Env.frame [n + 1, k, a, h, e] [b, ss, (r.1, r.2 + j), (r.1, r.2 + 5)])
(Ops.Store.inBlock r.1 (r.2 + j) 1 ⊔ Ops.Store.inBlock r.1 (r.2 + 5) 1)
(fun m' ↦
m'.pos = m.pos ∧
HoldsMatrix b H m'.store ∧
ShiftedQR.HoldsShifts ss shifts m'.store ∧
ShiftedQR.SearchWords r start size exponent m'.store ∧
m'.store.get r.1 (r.2 + j) = some (ShiftedQR.halfNormSq H shifts a h e))
mImport NLAlib.Eigensolvers.ShiftedQR.FindRitzNorms.