Achtung
If $X$ is a topological space for convenience we define $$ \omega(X):=\min\{|\mathcal{B}|:\mathcal{B}\quad\text{is a basis for }X\} $$ that is well define since the cardinal are well ordered.
Definition (1)
The weight $w(X)$ of a topological spaces $X$ is the following quantity $$ w(X):=\omega(X)+\aleph_0 $$ that is well defined, since $\omega(X)$ is defined.
Statement (2)
If $X$ and $Y$ are two homeomorphic topological spaces then $w(X)=w(Y)$.
Proof. So let be $X$ and $Y$ two topological spaces and we suppose that $h:X\rightarrow Y$ is an homeomorphism thus if $\mathcal{B}$ and $\mathcal{D}$ are bases of $X$ and $Y$ then the collection $\mathcal{B}'=\{h(B):B\in\mathcal{B}\}$ and $\mathcal{D}'=\{h^{-1}(D):D\in\mathcal{D}\}$ are bases of $Y$ and $X$ and so $\omega(Y)\le|\mathcal{B}'|$ and $\omega(X)\le|\mathcal{D}'|$. So since the $h$ is bjective it results that $|\mathcal{B}'|=|\mathcal{B}|$ and $|\mathcal{D}'|=|\mathcal{D}|$, thus if we choose $\mathcal{B}$ and $\mathcal{D}$ such that $|\mathcal{B}|=\omega(X)$ and $|\mathcal{D}|=\omega(Y)$ then it results that $\omega(X)=\omega(Y)$ and so $w(X):=\omega(X)+\aleph_0=\omega(Y)+\aleph_0=:w(Y)$.
Statement (3)
If $X$ is a topological space and $Y\subseteq X$ then $w(Y)\le w(X)$.
Proof. So let be $X$ a topological space and $Y$ a subspace. So if $\mathcal{B}$ is a base for $X$ then the collection $\mathcal{D}=\{B\cap Y:B\in\mathcal{B}\}$ is a base for $Y$ and so if for any $D\in\mathcal{D}$ we pick $B_D\in\mathcal{B}$ such that $D=B_D\cap Y$ then it is clear that the relation $\phi$ between $\mathcal{D}$ and $\mathcal{B}$ defined as $D\phi B\Leftrightarrow B=B_D$ is a injective function and so $|\mathcal{D}|\le|\mathcal{B}|$; thus if we pick $\mathcal{B}$ such that $|\mathcal{B}|=\omega(X)$ then $\omega(Y)\le\omega(X)$, from which it is clear that $w(Y):=\omega(Y)+\aleph_0\le\omega(X)+\aleph_0=:w(X)$.
So are the proofs correct? if not how to prove the two statements? could someone help me, please?