My question is strongly related to this question, but I'd like to have a few more details about the topic.
Question 1: If $\mathscr{H}$ is a Hilbert space and $T$ is a self-adjoint operator on $\mathscr{H}$ with a countable set of eigenvectors $\{\psi_{n}\}_{n\in \mathbb{N}}$, does it follow that $\{\psi_{n}\}_{n\in \mathbb{N}}$ form a complete orthonormal set (i.e. a Hilbert basis) for $\mathscr{H}$? If so, can someone please explain how does it follow from the spectral theorem?
Question 2: In the linked question, a special attention was given to operators with continuous spectrum. In this case, it seems not to be possible to form a basis for $\mathscr{H}$ composed by eigenvectors of a self-adjoint operator $T$. But one of the answers speak of a "generalized eigenfunction", which is not properly an element of a Hilbert space. How does it work? Could someone please at least sketch the ideas?