Closed G-delta sets in a product with a second countable factor

See it in Lean

Axioms
ZFC only
Concerns
Second countable, Countably metacompact

Statement

Suppose every closed subset of \(X\) and of \(Y\) is Gδ, and \(Y\) is second countable. Then every closed subset of \(X\times Y\) is Gδ.

Proof

Choose a countable open base \(\mathcal B\) for \(Y\). For an open set \(U\subseteq X\times Y\) and \(B\in\mathcal B\), let \(V_B\) be the union of all open \(V\subseteq X\) satisfying \(V\times B\subseteq U\). Then \(U=\bigcup_{B\in\mathcal B}V_B\times B\).

The complement of each rectangle is Gδ: it is the union of the inverse images of the Gδ sets \(X\setminus V_B\) and \(Y\setminus B\) under the coordinate projections. Therefore \(U^c\) is a countable intersection of Gδ sets and is itself Gδ. \(\blacksquare\)

Where it is used

Cited on space pages