Mathematical Foundations for Computing