TITLE: If a square is colored red and blue, must there be either a red path connecting the top and bottom, or a blue path connecting the left and right?
QUESTION [17 upvotes]: In the board game Hex, players take turns coloring hexagons either red or blue. One player tries to connect the top and bottom edges of the board, colored red; the other tries to connect the left and right edges, colored blue. It is known that a game of Hex will never end in a tie: no matter how it is played, there will always be either a blue path connecting the blue edges, or a red path connecting the red edges.
My question is, if this fact always holds for a finite grid of hexagons, does it also hold on the plane? If the top and bottom edges of a square are colored red, the left and right edges are colored blue, and the interior of the square is colored arbitrarily, must there be either a red path connecting the red edges, or a blue path connecting the blue edges?
More formally, let $S$ be any subset of $[0, 1]^2$. $S$ will represent the points that are red. Must there be either a path within $S$ whose endpoints are of the form $(x, 0)$ and $(x, 1)$, or a path within $[0, 1]^2 - S$ whose endpoints are of the form $(0, y)$ and $(1, y)$?

REPLY [2 votes]: An answer to this came to me today as I was thinking about how I might describe connectedness to a layperson. Path-connectedness is easy enough: a set is path-connected if, given two points in the set, you can get from one to the other by following a path within the set. If I'm not mistaken, connectedness in the plane can be defined like so: a set is connected if you can't draw a curve separating the set into two parts, such that the curve lies entirely outside the set.
So, if we have an example of a set that is connected but not path-connected, we ought to be able to make it into a counterexample. And sure enough, the topologist's sine curve seems to do the trick. Let $S$ be the graph of the function
$$f(x) =\frac12 + \frac14 \sin \left (\frac{1}{x - 1/2} \right), \text{ if $x \ne 1/2$}; \qquad 1/2, \text{ otherwise}.$$
Since this function is not continuous (and its graph is not path-connected), it is impossible to go from the left edge to the right edge while staying inside $S$. But since the function's graph is connected, it is impossible to go from the top edge to the bottom edge while staying outside the function—if this were possible, we would be able to separate the graph into the part to the left of the curve, and the part to the right of the curve, showing that the graph is disconnected.