Does anyone have any idea how to prove the following...?
Let $X, Y$ be topological spaces and let $g:X\rightarrow Y$ be a map. If for every directed set $I$ and convergent net $f:I\rightarrow X$ with limit $x$, the composite $g\circ f:I\rightarrow Y$ is a convergent net with limit $g(x)$, then $g:X\rightarrow Y$ is continuous at $x\in X$.
Many thanks!
Let's recall what is means for $g$ to be continuous at $x$:
$$\forall V \text{ open in } Y: (g(x) \in V) \implies (\exists U \text{ open in X }: x \in U \text{ and } g[U] \subseteq V)$$
And consider the "canononical net" that converges to $x$:
Let $I = \mathcal{N}_x$, the set of all neighbourhoods of $x$, directed by $U \ge V$ iff $U \subseteq V$. Now for any $f: I \to X$ that obeys $\forall U \in I: f(U) \in U$, (so for every neighbourhood of $x$ we pick a point of that neighbourhood), $f \to x$ or $x \in \lim f$ (or whatever your notation for "$x$ is a limit of $f$" is). This is clear by construction: if $O$ is an open set containing $x$, then $O \in I$ so we choose this as $i_0$ and if $i \ge i_0$ we have that $f(i) \in i \subseteq i_0= O$, so $\forall i \ge i_0: f(i) \in O$ and as $O$ was arbitary we have convergence to $x$.
Now suppose that $g$ obeys the "net-composition property", and that $g$ is not continuous at $x$. This means (by negating the definition I gave at the outset) that there is some fixed $V$, open in $Y$ that contains $g(x)$ but such that no open neighbourhood $U$ of $x$ obeys $g[U] \subseteq V$. If we state this more "positively", for every neighbourhood $U$ of $x$, there is some $x_U \in U$ that "witnesses" that $g[U] \nsubseteq V$, or $g(x_U) \in g[U]$ (obviously) but $g(x_U) \notin V$.
So this non-continuity assumption gives us a net $f: I \to X$ defined by $f(U) = x_U$ for any $U \in \mathcal{N}_x$, as defined above. Then $x \in \lim f$ as we saw (we picked $x_U \in U$ for all $U$) but $g(f(U)) \notin V$ for all $U$, and this immediately implies that $g(x)$ is not a limit of $g \circ f: I \to Y$: a whole neighbourhood of $g(x)$ contains not a single point from that net. This contradicts the "net-composition property", so our assumption that $g$ was not continuous at $x$ was false, hence $g$ is continuous at $x$ as required.