Lemma (homotopy lemma, number of preimages)

Let $f,g: X\to Y$ be smooth maps between manifolds ($X$ cannot have boundary but $Y$ can), and $y\in Y$. Suppose

  1. $f$ and $g$ are smoothly homotopic;

  2. $X$ is compact;

  3. $\dim X = \dim Y$; and

  4. $y$ is a regular value of $f$ and $g$.

Then $$ \begin{align*} \# f\inv(y) = \# g\inv(y). \end{align*} $$

Proof