Here is a theorem from representation theory:
$G$ is a reductive algebraic group in characteristic not equal $p$ and $E$ is an elementary abelian subgroup of $G$.
Suppose $G$ is complex and view the Lie algebra of G as a $\mathbb{C}E$-module with character $\chi_L$. Then dim $C_G(E)=(1/|E|)\sum_{x\in E}\chi_L(x)$.
I am being silly here.
I considered $E$ generated by \begin{pmatrix} -1 & 0 & 0 & 0\\ 0 & 1 & 0 & 0\\ 0 & 0 & 1 & 0\\ 0 & 0 & 0 & 1 \end{pmatrix} in $PGL_4(\mathbb{C})$. The centraliser apprently has dimension 9. But the Lie algebra of $PGL_n(\mathbb{C})$ is $\mathfrak{sl}(n,\mathbb{C})$ of traceless matrices. So by the formula, we would get dimension $0$...
How do I get the dimension right using the formula?