I have to prove this statement:
Let free abelian group $F_i$ with free basis $B_i$ for $i=1,2$ then $F_1\cong F_2$ iff $\lvert B_1 \rvert = \lvert B_2 \rvert$.
I prove it by the idea that element of basis is linear independent and they generate whole group. So we have injection $F_1= \langle B_1 \rangle \rightarrow \langle B_2\rangle=F_2$, WLOG $\lvert B_1 \rvert \leq \lvert B_2 \rvert$.
So now is trivial both implication.
My question is can I do use this idea for proving?
I believe this can be shown using the universal property of free objects. I am assuming that all bases of a free abelian group have the same cardinality.
Let $\phi: F_1 \to F_2$ be an isomorphism. Then, I claim that $\phi(B_1)$ is a basis for $F_2$. To show this, let $G$ be an abelian group and $f: \phi(B_1) \to G$ be a function. Then, $f \circ \phi: B_1 \to G$ is a function. By the universal property of free objects, there is some unique $g: F_1 \to G$ so that $g$ restricts to $f \circ \phi$ on $B_1$. Then, $\phi \circ g: F_2 \to G$ is the unique homomomorphism which restricts to $f$ on $\phi(B_1)$, proving that $\phi(B_1)$ is a basis of $F_1$. Since $\phi$ is an isomorphism, it is a bijection. Then, since all bases of free abelian groups have the same cardinality, $$|B_1| = |\phi(B_1)| = |B_2|.$$
EDIT: Here is a proof that bases of free modules over sufficiently nice rings have equal cardinality. This applies here since $\mathbb{Z}$ is a commutative ring with 1.