TITLE: finite codimension implies closed?
QUESTION [5 upvotes]: Let $E$ be a (complete) topological vector space, and $u:E\to E$ be continuous.  Is it always true that if ${\rm Im}(u)$ is of finite codimension in $E$, then it is closed in $E$ or do we have to assume something on $E$? (It is OK if $E$ is Frechet by the open mapping theorem applied to ${\rm id}\oplus u:F\oplus E\to E$, where $F$ is a supplementary subspace to $E$.)

REPLY [3 votes]: Bill: The existence of Hamel basis in (all) vector spaces is equivalent to the axiom of choice (see Blass, Andreas "Existence of bases implies the axiom of choice". Contemporary mathematics 31, 1984). For the existence of a Hamel basis in $l_2$ it is enough to have a well-ordering of the reals. 
Also, it is consistent with ZF that all linear functionals on $l_2$ are continuous (for instance, a model in which every set of reals has the property of Baire).