Mathematical Foundations, Quantum Effects, and Wave Theory