Following a reference from "Elementos de Topología General" by Angel Tamariz and Fidel Casarrubias.
Definition
A topological space is locally compact if for any its point there exist a compact neighborhood.
Theorem
Let be $X$ a Hausdorff locally compact space and let be $Y\subseteq X$ a dense set: so if $Y$ is locally compact, then $Y$ is open in $X$.
proof. Let be $y\in Y$. Since $Y$ is locally compact there exist a open set $A$ in $Y$ and a compact $K$ in $Y$ such that $y\in A\subseteq K\subseteq Y$. So we choose an open set $V$ in $X$ such that $A=Y\cap V$ and we prove that $y\in V\subseteq Y$.
Clearly $y\in V$; then we observe that
$$\mathscr{cl}_X(Y\cap V)\cap Y=\mathscr{cl}_X(A)\cap Y=\mathscr{cl}_Y(A)$$
and moreover since $\mathscr{cl}_Y(A)$ is compact, then $\mathscr{cl}_X(Y\cap V)\cap Y$ is compact and so this set is a closed set in $X$. Then $\mathscr{cl}_X(Y\cap V)\cap Y$ contains $Y\cap V$ and so
$$\mathscr{cl}_X(Y\cap V)\subseteq\mathscr{cl}_X(Y\cap V)\cap Y$$
that is $\mathscr{cl}_X(Y\cap V)\subseteq Y$. Howewer it result that
$$\mathscr{cl}_X(Y)\cap V\subseteq \mathscr{cl}_X(Y\cap V)$$
and so by density of $Y$ it is $V\subseteq\mathscr{cl}_X(Y\cap V)\subseteq Y$.
Unfortunately I don't understand why $\mathscr{cl}_X(Y)\cap V\subseteq\mathscr{cl}_X(Y\cap V)$. If someone know another proof he could show it.
Could someone help me, please?