NLAlib.Ops.wp_bindIdx
Library · theorem
Index binder, on the number returned, which must be within the bound.
NLAlib.Ops.wp_bindIdx {Op Tst K : Type} {md : Ops.Mode} {I : Ops.Interp Op Tst K} {τ : Ops.Tape K}
{ρ : Ops.Env} {Q : Ops.Mem K → Prop} {m : Ops.Mem K} {o : Tst} {ins : List Ops.Operand}
{bound : Ops.IExp} {body : Ops.Stmt Op Tst} {a : List (ℕ × ℕ)} {B v : ℕ}
(ha : Ops.Operand.evalList ρ ins = some a) (hB : Ops.IExp.eval ρ.idx bound = some B)
(hv : I.index o a m = some v) (hle : v ≤ B) (h : Ops.Wp md I τ body (ρ.pushIdx v) Q m) :
Ops.Wp md I τ (Ops.Stmt.bindIdx o ins bound body) ρ Q mImport NLAlib.Ops.Logic.