NLAlib.Ops.writes_call_fn2
Library · theorem
A functional operation with two known output blocks, preserving both outputs explicitly.
NLAlib.Ops.writes_call_fn2 {Op Tst K : Type} {md : Ops.Mode} {I : Ops.Interp Op Tst K}
{τ : Ops.Tape K} {ρ : Ops.Env} {m : Ops.Mem K} {o : Op} {f : Ops.BlockFn K}
{adm : List ℕ → List (ℕ × ℕ) → List (ℕ × ℕ) → Prop} (hI : I.IsFn md o f adm) {ds : List Ops.IExp}
{ins outs : List Ops.Operand} {d : List ℕ} {a : List (ℕ × ℕ)} {z₁ z₂ : ℕ × ℕ} {xs : List (List K)}
{y₁ y₂ : List K} {l₁ l₂ : ℕ} (hd : Ops.IExp.evalList ρ.idx ds = some d)
(ha : Ops.Operand.evalList ρ ins = some a) (hb : Ops.Operand.evalList ρ outs = some [z₁, z₂])
(hnd : d.length = f.nd) (hls : f.outLens d = [l₁, l₂]) (hadm : adm d a [z₁, z₂])
(hap : Ops.Fp.Disj (Ops.Store.inBlock z₁.1 z₁.2 l₁) (Ops.Store.inBlock z₂.1 z₂.2 l₂))
(hl : m.Live (a ++ [z₁, z₂])) (hr : m.readBlocks a (f.inLens d) = some xs)
(hfn : f.fn d (τ.window f.stream m.pos (f.win d)) xs = some [y₁, y₂]) (hy₁ : y₁.length = l₁)
(hy₂ : y₂.length = l₂) (hz₁ : z₁.2 + l₁ ≤ m.store.len z₁.1) (hz₂ : 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₁ ⊔ Ops.Store.inBlock z₂.1 z₂.2 l₂)
(fun m' ↦
m'.pos = m.pos + f.win d ∧
m'.store.readBlock z₁.1 z₁.2 l₁ = some y₁ ∧ m'.store.readBlock z₂.1 z₂.2 l₂ = some y₂)
mImport NLAlib.Ops.Logic.Functional.