I'm trying to understand the relation between the following conditions. I will assume that $X$ is a Hausdorff topological space and $A \subset X$.
- $\overline{A}$ is compact;
- Every net $\{x_{\lambda}\}_{\lambda \in \mathbb{L}} \subset A$ has a subnet converging to some point;
It is clear to me that $1 \Rightarrow 2$. I read that $2 \Rightarrow 1$ if $X$ is regular, but I am not able to find a proof. I would like to have a proof and, if possible, an explicit example in which the implication $2 \Rightarrow 1$ is false.
I find these things easier to think about in the language of filters. Using the usual correspondence between nets and filters, (2) is equivalent to saying that every filter on $X$ containing $A$ has an accumulation point in $X$.
So, suppose $\overline{A}$ is not compact, and we will find a filter containing $A$ with no accumulation point in $X$. Since $\overline{A}$ is not compact and is closed in $X$, there is a filter $F$ containing $\overline{A}$ with no accumulation point in $X$. Let $G$ be the filter generated by all open elements of $F$ together with $A$.
First, I claim $G$ is a proper filter. Indeed, suppose $U\in F$ is open. Then $U\cap \overline{A}\in F$ since $\overline{A}\in F$. Since $U$ is open and $A$ is dense in $\overline{A}$, this means $U\cap A$ is nonempty. Since every element of $G$ contains a set of the form $U\cap A$, this means $G$ is a proper filter.
Second, I claim $G$ has no accumulation point in $X$, and is thus our desired filter since $A\in G$. Indeed, let $x\in X$ be any point. Since $x$ is not an accumulation point of $F$, there is an open neighborhood $U$ of $x$ such that $X\setminus U\in F$. By regularity, there are disjoint open sets $V$ and $W$ such that $x\in V$ and $X\setminus U\subseteq W$. Then $W\in G$, and hence $X\setminus V\in G$, and hence $x$ is not an accumulation point of $G$.
Here is another proof which is a bit more complicated at first glance but which nicely conceptualizes the role of regularity.
Recall that if $X$ is a set, then the set $\beta X$ of ultrafilters on $X$ has a natural compact Hausdorff topology, which has as a basis the sets $U_A=\{F\in\beta X:A\in F\}$ for each $A\subseteq X$. If $X$ is a Hausdorff space, we will write $C_X\subseteq\beta X$ for the set of ultrafilters that converge in $X$ and $L:C_X\to X$ for the map taking an ultrafilter to its limit. We then have the following remarkable characterization of regularity.
Using this theorem, proving $2\Rightarrow 1$ for regular spaces is quite natural. In terms of ultrafilters, (2) says that every ultrafilter containing $A$ has a limit in $X$. Now suppose this is true and let $(x_i)$ be a net in $\overline{A}$. For each $i$, we can pick an ultrafilter $F_i$ containing $A$ which converges to $x_i$. By compactness of $\beta X$, there is a subnet of $(F_i)$ that converges to some ultrafilter $F$, which will still contain $A$. By (2), $F$ converges to some $x\in\overline{A}$. Since $X$ is regular, the theorem says that the corresponding subnet of $(x_i)$ converges to $x$. Thus $(x_i)$ has a convergent subnet. Since $(x_i)$ was an arbitrary net in $\overline{A}$, this means $\overline{A}$ is compact.
Finally, here is an example of how $2\Rightarrow 1$ can be false if $X$ is not regular. Let $X$ be the closed unit disk and let $A\subseteq X$ be the open unit disk, and say a subset $C\subseteq X$ is closed if it contains the closure of $C\cap A$ with respect to the usual topology. This defines a topology in $X$ (another way to describe it is you take the usual topology and then enlarge it by declaring that every subset of the unit circle $X\setminus A$ is closed, and take the topology that generates; so a closed set in $X$ is just a union of a closed set in the usual topology and an arbitrary subset of $X\setminus A$).
Now $\overline{A}=X$ is not compact, since $X\setminus A$ is closed in $X$ but is not compact since it is infinite and discrete. However, every net in $A$ has a limit in $X$. Indeed, every net in $A$ has a subnet converging to some point of $X$ with respect to the usual topology by compactness, and the same is true of the topology of $X$ since nets in $A$ which converge with respect to the usual topology still converge with respect to the topology of $X$.