$$ (\;\int_{-\infty}^{\infty} \left |\Psi_n(q)\right |^2dq=1 \; \forall n \;)\;\;\&\;\; (\;\Psi(q) =\;\sum a_n\Psi_n(q)\;) \implies\; \sum \left |a_n\right |^2= \int_{-\infty}^{\infty} \left |\Psi(q)\right |^2dq $$
$$ n\in \mathbb{N},\; \Psi_n(q) \in \mathbb{C},\; \Psi(q) \in \mathbb{C},\; a_n \in \mathbb{C}, \; q \in \mathbb{R} $$
The book attempts to justify this statement with some vague arguments. I am looking for a rigourous proof of this statement. This appears to be a standard result. So, if I have missed any necessary conditions before the implies sign, please fill them in.
Also, in the book, q is treated as a general configuration space, instead of a one dimentional space as I have considered here and the integrals are done over the entire configuration space. If possible, also give proof for this general case.