NLA-lib Explorer

NLAlib.Ops.Interp.testSt_eq_some

Library · theorem

A counted test that succeeds: the dimensions, the Boolean and the state.

NLAlib.Ops.Interp.testSt_eq_some {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}
  {bs : Bool × Ops.St Op Tst K} (h : I.testSt q ds ins ρ st = some bs) :
  ∃ d,
    Ops.IExp.evalList ρ.idx ds = some d ∧
      I.testAt q ds ins ρ st.mem = some bs.1 ∧ bs.2 = st.tick q d

Full source on GitHub

Import NLAlib.Ops.Exec.