The bounded word stack #
Stack.spec w C restricts the mathematical stack Queue.stack ℕ to at most C items, each
fitting a w-bit word. A push needs spare capacity and a fitting value; pop and size are always
admissible, and a pop from an empty stack returns none. Stack.Memory implements it over the
memory oracle, and Stack.Native runs that implementation on the word RAM.
Main definitions #
spec: the bounded stack.
References #
@[reducible, inline]
The stack restricted to C items that fit a w-bit word.