For a finite graph , its Right-angled Artin group is
Its Salvetti complex is the one-vertex cube complex with an oriented loop labelled for each vertex of , a square torus for every edge, and more generally one cubulated -torus for every -clique, attached compatibly along coordinate subtori. Thus . The vertex link of a Salvetti complex is flag, so is a nonpositively curved cube complex.
Because is special, the fundamental group of a special cube complex embeds in a Right-angled Artin group. Right-angled Artin groups are residually finite by the residual finiteness of a right-angled Artin group, and a subgroup of a residually finite group is residually finite. Hence is residually finite.
If were simple, choose . A finite quotient in which survives has a proper normal kernel. Simplicity would force that kernel to be trivial, embedding into a finite group, contrary to the assumption that is infinite. This is precisely the obstruction that an infinite residually finite group is not simple.