Observables in QM, are they the eigenvalues or the elements of the spectrum? The question is rather simple.
We all hear all the time that an observable of a quantum mechanical system (for some observable that is given by a some self-adjoint operator, let's call it $H$) is given by the eigenvalues of this operator $H$. One also often hears (reads) that the set of all the possible values you can measure (in your experiment for example) is given by the spectrum of an operator $H$.
I have a conundrum here. which of the two is it?
When we measure something in quantum mechanics are we measuring the eigenvalues or the spectrum?
It is important to note that these two things are $\textbf{NOT}$, in general, the same. For finite-dimensional operators sure, they happen to correspond, but for non-finite operators, they are categorically different. One guarantees that $\exists \lambda$ such that for some $\psi_\lambda$ we have $H\psi_\lambda=\lambda \psi_\lambda$ and the other that the matrix $H-\lambda I$ is non-invertible.
Am I missing some assumption here?
I know there are examples of operators with a nonvanishing spectrum that have no eigenvalues (I think multiplication by a sine function is one example if I am not mistaken).
What is the definition (formally) of the observables of a QM system?
and also why is it defined in that way and not the other (I suspect there is some theorem/result/definition that only works if we use one and not the other).
 A: *

*An observable is a self-adjoint operator (but not all self-adjoint operators are observables, see this question).


*To every self-adjoint operator, there is an associated projection-valued spectral measure. Possible outcomes of measurements of the observable are subsets of its spectrum, the corresponding resulting state after measurement is the original state projected through the integral of the spectral measure over the subset.


*For operators with a discrete spectrum consisting solely of eigenvalues, this reduces to the usual Born rule when we measure single eigenvalues. For operators with less nice spectra - for instance the position operator with its purely continuous, eigenvalue-less spectrum - most physics treatments still pretend there are "eigenvectors" $\lvert x\rangle$ and just treat it like the discrete case. Even though this is rigorously deeply questionable (a mathematical formulation of this would involve rigged Hilbert spaces, see this question), it works surprisingly well in practice.
