NLAlib.Ops.Routine.meets_ofRel_of_post
Library · theorem
A routine judgment from a run in operand form. If the routine draws the window of a block relation B and writes blocks of its output lengths, and at separated operands with the readable blocks in the domain the run ends in the memory of B in operand form (NLAlib.Ops.BlockRel.Post at the written operands), then the routine meets the specification read off B: the frame and the blocks read back follow from the separation. The routine has no operand that continues another, and its operands are contiguous.
NLAlib.Ops.Routine.meets_ofRel_of_post {Op Tst K : Type} {R : Ops.Routine Op Tst}
{I : Ops.Interp Op Tst K} {B : Ops.BlockRel K} {ok : List ℕ → Prop}
(hdraws : ∀ (d : List ℕ), R.draws d = some (B.win d))
(hout : ∀ (d : List ℕ), d.length = R.nd → R.writeLens d = B.outLens d)
(h :
∀ (d : List ℕ) (args : List (ℕ × ℕ)) (τ : Ops.Tape K) (m : Ops.Mem K) (xs : List (List K)),
d.length = R.nd →
args.length = R.ports.length →
m.Live args →
R.SeparatedAt d args →
m.readBlocks (R.readArgs args) (R.readLens d) = some xs →
ok d →
B.dom d xs (τ.window B.stream m.pos (B.win d)) →
m.Room (R.writeArgs args) (R.writeLens d) →
Ops.Wp Ops.Mode.total I τ R.body (Ops.Env.frame d (R.env args))
(B.Post d xs (R.writeArgs args) (τ.window B.stream m.pos (B.win d)) m) m)
(hflat : R.flat = true := by rfl) (hrep : R.allReported = true := by rfl)
(hcontig : R.contiguous = true := by rfl) : R.Meets I (Ops.Routine.Spec.ofRel B ok)Import NLAlib.Ops.RoutineLink.