Math Foundations from Scratch