I may be overlooking something very simple, but I am reading the proof of Lemma 2.26 in Lee's Smooth Manifolds 2nd ed., and am a bit confused by the following statement:
For each $p\in A$, choose a neighborhood $W_p$ of $p$ and a smooth function $\tilde f_p:W_p\rightarrow \mathbb{R}^k$ that agrees with $f$ on $W_p\cap A$.
How do we know such a neighborhood/function exists? I'm not sure how you would construct such a function, since you don't have a definition for $f$ away from $A$. Any insight here would be greatly appreciated.