| 1 |
#Example: "EpimorphismStandardPresentation" . . . based on manual example |
| 2 |
#(demonstrates `EpimorphismStandardPresentation' usage) |
| 3 |
#vars: F, x, y, z, w, a, b, R, Q, procId, G, f1, f2, f3, f4, f5, f6, phi; |
| 4 |
#options: |
| 5 |
F := FreeGroup(6, "F"); |
| 6 |
## For printing GAP uses the symbols F1, ... for the generators of F |
| 7 |
x := F.1; y := F.2; z := F.3; w := F.4; a := F.5; b := F.6; |
| 8 |
R := [x^3 / w, y^3 / w * a^2 * b^2, w^3 / b, |
| 9 |
Comm (y, x) / z, Comm (z, x), Comm (z, y) / a, z^3 ]; |
| 10 |
Q := F / R; |
| 11 |
## For printing GAP also uses the symbols F1, ... for the generators of Q |
| 12 |
## (the same as used for F) ... but the gen'rs of Q and F are different: |
| 13 |
GeneratorsOfGroup(F) = GeneratorsOfGroup(Q); |
| 14 |
#alt: do |
| 15 |
#procId := PqStart( Q ); |
| 16 |
#alt: sub <procId> for <Q> |
| 17 |
G := Pq( Q : Prime := 3, ClassBound := 3 ); |
| 18 |
#alt: sub <procId> for <Q> |
| 19 |
phi := EpimorphismStandardPresentation( Q : Prime := 3, |
| 20 |
ClassBound := 3 ); |
| 21 |
Source(phi); # This is the group Q (GAP uses F1, ... for gen'r symbols) |
| 22 |
Range(phi); # This is the group G (GAP uses f1, ... for gen'r symbols) |
| 23 |
AssignGeneratorVariables(G);; # so f1, ... are now variables |
| 24 |
## Just to see that the images of [F1, ..., F6] do generate G |
| 25 |
Group([ f1*f2^2*f3, f1*f2*f3*f4*f5^2*f6^2, f3^2, f4, f5, f6 ]) = G; |
| 26 |
Size( Image(phi) ); |