Logic, epistemology, and the unity of science