Take a recursively enumerable set that is not recursive, for example the diagonal halting set from Question 2 shifted by one. To obtain a finitely generated group with recursive presentation but undecidable word problem for a group, first define the countable Right-angled Artin group
Translation of the indices gives an automorphism . The semidirect product with its infinite cyclic shift is generated by and has presentation
To verify this presentation, the semidirect product satisfies its relators, while the reverse map sends to ; all translated commutation relations follow by conjugation. These maps are inverse on their generators. Thus embeds in .
For , the word is trivial. For , map to the free generators of and every other to one. Every defining commutator of maps to one, since the only possible relation involving both surviving generators would have separation , which is absent. The resulting group homomorphism sends to the nontrivial reduced word . Hence
This proves the shift-invariant graph groups encode arbitrary sets construction rather than supposing that a missing relator automatically means a nontrivial word. A word algorithm for would decide , so none exists. Since is enumerable, the displayed two-generator presentation is a recursive presentation of a group. By the Higman embedding theorem, embeds in a finitely presented group . A word algorithm for , composed with substitution of the two fixed generator-image words, would solve the word problem for . Therefore .
False. We construct a two-generated countable group that cannot embed in any finitely presented group. Choose a subset which is not a recursively enumerable set, for example a positive-integer coding of the complement of the halting set. Such sets exist because there are only countably many finite programs but uncountably many subsets of the positive integers. On generators indexed by , form the possibly infinite-graph Right-angled Artin group
The shift preserves the defining relations and has inverse shift , so it is an automorphism. Form the semidirect product
Its base embeds by the definition of a semidirect product. Since , the group is generated by just and is countable.
The shift-invariant graph groups encode arbitrary sets construction has the exact test
The forward direction for is a defining edge relation. If , kill all vertex generators except . Every defining commutator then either contains a killed generator or is trivial; no relation is imposed between these two retained generators. Thus there is a retraction of onto the rank-two free group on . Their commutator is a nonempty reduced word there, so it is nonidentity in and remains so in .
Now suppose embedded in a finitely presented group . Choose fixed words in its finite generators representing the images of . The null words of are recursively enumerable: enumerate all finite products of conjugates of its relators and their inverses, then freely reduce. Substituting into and dovetailing these enumerations for all would enumerate exactly , contradicting its choice. These finitely many image words may be hard-coded; the argument does not require an algorithm finding an embedding. This proves the enumerable identities of finitely generated subgroups obstruction and supplies a concrete construction of the required countable counterexample.
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.
For , form the Right-angled Artin group on generators indexed by , imposing precisely when . Translation is an automorphism. Its semidirect product with an infinite cyclic group generated by is countable and generated by . If , killing all except retracts the graph group onto the rank-two free group, so their commutator is nonidentity. This proves the displayed equivalence. For non-recursively-enumerable , enumerable identities of finitely generated subgroups rules out an embedding of this two-generated group in any finitely presented group.