Let $X$ and $Y$ be Banach spaces. A bounded operator $T:X\to Y$ is a Fredholm if
The dimension of $\ker(T)$ is finite,
The codimension of the image $\mathrm{im}(T)$ is finite,
The image $\mathrm{im}(T)$ is closed in $Y$.
I've found notes saying that the third condition is redundant. But, what is "codimension" if the image is not closed? What if the image is proper and dense?
In the answer of this question Is the closedness of the image of a Fredholm operator implied by the finiteness of the codimension of its image?, a closed complement is used, but is there always a closed complement?
I mean, how can the third condition be redundant if it is necessary to the second one make sense?