How would I write a detailed structured proof for:
for all real numbers $x$ and $y$, $|x + y| \le |x| + |y|$
I'm planning on breaking it up into four cases, where both $x,y < 0$, $x \ge 0$ and $y<0$, $x<0$ and $y \ge0$, and $x,y \ge 0$. But I'm not sure how I'd go about writing it formally.
Thanks!
You are absolutely on the right track. I'll model one case for you, and you can try the other cases on your own.
Case 1: $x,y\geq 0$. Then $x+y\geq 0$, so $|x+y|=x+y$. Similarly, $|x|=x$ because $x\geq 0$, and $|y|=y$ because $y\geq 0$. Thus $|x+y|=x+y=|x|+|y|$.