Today a student ask me the following question regarding topological groups in the tutorial centre.
Let $H$ be a subgroup of a topological group $G$. Suppose that $U$ is an open containing the identity such that $\overline{U} \cap H$ is closed. Prove that $H$ is closed.
I am a bit rusty on point set topology so I couldn't figure out a proper solution. I tried a straightforward approach without success:
Let $x \in \overline{H}$, we want to show that $x \in H$. Since $e \in U$ then $x \in xU$, and we can take an element $y \in xU \cap H$, therefore $y = xa = h$ for some $a \in U$, $h\in H$, so $x = ha^{-1}$
Trying to prove that $a^{-1} \in H$, I want to use somehow that $\overline{U} \cap H$ is closed; but I'm stuck at this point. I wish I could dedicate more time to solve the problem and review the basic properties of topological groups, but unfortunely I am overhelmed with my own stuff.
Suppose $x\in\overline{H}$. Let $V$ be a neighborhood of $1$ such that $VV^{-1}\subseteq U$. Since $Vx$ is an open neighborhood of $X$, $x\in\overline{H\cap Vx}$. Now pick some $y\in H\cap Vx$ and multiply everything by $y^{-1}$ on the right. We conclude that $xy^{-1}\in\overline{Hy^{-1}\cap Vxy^{-1}}$. Since $H$ is a subgroup and $y\in H$, $Hy^{-1}=H$. Also, since $y\in Vx$, $xy^{-1}\in V^{-1}$ so $Vxy^{-1}\subseteq VV^{-1}\subseteq U$. Thus $$xy^{-1}\in\overline{H\cap U}\subseteq \overline{H\cap\overline{U}}=H\cap \overline{U}.$$ In particular, $xy^{-1}\in H$, so since $y\in H$ and $H$ is a subgroup, $x\in H$.