$i$ is generally defined as $\sqrt{-1}$ which is ambiguous because $\sqrt{x}$ is defined as the positive number whose square is $x$; however $i$ can't be positive since it isn't real.
Ok, so what if we defined $i$ as the number whose square is $-1$? This wouldn't make sense either because it would imply either of the following statements:
- $i = -i$
- $(-i)^2 \neq -1$
since the number whose square is $-1$ implies unicity.
This seems pretty basic point but none of the textbooks I've seen give more rigorous definitions than $i = \sqrt{-1}$.
If you take $\mathbb{R}$ as defined you can define the complex numbers in many ways. One would be
$\mathbb{C}:=\mathbb{R}^2$ \begin{align*} +:\mathbb{C}^2&\to\mathbb{C}\\ ((a,b),(c,d))&\mapsto x+y:=(a+c,b+d)\\ \cdot:\mathbb{C}^2&\to\mathbb{C}\\ ((a,b),(c,d))&\mapsto x\cdot y:=(ac-bd,ad+bc) \end{align*} In this case $\mathrm{i}=(0,1)$.