[step:Compute the dimension of each space of level one modular forms]If $k$ is odd, then $M_k(SL_2(\mathbb Z))=0$, because $-I \in SL_2(\mathbb Z)$ gives
\begin{align*}
f(z)=(-1)^k f(z)=-f(z)
\end{align*}
for every $z \in \mathbb H$.
Assume now that $k\geq 0$ is even. Write
\begin{align*}
k=12m+r,\qquad r\in\{0,2,4,6,8,10\},
\end{align*}
with $m\in\mathbb Z_{\geq 0}$. The valence formula implies the dimension formula
\begin{align*}
\dim_{\mathbb C} M_k(SL_2(\mathbb Z))=
\begin{cases}
m, & r=2,\\
m+1, & r\in\{0,4,6,8,10\}.
\end{cases}
\end{align*}
Indeed, if a nonzero form $f\in M_k(SL_2(\mathbb Z))$ has $\operatorname{ord}_\infty(f)\geq m+1$, then the valence formula gives
\begin{align*}
m+1\leq \operatorname{ord}_\infty(f)\leq \frac{k}{12}=m+\frac{r}{12},
\end{align*}
which is impossible for every $r\in\{0,2,4,6,8,10\}$. Thus the first $m+1$ Fourier coefficients determine $f$, and
\begin{align*}
\dim_{\mathbb C} M_k(SL_2(\mathbb Z))\leq m+1.
\end{align*}
When $r=2$, a sharper bound holds. If $\operatorname{ord}_\infty(f)\geq m$, then the valence formula leaves only
\begin{align*}
\frac{k}{12}-m=\frac{1}{6}
\end{align*}
for all elliptic and interior contributions. But the elliptic congruence condition at $i$ gives $\operatorname{ord}_i(f)\equiv k/2\equiv 1 \pmod 2$, so $\operatorname{ord}_i(f)\geq 1$, and hence the contribution from $i$ is at least $1/2$, contradicting $1/6$. Therefore the first $m$ Fourier coefficients determine $f$ when $r=2$, and
\begin{align*}
\dim_{\mathbb C} M_k(SL_2(\mathbb Z))\leq m.
\end{align*}
The opposite inequalities will follow in the next step from the explicit independent monomials in $E_4$ and $E_6$.[/step]