Euler and the structure of mathematics