NLAlib.Ops.Interp.Satisfies.and_rel
Library · theorem
Two total contracts with the same block shapes and input domain jointly describe the same output blocks when those blocks are apart. This combines an error relation with a functional word relation without assuming two independent executions agree.
NLAlib.Ops.Interp.Satisfies.and_rel {Op Tst K : Type} {I : Ops.Interp Op Tst K} {o : Op}
{R : Ops.BlockRel K} {Q : List ℕ → List (List K) → List K → List (List K) → Prop}
{adm : List ℕ → List (ℕ × ℕ) → List (ℕ × ℕ) → Prop}
(hR : I.Satisfies Ops.Mode.total o (R.spec adm))
(hQ :
I.Satisfies Ops.Mode.total o
({ nd := R.nd, stream := R.stream, win := R.win, inLens := R.inLens, outLens := R.outLens,
dom := R.dom, rel := Q }.spec
adm))
(hap :
∀ (d : List ℕ) (ins outs : List (ℕ × ℕ)) (m : Ops.Mem K),
adm d ins outs → m.Room outs (R.outLens d) → Ops.Fp.Apart outs (R.outLens d)) :
I.Satisfies Ops.Mode.total o
({ nd := R.nd, stream := R.stream, win := R.win, inLens := R.inLens, outLens := R.outLens,
dom := R.dom, rel := fun d xs w ys ↦ R.rel d xs w ys ∧ Q d xs w ys }.spec
adm)Import NLAlib.Ops.Logic.Writes.