section ‹Stack› theory Stack imports Type_Classes begin text ‹A datatype encapsulating two lists. Is used as a base data-structure in different places. It has the operations ‹push›, ‹pop› and ‹first›.›