MATHEMATICAL FOUNDATIONS