The dimension of a vector space is the common cardinality of all bases. I would like to define it in a way that does not refer to bases. I only care about finite dimensional vector spaces.
First, I need to define what it means for a vector space to be finite dimensional without referring to a basis. One definition that works is to say that $V$ is finite-dimensional if the natural map $V\rightarrow (V^*)^*$ is an isomorphism (that's the double dual). I am open to other basis-free definitions.
As for defining what $\dim V$ is, my first thought was to define it as $\text{trace}(I)$. This is true, but it is not quite basis-free:
We have an isomorphism $V^*\otimes V \cong \hom(V,V)$. On $V^*\otimes V$, I can define the trace in a basis-free way. I can also define this map $V^*\otimes V \rightarrow \hom(V,V)$ without referring to a basis. However, I don't know how to show that it is an isomorphism without referring to bases. It would be especially nice if we could pinpoint of the identity map $V\rightarrow V$ as an element of $V^*\otimes V$ without referring to bases. Maybe it's the unique fixed point of some action or something like that?
Regarding the answers: At the moment there are three answers by Andreas Blass, Thorgott and me. I accepted one because I can only accept one. All three are worth reading in my opinion.
$$\dim(V)\colon=\sup\{n\in\mathbb{N}_0\vert\exists U_0\subsetneq U_1\subsetneq...\subsetneq U_n,\text{ subspaces of }V\}\in\mathbb{N}_0\cup\{\infty\}$$