I'm self-studying Gerry and Knight. To prove Dirac's phase operator is non-existent, the book makes the following argument.
The conventions used are as follows: $\hat{n}$ is the number operator, $\hat{a}$ is the annihilation operator, and $\hat{a}^\dagger$ is the creation operator.
Dirac assumes a Hermitian phase operator $\hat{\phi}$ exists which satisfies the following relation.
$$ \hat{a} = e^{i\hat{\phi}} \sqrt{\hat{n}} $$
$$ \hat{a}^\dagger = \sqrt{\hat{n}} e^{-i\hat{\phi}} $$
The book claims this operator does not exists, for if it did the operator $e^{i\hat{\phi}}$ would have been unitary. This is while:
$$ \left(e^{i\hat{\phi}}\right)\left(e^{i\hat{\phi}}\right)^\dagger = \hat{a}(\hat{n})^{-1/2}(\hat{n})^{-1/2}\hat{a}^\dagger = \hat{a} \hat{n}^{-1}\hat{a}^\dagger \neq I $$
This contradiction proves that the operator $e^{i\hat{\phi}}$ is not unitary; and so the operator $\hat{\phi}$ does not exist.
I fail to understand the last step in the above equation; how is $\hat{a} \hat{n}^{-1} \hat{a}^{\dagger}$ is not the same as the identity operator. Note that for $n \in \mathbb{N} \cup \{0\}$, $|n\rangle$ is defined to be the eigenvector of $\hat{n}$ with an eigenvalue of $n$.
$$ \text{LHS} = \hat{a} \hat{n}^{-1} \hat{a}^{\dagger} |\psi \rangle = \hat{a} \hat{n}^{-1} \hat{a}^\dagger \left(\sum_{n=0}^{\infty} \langle n | \psi \rangle | n \rangle \right) $$
Defining $C_n \equiv \langle n | \psi \rangle$:
$$ \therefore \text{LHS} = \hat{a} \hat{n}^{-1} \left(\sum_{n=0}^{\infty} C_n \sqrt{n+1} |n+1\rangle \right) $$
$$ \therefore \text{LHS} = \hat{a} \left(\sum_{n=0}^{\infty} C_n \dfrac{|n+1\rangle}{\sqrt{n+1}} \right) $$
$$ \therefore \text{LHS} = \sum_{n=0}^{\infty} C_n |n\rangle $$
$$ \therefore \hat{a}\hat{n}^{-1}\hat{a}^\dagger |\psi\rangle = |\psi\rangle $$
So $\hat{a}\hat{n}^{-1}\hat{a}^\dagger = I$. Is the textbook wrong in making this argument?
The only flaw I could think of with the above argument is that $\hat{a}\hat{n}^{-1}\hat{a}^\dagger$ could be undefined for certain vectors in the Hilbert space, in which case it would not be the same as the identity operator. If this is the case, how can we prove this operator is not defined everywhere?
Sorry if this question is trivial.