Semisimplicity from a nondegenerate trace pairing
Let $K$ be a field, $\Gamma$ a group, $n\ge0$, and $\rho:\Gamma\to\operatorname{GL}_n(K)$ a representation. Put $$A=\operatorname{span}_K\{\rho(g):g\in\Gamma\}\subseteq M_n(K).$$ Assume that, for every $x\in A$, $$\bigl(\operatorname{tr}(x\rho(g))=0\text{ for every }g\in\Gamma\bigr)\ \Longrightarrow\ x=0.$$ Then $\rho$ is semisimple: every invariant subspace of $K^n$ has an invariant complementary subspace.