CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

Path: gap4r8 / doc / tut / chap5.txt
Views: 418346
1
2
5 Groups and Homomorphisms
3
4
In this chapter we will show some computations with groups. The examples
5
deal mostly with permutation groups, because they are the easiest to input.
6
The functions mentioned here, like Group (Reference: Groups), Size
7
(Reference: Size) or SylowSubgroup (Reference: SylowSubgroup), however, are
8
the same for all kinds of groups, although the algorithms which compute the
9
information of course will be different in most cases.
10
11
12
5.1 Permutation groups
13
14
Permutation groups are so easy to input because their elements, i.e.,
15
permutations, are so easy to type: they are entered and displayed in
16
disjoint cycle notation. So let's construct a permutation group:
17
18
 Example 
19
gap> s8 := Group( (1,2), (1,2,3,4,5,6,7,8) );
20
Group([ (1,2), (1,2,3,4,5,6,7,8) ])
21

22
23
We formed the group generated by the permutations (1,2) and
24
(1,2,3,4,5,6,7,8), which is well known to be the symmetric group S_8 on
25
eight points, and assigned it to the identifier s8. Now S_8 contains the
26
alternating group on eight points which can be described in several ways,
27
e.g., as the group of all even permutations in s8, or as its derived
28
subgroup. Once we ask GAP to verify that the group is an alternating group
29
acting in its natural permutation representation, the system will display
30
the group accordingly.
31
32
 Example 
33
gap> a8 := DerivedSubgroup( s8 );
34
Group([ (1,2,3), (2,3,4), (2,4)(3,5), (2,6,4), (2,4)(5,7), 
35
 (2,8,6,4)(3,5) ])
36
gap> Size( a8 ); IsAbelian( a8 ); IsPerfect( a8 );
37
20160
38
false
39
true
40
gap> IsNaturalAlternatingGroup(a8);
41
true
42
gap> a8;
43
Alt( [ 1 .. 8 ] )
44

45
46
Once information about a group like s8 or a8 has been computed, it is stored
47
in the group so that it can simply be looked up when it is required again.
48
This holds for all pieces of information in the previous example. Namely, a8
49
stores its order and that it is nonabelian and perfect, and s8 stores its
50
derived subgroup a8. Had we computed a8 as CommutatorSubgroup( s8, s8 ),
51
however, it would not have been stored, because it would then have been
52
computed as a function of two arguments, and hence one could not attribute
53
it to just one of them. (Of course the function CommutatorSubgroup
54
(Reference: CommutatorSubgroup) can compute the commutator subgroup of two
55
arbitrary subgroups.) The situation is a bit different for Sylow
56
p-subgroups: The function SylowSubgroup (Reference: SylowSubgroup) also
57
requires two arguments, namely a group and a prime p, but the result is
58
stored in the group –namely together with the prime p in a list that can be
59
accessed with ComputedSylowSubgroups, but we won't dwell on the details
60
here.
61
62
 Example 
63
gap> syl2 := SylowSubgroup( a8, 2 );; Size( syl2 );
64
64
65
gap> Normalizer( a8, syl2 ) = syl2;
66
true
67
gap> cent := Centralizer( a8, Centre( syl2 ) );; Size( cent );
68
192
69
gap> DerivedSeries( cent );; List( last, Size );
70
[ 192, 96, 32, 2, 1 ]
71

72
73
We have typed double semicolons after some commands to avoid the output of
74
the groups (which would be printed by their generator lists). Nevertheless,
75
the beginner is encouraged to type a single semicolon instead and study the
76
full output. This remark also applies for the rest of this tutorial.
77
78
With the next examples, we want to calculate a subgroup of a8, then its
79
normalizer and finally determine the structure of the extension. We begin by
80
forming a subgroup generated by three commuting involutions, i.e., a
81
subgroup isomorphic to the additive group of the vector space 2^3.
82
83
 Example 
84
gap> elab := Group( (1,2)(3,4)(5,6)(7,8), (1,3)(2,4)(5,7)(6,8),
85
>  (1,5)(2,6)(3,7)(4,8) );;
86
gap> Size( elab );
87
8
88
gap> IsElementaryAbelian( elab );
89
true
90

91
92
As usual, GAP prints the group by giving all its generators. This can be
93
annoying, especially if there are many of them or if they are of huge
94
degree. It also makes it difficult to recognize a particular group when
95
there are already several around. Note that although it is no problem for us
96
to specify a particular group to GAP, by using well-chosen identifiers such
97
as a8 and elab, it is impossible for GAP to use these identifiers when
98
printing a group for us, because the group does not know which identifier(s)
99
point to it, in fact there can be several. In order to give a name to the
100
group itself (rather than to the identifier), you can use the function
101
SetName (Reference: SetName). We do this with the name 2^3 here which
102
reflects the mathematical properties of the group. From now on, GAP will use
103
this name when printing the group for us, but we still cannot use this name
104
to specify the group to GAP, because the name does not know to which group
105
it was assigned (after all, you could assign the same name to several
106
groups). When talking to the computer, you must always use identifiers.
107
108
 Example 
109
gap> SetName( elab, "<group of type 2^3>" ); elab;
110
<group of type 2^3>
111
gap> norm := Normalizer( a8, elab );; Size( norm );
112
1344
113

114
115
Now that we have the subgroup norm of order 1344 and its subgroup elab, we
116
want to look at its factor group. But since we also want to find preimages
117
of factor group elements in norm, we really want to look at the natural
118
homomorphism defined on norm with kernel elab and whose image is the factor
119
group.
120
121
 Example 
122
gap> hom := NaturalHomomorphismByNormalSubgroup( norm, elab );
123
<action epimorphism>
124
gap> f := Image( hom );
125
Group([ (), (), (), (4,5)(6,7), (4,6)(5,7), (2,3)(6,7), (2,4)(3,5), 
126
 (1,2)(5,6) ])
127
gap> Size( f );
128
168
129

130
131
The factor group is again represented as a permutation group (its first
132
three generators are trivial, meaning that the first three generators of the
133
preimage are in the kernel of hom). However, the action domain of this
134
factor group has nothing to do with the action domain of norm. (It only
135
happens that both are subsets of the natural numbers.) We can now form
136
images and preimages under the natural homomorphism. The set of preimages of
137
an element under hom is a coset modulo elab. We use the function PreImages
138
(Reference: PreImages) here because hom is not a bijection, so an element of
139
the range can have several preimages or none at all.
140
141
 Example 
142
gap> ker:= Kernel( hom );
143
<group of type 2^3>
144
gap> x := (1,8,3,5,7,6,2);; Image( hom, x );
145
(1,7,5,6,2,3,4)
146
gap> coset := PreImages( hom, last );
147
RightCoset(<group of type 2^3>,(2,8,6,7,3,4,5))
148

149
150
Note that GAP is free to choose any representative for the coset of
151
preimages. Of course the quotient of two representatives lies in the kernel
152
of the homomorphism.
153
154
 Example 
155
gap> rep:= Representative( coset );
156
(2,8,6,7,3,4,5)
157
gap> x * rep^-1 in ker;
158
true
159

160
161
The factor group f is a simple group, i.e., it has no non-trivial normal
162
subgroups. GAP can detect this fact, and it can then also find the name by
163
which this simple group is known among group theorists. (Such names are of
164
course not available for non-simple groups.)
165
166
 Example 
167
gap> IsSimple( f ); IsomorphismTypeInfoFiniteSimpleGroup( f );
168
true
169
rec( 
170
 name := "A(1,7) = L(2,7) ~ B(1,7) = O(3,7) ~ C(1,7) = S(2,7) ~ 2A(1,\
171
7) = U(2,7) ~ A(2,2) = L(3,2)", parameter := [ 2, 7 ], series := "L" )
172
gap> SetName( f, "L_3(2)" );
173

174
175
We give f the name L_3(2) because the last part of the name string reveals
176
that it is isomorphic to the simple linear group L_3(2). This group,
177
however, also has a lot of other names. Names that are connected with a =
178
sign are different names for the same matrix group, e.g., A(2,2) is the Lie
179
type notation for the classical notation L(3,2). Other pairs of names are
180
connected via ~, these then specify other classical groups that are
181
isomorphic to that linear group (e.g., the symplectic group S(2,7), whose
182
Lie type notation would be C(1,7)).
183
184
The group norm acts on the eight elements of its normal subgroup elab by
185
conjugation, yielding a representation of L_3(2) in s8 which leaves one
186
point fixed (namely point 1). The image of this representation can be
187
computed with the function Action (Reference: Action homomorphisms); it is
188
even contained in the group norm and we can show that norm is indeed a split
189
extension of the elementary abelian group 2^3 with this image of L_3(2).
190
191
 Example 
192
gap> op := Action( norm, elab );
193
Group([ (), (), (), (5,6)(7,8), (5,7)(6,8), (3,4)(7,8), (3,5)(4,6), 
194
 (2,3)(6,7) ])
195
gap> IsSubgroup( a8, op ); IsSubgroup( norm, op );
196
true
197
true
198
gap> IsTrivial( Intersection( elab, op ) );
199
true
200
gap> SetName( norm, "2^3:L_3(2)" );
201

202
203
By the way, you should not try the operator < instead of the function
204
IsSubgroup (Reference: IsSubgroup). Something like
205
206
 Example 
207
gap> elab < a8;
208
false
209

210
211
will not cause an error, but the result does not signify anything about the
212
inclusion of one group in another; < tests which of the two groups is less
213
in some total order. On the other hand, the equality operator = in fact does
214
test the equality of its arguments.
215
216
Summary. In this section we have used the elementary group functions to
217
determine the structure of a normalizer. We have assigned names to the
218
involved groups which reflect their mathematical structure and GAP uses
219
these names when printing the groups.
220
221
222
5.2 Actions of Groups
223
224
In order to get another representation of a8, we consider another action,
225
namely that on the elements of a certain conjugacy class by conjugation.
226
227
In the following example we temporarily increase the line length limit from
228
its default value 80 to 82 in order to make the long expression fit into one
229
line.
230
231
 Example 
232
gap> ccl := ConjugacyClasses( a8 );; Length( ccl );
233
14
234
gap> List( ccl, c -> Order( Representative( c ) ) );
235
[ 1, 2, 2, 3, 6, 3, 4, 4, 5, 15, 15, 6, 7, 7 ]
236
gap> List( ccl, Size );
237
[ 1, 210, 105, 112, 1680, 1120, 2520, 1260, 1344, 1344, 1344, 3360, 
238
 2880, 2880 ]
239

240
241
Note the difference between Order (Reference: Order) (which means the
242
element order), Size (Reference: Size) (which means the size of the
243
conjugacy class) and Length (Reference: Length) (which means the length of a
244
list). We choose to let a8 operate on the class of length 112.
245
246
 Example 
247
gap> class := First( ccl, c -> Size(c) = 112 );;
248
gap> op := Action( a8, AsList( class ),OnPoints );;
249

250
251
We use AsList (Reference: AsList) here to convert the conjugacy class into a
252
list of its elements whereas we wrote Action( norm, elab ) directly in the
253
previous section. The reason is that the elementary abelian group elab can
254
be quickly enumerated by GAP whereas the standard enumeration method for
255
conjugacy classes is slower than just explicit calculation of the elements.
256
However, GAP is reluctant to construct explicit element lists, because for
257
really large groups this direct method is infeasible.
258
259
Note also the function First (Reference: First), used to find the first
260
element in a list which passes some test.
261
262
In this example, we have specified the action function OnPoints (Reference:
263
OnPoints) in this example, which is defined as OnPoints( d, g ) = d ^ g.
264
This caret operator denotes conjugation in a group if both arguments d and g
265
are group elements (contained in a common group), but it also denotes the
266
natural action of permutations on positive integers (and exponentiation of
267
integers as well, of course). It is in fact the default action and will be
268
supplied by the system if not given. Another common action is for example
269
always assumes OnRight (Reference: OnRight), which means right
270
multiplication, defined as d * g. (Group actions in GAP are always from the
271
right.)
272
273
We now have a permutation representation op on 112 points, which we test for
274
primitivity. If it is not primitive, we can obtain a minimal block system
275
(i.e., one where the blocks have minimal length) by the function Blocks
276
(Reference: Blocks).
277
278
 Example 
279
gap> IsPrimitive( op, [ 1 .. 112 ] );
280
false
281
gap> blocks := Blocks( op, [ 1 .. 112 ] );;
282

283
284
Note that we must specify the domain of the action. You might think that the
285
functions IsPrimitive (Reference: IsPrimitive) and Blocks (Reference:
286
Blocks) could use [ 1 .. 112 ] as default domain if no domain was given. But
287
this is not so easy, for example would the default domain of Group( (2,3,4)
288
) be [ 1 .. 4 ] or [ 2 .. 4 ]? To avoid confusion, all action functions
289
require that you specify the domain of action. If we had specified [ 1 ..
290
113 ] in the primitivity test above, point 113 would have been a fixpoint
291
(and the action would not even have been transitive).
292
293
Now blocks is a list of blocks (i.e., a list of lists), which we do not
294
print here for the sake of saving paper (try it for yourself). In fact all
295
we want to know is the size of the blocks, or rather how many there are (the
296
product of these two numbers must of course be 112). Then we can obtain a
297
new permutation group of the corresponding degree by letting op act on these
298
blocks setwise.
299
300
 Example 
301
gap> Length( blocks[1] ); Length( blocks );
302
2
303
56
304
gap> op2 := Action( op, blocks, OnSets );;
305
gap> IsPrimitive( op2, [ 1 .. 56 ] );
306
true
307

308
309
Note that we give a third argument (the action function OnSets (Reference:
310
OnSets)) to indicate that the action is not the default action on points but
311
an action on sets of elements given as sorted lists. (Section 'Reference:
312
Basic Actions' lists all actions that are pre-defined by GAP.)
313
314
The action of op on the given block system gave us a new representation on
315
56 points which is primitive, i.e., the point stabilizer is a maximal
316
subgroup. We compute its preimage in the representation on eight points
317
using the associated action homomorphisms (which of course in this case are
318
monomorphisms). We construct the composition of two homomorphisms with the *
319
operator, reading left-to-right.
320
321
 Example 
322
gap> ophom := ActionHomomorphism( a8, op );;
323
gap> ophom2 := ActionHomomorphism( op, op2 );;
324
gap> composition := ophom * ophom2;;
325
gap> stab := Stabilizer( op2, 2 );;
326
gap> preim := PreImages( composition, stab );
327
Group([ (1,4,2), (3,6,7), (3,8,5,7,6), (1,4)(7,8) ])
328

329
330
Alternatively, it is possible to create action homomorphisms immediately
331
(without creating the action first) by giving the same set of arguments to
332
ActionHomomorphism (Reference: ActionHomomorphism).
333
334
 Example 
335
gap> nophom := ActionHomomorphism( a8, AsList(class) );
336
<action homomorphism>
337
gap> IsSurjective(nophom);
338
false
339
gap> Image(nophom,(1,2,3));
340
(2,43,14)(3,44,20)(4,45,26)(5,46,32)(6,47,38)(8,13,48)(9,19,53)(10,25,
341
58)(11,31,63)(12,37,68)(15,49,73)(16,50,74)(17,51,75)(18,52,76)(21,54,
342
77)(22,55,78)(23,56,79)(24,57,80)(27,59,81)(28,60,82)(29,61,83)(30,62,
343
84)(33,64,85)(34,65,86)(35,66,87)(36,67,88)(39,69,89)(40,70,90)(41,71,
344
91)(42,72,92)
345

346
347
In this situation, however (for performance reasons, avoiding computation an
348
image that might never be needed) the homomorphism is defined to be not into
349
the Image of the action, but into the full symmetric group, i.e. it is not
350
automatically surjective. Surjectivity can be enforced by giving the string
351
"surjective" as an extra last argument. The Image of the action homomorphism
352
of course is the same group in either case.
353
354
 Example 
355
gap> Size(Range(nophom));
356
1974506857221074023536820372759924883412778680349753377966562950949028\
357
5896977181144089422435502777936659795733823785363827233491968638562181\
358
1850780464277094400000000000000000000000000
359
gap> Size(Range(ophom));
360
20160
361
gap> nophom := ActionHomomorphism( a8, AsList(class),"surjective" );
362
<action epimorphism>
363
gap> Size(Range(nophom));
364
20160
365

366
367
Continuing the example, the normalizer of an element in the conjugacy class
368
class is a group of order 360, too. In fact, it is a conjugate of the
369
maximal subgroup we had found before, and a conjugating element in a8 is
370
found by the function RepresentativeAction (Reference:
371
RepresentativeAction).
372
373
 Example 
374
gap> sgp := Normalizer( a8, Subgroup(a8,[Representative(class)]) );;
375
gap> Size( sgp );
376
360
377
gap> RepresentativeAction( a8, sgp, preim );
378
(2,4,3)
379

380
381
One of the most prominent actions of a group is on the cosets of a subgroup.
382
Naïvely this can be done by constructing the cosets and acting on them by
383
right multiplication.
384
385
 Example 
386
gap> cosets:=RightCosets(a8,norm);;
387
gap> op:=Action(a8,cosets,OnRight);
388
Group([ (1,2,3)(4,6,5)(7,8,9)(10,12,11)(13,14,15), 
389
 (1,3,2)(4,9,13)(5,11,7)(6,15,10)(8,12,14), 
390
 (1,13)(2,7)(3,10)(4,11)(5,15)(6,9), 
391
 (1,8,13)(2,7,12)(3,9,5)(4,14,11)(6,10,15), 
392
 (2,3)(4,14)(5,7)(8,13)(9,12)(10,15), 
393
 (1,8)(2,3,11,6)(4,12,10,15)(5,7,14,9) ])
394
gap> NrMovedPoints(op);
395
15
396

397
398
A problem with this approach is that creating (and storing) all cosets can
399
be very memory intensive if the subgroup index gets large. Because of this,
400
GAP provides special objects which act like a list of elements, but do not
401
actually store elements but compute them on the go. Such a simulated list is
402
called an enumerator. The easiest example of this concept is the Enumerator
403
(Reference: Enumerator) of a group. While it behaves like a list of
404
elements, it requires far less storage, and is applicable to potentially
405
huge groups for which it would be completely infeasible to write down all
406
elements:
407
408
 Example 
409
gap> enum:=Enumerator(SymmetricGroup(20));
410
<enumerator of perm group>
411
gap> Length(enum);
412
2432902008176640000
413
gap> enum[123456789012345];
414
(1,4,15,3,14,11,8,17,6,18,5,7,20,13,10,9,2,12)
415
gap> Position(enum,(1,2,3,4,5,6,7,8,9,10));
416
71948729603
417

418
419
For the action on cosets the object of interest is the RightTransversal
420
(Reference: RightTransversal) of a subgroup. Again, it does not write out
421
actual elements and thus can be created even for subgroups of large index.
422
423
 Example 
424
gap> t:=RightTransversal(a8,norm);
425
RightTransversal(Alt( [ 1 .. 8 ] ),2^3:L_3(2))
426
gap> t[7];
427
(4,6,5)
428
gap> Position(t,(4,6,7,8,5));
429
8
430
gap> Position(t,(1,2,3));
431
fail
432

433
434
For the action on cosets there is the added complication that not every
435
group element is in the transversal (as the last example shows) but the
436
action on cosets of a subgroup usually will not preserve a chosen set of
437
coset representatives. Because of this issue, all action functionality
438
actually uses PositionCanonical (Reference: PositionCanonical) instead of
439
Position (Reference: Position). In general, for elements contained in a
440
list, PositionCanonical (Reference: PositionCanonical) returns the same as
441
Position. If the element is not contained in the list (and for special
442
lists, such as transversals), PositionCanonical returns the list element
443
representing the same objects, e.g. the transversal element representing the
444
same coset.
445
446
 Example 
447
gap> PositionCanonical(t,(1,2,3));
448
2
449
gap> t[2];
450
(6,7,8)
451
gap> t[2]/(1,2,3);
452
(1,3,2)(6,7,8)
453
gap> last in norm;
454
true
455

456
457
Thus, acting on a RightTransversal with the OnRight action will in fact (in
458
a slight abuse of definitions) produce the action of a group on cosets of a
459
subgroup and is in general the most efficient way of creating this action.
460
461
 Example 
462
gap> Action(a8,RightTransversal(a8,norm),OnRight);
463
Group([ (1,2,3)(4,6,5)(7,8,9)(10,12,11)(13,14,15), 
464
 (1,3,2)(4,9,13)(5,11,7)(6,15,10)(8,12,14), 
465
 (1,13)(2,7)(3,10)(4,11)(5,15)(6,9), 
466
 (1,8,13)(2,7,12)(3,9,5)(4,14,11)(6,10,15), 
467
 (2,3)(4,14)(5,7)(8,13)(9,12)(10,15), 
468
 (1,8)(2,3,11,6)(4,12,10,15)(5,7,14,9) ])
469

470
471
Summary. In this section we have learned how groups can operate on GAP
472
objects such as integers and group elements. We have used ActionHomomorphism
473
(Reference: ActionHomomorphism), among others, to construct the
474
corresponding actions and homomorphisms and have seen how transversals can
475
be used to create the action on cosets of a subgroup.
476
477
478
5.3 Subgroups as Stabilizers
479
480
Action functions can also be used without constructing external sets. We
481
will try to find several subgroups in a8 as stabilizers of such actions. One
482
subgroup is immediately available, namely the stabilizer of one point. The
483
index of the stabilizer must of course be equal to the length of the orbit,
484
i.e., 8.
485
486
 Example 
487
gap> u8 := Stabilizer( a8, 1 );
488
Group([ (2,3,4,5,6,7,8), (2,4,5,6,7,8,3) ])
489
gap> Index( a8, u8 );
490
8
491
gap> Orbit( a8, 1 ); Length( last );
492
[ 1, 3, 2, 4, 5, 6, 7, 8 ]
493
8
494

495
496
This gives us a hint how to find further subgroups. Each subgroup is the
497
stabilizer of a point of an appropriate transitive action (namely the action
498
on the cosets of that subgroup or another action that is equivalent to this
499
action). So the question is how to find other actions. The obvious thing is
500
to operate on pairs of points. So using the function Tuples (Reference:
501
Tuples) we first generate a list of all pairs.
502
503
 Example 
504
gap> pairs := Tuples( [1..8], 2 );;
505

506
507
Now we would like to have a8 operate on this domain. But we cannot use the
508
default action OnPoints (Reference: OnPoints) because powering a list by a
509
permutation via the caret operator ^ is not defined. So we must tell the
510
functions from the actions package how the group elements operate on the
511
elements of the domain (here and below, the word package refers to the GAP
512
functionality for group actions, not to a GAP package). In our example we
513
can do this by simply passing OnPairs (Reference: OnPairs) as an optional
514
last argument. All functions from the actions package accept such an
515
optional argument that describes the action. One example is IsTransitive
516
(Reference: IsTransitive).
517
518
 Example 
519
gap> IsTransitive( a8, pairs, OnPairs );
520
false
521

522
523
The action is of course not transitive, since the pairs [ 1, 1 ] and [ 1, 2
524
] cannot lie in the same orbit. So we want to find out what the orbits are.
525
The function Orbits (Reference: Orbits) does that for us. It returns a list
526
of all the orbits. We look at the orbit lengths and representatives for the
527
orbits.
528
529
 Example 
530
gap> orbs := Orbits( a8, pairs, OnPairs );; Length( orbs );
531
2
532
gap> List( orbs, Length );
533
[ 8, 56 ]
534
gap> List( orbs, o -> o[1] );
535
[ [ 1, 1 ], [ 1, 2 ] ]
536

537
538
The action of a8 on the first orbit (this is the one containing [1,1], try
539
[1,1] in orbs[1]) is of course equivalent to the original action, so we
540
ignore it and work with the second orbit.
541
542
 Example 
543
gap> u56 := Stabilizer( a8, orbs[2][1], OnPairs );; Index( a8, u56 );
544
56
545

546
547
So now we have found a second subgroup. To make the following computations a
548
little bit easier and more efficient we would now like to work on the points
549
[ 1 .. 56 ] instead of the list of pairs. The function ActionHomomorphism
550
(Reference: ActionHomomorphism) does what we need. It creates a homomorphism
551
defined on a8 whose image is a new group that acts on [ 1 .. 56 ] in the
552
same way that a8 acts on the second orbit.
553
554
 Example 
555
gap> h56 := ActionHomomorphism( a8, orbs[2], OnPairs );;
556
gap> a8_56 := Image( h56 );;
557

558
559
We would now like to know if the subgroup u56 of index 56 that we found is
560
maximal or not. As we have used already in Section 5.2, a subgroup is
561
maximal if and only if the action on the cosets of this subgroup is
562
primitive.
563
564
 Example 
565
gap> IsPrimitive( a8_56, [1..56] );
566
false
567

568
569
Remember that we can leave out the function if we mean OnPoints (Reference:
570
OnPoints) but that we have to specify the action domain for all action
571
functions.
572
573
We see that a8_56 is not primitive. This means of course that the action of
574
a8 on orb[2] is not primitive, because those two actions are equivalent. So
575
the stabilizer u56 is not maximal. Let us try to find its supergroups. We
576
use the function Blocks (Reference: Blocks) to find a block system. The
577
(optional) third argument in the following example tells Blocks (Reference:
578
Blocks) that we want a block system where 1 and 3 lie in one block.
579
580
 Example 
581
gap> blocks := Blocks( a8_56, [1..56], [1,3] );;
582

583
584
The result is a list of sets, such that a8_56 acts on those sets. Now we
585
would like the stabilizer of this action on the sets. Because we want to
586
operate on the sets we have to pass OnSets (Reference: OnSets) as third
587
argument.
588
589
 Example 
590
gap> u8_56 := Stabilizer( a8_56, blocks[1], OnSets );;
591
gap> Index( a8_56, u8_56 );
592
8
593
gap> u8b := PreImages( h56, u8_56 );; Index( a8, u8b );
594
8
595
gap> IsConjugate( a8, u8, u8b );
596
true
597

598
599
So we have found a supergroup of u56 that is conjugate in a8 to u8. This is
600
not surprising, since u8 is a point stabilizer, and u56 is a two point
601
stabilizer in the natural action of a8 on eight points.
602
603
Here is a warning: If you specify OnSets (Reference: OnSets) as third
604
argument to a function like Stabilizer (Reference: Stabilizers), you have to
605
make sure that the point (i.e. the second argument) is indeed a set.
606
Otherwise you will get a puzzling error message or even wrong results! In
607
the above example, the second argument blocks[1] came from the function
608
Blocks (Reference: Blocks), which returns a list of sets, so everything was
609
OK.
610
611
Actually there is a third block system of a8_56 that gives rise to a third
612
subgroup.
613
614
 Example 
615
gap> blocks := Blocks( a8_56, [1..56], [1,13] );;
616
gap> u28_56 := Stabilizer( a8_56, [1,13], OnSets );;
617
gap> u28 := PreImages( h56, u28_56 );;
618
gap> Index( a8, u28 );
619
28
620

621
622
We know that the subgroup u28 of index 28 is maximal, because we know that
623
a8 has no subgroups of index 2, 4, or 7. However we can also quickly verify
624
this by checking that a8_56 acts primitively on the 28 blocks.
625
626
 Example 
627
gap> IsPrimitive( a8_56, blocks, OnSets );
628
true
629

630
631
Stabilizer (Reference: Stabilizers) is not only applicable to groups like a8
632
but also to their subgroups like u56. So another method to find a new
633
subgroup is to compute the stabilizer of another point in u56. Note that u56
634
already leaves 1 and 2 fixed.
635
636
 Example 
637
gap> u336 := Stabilizer( u56, 3 );;
638
gap> Index( a8, u336 );
639
336
640

641
642
Other functions are also applicable to subgroups. In the following we show
643
that u336 acts regularly on the 60 triples of [ 4 .. 8 ] which contain no
644
element twice. We construct the list of these 60 triples with the function
645
Orbit (Reference: Orbit) (using OnTuples (Reference: OnTuples) as the
646
natural generalization of OnPairs (Reference: OnPairs)) and then pass it as
647
action domain to the function IsRegular (Reference: IsRegular). The positive
648
result of the regularity test means that this action is equivalent to the
649
actions of u336 on its 60 elements from the right.
650
651
 Example 
652
gap> IsRegular( u336, Orbit( u336, [4,5,6], OnTuples ), OnTuples );
653
true
654

655
656
Just as we did in the case of the action on the pairs above, we now
657
construct a new permutation group that acts on [ 1 .. 336 ] in the same way
658
that a8 acts on the cosets of u336. But this time we let a8 operate on a
659
right transversal, just like norm did in the natural homomorphism above.
660
661
 Example 
662
gap> t := RightTransversal( a8, u336 );;
663
gap> a8_336 := Action( a8, t, OnRight );;
664

665
666
To find subgroups above u336 we again look for nontrivial block systems.
667
668
 Example 
669
gap> blocks := Blocks( a8_336, [1..336] );; blocks[1];
670
[ 1, 43, 85 ]
671

672
673
We see that the union of u336 with its 43rd and its 85th coset is a subgroup
674
in a8_336, its index is 112. We can obtain it as the closure of u336 with a
675
representative of the 43rd coset, which can be found as the 43rd element of
676
the transversal t. Note that in the representation a8_336 on 336 points,
677
this subgroup corresponds to the stabilizer of the block [ 1, 43, 85 ].
678
679
 Example 
680
gap> u112 := ClosureGroup( u336, t[43] );;
681
gap> Index( a8, u112 );
682
112
683

684
685
Above this subgroup of index 112 lies a subgroup of index 56, which is not
686
conjugate to u56. In fact, unlike u56 it is maximal. We obtain this subgroup
687
in the same way that we obtained u112, this time forcing two points, namely
688
7 and 43 into the first block.
689
690
 Example 
691
gap> blocks := Blocks( a8_336, [1..336], [1,7,43] );;
692
gap> Length( blocks );
693
56
694
gap> u56b := ClosureGroup( u112, t[7] );; Index( a8, u56b );
695
56
696
gap> IsPrimitive( a8_336, blocks, OnSets );
697
true
698

699
700
We already mentioned in Section 5.2 that there is another standard action of
701
permutations, namely the conjugation. E.g., since no other action is
702
specified in the following example, OrbitLength (Reference: OrbitLength)
703
simply acts via OnPoints (Reference: OnPoints), and because perm_1 ^ perm_2
704
is defined as the conjugation of perm_2 on perm_1, in fact we compute the
705
length of the conjugacy class of (1,2)(3,4)(5,6)(7,8).
706
707
 Example 
708
gap> OrbitLength( a8, (1,2)(3,4)(5,6)(7,8) );
709
105
710
gap> orb := Orbit( a8, (1,2)(3,4)(5,6)(7,8) );;
711
gap> u105 := Stabilizer( a8, (1,2)(3,4)(5,6)(7,8) );; Index( a8, u105 );
712
105
713

714
715
Note that although the length of a conjugacy class of any element g in any
716
finite group G can be computed as OrbitLength( G, g ), the command Size(
717
ConjugacyClass( G, g ) ) is probably more efficient.
718
719
 Example 
720
gap> Size( ConjugacyClass( a8, (1,2)(3,4)(5,6)(7,8) ) );
721
105
722

723
724
Of course the stabilizer u105 is in fact the centralizer of the element
725
(1,2)(3,4)(5,6)(7,8). Stabilizer (Reference: Stabilizers) notices that and
726
computes the stabilizer using the centralizer algorithm for permutation
727
groups. In the usual way we now look for the subgroups above u105.
728
729
 Example 
730
gap> blocks := Blocks( a8, orb );; Length( blocks );
731
15
732
gap> blocks[1];
733
[ (1,2)(3,4)(5,6)(7,8), (1,3)(2,4)(5,7)(6,8), (1,4)(2,3)(5,8)(6,7), 
734
 (1,5)(2,6)(3,7)(4,8), (1,6)(2,5)(3,8)(4,7), (1,7)(2,8)(3,5)(4,6), 
735
 (1,8)(2,7)(3,6)(4,5) ]
736

737
738
To find the subgroup of index 15 we again use closure. Now we must be a
739
little bit careful to avoid confusion. u105 is the stabilizer of
740
(1,2)(3,4)(5,6)(7,8). We know that there is a correspondence between the
741
points of the orbit and the cosets of u105. The point (1,2)(3,4)(5,6)(7,8)
742
corresponds to u105. To get the subgroup above u105 that has index 15 in a8,
743
we must form the closure of u105 with an element of the coset that
744
corresponds to any other point in the first block. If we choose the point
745
(1,3)(2,4)(5,8)(6,7), we must use an element of a8 that maps
746
(1,2)(3,4)(5,6)(7,8) to (1,3)(2,4)(5,8)(6,7). The function
747
RepresentativeAction (Reference: RepresentativeAction) does what we need. It
748
takes a group and two points and returns an element of the group that maps
749
the first point to the second. In fact it also allows you to specify the
750
action as an optional fourth argument as usual, but we do not need this
751
here. If no such element exists in the group, i.e., if the two points do not
752
lie in one orbit under the group, RepresentativeAction (Reference:
753
RepresentativeAction) returns fail.
754
755
 Example 
756
gap> rep := RepresentativeAction( a8, (1,2)(3,4)(5,6)(7,8),
757
>  (1,3)(2,4)(5,8)(6,7) );
758
(2,3)(6,8)
759
gap> u15 := ClosureGroup( u105, rep );; Index( a8, u15 );
760
15
761

762
763
u15 is of course a maximal subgroup, because a8 has no subgroups of index 3
764
or 5. There is in fact another class of subgroups of index 15 above u105
765
that we get by adding (2,3)(6,7) to u105.
766
767
 Example 
768
gap> u15b := ClosureGroup( u105, (2,3)(6,7) );; Index( a8, u15b );
769
15
770
gap> RepresentativeAction( a8, u15, u15b );
771
fail
772

773
774
RepresentativeAction (Reference: RepresentativeAction) tells us that there
775
is no element g in a8 such that u15 ^ g = u15b. Because ^ also denotes the
776
conjugation of subgroups this tells us that u15 and u15b are not conjugate.
777
778
Summary. In this section we have demonstrated some functions from the
779
actions package. There is a whole class of functions that we did not
780
mention, namely those that take a single element instead of a whole group as
781
first argument, e.g., Cycle (Reference: Cycle) and Permutation (Reference:
782
Permutation). These are fully described in Chapter 'Reference: Group
783
Actions'.
784
785
786
5.4 Group Homomorphisms by Images
787
788
We have already seen examples of group homomorphisms in the last sections,
789
namely natural homomorphisms and action homomorphisms. In this section we
790
will show how to construct a group homomorphism G → H by specifying a
791
generating set for G and the images of these generators in H. We use the
792
function GroupHomomorphismByImages( G, H, gens, imgs ) where gens is a
793
generating set for G and imgs is a list whose ith entry is the image of
794
gens[i] under the homomorphism.
795
796
 Example 
797
gap> s4 := Group((1,2,3,4),(1,2));; s3 := Group((1,2,3),(1,2));;
798
gap> hom := GroupHomomorphismByImages( s4, s3,
799
>  GeneratorsOfGroup(s4), [(1,2),(2,3)] );
800
[ (1,2,3,4), (1,2) ] -> [ (1,2), (2,3) ]
801
gap> Kernel( hom );
802
Group([ (1,4)(2,3), (1,3)(2,4) ])
803
gap> Image( hom, (1,2,3) );
804
(1,2,3)
805
gap> Size( Image( hom, DerivedSubgroup(s4) ) );
806
3
807

808
809
 Example 
810
gap> PreImage( hom, (1,2,3) );
811
Error, <map> must be an inj. and surj. mapping called from
812
<function "PreImage">( <arguments> )
813
 called from read-eval loop at line 4 of *stdin*
814
you can 'quit;' to quit to outer loop, or
815
you can 'return;' to continue
816
brk> quit;
817

818
819
 Example 
820
gap> PreImagesRepresentative( hom, (1,2,3) );
821
(1,4,2)
822
gap> PreImage( hom, TrivialSubgroup(s3) ); # the kernel
823
Group([ (1,4)(2,3), (1,3)(2,4) ])
824

825
826
This homomorphism from S_4 onto S_3 is well known from elementary group
827
theory. Images of elements and subgroups under hom can be calculated with
828
the function Image (Reference: Image). But since the mapping hom is not
829
bijective, we cannot use the function PreImage (Reference: PreImage) for
830
preimages of elements (they can have several preimages). Instead, we have to
831
use PreImagesRepresentative (Reference: PreImagesRepresentative), which
832
returns one preimage if at least one exists (and would return fail if none
833
exists, which cannot occur for our surjective hom). On the other hand, we
834
can use PreImage (Reference: PreImage) for the preimage of a set (which
835
always exists, even if it is empty).
836
837
Suppose we mistype the input when trying to construct a homomorphism as
838
below.
839
840
 Example 
841
gap> GroupHomomorphismByImages( s4, s3,
842
>  GeneratorsOfGroup(s4), [(1,2,3),(2,3)] );
843
fail
844

845
846
There is no such homomorphism, hence fail is returned. But note that because
847
of this, GroupHomomorphismByImages (Reference: GroupHomomorphismByImages)
848
must do some checks, and this was also done for the mapping hom above. One
849
can avoid these checks if one is sure that the desired homomorphism really
850
exists. For that, the function GroupHomomorphismByImagesNC (Reference:
851
GroupHomomorphismByImagesNC) can be used; the NC stands for no check.
852
853
But note that horrible things can happen if GroupHomomorphismByImagesNC
854
(Reference: GroupHomomorphismByImagesNC) is used when the input does not
855
describe a homomorphism.
856
857
 Example 
858
gap> hom2 := GroupHomomorphismByImagesNC( s4, s3,
859
>  GeneratorsOfGroup(s4), [(1,2,3),(2,3)] );
860
[ (1,2,3,4), (1,2) ] -> [ (1,2,3), (2,3) ]
861
gap> Size( Kernel(hom2) );
862
24
863

864
865
In other words, GAP claims that the kernel is the full s4, yet hom2
866
obviously has some non-trivial images! Clearly there is no such thing as a
867
homomorphism which maps an element of order 4 (namely, (1,2,3,4)) to an
868
element of order 3 (namely, (1,2,3)). But if you use the command
869
GroupHomomorphismByImagesNC (Reference: GroupHomomorphismByImagesNC), GAP
870
trusts you.
871
872
 Example 
873
gap> IsGroupHomomorphism( hom2 );
874
true
875

876
877
And then it produces serious nonsense if the thing is not a homomorphism, as
878
seen above!
879
880
Besides the safe command GroupHomomorphismByImages (Reference:
881
GroupHomomorphismByImages), which returns fail if the requested homomorphism
882
does not exist, there is the function GroupGeneralMappingByImages
883
(Reference: GroupGeneralMappingByImages), which returns a general mapping
884
(that is, a possibly multi-valued mapping) that can be tested with
885
IsGroupHomomorphism (Reference: IsGroupHomomorphism).
886
887
 Example 
888
gap> hom2 := GroupGeneralMappingByImages( s4, s3,
889
>  GeneratorsOfGroup(s4), [(1,2,3),(2,3)] );;
890
gap> IsGroupHomomorphism( hom2 );
891
false
892

893
894
But the possibility of testing for being a homomorphism is not the only
895
reason why GAP offers group general mappings. Another (more important?)
896
reason is that their existence allows reversal of arrows in a homomorphism
897
such as our original hom. By this we mean the GroupHomomorphismByImages
898
(Reference: GroupHomomorphismByImages) with left and right sides exchanged,
899
in which case it is of course merely a GroupGeneralMappingByImages
900
(Reference: GroupGeneralMappingByImages).
901
902
 Example 
903
gap> rev := GroupGeneralMappingByImages( s3, s4,
904
>  [(1,2),(2,3)], GeneratorsOfGroup(s4) );;
905

906
907
Now hom maps a to b if and only if rev maps b to a, for a ∈ s4 and b ∈ s3.
908
Since every such b has four preimages under hom, it now has four images
909
under rev. Just as the four preimages form a coset of the kernel V_4 ≤s4 of
910
hom, they also form a coset of the cokernel V_4 ≤s4 of rev. The cokernel
911
itself is the set of all images of One( s3 ). (It is a normal subgroup in
912
the group of all images under rev.) The operation One (Reference: One)
913
returns the identity element of a group. And this is why GAP wants to
914
perform such a reversal of arrows: it calculates the kernel of a
915
homomorphism like hom as the cokernel of the reversed group general mapping
916
(here rev).
917
918
 Example 
919
gap> CoKernel( rev );
920
Group([ (1,4)(2,3), (1,3)(2,4) ])
921

922
923
The reason why rev is not a homomorphism is that it is not single-valued
924
(because hom was not injective). But there is another critical condition: If
925
we reverse the arrows of a non-surjective homomorphism, we obtain a group
926
general mapping which is not defined everywhere, i.e., which is not total
927
(although it will be single-valued if the original homomorphism is
928
injective). GAP requires that a group homomorphism be both single-valued and
929
total, so you will get fail if you say GroupHomomorphismByImages( G, H,
930
gens, imgs ) where gens does not generate G (even if this would give a
931
decent homomorphism on the subgroup generated by gens). For a full
932
description, see Chapter 'Reference: Group Homomorphisms'.
933
934
The last example of this section shows that the notion of kernel and
935
cokernel naturally extends even to the case where neither hom2 nor its
936
inverse general mapping (with arrows reversed) is a homomorphism.
937
938
 Example 
939
gap> CoKernel( hom2 ); Kernel( hom2 );
940
Group([ (2,3), (1,3) ])
941
Group([ (3,4), (2,3,4), (1,2,4) ])
942
gap> IsGroupHomomorphism( InverseGeneralMapping( hom2 ) );
943
false
944

945
946
Summary. In this section we have constructed homomorphisms by specifying
947
images for a set of generators. We have seen that by reversing the direction
948
of the mapping, we get group general mappings, which need not be
949
single-valued (unless the mapping was injective) nor total (unless the
950
mapping was surjective).
951
952
953
5.5 Nice Monomorphisms
954
955
For some types of groups, the best method to calculate in an isomorphic
956
group in a better representation (say, a permutation group). We call an
957
injective homomorphism, that will give such an isomorphic image a nice
958
monomorphism.
959
960
For example in the case of a matrix group we can take the action on the
961
underlying vector space (or a suitable subset) to obtain such a
962
monomorphism:
963
964
 Example 
965
gap> grp:=GL(2,3);;
966
gap> dom:=GF(3)^2;;
967
gap> hom := ActionHomomorphism( grp, dom );; IsInjective( hom );
968
true
969
gap> p := Image( hom,grp );
970
Group([ (4,7)(5,8)(6,9), (2,7,6)(3,4,8) ])
971

972
973
To demonstrate the technique of nice monomorphisms, we compute the conjugacy
974
classes of the permutation group and lift them back into the matrix group
975
with the monomorphism hom. Lifting back a conjugacy class means finding the
976
preimage of the representative and of the centralizer; the latter is called
977
StabilizerOfExternalSet (Reference: StabilizerOfExternalSet) in GAP (because
978
conjugacy classes are represented as external sets, see Section 'Reference:
979
Conjugacy Classes').
980
981
 Example 
982
gap> pcls := ConjugacyClasses( p );; gcls := [ ];;
983
gap> for pc in pcls do
984
>  gc:=ConjugacyClass(grp,
985
>  PreImagesRepresentative(hom,Representative(pc)));
986
>  SetStabilizerOfExternalSet(gc,PreImage(hom,
987
>  StabilizerOfExternalSet(pc)));
988
>  Add( gcls, gc );
989
>  od;
990
gap> List( gcls, Size );
991
[ 1, 8, 12, 1, 8, 6, 6, 6 ]
992

993
994
All the steps we have made above are automatically performed by GAP if you
995
simply ask for ConjugacyClasses( grp ), provided that GAP already knows that
996
grp is finite (e.g., because you asked IsFinite( grp ) before). The reason
997
for this is that a finite matrix group like grp is handled by a nice
998
monomorphism. For such groups, GAP uses the command NiceMonomorphism
999
(Reference: NiceMonomorphism) to construct a monomorphism (such as the hom
1000
in the previous example) and then proceeds as we have done above.
1001
1002
 Example 
1003
gap> grp:=GL(2,3);;
1004
gap> IsHandledByNiceMonomorphism( grp );
1005
true
1006
gap> hom := NiceMonomorphism( grp );
1007
<action isomorphism>
1008
gap> p :=Image(hom,grp);
1009
Group([ (4,7)(5,8)(6,9), (2,7,6)(3,4,8) ])
1010
gap> cc := ConjugacyClasses( grp );; ForAll(cc, x-> x in gcls); 
1011
true
1012
gap> ForAll(gcls, x->x in cc); # cc and gcls might be ordered differently
1013
true
1014

1015
1016
Note that a nice monomorphism might be defined on a larger group than grp
1017
–so we have to use Image( hom, grp ) and not only Image( hom ).
1018
1019
Nice monomorphisms are not only used for matrix groups, but also for other
1020
kinds of groups in which one cannot calculate easily enough. As another
1021
example, let us show that the automorphism group of the quaternion group of
1022
order 8 is isomorphic to the symmetric group of degree 4 by examining the
1023
nice object associated with that automorphism group.
1024
1025
 Example 
1026
gap> p:=Group((1,7,6,8)(2,5,3,4), (1,2,6,3)(4,8,5,7));;
1027
gap> aut := AutomorphismGroup( p );; NiceMonomorphism(aut);;
1028
gap> niceaut := NiceObject( aut );
1029
Group([ (1,4,2,3), (1,5,4)(2,6,3), (1,2)(3,4), (3,4)(5,6) ])
1030
gap> IsomorphismGroups( niceaut, SymmetricGroup( 4 ) );
1031
[ (1,4,2,3), (1,5,4)(2,6,3), (1,2)(3,4), (3,4)(5,6) ] -> 
1032
[ (1,4,3,2), (1,3,2), (1,3)(2,4), (1,2)(3,4) ]
1033

1034
1035
The range of a nice monomorphism is in most cases a permutation group,
1036
because nice monomorphisms are mostly action homomorphisms. In some cases,
1037
like in our last example, the group is solvable and you might prefer a pc
1038
group as nice object. You cannot change the nice monomorphism of the
1039
automorphism group (because it is the value of the attribute
1040
NiceMonomorphism (Reference: NiceMonomorphism)), but you can compose it with
1041
an isomorphism from the permutation group to a pc group to obtain your
1042
personal nicer monomorphism. If you reconstruct the automorphism group, you
1043
can even prescribe it this nicer monomorphism as its NiceMonomorphism
1044
(Reference: NiceMonomorphism), because a newly-constructed group will not
1045
yet have a NiceMonomorphism (Reference: NiceMonomorphism) set.
1046
1047
 Example 
1048
gap> nicer := NiceMonomorphism(aut) * IsomorphismPcGroup(niceaut);;
1049
gap> aut2 := GroupByGenerators( GeneratorsOfGroup( aut ) );;
1050
gap> SetIsHandledByNiceMonomorphism( aut2, true );
1051
gap> SetNiceMonomorphism( aut2, nicer );
1052
gap> NiceObject( aut2 ); # a pc group
1053
Group([ f1*f2, f2^2*f3, f4, f3 ])
1054

1055
1056
The star * denotes composition of mappings from the left to the right, as we
1057
have seen in Section 5.2 above. Reconstructing the automorphism group may of
1058
course result in the loss of other information GAP had already gathered,
1059
besides the (not-so-)nice monomorphism.
1060
1061
Summary. In this section we have seen how calculations in groups can be
1062
carried out in isomorphic images in nicer groups. We have seen that GAP
1063
pursues this technique automatically for certain classes of groups, e.g.,
1064
for matrix groups that are known to be finite.
1065
1066
1067
5.6 Further Information about Groups and Homomorphisms
1068
1069
Groups and the functions for groups are treated in Chapter 'Reference:
1070
Groups'. There are several chapters dealing with groups in specific
1071
representations, for example Chapter 'Reference: Permutation Groups' on
1072
permutation groups, 'Reference: Polycyclic Groups' on polycyclic (including
1073
finite solvable) groups, 'Reference: Matrix Groups' on matrix groups and
1074
'Reference: Finitely Presented Groups' on finitely presented groups.
1075
Chapter 'Reference: Group Actions' deals with group actions. Group
1076
homomorphisms are the subject of Chapter 'Reference: Group Homomorphisms'.
1077
1078
1079