Proof (subspace topology)
Let $\rho = \sb{U\cap Y}{U\in \tau}$.
-
$\emptyset\in \tau$, so $\emptyset = \emptyset \cap Y \in \rho$.
-
$X\in \tau$, so $Y = X \cap Y \in \rho$.
-
For any family $\mathcal{V} \subseteq \rho$, let $\mathcal{U}\subseteq \tau$ such that $\mathcal{V} = \sb{U\cap Y}{U\in \mathcal{U}}$. Then $$ \begin{align*} \bigcup_{V\in \mathcal{V}} V = \bigcup_{U\in \mathcal{U}} (U\cap Y) = \left(\bigcup_{U\in \mathcal{U}} U\right)\cap Y \in \rho \end{align*} $$ since $\bigcup_{U\in \mathcal{U}} U \in \tau$ by union of open sets.
-
For any finite family $\mathcal{V} \subseteq \rho$, let $\mathcal{U}\subseteq \tau$ such that $\mathcal{V}=\sb{U\cap Y}{U\in \mathcal{U}}$. Then $$ \begin{align*} \bigcap_{V\in \mathcal{V}} V = \bigcap_{U\in \mathcal{U}} (U\cap Y) = \left(\bigcap_{U\in \mathcal{U}} U\right) \cap Y \in \rho \end{align*} $$ since $\bigcap_{U\in \mathcal{U}} U \in \tau$ by finite intersection of open sets.