NLAlib.ShiftedQR.acceptTrial_writes
Library · theorem
Exact arithmetic
The scoped acceptance test writes the exact zero/one result and removes all temporary scan/product storage. Only the actual matrix, threshold and target words are consumed. A fragment of the exact decoupler NLAlib.ShiftedQR.scalarDecouple, which exact shifted QR (NLAlib.ShiftedQR.deflationRoutine) takes as its decoupler.
NLAlib.ShiftedQR.acceptTrial_writes {Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
[Ops.Has Ops.IndexOp Op] [Ops.Has Ops.CmpTst Tst] {M : Ops.Machine ℝ} {I : Ops.Interp Op Tst ℝ}
(hS : Ops.IsScalar M I) (hE : Ops.ExactModel id M) (hL : Ops.IsIndexLit M I) (hC : Ops.IsCmp id I)
{τp : Ops.Tape ℝ} {m : Ops.Mem ℝ} {n k : ℕ} {a t target f : ℕ × ℕ}
{H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {τ T : ℝ} (hk : k ≤ n) (hτ : 0 ≤ τ)
(hH : HoldsMatrix a H m.store) (ht : m.store.get t.1 t.2 = some (τ ^ 2))
(hTarget : m.store.get target.1 target.2 = some T) (hf : f.2 < m.store.len f.1)
(hsep :
Ops.Fp.Disj (Ops.Store.inBlock f.1 f.2 1)
(Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))) ⊔ Ops.Store.inBlock t.1 t.2 1 ⊔
Ops.Store.inBlock target.1 target.2 1)) :
Ops.Writes Ops.Mode.total I τp ShiftedQR.acceptTrial (Ops.Env.frame [n + 1, k] [a, t, target, f])
(Ops.Store.inBlock f.1 f.2 1)
(fun m' ↦
m'.pos = m.pos ∧
m'.store.get f.1 f.2 =
some (if IsDecoupledAbs τ H ∨ subdiagNormSqProd k H ≤ T then 1 else 0))
mImport NLAlib.Eigensolvers.ShiftedQR.Acceptance.