Equivalence of acceptance by empty stack and acceptance by final state.