How to define submanifolds of $\mathbb{R}^n$ with boundary without using (explicitly) the notion of diffeomorphism?
I know how to define submanifolds of $\mathbb{R}^n$ (without boundary) without using the notion of diffeomorphism:
Definition: Let $M\subseteq \mathbb{R}^n$ be any subset. We say that $M$ is a $C^\infty$-submanifold of $\mathbb{R}^n$ with dimension $m$ if $m\leq n$ and for all $p\in M$ there're an open neighborhood $U\subseteq \mathbb{R}^n$ of $p$ and a smooth map $\varphi :U\to \mathbb{R}^{n-m}$ such that the differential $(d\varphi)_p$ is surjective and $\varphi ^{-1}(\{0\})=U\cap M$.
At first I don't want to use the notion of diffeomorphism because I don't want initially define differentiability of a map defined in a non-open subset of $\mathbb{R}^n$.
Thank you for your attention!
If your only concern is avoiding a differentiability on nonopen sets, then the normal definition is quite adequate, though it does involve diffeomorphisms:
Note that while we do take the image of a nonopen set, the domain and codomain of $\varphi$ are open, and so there's no issue with defining smoothness only on open sets.
If, however, you want something which generalizes the level set definition, this is also possible: