FIFO correctness of the physical-array memory programs #
The count inputs and results are ordinary values; the physical memory assertions reuse
Block.HoldsList. The conclusions identify the existing pairStep on the front and rear
lists, including empty dequeue and a returned zero. No count cell or stronger room premise is
introduced. The native register representation and paid dispatcher are separate consumers.
Main results #
enqueue_contents: the rear write implements a logical stack push and frames the front.popFront_contents: the top read implements a logical stack pop without clearing memory.dequeue_contents: transfer and pop implement the existing FIFO transitionpairStep.
References #
The queue and its algorithmic references are in Cslib.DataStructure.Queue.Spec.
Enqueue appends one physical rear word while retaining the entire represented front.
Pop observes the top represented value and retains the unused dirty cell. No memory clearing, capacity fit or nonzero-value hypothesis is needed for this source equation.
The interpreter's actual counts, option answer and physical arrays implement the existing two-stack transition. The only capacity premise is the original sum bound.