NLA-lib Explorer

NLAlib.Ops.Routine.Meets

Library · def

A routine meets a specification over an interpretation. At every memory, on live operands separated as the interface requires, with the readable blocks satisfying the precondition and room for the written blocks, the tree terminates, changes only the written blocks, advances the tape position by exactly the declared number of draws (no claim when the routine declares none), and the written blocks that are reported satisfy the postcondition. The call supplies one operand per region; the blocks read, written and reported are those of all operands of the interface (NLAlib.Ops.Routine.operands), each of the shape its operand declares (NLAlib.Ops.Routine.readAt, NLAlib.Ops.Routine.RoomAt, NLAlib.Ops.Routine.footprint, NLAlib.Ops.Routine.reportAt): for an interface of contiguous operands these are, by computation, the reads, the room and the footprint of blocks.

This is the one judgment that the author of a routine states and that a caller uses (NLAlib.Ops.Routine.Meets.call).

NLAlib.Ops.Routine.Meets {Op Tst K : Type} (R : Ops.Routine Op Tst) (I : Ops.Interp Op Tst K)
  (S : Ops.Routine.Spec K) : Prop

Full source on GitHub

Import NLAlib.Ops.Routine.