NLA-lib Explorer

NLAlib.Ops.Impl.Satisfies.writes

Library · theorem

An implementation that satisfies a contract writes only the output blocks of its contract. Its body can be used by a larger proof with the same contract postcondition and a frame on all other cells.

NLAlib.Ops.Impl.Satisfies.writes {Op Tst K : Type} {E : Ops.Impl Op Tst} {I : Ops.Interp Op Tst K}
  {md : Ops.Mode} {B : Ops.BlockRel K} {adm : List ℕ → List (ℕ × ℕ) → List (ℕ × ℕ) → Prop}
  (h : E.Satisfies I md (B.spec adm)) {d : List ℕ} {ins outs : List (ℕ × ℕ)} {τ : Ops.Tape K}
  {m : Ops.Mem K} (hpre : ((B.spec adm).on md d ins outs τ m).pre m)
  (hlive : m.Live (ins ++ outs)) :
  Ops.Writes md I τ E.body (Ops.Env.frame d (ins ++ outs)) (Ops.Fp.blocks outs (B.outLens d))
    (((B.spec adm).on md d ins outs τ m).post m) m

Full source on GitHub

Import NLAlib.Ops.Logic.Writes.