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.