NLA-lib Explorer

NLAlib.Ops.wp_call_rel_cell

Library · theorem

The call rule for one output cell.

NLAlib.Ops.wp_call_rel_cell {Op Tst K : Type} {md : Ops.Mode} {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 md o (R.spec adm)) {ds : List Ops.IExp} {ins outs : List Ops.Operand}
  {d : List ℕ} {a : List (ℕ × ℕ)} {z : ℕ × ℕ} {k : ℕ} {xs : List (List K)}
  (hd : Ops.IExp.evalList ρ.idx ds = some d) (ha : Ops.Operand.evalList ρ ins = some a)
  (hb : Ops.Operand.evalList ρ outs = some [z]) (hnd : d.length = R.nd) (hk : R.win d = k)
  (hls : R.outLens d = [1]) (hadm : adm d a [z]) (hlive : m.Live (a ++ [z]))
  (hr : m.readBlocks a (R.inLens d) = some xs) (hdom : R.dom d xs (τ.window R.stream m.pos k))
  (hz : z.2 < m.store.len z.1)
  (hQ : ∀ (v : K), R.rel d xs (τ.window R.stream m.pos k) [[v]] → Q ((m.upd z v).advance k)) :
  Ops.Wp md I τ (Ops.Stmt.call o ds ins outs) ρ Q m

Full source on GitHub

Import NLAlib.Ops.Rules.