NLAlib.Ops.Wp.post_of_evalCounted
Library · theorem
An ordinary total WP applies to the memory of any actual counted execution of that same statement. This observation lets resource proofs reuse mathematical word invariants.
NLAlib.Ops.Wp.post_of_evalCounted {Op Tst K : Type} {I : Ops.Interp Op Tst K} {τ : Ops.Tape K}
{W : Op → List ℕ → ℕ} {s : Ops.Stmt Op Tst} {ρ : Ops.Env} {Q : Ops.Mem K → Prop}
{a b : Ops.St Op Tst K} (h : Ops.Wp Ops.Mode.total I τ s ρ Q a.mem)
(hr : Ops.evalCounted I W τ s ρ a = some b) : Q b.memImport NLAlib.Ops.Logic.WeightedLoop.