NLAlib.Ops.Routine.Meets.satisfies
Library · theorem
A routine that meets a specification meets, as an implementation, the operation contract it implements, when at admitted operands the domain of the contract gives the precondition and the postcondition gives the relation of the contract. The window of the contract is the window of its stream at the position of the call.
NLAlib.Ops.Routine.Meets.satisfies {Op Tst K : Type} {R : Ops.Routine Op Tst}
{I : Ops.Interp Op Tst K} {S : Ops.Routine.Spec K} (h : R.Meets I S) {B : Ops.BlockRel K}
{adm : List ℕ → List (ℕ × ℕ) → List (ℕ × ℕ) → Prop}
{port : List (ℕ × ℕ) → List (ℕ × ℕ) → List (ℕ × ℕ)} (hi : R.Implements B adm port)
(hpre :
∀ (d : List ℕ) (ins outs : List (ℕ × ℕ)) (τ : Ops.Tape K) (p : ℕ) (xs : List (List K)),
B.Shaped adm d ins outs → B.dom d xs (τ.window B.stream p (B.win d)) → S.pre d (τ.shift p) xs)
(hpost :
∀ (d : List ℕ) (ins outs : List (ℕ × ℕ)) (τ : Ops.Tape K) (p : ℕ) (xs ys : List (List K)),
B.Shaped adm d ins outs →
S.post d (τ.shift p) xs ys → B.rel d xs (τ.window B.stream p (B.win d)) ys) :
R.impl.Satisfies I Ops.Mode.total (B.spec adm)Import NLAlib.Ops.RoutineLink.