

Part 4 Redundant Specifications
Specifications can also be redundant. Let's examine the ensures clause of the Stack operation Push.
The new stack is now the new element concatenated with the contents of the initial stack, which implies that the length of the new Stack will now one longer. The conjunct "|S| = |#S| + 1" is redundant. |
||||