NLA-lib Explorer

NLAlib.Ops.Writes.runs_post

Library · theorem

A framed block statement is a run within the static count and workspace of the tree, whose final memory satisfies the update equation of the relation.

NLAlib.Ops.Writes.runs_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} (W : Op → List ℕ → ℕ) {B : Ops.BlockRel K}
  {d : List ℕ} {xs : List (List K)} {outs : List (ℕ × ℕ)} {w : List K}
  (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 w ys)
      m) :
  Ops.ConditionalRuns I W τ s ρ m (Ops.stmtCost s ρ.idx) (Ops.stmtPeak W s ρ.idx)
    (B.Post d xs outs w m)

Full source on GitHub

Import NLAlib.Ops.Logic.BlockPost.