NLAlib.Ops.wp_call_rel_liberal
Library · theorem
The call rule, partial correctness: nothing is proved about the memory; a successful call had live operands, read its inputs and had room for its outputs.
NLAlib.Ops.wp_call_rel_liberal {Op Tst K : Type} {I : Ops.Interp Op Tst K} {τ : Ops.Tape K}
{ρ : Ops.Env} {Q : Ops.Mem K → Prop} {m : Ops.Mem K} {o : Op} {R : Ops.BlockRel K}
{adm : List ℕ → List (ℕ × ℕ) → List (ℕ × ℕ) → Prop}
(hI : I.Satisfies Ops.Mode.liberal o (R.spec adm)) {ds : List Ops.IExp}
{ins outs : List Ops.Operand} {d : List ℕ} {a b : List (ℕ × ℕ)} {k : ℕ} {ls : List ℕ}
(hd : Ops.IExp.evalList ρ.idx ds = some d) (ha : Ops.Operand.evalList ρ ins = some a)
(hb : Ops.Operand.evalList ρ outs = some b) (hnd : d.length = R.nd) (hk : R.win d = k)
(hls : R.outLens d = ls) (hadm : adm d a b)
(hQ :
∀ (xs ys : List (List K)),
m.Live (a ++ b) →
m.readBlocks a (R.inLens d) = some xs →
m.Room b ls →
List.map List.length ys = ls →
R.rel d xs (τ.window R.stream m.pos k) ys → Q ((m.updBlocks b ys).advance k)) :
Ops.Wp Ops.Mode.liberal I τ (Ops.Stmt.call o ds ins outs) ρ Q mImport NLAlib.Ops.Rules.