NLA-lib Explorer

NLAlib.SmallEig.OneEigLoopInv.testAt_eq

Library · theorem

The test of the loop of NLAlib.SmallEig.oneEig before round i: with exact comparisons, from the loop invariant, it compares the word 0.9\beta at qw[5] with the estimate at Tau.

NLAlib.SmallEig.OneEigLoopInv.testAt_eq {O Q : Type} [Ops.Has Ops.CmpTst Q] {M : Ops.Machine ℝ}
  {I : Ops.Interp O Q ℝ} (hCmp : Ops.IsCmp id I) {n L : ℕ}
  {H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {d : Fin (n + 1) → ℂ} {β η₁ η₂ η : ℝ} {qs : List ℝ}
  (hqs : 6 ≤ qs.length) (hq5 : qs.getD 5 0 = 0.9 * β) {μ : Ops.Mem ℝ} {h qw lam f : ℕ × ℕ} {i : ℕ}
  {ρ : Ops.Env} {ds : List Ops.IExp} {ins : List Ops.Operand} {e : List ℕ}
  (hd : Ops.IExp.evalList ρ.idx ds = some e)
  (hρ : Ops.Operand.evalList ρ ins = some [(qw.1, qw.2 + 5), (L, 0)])
  (hI : SmallEig.OneEigLoopInv M H d qs h qw lam f L β η₁ η₂ η i μ) :
  ∃ v,
    μ.store.get L 0 = some v ∧
      I.testAt (Ops.Has.inj Ops.CmpTst.lt) ds ins ρ μ = some (decide (0.9 * β < v))

Full source on GitHub

Import NLAlib.Eigensolvers.SmallEig.OneEig.