I have the following proof in my notes. It is a particular case of the more general rank theorem.
Theorem (Rank theorem for injective differential). Suppose $M$ is a smooth manifold of dimension $m$, and that $N$ is a smooth manifold of dimension $n$. Suppose $F : M \to N$ is smooth. Let $p \in M$. If $dF_p$ is injective, then there are charts $(U, \varphi)$ of M around p and $(V,\psi )$ of N around $F(p)$ such that $F(U) \subseteq V$ and for all $x \in\varphi(U)$, and
$\psi\circ F \circ \varphi^{−1}(x) = (x, 0_{n−m})$
Proof
We prove the theorem in the case that $M$ is an open subset of $\Bbb R^m$, $N$ open subset of $\Bbb R^n$, $p = 0_m$ and $F(p) = 0_n$ By using appropriate charts around p and F(p), we can prove the general case.
Suppose $dF_p$ is injective. Then $m \le n$. Define $Q: M \to \Bbb R^m$ and $R: M \to \Bbb R^{n−m}$ by $F(x) = (Q(x), R(x))$ for $x \in M$.
Since $DF(p)$ is injective, its matrix has an $m × m$ invertible submatrix. We can do this by possibly exchanging coordinates ensuring that $DQ(p)$ is such a matrix; we will assume this from now on. Because $DQ(p)$ is invertible, then due to the inverse function theorem there are nbhs $U$ of $p$ and $\tilde V$ of $Q(p)$ such that $\varphi := Q|_U : U \to\tilde V$ is a diffeomorphism
Define $V := \tilde V \times \Bbb R^{n−m}$.This is an open nbhd of $F(p) = 0_n$, because $Q(p) = 0_m$.
Define :$ \psi:V \to \Bbb R^n: \psi(v; w) = (v, w − R \circ \varphi^{−1}(v))$, for $v \in \tilde V$ and $w \in \Bbb R^{n−m}$.
This is a diffeomorphism onto its image, with inverse given by
$\psi^{−1}(s, t) = (s, t + \varphi^{−1}(s))$, for $s \in \Bbb R^m $ and $t \in \Bbb R^{n−m}$ such that $(s, t) \in \psi(V )$.
And for all $x \in \varphi(U)$,
$\psi\circ F \circ \varphi^{−1}(x) =\psi(x,R\circ\varphi^{-1}(x))= (x, 0_{n−m}) \tag{*}$
I have a couple of doubts
How does one come up a priori with the idea to define $\psi$ like that? It is supposed to be a chart of $ N$ around $F(p)$, so how does one know that it has that form?
How do I prove the general case ? (that is removing the assumptions: $M$ is an open subset of $\Bbb R^m$, $N$ open subset of $\Bbb R^n$, $p = 0_m$ and $F(p) = 0_n$ but still considering injective derivative)I am having trouble writting it down. Moreover why are they using charts in the proof above if they are not working with general manifolds?
Thanks for your help.