The open sets of a product with an indiscrete second factor

See it in Lean

Axioms
ZFC only
Concerns
Indiscrete, Binary product

Statement

Let \(X\) be a space and let \(Y\) be indiscrete. A set \(W \subseteq X \times Y\) is open if and only if \(W = U \times Y\) for some open set \(U \subseteq X\).

Proof

If \(U\) is open in \(X\). Then \(U \times Y\) is an open box, since \(Y\) is open in \(Y\).

If \(W\) is open in \(X \times Y\). Let \(U\) be the set of \(x \in X\) with \((x, y) \in W\) for some \(y \in Y\). We show that \(W = U \times Y\) and that \(U\) is open. Let \((x, y) \in W\). Then \(W\) contains an open box \(A \times B\) with \(x \in A\) and \(y \in B\). The set \(B\) is a nonempty open subset of the indiscrete space \(Y\), so \(B = Y\). Hence \(\{x\} \times Y \subseteq A \times Y \subseteq W\), and every point of \(A\) lies in \(U\). So \(W = U \times Y\), and \(U\) is the union of these open sets \(A\), so it is open. \(\blacksquare\)

In other words, the open sets of \(X \times Y\) are exactly the preimages of the open sets of \(X\) under the projection \(\pi : X \times Y \to X\). So the closed sets of \(X \times Y\) are exactly the sets \(F \times Y\) with \(F\) closed in \(X\), and for every \(A \subseteq X\) the closure of \(A \times Y\) is \(\overline{A} \times Y\) and its interior is \((\operatorname{int} A) \times Y\).

Where it is used

Cited in proofs of other theorems