NLAlib.Ops.Interp.testSt_eq
Library · theorem
NLAlib.Ops.Interp.testSt_eq {Op Tst K : Type} {I : Ops.Interp Op Tst K} {q : Tst}
{ds : List Ops.IExp} {ins : List Ops.Operand} {ρ : Ops.Env} {st : Ops.St Op Tst K} {d : List ℕ}
{a : List (ℕ × ℕ)} (hd : Ops.IExp.evalList ρ.idx ds = some d)
(ha : Ops.Operand.evalList ρ ins = some a) :
I.testSt q ds ins ρ st = Option.map (fun b ↦ (b, st.tick q d)) (I.test q d a st.mem)Import NLAlib.Ops.Exec.