Put
For every nonzero integer ,
Let
These are disjoint nonempty subsets of . If , then
so . Similarly, if , then
so .
The ping-pong lemma now identifies the subgroup generated by and with
Both generators have infinite order, so this is a free group of rank two inside the special linear group .
Every finitely generated free group is a residually finite group. For , the ping-pong lemma embeds it into , and reduction modulo a prime in an integral matrix group separates each nonidentity element in a finite quotient.