Foundations of the unity of science