Let $k = \mathbb{F}_2$ and $R = k[x,y,z]$, and suppose $I \subseteq R$ is an ideal of R. I want to show that $\dim_k (R/I) = \text{length}_R (R/I)$.
For instance, in my specific example, $I = (x^2,y^2,z^2,xyz)$. Obviously a $k$-basis for $R/I$ is made of all the monomials that are not multiples of $x^2, y^2, z^2$ or $xyz$, i.e. a basis can be $\{1,x,y,z,xy,xz,yz\}$. Since it is of cardinality $7$, we can state that $\dim_k (R/I) = 7$.
My teacher then states that we can deduce from this that $\text{length}_R(R/I)$ is also $7$.
Any idea on how to prove this ?