A weakly locally compact product of nonempty spaces has only finitely many non-compact factors

See it in Lean

Axioms
ZFC only
Concerns
Weakly locally compact, Compact, Countable power

Statement

Let \((X_i)_{i \in I}\) be a family of nonempty spaces. If the product \(\prod_{i \in I} X_i\) is weakly locally compact, then \(X_i\) is compact for all but finitely many \(i \in I\).

Proof

Let \(\pi_i\) be the projections. Choose a point \(x\) of the product, which is possible since every \(X_i\) is nonempty, and a compact set \(N\) that is a neighbourhood of \(x\). Then \(N\) contains a basic open set \(\prod_i U_i\) containing \(x\), where each \(U_i\) is open in \(X_i\) and \(U_i = X_i\) for every \(i\) outside a finite set \(F \subseteq I\). We show that \(X_i\) is compact for every \(i \notin F\).

Let \(i \notin F\) and \(y \in X_i\). Let \(z\) be the point obtained from \(x\) by replacing its \(i\)-th coordinate by \(y\). Then \(z \in \prod_j U_j\), since \(z_j = x_j \in U_j\) for \(j \ne i\) and \(U_i = X_i\). So \(z \in N\) and \(y = \pi_i(z) \in \pi_i(N)\). Hence \(\pi_i\) restricts to a continuous surjection from \(N\), with its subspace topology, onto \(X_i\). So \(X_i\) is compact, since continuous images of compact spaces are compact. \(\blacksquare\)

Where it is used

Cited in proofs of other theorems