Theory of the earth