Let $k$ be a field. Let $I,J$ be two sets such that $k^I\cong k^J$ as $k$-vector spaces. I have read that this isomorphism implies that $I=J$. In the finite case, this is obvious, but how does it follow if both $I$ and $J$ are infinite?
Let $\phi:k^I\rightarrow k^J$ be the isomorphism in question. My idea is to show that this isomorphism implies $k^{\oplus I}\cong k^{\oplus J}$ (these are the subspaces of eventually zero elements), which would imply that $I\cong J$. So let $\alpha\in k^I$. We have to show that $$\{j\in J\ |\ \phi(\alpha)(j)\ne0\}$$ is finite. By definition, the set $\{i\in I|\alpha_i\ne0\}$ is finite. I am not clear on how to proceed. Any hints?
Edit: Sorry I don't understand how the linked question answers the question. Why should a basis of $k^I$ be indexed by $I$? It's clear that there exists a generating system of $k^I$ indexed by $I$ but not a basis.
Edit: The duplicate only shows that if we have two bases $(v_i)_{i\in I}$ and $(w_j)_{j\in J}$ then $I\cong J$. This is trivial. But here we don't know that $k^I$ has a basis indexed by $I$ or $J$.. If $B$ is a basis of $k^I$, we can only conclude that $\text{card}(B)\leq\text{card}(I)$.