The Logical Structure of Science