Mathematical Theory of the Origin of the Universe