Foundations of science and mathematics