NLAlib.Ops.writes_bindIdx_holds
Library · theorem
Index binder, in the form of a liberal proof: the number is read under md.Holds; the body is proved at it, and success needs it within the bound.
NLAlib.Ops.writes_bindIdx_holds {Op Tst K : Type} {md : Ops.Mode} {I : Ops.Interp Op Tst K}
{τ : Ops.Tape K} {ρ : Ops.Env} {m : Ops.Mem K} {q : Tst} {ins : List Ops.Operand}
{bound : Ops.IExp} {body : Ops.Stmt Op Tst} {a : List (ℕ × ℕ)} {B : ℕ} {F : Ops.Fp}
{P : Ops.Mem K → Prop} (ha : Ops.Operand.evalList ρ ins = some a)
(hB : Ops.IExp.eval ρ.idx bound = some B)
(h :
md.Holds (I.index q a m) fun v ↦
md.Needs (v ≤ B) ∧ (v ≤ B → Ops.Writes md I τ body (ρ.pushIdx v) F P m)) :
Ops.Writes md I τ (Ops.Stmt.bindIdx q ins bound body) ρ F P mImport NLAlib.Ops.Logic.Writes.