/usr/share/gap/pkg/AtlasRep/gap/utils.gd is in gap-atlasrep 1.5.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 | #############################################################################
##
#W utils.gd GAP 4 package AtlasRep Thomas Breuer
##
#Y Copyright (C) 2001, Lehrstuhl D fuer Mathematik, RWTH Aachen, Germany
##
## This file contains the declarations of utility functions for the
## &ATLAS; of Group Representations.
##
if not IsBound( InitialSubstringUTF8StringWithSuffix ) then
#############################################################################
##
#F InitialSubstringUTF8StringWithSuffix( <string>, <n>, <suffix> )
##
## If the string <A>string</A> can be printed in at most <A>n</A> visible
## columns then <A>string</A> is returned.
## Otherwise the concatenation of the longest prefix of <A>string</A>
## and <A>suffix</A> (a string of visible length 1) is returned
## such that the result fits into exactly <A>n</A> visible columns.
##
InitialSubstringUTF8StringWithSuffix:= "2b defined";
fi;
#############################################################################
##
## Class Names Used in the AtlasRep Package
##
## <#GAPDoc Label="classnames">
## <Subsection Label="subsect:Definition of ATLAS Class Names">
## <Heading>Definition of &ATLAS; Class Names</Heading>
##
## For the definition of class names of an almost simple group,
## we assume that the ordinary character tables of all nontrivial normal
## subgroups are shown in
## the &ATLAS; of Finite Groups <Cite Key="CCN85"/>.
## <P/>
## Each class name is a string consisting of the element order of the class
## in question followed by a combination of capital letters, digits, and
## the characters <C>'</C> and <C>-</C> (starting with a capital letter).
## For example, <C>1A</C>, <C>12A1</C>, and <C>3B'</C> denote
## the class that contains the identity element,
## a class of element order <M>12</M>,
## and a class of element order <M>3</M>, respectively.
## <P/>
## <Enum>
## <Item>
## For the table of a <E>simple</E> group, the class names are the same
## as returned by the two argument version of the &GAP; function
## <Ref Func="ClassNames" BookName="ref"/>,
## cf. <Cite Key="CCN85" Where="Chapter 7, Section 5"/>:
## The classes are arranged w.r.t. increasing element order and for
## each element order w.r.t. decreasing centralizer order,
## the conjugacy classes that contain elements of order <M>n</M>
## are named <M>n</M><C>A</C>, <M>n</M><C>B</C>, <M>n</M><C>C</C>,
## <M>\ldots</M>;
## the alphabet used here is potentially infinite, and reads
## <C>A</C>, <C>B</C>, <C>C</C>, <M>\ldots</M>, <C>Z</C>, <C>A1</C>,
## <C>B1</C>, <M>\ldots</M>, <C>A2</C>, <C>B2</C>, <M>\ldots</M>.
## <P/>
## For example, the classes of the alternating group <M>A_5</M> have the
## names <C>1A</C>, <C>2A</C>, <C>3A</C>, <C>5A</C>, and <C>5B</C>.
## </Item>
## <Item>
## Next we consider the case of an <E>upward extension</E> <M>G.A</M>
## of a simple group <M>G</M> by a <E>cyclic</E> group of order
## <M>A</M>.
## The &ATLAS; defines class names for each element <M>g</M> of
## <M>G.A</M> only w.r.t. the group <M>G.a</M>, say,
## that is generated by <M>G</M> and <M>g</M>;
## namely, there is a power of <M>g</M> (with the exponent coprime to
## the order of <M>g</M>) for which the class has a name of the same
## form as the class names for simple groups,
## and the name of the class of <M>g</M> w.r.t. <M>G.a</M> is then
## obtained from this name by appending a suitable number of
## dashes <C>'</C>.
## So dashed class names refer exactly to those classes that are not
## printed in the &ATLAS;.
## <P/>
## For example, those classes of the symmetric group <M>S_5</M> that do
## not lie in <M>A_5</M> have the names <C>2B</C>, <C>4A</C>,
## and <C>6A</C>.
## The outer classes of the group <M>L_2(8).3</M> have the names
## <C>3B</C>, <C>6A</C>, <C>9D</C>, and <C>3B'</C>, <C>6A'</C>,
## <C>9D'</C>.
## The outer elements of order <M>5</M> in the group <M>Sz(32).5</M>
## lie in the classes with names <C>5B</C>, <C>5B'</C>, <C>5B''</C>,
## and <C>5B'''</C>.
## <P/>
## In the group <M>G.A</M>, the class of <M>g</M> may fuse with other
## classes.
## The name of the class of <M>g</M> in <M>G.A</M> is obtained from the
## names of the involved classes of <M>G.a</M> by concatenating their
## names after removing the element order part from all of them except
## the first one.
## <P/>
## For example, the elements of order <M>9</M> in the group
## <M>L_2(27).6</M> are contained in the subgroup <M>L_2(27).3</M>
## but not in <M>L_2(27)</M>.
## In <M>L_2(27).3</M>, they lie in the classes <C>9A</C>, <C>9A'</C>,
## <C>9B</C>, and <C>9B'</C>;
## in <M>L_2(27).6</M>, these classes fuse to <C>9AB</C> and
## <C>9A'B'</C>.
## </Item>
## <Item>
## Now we define class names for <E>general upward extensions</E>
## <M>G.A</M> of a simple group <M>G</M>.
## Each element <M>g</M> of such a group lies in an upward extension
## <M>G.a</M> by a cyclic group, and the class names
## w.r.t. <M>G.a</M> are already defined.
## The name of the class of <M>g</M> in <M>G.A</M> is obtained by
## concatenating the names of the classes in the orbit of <M>G.A</M> on
## the classes of cyclic upward extensions of <M>G</M>,
## after ordering the names lexicographically and removing the element
## order part from all of them except the first one.
## An <E>exception</E> is the situation where dashed and non-dashed
## class names appear in an orbit;
## in this case, the dashed names are omitted.
## <P/>
## For example, the classes <C>21A</C> and <C>21B</C> of the group
## <M>U_3(5).3</M> fuse in <M>U_3(5).S_3</M> to the class <C>21AB</C>,
## and the class <C>2B</C> of <M>U_3(5).2</M> fuses with the involution
## classes <C>2B'</C>, <C>2B''</C> in the groups
## <M>U_3(5).2^{\prime}</M> and <M>U_3(5).2^{{\prime\prime}}</M>
## to the class <C>2B</C> of <M>U_3(5).S_3</M>.
## <P/>
## It may happen that some names in the <C>outputs</C> component of a
## record returned by <Ref Func="AtlasProgram"/>
## do not uniquely determine the classes of the corresponding elements.
## For example, the (algebraically conjugate) classes <C>39A</C> and
## <C>39B</C> of the group <M>Co_1</M> have not been distinguished yet.
## In such cases, the names used contain a minus sign <C>-</C>,
## and mean <Q>one of the classes in the range described by the name
## before and the name after the minus sign</Q>;
## the element order part of the name does not appear after the minus
## sign.
## So the name <C>39A-B</C> for the group <M>Co_1</M> means
## <C>39A</C> or <C>39B</C>,
## and the name <C>20A-B'''</C> for the group <M>Sz(32).5</M> means
## one of the classes of element order <M>20</M> in this group
## (these classes lie outside the simple group <M>Sz</M>).
## </Item>
## <Item>
## For a <E>downward extension</E> <M>m.G.A</M> of an almost simple
## group <M>G.A</M> by a cyclic group of order <M>m</M>,
## let <M>\pi</M> denote the natural epimorphism from <M>m.G.A</M>
## onto <M>G.A</M>.
## Each class name of <M>m.G.A</M> has the form <C>nX_0</C>,
## <C>nX_1</C> etc.,
## where <C>nX</C> is the class name of the image under <M>\pi</M>,
## and the indices <C>0</C>, <C>1</C> etc. are chosen according to the
## position of the class in the lifting order rows for <M>G</M>,
## see <Cite Key="CCN85" Where="Chapter 7, Section 7,
## and the example in Section 8"/>).
## <P/>
## For example, if <M>m = 6</M> then <C>1A_1</C> and <C>1A_5</C> denote
## the classes containing the generators of the kernel of <M>\pi</M>,
## that is, central elements of order <M>6</M>.
## </Item>
## </Enum>
##
## </Subsection>
## <#/GAPDoc>
##
#T missing:
#T general central downward extensions (<M>2^2</M>, <M>2 \times 4</M>, ...)
##
#############################################################################
##
#F AtlasClassNames( <tbl> )
##
## <#GAPDoc Label="AtlasClassNames">
## <ManSection>
## <Func Name="AtlasClassNames" Arg='tbl'/>
##
## <Returns>
## a list of class names.
## </Returns>
## <Description>
## Let <A>tbl</A> be the ordinary or modular character table of a group
## <M>G</M>, say, that is almost simple or a downward extension of an
## almost simple group and such that <A>tbl</A> is an &ATLAS; table
## from the &GAP; Character Table Library,
## according to its <Ref Func="InfoText" BookName="ref"/> value.
## Then <Ref Func="AtlasClassNames"/> returns the list of class names for
## <M>G</M>, as defined
## in Section <Ref Subsect="subsect:Definition of ATLAS Class Names"/>.
## The ordering of class names is the same as the ordering of the columns
## of <A>tbl</A>.
## <P/>
## (The function may work also for character tables that are not
## &ATLAS; tables,
## but then clearly the class names returned are somewhat arbitrary.)
## <P/>
## <Example><![CDATA[
## gap> AtlasClassNames( CharacterTable( "L3(4).3" ) );
## [ "1A", "2A", "3A", "4ABC", "5A", "5B", "7A", "7B", "3B", "3B'",
## "3C", "3C'", "6B", "6B'", "15A", "15A'", "15B", "15B'", "21A",
## "21A'", "21B", "21B'" ]
## gap> AtlasClassNames( CharacterTable( "U3(5).2" ) );
## [ "1A", "2A", "3A", "4A", "5A", "5B", "5CD", "6A", "7AB", "8AB",
## "10A", "2B", "4B", "6D", "8C", "10B", "12B", "20A", "20B" ]
## gap> AtlasClassNames( CharacterTable( "L2(27).6" ) );
## [ "1A", "2A", "3AB", "7ABC", "13ABC", "13DEF", "14ABC", "2B", "4A",
## "26ABC", "26DEF", "28ABC", "28DEF", "3C", "3C'", "6A", "6A'",
## "9AB", "9A'B'", "6B", "6B'", "12A", "12A'" ]
## gap> AtlasClassNames( CharacterTable( "L3(4).3.2_2" ) );
## [ "1A", "2A", "3A", "4ABC", "5AB", "7A", "7B", "3B", "3C", "6B",
## "15A", "15B", "21A", "21B", "2C", "4E", "6E", "8D", "14A", "14B" ]
## gap> AtlasClassNames( CharacterTable( "3.A6" ) );
## [ "1A_0", "1A_1", "1A_2", "2A_0", "2A_1", "2A_2", "3A_0", "3B_0",
## "4A_0", "4A_1", "4A_2", "5A_0", "5A_1", "5A_2", "5B_0", "5B_1",
## "5B_2" ]
## gap> AtlasClassNames( CharacterTable( "2.A5.2" ) );
## [ "1A_0", "1A_1", "2A_0", "3A_0", "3A_1", "5AB_0", "5AB_1", "2B_0",
## "4A_0", "4A_1", "6A_0", "6A_1" ]
## ]]></Example>
## </Description>
## </ManSection>
## <#/GAPDoc>
##
DeclareGlobalFunction( "AtlasClassNames" );
#############################################################################
##
#V AtlasClassNamesOffsetInfo
##
## <ManSection>
## <Var Name="AtlasClassNamesOffsetInfo"/>
##
## <Description>
## This global variable describes the cyclic upwards extensions of those
## simple groups whose ordinary character tables are contained in the
## &ATLAS; of Finite Groups and for which the outer automorphism groups
## are noncyclic.
## </Description>
## </ManSection>
##
DeclareGlobalVariable( "AtlasClassNamesOffsetInfo" );
#############################################################################
##
#F AtlasCharacterNames( <tbl> )
##
## <#GAPDoc Label="AtlasCharacterNames">
## <ManSection>
## <Func Name="AtlasCharacterNames" Arg='tbl'/>
##
## <Returns>
## a list of character names.
## </Returns>
## <Description>
## Let <A>tbl</A> be the ordinary or modular character table of a simple
## group.
## <Ref Func="AtlasCharacterNames"/> returns a list of strings,
## the <M>i</M>-th entry being the name of the <M>i</M>-th irreducible
## character of <A>tbl</A>;
## this name consists of the degree of this character followed by
## distinguishing lowercase letters.
## <P/>
## <Example><![CDATA[
## gap> AtlasCharacterNames( CharacterTable( "A5" ) );
## [ "1a", "3a", "3b", "4a", "5a" ]
## ]]></Example>
## </Description>
## </ManSection>
## <#/GAPDoc>
##
DeclareGlobalFunction( "AtlasCharacterNames" );
#############################################################################
##
#F StringOfAtlasProgramCycToCcls( <prgstring>, <tbl>, <mode> )
##
## <ManSection>
## <Func Name="StringOfAtlasProgramCycToCcls" Arg='prgstring, tbl, mode'/>
##
## <Description>
## The purpose of this utility program is to construct a straight line
## program for computing conjugacy class representatives of a group <M>G</M>
## from a straight line program for computing representatives of classes
## of maximally cyclic subgroups of <M>G</M>;
## the latter program is assumed to be given by the string <A>prgstring</A>.
## The second argument <A>tbl</A> must be the ordinary character table of
## <M>G</M>.
## The third argument <A>mode</A> must be one of the strings <C>"names"</C>
## or <C>"numbers"</C>; in the former case, the labels used are class names,
## in the latter case they are numbers.
## (Note that the labels used for the inputs are the outputs of the program
## given by <A>prgstring</A>, which may be names even if <C>"numbers"</C> is
## chosen for <A>mode</A>.)
## <P/>
## <M>G</M> must be an &ATLAS; group, and the classes of <A>tbl</A> must be
## sorted compatibly with the
## &ATLAS; of Finite Groups <Cite Key="CCN85"/>,
## </Description>
## </ManSection>
##
DeclareGlobalFunction( "StringOfAtlasProgramCycToCcls" );
#############################################################################
##
#F CurrentDateTimeString( [<options>] )
##
## <ManSection>
## <Func Name="CurrentDateTimeString" Arg='[options]'/>
##
## <Description>
## If the system function <C>date</C> is available then the return value is
## a string that describes the current date and time,
## otherwise the string <C>"unknown"</C> is returned.
## <P/>
## If the argument <A>options</A> is given it must be a list of options for
## <C>date</C>;
## for example an empty list means the local time,
## and the value <C>[ "-u" ]</C> means Greenwich mean time (UTC).
## <P/>
## If no argument is given then the format of the result refers to Greenwich
## mean time and is compatible with <Ref Func="StringDate" BookName="ref"/>
## and <Ref Func="StringTime" BookName="ref"/>;
## in this case the option <C>+%s</C> is used.
## </Description>
## </ManSection>
##
DeclareGlobalFunction( "CurrentDateTimeString" );
#############################################################################
##
#F SendMail( <sendto>, <copyto>, <subject>, <text> )
##
## <ManSection>
## <Func Name="SendMail" Arg='sendto, copyto, subject, text'/>
##
## <Description>
## Let <A>sendto</A> and <A>copyto</A> be lists of email addresses,
## and <A>subject</A> and <A>text</A> be strings.
## <Ref Func="SendMail"/> sends email messages with subject <A>subject</A>
## and body <A>text</A> to the addresses in <A>sendto</A> and <A>copyto</A>.
## </Description>
## </ManSection>
##
DeclareGlobalFunction( "SendMail" );
#############################################################################
##
#F ParseBackwards( <string>, <format> )
#F ParseBackwardsWithPrefix( <string>, <format> )
#F ParseForwards( <string>, <format> )
#F ParseForwardsWithSuffix( <string>, <format> )
##
## <ManSection>
## <Func Name="ParseBackwards" Arg='string, format'/>
## <Func Name="ParseBackwardsWithPrefix" Arg='string, format'/>
## <Func Name="ParseForwards" Arg='string, format'/>
## <Func Name="ParseForwardsWithSuffix" Arg='string, format'/>
##
## <Description>
## <!-- Remove this as soon as <C>gpisotyp</C> is available!-->
## </Description>
## </ManSection>
##
DeclareGlobalFunction( "ParseBackwards" );
DeclareGlobalFunction( "ParseBackwardsWithPrefix" );
DeclareGlobalFunction( "ParseForwards" );
DeclareGlobalFunction( "ParseForwardsWithSuffix" );
#############################################################################
##
#E
|