NLAlib.Ops.Writes.contract_post
Library · theorem
A framed block statement on inputs xs read with room for the outputs gives the postcondition of the contract of the relation in operand form.
NLAlib.Ops.Writes.contract_post {K Op Tst : Type} {I : Ops.Interp Op Tst K} {τ : Ops.Tape K}
{s : Ops.Stmt Op Tst} {ρ : Ops.Env} {m : Ops.Mem K} {B : Ops.BlockRel K}
{adm : List ℕ → List (ℕ × ℕ) → List (ℕ × ℕ) → Prop} {d : List ℕ} {ins outs : List (ℕ × ℕ)}
{xs : List (List K)} (hr : m.readBlocks ins (B.inLens d) = some xs)
(hz : m.Room outs (B.outLens d))
(h :
Ops.Writes Ops.Mode.total I τ s ρ (Ops.Fp.blocks outs (B.outLens d))
(fun m' ↦
m'.pos = m.pos + B.win d ∧
∃ ys,
m'.readBlocks outs (B.outLens d) = some ys ∧
B.rel d xs (τ.window B.stream m.pos (B.win d)) ys)
m) :
Ops.Writes Ops.Mode.total I τ s ρ (Ops.Fp.blocks outs (B.outLens d))
(((B.spec adm).on Ops.Mode.total d ins outs τ m).post m) mImport NLAlib.Ops.Logic.BlockPost.