The Mathematical Foundations of Quantum Mechanics