File: pcpelms.gd

package info (click to toggle)
gap-polycyclic 2.17-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 2,796 kB
  • sloc: xml: 3,018; javascript: 155; makefile: 124
file content (57 lines) | stat: -rw-r--r-- 2,011 bytes parent folder | download | duplicates (7)
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
#############################################################################
##
#W  pcpelms.gd                   Polycyc                         Bettina Eick
##

#############################################################################
##
## Introduce the category of pcp elements
##
DeclareCategory( "IsPcpElement", IsMultiplicativeElementWithInverse );
DeclareCategoryFamily( "IsPcpElement" );
DeclareCategoryCollections( "IsPcpElement" );

InstallTrueMethod( IsGeneratorsOfMagmaWithInverses, IsPcpElementCollection );

#############################################################################
##
## Introduce the representation of pcp elements
##
DeclareRepresentation( "IsPcpElementRep",
                        IsComponentObjectRep,
                        ["collector",
                         "exponents",
                         "depth",
                         "leading",
                         "name" ] );

#############################################################################
##
## Operations
##
DeclareOperation( "Exponents",       [ IsPcpElementRep ] );
DeclareOperation( "NameTag",         [ IsPcpElementRep ] );
DeclareOperation( "GenExpList",      [ IsPcpElementRep ] );
DeclareOperation( "Depth",           [ IsPcpElementRep ] );
DeclareOperation( "LeadingExponent", [ IsPcpElementRep ] );

#############################################################################
##
## Some functions
##
DeclareGlobalFunction( "PcpElementConstruction" );
DeclareGlobalFunction( "PcpElementByExponentsNC" );
DeclareGlobalFunction( "PcpElementByExponents" );
DeclareGlobalFunction( "PcpElementByGenExpListNC" );
DeclareGlobalFunction( "PcpElementByGenExpList" );

#############################################################################
##
## Some attributes
##
DeclareAttribute( "TailOfElm",        IsPcpElement );
DeclareAttribute( "RelativeOrderPcp", IsPcpElement );
DeclareAttribute( "RelativeIndex",    IsPcpElement );
DeclareAttribute( "FactorOrder",      IsPcpElement );