I'm trying to understand the proof of Lemma 5 from Terence Tao's blog, i.e.,
Let $X$ be an open subset of $\mathbb R^n$ and $f:X \to \mathbb R^n$ be differentiable such that $\partial f (x)$ is invertible for all $x\in X$. Fix $x_0 \in X$ and $y_0 := f(x_0)$ and let $$ K := \{x \in X: f(x)=y_0\}. $$
Lemma 5: Let $H$ be the connected component of $K$ that contains $x_0$. Then $H = \{x_0\}$.
Could you have a check on my attempt?
Proof: Assume the contrary that $H \neq \{x_0\}$. Then there is a path $\gamma:[0,1] \to H$ such that $\gamma(0) = x_0$ and $\gamma(1) \in H \setminus \{x_0\}$. We have $f \circ \gamma = y_0$. Then $$ \begin{align} \lim_{t \to 0^+} \frac{f \circ \gamma (t) - f(x_0) - \partial f (x_0)(\gamma(t)-x_0)}{|\gamma(t)-x_0|} &= -\lim_{t \to 0^+} \frac{ \partial f (x_0)(\gamma(t)-x_0)}{|\gamma(t)-x_0|} \\ &= - \partial f (x_0) \left (\lim_{t \to 0^+}\frac{\gamma(t)-x_0}{|\gamma(t)-x_0|} \right ). \end{align} $$
Because $\partial f (x_0)$ is invertible, it is bijective. It follows that $$ \lim_{t \to 0^+}\frac{\gamma(t)-x_0}{|\gamma(t)-x_0|} = 0, $$ which is a contradiction.