section ‹Common› theory Common imports Current Idle begin text ‹ ⇤ The last two phases of both deque ends during rebalancing: ➧ ‹Copy›: Using the ‹step› function the new elements of this deque end are brought back into the original order. ➧ ‹Idle›: The rebalancing of the deque end is finished. ⇤ Each phase contains a ‹current› state, that holds the original elements of the deque end. ›