NLAlib.Ops.RunsFromW.ite
Library · theorem
Branch: one use of the test, then the branch taken.
NLAlib.Ops.RunsFromW.ite {Op Tst K : Type} {I : Ops.Interp Op Tst K} {W : Op → List ℕ → ℕ}
{τ : Ops.Tape K} {ρ : Ops.Env} {st : Ops.St Op Tst K} {p : ℕ}
{Q : Ops.Count Op Tst → Ops.Mem K → Prop} {q : Tst} {ds : List Ops.IExp} {ins : List Ops.Operand}
{t e : Ops.Stmt Op Tst} {d : List ℕ} {a : List (ℕ × ℕ)} {b : Bool}
(hd : Ops.IExp.evalList ρ.idx ds = some d) (ha : Ops.Operand.evalList ρ ins = some a)
(hb : I.test q d a st.mem = some b)
(h :
Ops.RunsFromW I W τ (if b = true then t else e) ρ (st.tick q d) p fun c m ↦
Q (Ops.Count.test q d + c) m) :
Ops.RunsFromW I W τ (Ops.Stmt.ite q ds ins t e) ρ st p QImport NLAlib.Ops.Counted.