NLAlib.SmallEig.oneEigCheck_writes
Library · theorem
NLAlib.SmallEig.oneEigCheck with index literals and exact comparisons: from words at th and tau and a flag 0 or 1 at f, it writes only the flag and keeps it 0 or 1. Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.
NLAlib.SmallEig.oneEigCheck_writes {O Q : Type} [Ops.Has Ops.IndexOp O] [Ops.Has Ops.CmpTst Q]
{M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} (hL : Ops.IsIndexLit M I) (hCmp : Ops.IsCmp id I)
{τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} {th tau f : ℕ × ℕ} {a b : ℝ}
(hth : μ.store.get th.1 th.2 = some a) (htau : μ.store.get tau.1 tau.2 = some b)
(hroomf : f.2 < μ.store.len f.1) (hF : SmallEig.OneEigFlag M f μ.store) :
Ops.Writes Ops.Mode.total I τ SmallEig.oneEigCheck (Ops.Env.frame [] [th, tau, f])
(Ops.Store.inBlock f.1 f.2 1) (fun μ' ↦ SmallEig.OneEigFlag M f μ'.store) μImport NLAlib.Eigensolvers.SmallEig.OneEigParts.