NLAlib.Ops.Interp.IsFn.satisfies_rel_of_pre
Library · theorem
A functional operation satisfies a relation when admission follows from its actual readable inputs and output capacity. This permits relational admissions that do not themselves constrain operand arity: successful reads and room facts supply that shape information.
NLAlib.Ops.Interp.IsFn.satisfies_rel_of_pre {Op Tst K : Type} {I : Ops.Interp Op Tst K} {o : Op}
{f : Ops.BlockFn K} {adm' : List ℕ → List (ℕ × ℕ) → List (ℕ × ℕ) → Prop}
(h : I.IsFn Ops.Mode.total o f adm') {B : Ops.BlockRel K}
{adm : List ℕ → List (ℕ × ℕ) → List (ℕ × ℕ) → Prop}
(hadm :
∀ (d : List ℕ) (ins outs : List (ℕ × ℕ)) (m : Ops.Mem K) (xs : List (List K)),
adm d ins outs →
m.readBlocks ins (B.inLens d) = some xs → m.Room outs (B.outLens d) → adm' d ins outs)
(hnd : f.nd = B.nd) (hst : f.stream = B.stream) (hwin : ∀ (d : List ℕ), f.win d = B.win d)
(hin : ∀ (d : List ℕ), f.inLens d = B.inLens d) (hout : ∀ (d : List ℕ), f.outLens d = B.outLens d)
(hf :
∀ (d : List ℕ) (w : List K) (xs : List (List K)) (m : Ops.Mem K) (ins outs : List (ℕ × ℕ)),
d.length = B.nd →
w.length = B.win d →
adm d ins outs →
m.readBlocks ins (B.inLens d) = some xs →
B.dom d xs w →
∃ ys,
f.fn d w xs = some ys ∧ List.map List.length ys = B.outLens d ∧ B.rel d xs w ys) :
I.Satisfies Ops.Mode.total o (B.spec adm)Import NLAlib.Ops.Cert.