Construct the free product from the empty word and all finite alternating words , whose syllables in a free product are nonidentity elements of tagged copies of , with adjacent syllables from different factors. Multiply by concatenating, multiplying adjacent elements in the same factor, and deleting identities until the word is reduced. The normal form theorem for a free product gives a unique result; reducing three concatenated words gives the same result under either parenthesization, so multiplication is associative. The empty word is the identity, and the inverse reverses the word and inverts each syllable. Each factor embeds as words of length one.
The universal property of a free product says that for every group and group homomorphisms there is a unique group homomorphism extending both. Explicitly, send a reduced word to the product of its syllable images; reduction preserves this product. This gives existence, while generation by the two factors gives uniqueness.
A standard form of Klein's combination theorem, or the ping-pong lemma, is the following. Let nontrivial subgroups of the homeomorphisms of a topological space have disjoint nonempty subsets with
Assume also that at least one factor has at least three elements. Then the generated subgroup is . The cardinality hypothesis cannot simply be omitted: the same involution swapping two disjoint sets would otherwise provide a counterexample with both factors equal to .
Here is the ping-pong lemma proof. A reduced word of odd length begins and ends in the same factor, so repeated application of the displayed inclusions sends the other factor's domain into that factor's domain. Disjointness shows that the word is not the identity. For an even reduced word, relabel the factors so that , and invert the word if necessary to make it begin with and end in . Choose . The conjugate reduces to an odd-length word beginning with and ending with , both in , so it is nontrivial. Thus no nonempty reduced word lies in the kernel of the natural group homomorphism , proving the theorem.
For an explicit example, let be the one-dimensional Real projective space, and take the Möbius transformations
For every nonzero integer , sends into , while sends into . Indeed when , and . Both transformations have infinite order. Hence the ping-pong lemma gives , a free product of two nontrivial finitely presented groups.
A finitely presented group admits a group presentation with both and finite; it is the quotient of the free group on by the normal closure of . If
with disjoint generator sets, then
Maps from this group presentation to any group are exactly pairs of maps from and , so the universal property of a free product proves the formula.
For a group homomorphism , choose a word representing for each . The presentation of a semidirect product is
The presentation maps onto the specified semidirect product. Conversely, its conjugation relations allow any word to be written as a word from followed by one from . The natural maps from the two factors to the presented group satisfy the full action relation, because conjugation agrees with first on generators and hence on all elements. They define the reverse group homomorphism . The two maps are inverse on every generator, proving the group isomorphism. There are finitely many cross-relations, so the result is again a finitely presented group.
Apply this to the specified permutation action. The presentation is
Eliminate and . The last cross-relation becomes , already implied by . Thus
Both factors are nontrivial finitely presented groups, as required.
The first Baumslag-Solitar group is
where the second infinite cyclic group acts on the first by inversion. The presentation of a semidirect product proves this identification; both copies of are residually finite groups, since reduction modulo a suitable positive integer separates any nonzero integer. The normal factor is finitely generated, so the residual finiteness of semidirect products theorem applies.