File: basicim.gd

package info (click to toggle)
gap 4r4p12-2
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 29,584 kB
  • ctags: 7,113
  • sloc: ansic: 98,786; sh: 3,299; perl: 2,263; makefile: 498; asm: 63; awk: 6
file content (256 lines) | stat: -rw-r--r-- 9,032 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
#############################################################################
##
#W  basicim.gd			GAP Library		       Gene Cooperman
#W							     and Scott Murray
##
#H  @(#)$Id: basicim.gd,v 4.3 2002/07/09 09:53:59 gap Exp $
##
#Y  Copyright (C)  1996,  Lehrstuhl D fuer Mathematik,  RWTH Aachen,  Germany
#Y  (C) 1999 School Math and Comp. Sci., University of St.  Andrews, Scotland
#Y  Copyright (C) 2002 The GAP Group
##
##  Allows elements of a group with stabiliser chain to be represented as
##  a word in the strong generators and a basic image.  This allows for
##  more efficient computation in small base groups, provided the words
##  do not get too long.
##
##  Requires: chain
##  Exports: BasicImageGroups
##
Revision.basicim_gd :=
    "@(#)$Id: basicim.gd,v 4.3 2002/07/09 09:53:59 gap Exp $";

#############################################################################
#############################################################################
##
##  Basic image group representation
##
#############################################################################
#############################################################################

DeclareInfoClass( "InfoBasicImage" );

#############################################################################
##
#R  IsBasicImageEltRep
##
##  Representation of an element in terms of a word and base image.
##  We also store pointers to the base and orbit generators.
##  For an orbit generator orb, Image( HomFromFree, orb ) is the 
##  corresponding word of length one.
##
DeclareRepresentation( "IsBasicImageEltRep",
    IsAssociativeElement, 
    [ "Word", "Base", "BaseImage", "OrbitGenerators", "HomFromFree" ] );
DeclareCategoryCollections( "IsBasicImageEltRep" );  
BasicImageEltRepFamily := NewFamily( "BasicImageEltRep", IsBasicImageEltRep );

DeclareSynonym( "IsBasicImageGroup", IsGroup and
    IsBasicImageEltRepCollection );

#############################################################################
##
#F  ConvertToSiftGroup( <G>, <orbitGens>, <homFromFree> )
##
##  The sift group is used to compute elements as words in the orbit
##  generators by shadowed sifting.
##
DeclareGlobalFunction( "ConvertToSiftGroup", 
    [ IsGroup, IsList, IsGroupHomomorphism ] );

#############################################################################
##
#F  BasicImageGroup( <G> )
##
##  Return the basic image representation of the group <G>.
##
DeclareGlobalFunction( "BasicImageGroup", [ IsGroup and HasChainSubgroup ] );

#############################################################################
##
#O  BasicImageGroupElement( <ord>, <base>, <baseImage>, <orbitGenerators>, 
#M	<homFromFree> )
##
##  Construct a basic image group element.
##
DeclareOperation( "BasicImageGroupElement", 
			[ IsWord, IsList, IsList, IsList, IsGroupHomomorphism ] );
#############################################################################
##
#O  BasicImageGroupElement( <G>, <g> )
##
##  Strip <g> and convert it to a basic image group element.
##
DeclareOperation( "BasicImageGroupElement", 
			[ IsBasicImageGroup, IsAssociativeElement ] );
#############################################################################
##
#O  BasicImageGroupElement( <> )
##
##  Construct a basic image group element.
##
DeclareOperation( "BasicImageGroupElement", 
			[ IsGroup and HasChainSubgroup, IsGroupHomomorphism, IsList, IsAssociativeElement ] );


#############################################################################
#############################################################################
##
##  Attributes of basic image groups
##
##  These attributes are set by the function BasicImageGroup.
##  They cannot be computed, so there is no methods for them.
##
#############################################################################
#############################################################################

#############################################################################
##
#A  OrbitGeneratorsOfGroup( <G> )
##
DeclareAttribute( "OrbitGeneratorsOfGroup", IsBasicImageGroup );
#############################################################################
##
#A  BaseOfBasicImageGroup( <G> )
##
DeclareAttribute( "BaseOfBasicImageGroup", IsBasicImageGroup );
#############################################################################
##
#A  FreeGroupOfBasicImageGroup( <G> )
##
DeclareAttribute( "FreeGroupOfBasicImageGroup", IsBasicImageGroup );
#############################################################################
##
#A  SiftGroup( <G> )
##
DeclareAttribute( "SiftGroup", IsBasicImageGroup );
#############################################################################
##
#A  HomFromFreeOfBasicImageGroup( <G> )
##
DeclareAttribute( "HomFromFreeOfBasicImageGroup", IsBasicImageGroup );
#############################################################################
##
#A  FreeGroupOfBasicImageGroup( <G> )
##
DeclareAttribute( "FreeGroupOfBasicImageGroup", IsBasicImageGroup );


#############################################################################
#############################################################################
##
##  Properties of basic image elements
##
#############################################################################
#############################################################################

#############################################################################
##
#O  Word( <elt> )
##
##  The word in the strong generators.
##
DeclareOperation( "Word", [ IsBasicImageEltRep ] );
#############################################################################
##
#O  BaseOfElt( <elt> )
##
DeclareOperation( "BaseOfElt", [ IsBasicImageEltRep ] );
#############################################################################
##
#O  BaseImage( <elt> )
##
DeclareOperation( "BaseImage", [ IsBasicImageEltRep ] );
#############################################################################
##
#O  OrbitGenerators( <elt> )
##
DeclareOperation( "OrbitGenerators", [ IsBasicImageEltRep ] );
#############################################################################
##
#O  HomFromFree( <elt> )
##
DeclareOperation( "HomFromFree", [ IsBasicImageEltRep ] );
#############################################################################
##
#O  FreeGroupOfElt( <elt> )
##
DeclareOperation( "FreeGroupOfElt", [ IsBasicImageEltRep ] );


#############################################################################
#############################################################################
##
##  Conversion to ordinary element
##
#############################################################################
#############################################################################

#############################################################################
##
#A  ConvertBasicImageGroupElement( <sb> )
##
##  Converts a basic image group element to an ordinary element.
##
DeclareAttribute( "ConvertBasicImageGroupElement", IsBasicImageEltRep );


#############################################################################
#############################################################################
##
##  Basic operations
##
#############################################################################
#############################################################################

#############################################################################
##
#O  ONE( <elt> )
##
DeclareOperation( "ONE", [ IsBasicImageEltRep ] );
#############################################################################
##
#A  One( <elt> )
##
DeclareAttribute( "One", IsBasicImageEltRep );
#############################################################################
##
#O  INV( <elt> )
##
DeclareOperation( "INV", [ IsBasicImageEltRep ] );
#############################################################################
##
#A  Inverse( <elt> )
##
DeclareAttribute( "Inverse", IsBasicImageEltRep );
#############################################################################
##
#O  QUO( <elt1>, <elt2> )
##
DeclareOperation( "QUO", [ IsBasicImageEltRep, IsBasicImageEltRep ] );
##DeclareOperation( "POW", [ IsBasicImageEltRep ] );
#############################################################################
##
#O  COMM( <elt1>, <elt2> )
##
DeclareOperation( "COMM", [ IsBasicImageEltRep, IsBasicImageEltRep ] );

#############################################################################
#############################################################################
##
##  Computing presentations
##
##  Basic images can be used to compute a presentation for the group <G>.
##
#############################################################################
#############################################################################

#############################################################################
##
#A  Presentation( <G> )
##
##  Computes a presentation for the group <G>.
##
DeclareAttribute( "Presentation", IsGroup );

#E