NLAlib.Ops.wp_call_rel2
Library · theorem
The call rule for two output blocks (a factorization, a rotation of two vectors).
NLAlib.Ops.wp_call_rel2 {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₁ z₂ : ℕ × ℕ}
{k l₁ l₂ : ℕ} {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₁, z₂])
(hnd : d.length = R.nd) (hk : R.win d = k) (hls : R.outLens d = [l₁, l₂])
(hadm : adm d a [z₁, z₂]) (hlive : m.Live (a ++ [z₁, z₂]))
(hr : m.readBlocks a (R.inLens d) = some xs) (hdom : R.dom d xs (τ.window R.stream m.pos k))
(hz₁ : z₁.2 + l₁ ≤ m.store.len z₁.1) (hz₂ : z₂.2 + l₂ ≤ m.store.len z₂.1)
(hQ :
∀ (y₁ y₂ : List K),
y₁.length = l₁ →
y₂.length = l₂ →
R.rel d xs (τ.window R.stream m.pos k) [y₁, y₂] →
Q (((m.updBlock z₁ y₁).updBlock z₂ y₂).advance k)) :
Ops.Wp md I τ (Ops.Stmt.call o ds ins outs) ρ Q mImport NLAlib.Ops.Rules.