GAP Lesson 5
Change to the directory where you store your GAP files, and then start up GAP.
More about groups given by presentations
References: ?Creating Presentations
Also: D.L. Johnson, Presentations of Groups, Cambridge U.P.
In the next example we study the group SL(2,Z) which is known to be isomorphic to the free product with amalgamation of a cycle of order 4 with a cycle of order 6, amalgamating the subgroups of order 2. In other words it has a presentation as follows.
GAP calls an integer matrix diagonalization program which computes Smith normal form to find AbelianInvariants, the elementary divisors of the quotient by the commutator subgroup. This will work even if the commutator quotient group is infinite. We could also have done the following:
Although the commutator subgroup only has index 12, something seems to be rather difficult for the computer here. You might well wonder what the computer is trying to do anyway. We use a different approach, observing that the commutator subgroup is the smallest normal subgroup containing the commutators of the generators.
Something went wrong there as well. We try a new idea.
To change between a group presentation and a group we use FpGroupPresentation and PresentationFpGroup.
At this stage we know that our group has a free subgroup of rank 2 as a normal subgroup, with abelian quotient which is cyclic of order 12. We could try to do more computations. For example we know from theory that the center of this group has order 2. However, the command Center does not help us. Computing with groups given as presentations is not so easy!
Exercise: Find out what you can about the normal closure of the first generator g.1 in g.
Here is another example of the kind of thing GAP can do:
gap> P := PresentationViaCosetTable( k );
gap> FpGroupPresentation( P );
The command PresentationViaCosetTable does not return the homomorphism to the presentation, which is useful if we wish to express an element of a group as a word in its generators. Instead we may use IsomorphismFpGroup or IsomorphismFpGroupByGenerators which are similar to IsomorphismPermGroup which we used in the last lesson. This would be useful for solving Rubik's cube.
gap> Image(iso, (1,2,3));