Full matrix span from an irreducible residual action
Let $(\mathcal O,\mathfrak m)$ be a commutative local ring with residue field $k$, let $I$ be a finite set, and let $G$ be a monoid. Suppose $\rho:G\to M_I(\mathcal O)$ is a unital monoid homomorphism. Write $\bar\rho:G\to M_I(k)$ for its reduction. Assume:
- Every $k$-subspace of $k^I$ stable under all $\bar\rho(g)$ is either $0$ or $k^I$.
- Every matrix commuting with all $\bar\rho(g)$ is a scalar matrix.
Then $$\operatorname{span}_{\mathcal O}\{\rho(g):g\in G\}=M_I(\mathcal O).$$