Lemma (superlevel set as manifold with boundary)

Let $f: X\to \R$ be a smooth map between manifolds.

If $0$ is a regular value of $f$, then $f\inv([0, \infty))$ is a manifold with boundary of dimension $\dim X$.

Proof