MATHEMATICAL FOUNDATIONS OF QUANTUM FIELD THEORY