I want to prove that if $ \langle \psi | A | \psi \rangle = 1$ for all $ \psi ,$ then $A=I .$
Let's write $A$ and $\psi$ in the same basis.
$$ \begin{alignat}{7} \left\langle \psi \middle| A \middle| \psi \right\rangle & ~=~ && \left( \sum_w \alpha_w^* \langle w | \right) \left(\sum_{pq} \gamma_{pq} |p\rangle \langle q| \right) \left(\sum_v \alpha_v | v \rangle \right) \\[5px] & ~=~ && \sum_{wvpq} \alpha_w^* \gamma_{pq} \alpha_v \langle w | p \rangle \langle q | v \rangle \\[5px] & ~=~ && \sum_{wv} \alpha_w^* \gamma_{wv} \alpha_v \end{alignat} $$
which is equal to $1 .$
We know that the $\alpha$'s can be anything, and we need to prove that the $\gamma$'s where $w = v$ are $1$ and when $w \neq v$ is $0 .$
How do I proceed?