Let $A$ be a $*$-algebra.
Let $P(A)=\bigcup_{n=1}^\infty\{p\in M_n(A):\text {$p$ is a projection} \}$. By projection I mean $p=p^*=p^2$.
Define the an equivalence relation on $P(A)$ by $p \sim q \Leftrightarrow $ there is a rectangle matrix $u$ with entries in $A$ such that $p=u^*u$ and $q=uu^*$.
I wonder why this definition coincides with the rank equivalence in the linear algebra, i.e if $A=\mathbb C$, then $p \sim q$ if and only if they have the same rank.
I think the "only if" part is relatively easier, and the answer follows from here. But I have trouble this the other direction: given two rectangle matrices of the same rank, why can they be expressed into $p=u^*u$ and $q=uu^*$? It should follow from a theorem in linear algebra, but what is it? Do we need the hypothesis that $p,q$ are projections?
The source of this question is the Example 7.1.1(page 220) of Murphy's C-algebras and operator theory*.
Thanks in advance!