NLAlib.Ops.writes_call1
Library · theorem
The call rule with a footprint for one output block: the block is read back.
NLAlib.Ops.writes_call1 {Op Tst K : Type} {md : Ops.Mode} {I : Ops.Interp Op Tst K} {τ : Ops.Tape K}
{ρ : Ops.Env} {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 l : ℕ} (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 = [l]) (hadm : adm d a [z])
(hpre :
md.Needs
(m.Live (a ++ [z]) ∧
(∃ xs, m.readBlocks a (R.inLens d) = some xs ∧ R.dom d xs (τ.window R.stream m.pos k)) ∧
z.2 + l ≤ m.store.len z.1)) :
Ops.Writes md I τ (Ops.Stmt.call o ds ins outs) ρ (Ops.Store.inBlock z.1 z.2 l)
(fun m' ↦
m'.pos = m.pos + k ∧
∃ xs y,
m.readBlocks a (R.inLens d) = some xs ∧
m'.store.readBlock z.1 z.2 l = some y ∧ R.rel d xs (τ.window R.stream m.pos k) [y])
mImport NLAlib.Ops.Logic.Writes.