I`m trying to learn how to use nets and subnets to prove some theorems. I came across this problem in Banach space book: let K be a compact subset of a topological space X. suppose that $(x_{\alpha})_{\alpha \in I}$ is a net in X such that whenever U is open set that includes K and $\alpha\in I$ , there is a $\beta_{\alpha,U}$ in I such that $\alpha \preceq \beta_{\alpha,U}$ and $x_{\beta_{\alpha,U}} \in U$. prove that some subnet of $(x_{\alpha})$ converges to an element of K.
I tried to do the same proof as in the theorem with compact space that includes convergent subnet, but I just feel it`s wrong and something should be different. Can anyone please help me with it?
Thanks
Let $\nu=\langle x_\alpha:\alpha\in I\rangle$ be a net in $X$. Recall that $\nu$ is frequently in a set $S$ iff for each $\alpha\in I$ there is a $\beta\in I$ such that $\alpha\preceq\beta$ and $x_\beta\in S$. The key step in the problem is the following lemma.
Now suppose that $K\subseteq X$ is compact, and that if $U$ is any open nbhd of $K$, then $\nu$ is frequently in $U$. Suppose further that no subnet of $\nu$ converges to any point of $K$. Then each $x\in K$ has an open nbhd $U_x$ such that $\nu$ is not frequently in $U_x$. This means that for each $x\in K$ there is an $\alpha(x)\in I$ such that $x_\beta\notin U_x$ whenever $\beta\in I$ and $\alpha(x)\preceq\beta$. $K$ is compact, so there is a finite $F\subseteq K$ such that $K\subseteq\bigcup_{x\in F}U_x$, and $I$ is directed, so there is an $\alpha\in I$ such that $\alpha(x)\preceq\alpha$ for each $x\in F$. But then $\bigcup_{x\in F}U_x$ is an open nbhd of $K$, and $x_\beta\notin U$ whenever $\alpha\preceq\beta$. This contradiction shows that $\nu$ must have a subnet converging to some point of $K$.