NLAlib.ShiftedQR.halfSolveCandidate_clear
Library · theorem
Exact arithmetic
A clear candidate reports singularity or computes its exact inverse row, retaining both source blocks. The shift need not avoid the spectrum. [BanksGarzaVargasSrivastava2021, §4.3].
NLAlib.ShiftedQR.halfSolveCandidate_clear {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 i : ℕ}
{b ss v f : ℕ × ℕ} {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {shifts : List ℂ}
{w : Fin (n + 1) → ℂ} (hH : IsUpperHessenberg H) (hB : HoldsMatrix b H m.store)
(hSS : ShiftedQR.HoldsShifts ss shifts m.store) (hV : ShiftedQR.HoldsVector v w m.store)
(hi : a + i < k) (hSep : ShiftedQR.HalfSolveSeparate (n + 1) k b ss v f)
(hf0 : m.store.get f.1 f.2 = some 0) (hf : f.2 + 1 ≤ m.store.len f.1) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.halfSolveCandidate
(Ops.Env.frame [n + 1, k, a, i] [b, ss, v, f, v, f])
(Ops.Store.inBlock v.1 v.2 (2 * (n + 1)) ⊔ Ops.Store.inBlock f.1 f.2 1)
(fun m' ↦
m'.pos = m.pos ∧
HoldsMatrix b H m'.store ∧
ShiftedQR.HoldsShifts ss shifts m'.store ∧
ShiftedQR.RowSolveResult v f (H - shifts.getD (a + i) 0 • 1) w m'.store)
mImport NLAlib.Eigensolvers.ShiftedQR.RowSolveHalf.