NLAlib.ShiftedQR.checkComplexPivot_writes
Library · theorem
Exact arithmetic
Actual component tests report either a nonzero pivot with flag zero or a zero pivot with flag one. No assumption rules out singular inputs. Only the flag cell may be written. A fragment of the exact decoupler NLAlib.ShiftedQR.scalarDecouple, which exact shifted QR (NLAlib.ShiftedQR.deflationRoutine) takes as its decoupler.
NLAlib.ShiftedQR.checkComplexPivot_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 ℝ} {y f : ℕ × ℕ}
{yv : ℂ} (hy0 : m.store.get y.1 y.2 = some yv.re) (hy1 : m.store.get y.1 (y.2 + 1) = some yv.im)
(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.checkComplexPivot (Ops.Env.frame [] [y, f, f])
(Ops.Store.inBlock f.1 f.2 1)
(fun μ ↦
μ.pos = m.pos ∧
(μ.store.get f.1 f.2 = some 0 ∧ yv ≠ 0 ∨ μ.store.get f.1 f.2 = some 1 ∧ yv = 0))
mImport NLAlib.Eigensolvers.ShiftedQR.Pivot.