I am kind of lost when I try to understand the definition of the free abelian group on a set $X$
I read the question here What is the definition of a free abelian group
According to this question, the free abelian group of $\{A,B,C,D\}$ is $\mathbb{Z}^4$. However, I think that they have to be linearly independent to make that group isomorphic to $\mathbb{Z}^4$. For example, what if there is an implicit relation $2A+B=0$. Then obviously it is not $\mathbb{Z}^4$, since $(2,1,0,0)$ and $(4,2,0,0)$ are the same thing. What is wrong with my argument?
I also read Serge Lang's algebra book. It seems that if we say a free abelian group on $X$, then we assume $X$ form a basis. All elements of $X$ are linearly independent.
I am confused. For example, if we take the free abelian group on $\{1,2,3\}$, is it still $\mathbb{Z}^{3}$ (instead of $\mathbb{Z}$)?
$2\times1+(-1)\times2+1\times3=4\times1+(-2)\times2+1\times3$, but still $(2,-1,1)$ and $(4,-2,1)$ are diffrent?