I am studying algebraic topology from Rotman and I needed to use rank of an (not necessarily free) Abelian group and in the exercises I faced a problem saying, given an exact sequence $0 \rightarrow A \rightarrow B\rightarrow C\rightarrow 0$ we have $rank A+ rank C=rank B$. The definition of rank given in the book is that:
$\mathbf{Definition:}$ For an Abelian group G, we define $rank(G)=r$ if G has a free Abelian Subgroup F of rank $r$ such that $G/F$ is torsion.
Then it describes that taking a maximal independent subset (i.e., a subset $B \subset G$ such that $\sum m_bb=0$ With $m_b\in \Bbb Z$ and $m_b=0$ a.e. $\Rightarrow m_b=0$ $\forall b$), if we take the Subgroup generated by it (which is necessarily free) it will suffice as F.
The problem stated above comes with a hint that take a maximal independent subset of A and extend it to a maximal independent subset of B. I couldn’t follow this. If I try to follow the method in vector spaces I am missing the fact that the kernel was free in that case. Any help in this would be appreciated.
I proved this statement using some different idea.
Firstly, the definition of rank is independent of choice of $F$ since if we apply tensoring by $\Bbb Q$ on the sequence $0\rightarrow F \rightarrow G \rightarrow G/F \rightarrow 0$ then we get using $\Bbb Q \otimes G/F=0 $ that, $dim_{\Bbb Q} (\Bbb Q \otimes F)=rank(F)=dim(\Bbb Q \otimes G)$ and by welldefinedness of rank of a free module we arrive at the welldefinedness of $rank(G)$.
So, tensoring the exact sequence $0 \rightarrow A \rightarrow B\rightarrow C\rightarrow 0$ by $\Bbb Q$ We get the result from the additivity of dimension of vector spaces.
I would like to know whether my approach is correct and also how can I proceed along the line of the hint given there.
(Edit: I have added a possible way out for my query. Now I am willing to know whether taking a Maximal independent subset S of A, pushing it to B and then extending the resulting set to a maximal independent subset R of B $\Rightarrow R-S $ is a maximal independent subset of C?)
Well along the line of the hints given, I could figure out one possible solution: We can take A maximal independent set of A push it to B by the injection given. Further choose a maximal independent set of C and pull it back to B using the given surjection. The union of these two will be a maximal independent subset of B.
(Edit: For the edited part of my question, Let $f: A \rightarrow B$ and $g:B \rightarrow C$ be the given maps. Then suppose $R$ is a maximal independent subset of A then $f(R)$ is independent subset of B extending it to $S=f(R) \cup T$ a maximal independent subset of B.
Our claim is to show that $g(T)$ is maximal independent subset of C. Suppose, $\sum (x_t.g(t))=0$ then $\sum x_t.t \in ker(g)=im(f)$ so, there is a $b \in A$ such that $f(b)= \sum(x_t.t)$ now by maximality of $R$, there is a $x>0$ Integer such that $xb=\sum(x_r.r)$, applying $f$ and by independence of $S$ We get that $g(T)$ is independent.
For maximality, let $c\in C-g(T)$ with $c=g(b)$ Then, there is $z>0$ integer such that $zb=\sum(x_r.f(r))+ \sum(x_t.t)$, applying, $g$ we get the desired result.)