Definition (manifold, submanifold, codimension)
Let $X\subseteq \R^N$ be a subspace.
$X$ is $k$-dimensional smooth/differential manifold if for all $x\in X$, there exists a diffeomorphism $ϕ: U\to V$, where $U\subseteq X$ is an open neighbourhood of $x$ and $V \subseteq \R^k$ is open.
Call $ϕ$ a coordinate system or chart, and $ϕ\inv$ a local parametrisation.
If $Y \subset X$ are both manifolds, we say $Y$ is a submanifold of $X$. The codimension is $$ \begin{align*} \op{codim}_X(Y) = \dim X - \dim Y. \end{align*} $$
By restricting $U$, we can WLOG take $V$ to be a ball. Then composing with a diffeomorphism, we can take $V = \R^k$.
A zero-dimensional manifold is a discrete subset of $\R^N$.
$X \times Y \subset \R^{N+M}$ is a manifold if $X\subset \R^N$ and $Y \subset \R^M$ are manifolds. (Sheet 1)