The Mathematical Theory of Relativity