I want to show that for all real numbers $a, b \in \mathbb R$, $|a + b|^2 = (a + b)^2$. I have the following axioms for the inequality relation "$\leq$":
(i) For every $a,b \in \mathbb R$, either $a \leq b$ or $b \leq a$.
(ii) If $a \leq b$ and $b \leq a$, then $a=b$.
(iii) If $a \leq b$ and $b \leq c$, then $a \leq c$.
(iv) If $a \leq b$ and $c \in \mathbb R$, then $a+c \leq b+c$.
(v)If $a \leq b$ and $0 \leq c$, then $ac \leq bc$.
I also have been given the following rules about absolute values:
(i) For all $a \in \mathbb R$, $-|a| \leq a \leq |a|$ and $a = |a|$ if, and only if, $0 \leq a$.
(ii)For all $a, b \in \mathbb R$, $|ab| = |a||b|$.
Now, I want to show that for all $a, b \in \mathbb R$, $|a + b| \leq |a| + |b|$. But in part of a proof I'm reading in a textbook, it says that "$|a + b|^2 = (a+b)^2$". I understand it intuitively, but how do you prove exactly that only using the axioms and the rules above? I also know that $0 \leq |a|$ for all $a \in \mathbb R$, so that implies that $0 \leq |a + b|$, and every number squared gives a positive number. But I don't understand how to show that these two are thus equal to each other.
Thanks in advance.
Note that, for every real $x$,
$$\vert x \vert \stackrel{\text{def}}{=} \begin{cases} x &,\ x \geq 0 \\ -x &,\ x < 0 .\end{cases}$$
Now look at the two cases: