Debian Codegraph @

examples/EpimorphismStandardPresentation-i

raw
1 #Example: "EpimorphismStandardPresentation-i" . . based on manual example
2 #(demonstrates interactive `EpimorphismStandardPresentation' usage)
3 #vars: F, x, y, z, w, a, b, R, Q, procId, G, phi, lev;
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 procId := PqStart( Q );;
12 G := Pq( procId : Prime := 3, ClassBound := 3 );
13 lev := InfoLevel(InfoANUPQ); # Save current InfoANUPQ level
14 SetInfoLevel(InfoANUPQ, 2);; # To see computation time data
15 ## It is not necessary to pass the `Prime' option to
16 ## `EpimorphismStandardPresentation' since it was previously
17 ## passed to `Pq':
18 phi := EpimorphismStandardPresentation( procId : ClassBound := 3 );
19 ## Image of phi should be isomorphic to G ...
20 ## let's check the order is correct:
21 Size( Image(phi) );
22 ## `StandardPresentation' and `EpimorphismStandardPresentation'
23 ## behave like attributes, so no computation is done when
24 ## either is called again for the same process ...
25 StandardPresentation( procId : ClassBound := 3 );
26 ## No timing data was Info-ed since no computation was done
27 SetInfoLevel(InfoANUPQ, lev);; # Restore previous InfoANUPQ level