Isn't X just the preimage of a closed set under a continuous map?
It is certainly true for non-singular matrices (as the corresponding linear map has a linear (hence continuous) inverse).
I'm not sure about the singular matrices. It seems very likely that, in general, singular matrices are closed maps in the sense that they map closed sets to closed sets.
We do have the isomorphism
which gives us a factorization of (as a linear operator) as the composition of a projection composed with the inclusion of into the codomain .
The inclusion is certainly a closed map, and so it suffices to check that projections are also closed maps.
Ugh, it is clearly wrong that all singular matrices are closed maps. I must have been too focused on it being true that I didn't care to look for an easy counterexample. You can take the projection , for which the closed set given by the graph of maps to an open set of .
For this particular problem, I asked around, and someone came up with this idea:
The set is the cone of the unit cube , i.e. , where is the cone operator, that is, . For any linear operator , and any set , it is true that
Hence , which is the cone of a compact set (since all linear maps are continuous, even the singular ones), but the cone of a compact set is closed.
I've also recalled that if is a compact topological space, then the projection is a closed map - just for bonus info.