This weekend I was thinking about the following question (arising for a technical assumption in my current research).
Given a closed subset \(A\) in a smooth manifold \(M\) and an open neighbourhood \(U\) of \(A\), is there a submanifold with boundary \(V\) such that \(A\) is contained in the interior of \(V\)?
It turns out that this question has a positive answer, and the solution is actually quite simple, once you know what to do. It is essentially a combination of bump functions, Sard's theorem and the regular value theorem.
We start with the following result which is Theorem 2.29 in (Lee 2013).
Let \(M\) be a smooth manifold and let \(A \subset M\) be closed. then there exists a smooth function \(f\colon M \rightarrow [0, \infty)\) such that \(A = f^{-1}(0)\).
Now, if we have a given open neighbourhood, we need to have some control over the preimages of the function from the previous proposition with respect to the extra open neighbourhood. This is what the next proposition provides.
Let \(M\) be a smooth manifold, \(A \subset M\) a closed subset and \(U \subset M\) an open neighbourhood of \(A\). Then there exists a smooth function \(f\colon M \rightarrow [0, \infty)\) such that \(f^{-1}(0) = A\) and \(f^{-1}(c) \subsetneq U\) for all \(c \in [0, 1)\).
Proof.
The proof is rather simple, since we can employ a bump function to change the function \(f\), without changing the preimage of 0. The details follow.
Let \(V \subset M\) be an open neighbourhood of \(A\) such that \(\overline{V} \subset U\). Then \(M \setminus U\) is a closed subset contained in the open subset \(M \setminus \overline{V}\), so there exists a bump function \(\psi\colon M \rightarrow [0, 1]\) such that \(\psi|_{M\setminus U} \equiv 1\) and \(\mathrm{supp}(\psi) \subset M \setminus \overline{V}\). Then we have \(A \subset V\), so \(\psi|_A \equiv 0\).
Let \(f\colon M \rightarrow [0, \infty)\) be a smooth function such that \(f^{-1}(0) = A\), as obtained from the previous proposition. We define \(g\colon M \rightarrow [0, \infty)\) as \(g = f + \psi\). We show that \(g\) has the asserted properties. Suppose \(x \in g^{-1}(0)\). Then we have \(f(x) + \psi(x) = 0\). Since both are non-negative, we have \(f(x) = 0\), and so \(x \in f^{-1}(0) = A\). Conversely, if \(x \in A\), then we have \(f(x) = 0\) and \(\psi(x) = 0\), so \(g(x) = 0\). Hence \(g^{-1}(0) = A\).
Now, let \(c \in [0, 1)\). If \(c = 0\), we have already seen that \(g^{-1}(0) = A \subset U\). So suppose that \(c > 0\). Let \(x \in g^{-1}(c)\). Then we have \(f(x) + \psi(x) = c\), hence \(\psi(x) \le c < 1\). Since \(\psi|_{M \setminus U} \equiv 1\), it follows that \(x \not\in M \setminus U\), hence \(x \in U\). So \(g^{-1}(c) \subsetneq U\). This completes the proof.
With this adaption of the first proposition to a situation with a given neighbourhood we can prove the following result that answers the question at the beginning affirmatively.
Let \(M\) be a smooth manifold, \(A \subset M\) closed and \(U \subset M\) an open neighbourhood of \(A\). Then there is a codimension 0 submanifold with boundary such that \(V \subset U\) and \(A \subset \mathrm{int}(V)\).
Proof.
Pick a smooth function \(g\colon M \rightarrow [0, \infty)\) such that \(g^{-1}(0) = A\) and \(g^{-1}(c) \subsetneq U\) for all \(c \in [0, 1)\). By Sard's theorem (or more precisely Brown's theorem), there is a regular value \(c \in [0, 1)\) of \(f\) since the regular values are dense. So by the regular value theorem \(V = f^{-1}((-\infty, c])\) is an codimension 0 submanifold with boundary. Then we have \(A = f^{-1}(0) \subset f^{-1((-\infty, c))} = \mathrm{int}(V)\) and since \(c \in [0, 1)\) we have \(V \subset U\).