How Pythagoras turned math into a tool for understanding reality