  
  [1X3 [33X[0;0YFunctions for Singer algebras[133X[101X
  
  
  [1X3.1 [33X[0;0YSinger Algebras as Algebraic Structures[133X[101X
  
  
  [1X3.1-1 [33X[0;0YSingerAlgebra[133X[101X
  
  [33X[1;0Y[29X[2XSingerAlgebra[102X( [3Xq[103X[, [3Xn[103X], [3Xz[103X[, [3XR[103X] ) [32X function[133X
  [33X[1;0Y[29X[2XSingerAlgebra[102X( [3Xarec[103X[, [3XR[103X] ) [32X function[133X
  
  [33X[0;0YFor  nonnegative  integers  [3Xq[103X, [3Xz[103X with [3Xq[103X [22X> 1[122X, and a field [3XR[103X (with default the
  field  of  Rationals,  see  [2XRationals[102X  ([14XReference: Rationals[114X)), let [22Xn[122X be the
  multiplicative  order  of [3Xq[103X modulo [3Xz[103X, set [22Xe = ([3Xq[103X^n - 1) / [3Xz[103X[122X, and define [22XA[[3Xq[103X,
  [3Xz[103X][122X  as  the free [3XR[103X-module with basis [22X(b_0, b_1, ..., b_z)[122X and multiplication
  defined  as  follows.  If  there  is  no carry in the addition of the [3Xq[103X-adic
  expansions  of  [22Xi  e[122X and [22Xj e[122X then [22Xb_i b_j = b_{i+j}[122X holds, and otherwise [22Xb_i
  b_j[122X is zero.[133X
  
  [33X[0;0YThis function returns the algebra [22XA[[3Xq[103X, [3Xz[103X][122X.[133X
  
  [33X[0;0YAlternatively,  a record [3Xarec[103X can be given, which must have the components [10Xq[110X
  and [10Xz[110X or the components [10Xq[110X, [10Xn[110X, [10Xe[110X.[133X
  
  [33X[0;0YThe  idea  is  to use the algebra object first of all as a container for the
  attributes  that  belong to the parameters [3Xq[103X and [3Xz[103X, see [2XLoewyLength[102X ([14X3.1-6[114X),
  [2XMinimalDegreeOfSingerAlgebra[102X  ([14X3.1-8[114X), and [2XLoewyStructureInfo[102X ([14X3.1-11[114X). This
  works well also for high dimensional algebras.[133X
  
  [33X[0;0YIf  one  really  wants  to  do computations beyond this context, for example
  compute   with   elements   of   the   algebra,  then  special  methods  for
  [2XCanonicalBasis[102X   ([14XReference:   CanonicalBasis[114X),  [2XRepresentative[102X  ([14XReference:
  Representative[114X),  [2XGeneratorsOfAlgebra[102X  ([14XReference:  GeneratorsOfAlgebra[114X), or
  [2XGeneratorsOfAlgebraWithOne[102X   ([14XReference:   GeneratorsOfAlgebraWithOne[114X)  will
  trigger  the  computation of a structure constants table, and afterwards the
  algebra  behaves  like  other algebras in [5XGAP[105X that are defined via structure
  constants.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XA:= SingerAlgebra( 6, 2, 7 );[127X[104X
    [4X[28XA[6,2,7][128X[104X
    [4X[25Xgap>[125X [27XDimension( A );   # is always z+1[127X[104X
    [4X[28X8[128X[104X
    [4X[25Xgap>[125X [27XLeftActingDomain( A );[127X[104X
    [4X[28XRationals[128X[104X
    [4X[25Xgap>[125X [27XA2:= SingerAlgebra( 6, 2, 7, GF(2) );[127X[104X
    [4X[28XA[6,2,7,GF(2)][128X[104X
    [4X[25Xgap>[125X [27XPrint( A2, "\n" );[127X[104X
    [4X[28XSingerAlgebra( 6, 2, 7, GF(2) )[128X[104X
    [4X[25Xgap>[125X [27XString( A2 );[127X[104X
    [4X[28X"SingerAlgebra( 6, 2, 7, GF(2) )"[128X[104X
    [4X[25Xgap>[125X [27XSingerAlgebra( rec( q:= 6, n:= 2, e:= 5 ) );[127X[104X
    [4X[28XA[6,2,7][128X[104X
  [4X[32X[104X
  
  [1X3.1-2 IsSingerAlgebra[101X
  
  [33X[1;0Y[29X[2XIsSingerAlgebra[102X( [3XA[103X ) [32X Category[133X
  
  [33X[0;0YThis filter is set in all algebras constructed with [2XSingerAlgebra[102X ([14X3.1-1[114X).[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XA:= SingerAlgebra( 6, 7 );[127X[104X
    [4X[28XA[6,2,7][128X[104X
    [4X[25Xgap>[125X [27XIsSingerAlgebra( A );[127X[104X
    [4X[28Xtrue[128X[104X
    [4X[25Xgap>[125X [27XAA:= AlgebraByStructureConstants( Rationals,[127X[104X
    [4X[25X>[125X [27X            StructureConstantsTable( Basis( A ) ) );[127X[104X
    [4X[28X<algebra of dimension 8 over Rationals>[128X[104X
    [4X[25Xgap>[125X [27XIsSingerAlgebra( AA );[127X[104X
    [4X[28Xfalse[128X[104X
  [4X[32X[104X
  
  [1X3.1-3 ParametersOfSingerAlgebra[101X
  
  [33X[1;0Y[29X[2XParametersOfSingerAlgebra[102X( [3XA[103X ) [32X attribute[133X
  
  [33X[0;0YFor  a  Singer algebra [3XA[103X[22X= A[q,n,z][122X (see [2XSingerAlgebra[102X ([14X3.1-1[114X)), the value is
  the list [22X[ q, n, z ][122X.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XA:= SingerAlgebra( 6, 7 );[127X[104X
    [4X[28XA[6,2,7][128X[104X
    [4X[25Xgap>[125X [27XParametersOfSingerAlgebra( A );[127X[104X
    [4X[28X[ 6, 2, 7 ][128X[104X
  [4X[32X[104X
  
  [1X3.1-4 DimensionsLoewyFactors[101X
  
  [33X[1;0Y[29X[2XDimensionsLoewyFactors[102X( [3XA[103X ) [32X attribute[133X
  [33X[1;0Y[29X[2XLoewyVector[102X( [3XA[103X ) [32X attribute[133X
  
  [33X[0;0YFor  a  Singer  algebra [3XA[103X (see [2XSingerAlgebra[102X ([14X3.1-1[114X)), this function returns
  the  Loewy  vector  of  [3XA[103X, that is, the list of nonzero dimensions [22XJ^{i-1} /
  J^i[122X, for [22Xi ≥ 1[122X, where [22XJ[122X is the Jacobson radical of [3XA[103X and [22XJ^0 =[122X[3XA[103X.[133X
  
  [33X[0;0Y[2XLoewyVector[102X is a synonym of [2XDimensionsLoewyFactors[102X.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XA:= SingerAlgebra( 6, 2, 7 );[127X[104X
    [4X[28XA[6,2,7][128X[104X
    [4X[25Xgap>[125X [27XDimensionsLoewyFactors( A );[127X[104X
    [4X[28X[ 1, 6, 1 ][128X[104X
  [4X[32X[104X
  
  [33X[0;0YIn  the  [5XGAP[105X  Reference  Manual,  this attribute is declared for groups, see
  [2XDimensionsLoewyFactors[102X ([14XReference: DimensionsLoewyFactors[114X). In that context,
  it  means  the  dimensions  of the Loewy factors of the group algebra of its
  argument  over  the field with [22Xp[122X elements, where the argument is required to
  be  a  finite  [22Xp[122X-group.  Note  that this value can be computed just from the
  group, without constructing a group algebra.[133X
  
  
  [1X3.1-5 [33X[0;0YLoewyVectorAbbreviated and LoewyVectorExpanded[133X[101X
  
  [33X[1;0Y[29X[2XLoewyVectorAbbreviated[102X( [3Xv[103X ) [32X function[133X
  [33X[1;0Y[29X[2XLoewyVectorExpanded[102X( [3Xv[103X ) [32X function[133X
  
  [33X[0;0YFor  a  dense  list [3Xv[103X of positive integers, [2XLoewyVectorAbbreviated[102X returns a
  new  list  in  which  each maximal sublist of at least two consecutive equal
  entries   is   replaced   by  the  list  containing  this  element  and  its
  multiplicity.[133X
  
  [33X[0;0YFor  a  dense  list  [3Xv[103X  whose  entries  are non-lists and pairs whose second
  entries  are  positive  integers,  [2XLoewyVectorExpanded[102X returns a new list in
  which  each such pair is replaced by a sublist that contains the first entry
  with multiplicity given by the second entry.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XLoewyVectorAbbreviated( [ 1, 1, 1, 1 ] );[127X[104X
    [4X[28X[ [ 1, 4 ] ][128X[104X
    [4X[25Xgap>[125X [27XLoewyVectorAbbreviated( [ 1, 7, 7, 3, 3, 1, 1, 1 ] );[127X[104X
    [4X[28X[ 1, [ 7, 2 ], [ 3, 2 ], [ 1, 3 ] ][128X[104X
    [4X[25Xgap>[125X [27XLoewyVectorExpanded( [ [ 1, 4 ] ] );[127X[104X
    [4X[28X[ 1, 1, 1, 1 ][128X[104X
    [4X[25Xgap>[125X [27XLoewyVectorExpanded( [ 1, [ 7, 2 ], [ 3, 2 ], [ 1, 3 ] ] );[127X[104X
    [4X[28X[ 1, 7, 7, 3, 3, 1, 1, 1 ][128X[104X
  [4X[32X[104X
  
  
  [1X3.1-6 [33X[0;0YLoewyLength[133X[101X
  
  [33X[1;0Y[29X[2XLoewyLength[102X( [3XA[103X ) [32X attribute[133X
  [33X[1;0Y[29X[2XLoewyLength[102X( [3Xq[103X[, [3Xn[103X], [3Xz[103X[, [3Xm[103X] ) [32X operation[133X
  [33X[1;0Y[29X[2XLoewyLengthGAP[102X( [3XA[103X ) [32X attribute[133X
  [33X[1;0Y[29X[2XLoewyLengthGAP[102X( [3Xq[103X[, [3Xn[103X], [3Xz[103X[, [3Xm[103X] ) [32X operation[133X
  [33X[1;0Y[29X[2XLoewyLengthJulia[102X( [3XA[103X ) [32X attribute[133X
  [33X[1;0Y[29X[2XLoewyLengthJulia[102X( [3Xq[103X[, [3Xn[103X], [3Xz[103X[, [3Xm[103X] ) [32X operation[133X
  
  [33X[0;0YLet  [3Xq[103X,  [3Xn[103X,  [3Xz[103X be positive integers such that [3Xz[103X divides [3Xq[103X[10X^[110X[3Xn[103X - 1; the default
  for  [3Xn[103X is the multiplicative order of [3Xq[103X modulo [3Xz[103X. These functions return the
  Loewy length of the Singer algebra [22XA[[122X[3Xq[103X[22X,[122X[3Xn[103X[22X,[122X[3Xz[103X[22X][122X, see [2XSingerAlgebra[102X ([14X3.1-1[114X).[133X
  
  [33X[0;0YAlternatively, also a Singer algebra [3XA[103X can be given as an argument.[133X
  
  [33X[0;0YNote that it may be cheap to compute the Loewy length of this algebra, using
  criteria from [BHHK20] and [BHHK21], even if computing its Loewy vector (see
  [2XDimensionsLoewyFactors[102X ([14X3.1-4[114X)) would be hard.[133X
  
  [33X[0;0YIf  [5XJulia[105X  is available then [2XLoewyLength[102X uses [2XLoewyLengthJulia[102X, otherwise it
  uses [2XLoewyLengthGAP[102X.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XA:= SingerAlgebra( 6, 2, 7 );[127X[104X
    [4X[28XA[6,2,7][128X[104X
    [4X[25Xgap>[125X [27XLoewyLength( A );[127X[104X
    [4X[28X3[128X[104X
  [4X[32X[104X
  
  [1X3.1-7 SufficientCriterionForLoewyBoundAttained[101X
  
  [33X[1;0Y[29X[2XSufficientCriterionForLoewyBoundAttained[102X( [3Xq[103X, [3Xn[103X, [3Xz[103X, [3Xm[103X ) [32X function[133X
  [6XReturns:[106X  [33X[0;10Ya string.[133X
  
  [33X[0;0YLet  [3Xq[103X,  [3Xn[103X,  [3Xz[103X,  [3Xm[103X  be  positive  integers,  where  [3Xq[103X  and  [3Xz[103X  are  coprime.
  [2XSufficientCriterionForLoewyBoundAttained[102X returns a string that describes the
  criterion  from  [BHHK20]  or  [BHHK21] from which it follows that the Loewy
  length  of  the algebra [22XA[[122X[3Xq[103X,[3Xz[103X[22X][122X is equal to the upper bound [22X⌊ [3Xn[103X ([3Xq[103X-1) / [3Xm[103X ⌋ +
  1[122X,  where  [3Xn[103X[22X=[122X[10XOrderMod([110X[3Xq[103X[10X,  [110X[3Xz[103X[10X)[110X,  [22Xe  = ([3Xq[103X^[3Xn[103X-1) / [3Xz[103X[122X, and [22Xm = m([3Xq[103X, e)[122X; if no such
  criterion was found then the returned string is empty.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27Xexpls:= [ [3,2], [2,5], [3,70], [13,70], [19,70], [5,72],[127X[104X
    [4X[25X>[125X [27X             [2,73], [5,76], [11,80], [13,80], [2,85], [4,123],[127X[104X
    [4X[25X>[125X [27X             [3,164], [4,369], [2,771], [15,791] ];;[127X[104X
    [4X[25Xgap>[125X [27Xfor l in expls do[127X[104X
    [4X[25X>[125X [27X     q:= l[1];  z:= l[2];  n:= OrderMod( q, z );  e:= (q^n-1)/z;[127X[104X
    [4X[25X>[125X [27X     nn:= OrderModExt( q, e, n );[127X[104X
    [4X[25X>[125X [27X     m:= MinimalDegreeOfSingerAlgebra( q, nn, e );[127X[104X
    [4X[25X>[125X [27X     Print( "q = ", String( q, 2 ), ", z = ", String( z, 3 ), ":  ",[127X[104X
    [4X[25X>[125X [27X     SufficientCriterionForLoewyBoundAttained( q, n, z, m ), "\n" );[127X[104X
    [4X[25X>[125X [27X   od;[127X[104X
    [4X[28Xq =  3, z =   2:  Cor. I.7.1 (n <= 3)[128X[104X
    [4X[28Xq =  2, z =   5:  z < 70[128X[104X
    [4X[28Xq =  3, z =  70:  [128X[104X
    [4X[28Xq = 13, z =  70:  Thm. I.7.1[128X[104X
    [4X[28Xq = 19, z =  70:  La. I.7.1 (iii)[128X[104X
    [4X[28Xq =  5, z =  72:  La. II.4.1 for r = 1[128X[104X
    [4X[28Xq =  2, z =  73:  Prop. II.6.1 (e <= 32)[128X[104X
    [4X[28Xq =  5, z =  76:  Prop. II.5.1 (ii)[128X[104X
    [4X[28Xq = 11, z =  80:  Prop. II.5.3, II.5.6 (e | (q^n-1)/(q-1), n <= 5)[128X[104X
    [4X[28Xq = 13, z =  80:  Prop. II.3.15[128X[104X
    [4X[28Xq =  2, z =  85:  La. I.6.3[128X[104X
    [4X[28Xq =  4, z = 123:  Prop. II.5.1 (iii)[128X[104X
    [4X[28Xq =  3, z = 164:  La. II.5.2 (ii)[128X[104X
    [4X[28Xq =  4, z = 369:  Prop. II.5.1 (i)[128X[104X
    [4X[28Xq =  2, z = 771:  La. II.4.1[128X[104X
    [4X[28Xq = 15, z = 791:  Thm. II.4.3 (iii)[128X[104X
  [4X[32X[104X
  
  
  [1X3.1-8 [33X[0;0YMinimalDegreeOfSingerAlgebra[133X[101X
  
  [33X[1;0Y[29X[2XMinimalDegreeOfSingerAlgebra[102X( [3XA[103X ) [32X attribute[133X
  [33X[1;0Y[29X[2XMinimalDegreeOfSingerAlgebra[102X( [3Xq[103X, [3Xe[103X ) [32X operation[133X
  [33X[1;0Y[29X[2XMinimalDegreeOfSingerAlgebraGAP[102X( [3XA[103X ) [32X attribute[133X
  [33X[1;0Y[29X[2XMinimalDegreeOfSingerAlgebraGAP[102X( [3Xq[103X, [3Xe[103X ) [32X operation[133X
  [33X[1;0Y[29X[2XMinimalDegreeOfSingerAlgebraJulia[102X( [3XA[103X ) [32X attribute[133X
  [33X[1;0Y[29X[2XMinimalDegreeOfSingerAlgebraJulia[102X( [3Xq[103X, [3Xe[103X ) [32X operation[133X
  [6XReturns:[106X  [33X[0;10Ya positive integer.[133X
  
  [33X[0;0YFor  two  coprime  positive  integers  [3Xq[103X and [3Xe[103X, [2XMinimalDegreeOfSingerAlgebra[102X
  computes  the  minimal  number of powers of [3Xq[103X such that [3Xe[103X divides the sum of
  these powers.[133X
  
  [33X[0;0YIf  a  Singer  algebra  [22XA[q,z][122X is given as the argument [3XA[103X (see [2XSingerAlgebra[102X
  ([14X3.1-1[114X))  then the value for the parameters [22Xq[122X and [22Xe = (q^n-1)/z[122X is returned,
  where  [22Xn[122X  is  the multiplicate order of [22Xq[122X modulo [22Xz[122X, see [2XOrderMod[102X ([14XReference:
  OrderMod[114X); note that the minimal degree does not depend on [22Xn[122X.[133X
  
  [33X[0;0YThe   same   value   is   returned  by  [2XMinimalDegreeOfSingerAlgebraGAP[102X  and
  [2XMinimalDegreeOfSingerAlgebraJulia[102X,  which  use  implementations  in  [5XGAP[105X and
  [5XJulia[105X,  respectively.  [2XMinimalDegreeOfSingerAlgebra[102X  delegates  to the [5XJulia[105X
  variant  if  the package [5XJuliaInterface[105X is available, and to the [5XGAP[105X variant
  otherwise.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XA:= SingerAlgebra( 6, 2, 7 );[127X[104X
    [4X[28XA[6,2,7][128X[104X
    [4X[25Xgap>[125X [27XMinimalDegreeOfSingerAlgebra( A );[127X[104X
    [4X[28X5[128X[104X
    [4X[25Xgap>[125X [27XMinimalDegreeOfSingerAlgebra( 6, 5 );[127X[104X
    [4X[28X5[128X[104X
  [4X[32X[104X
  
  [1X3.1-9 RadicalSeriesOfAlgebra[101X
  
  [33X[1;0Y[29X[2XRadicalSeriesOfAlgebra[102X( [3XA[103X ) [32X attribute[133X
  
  [33X[0;0YFor   an   algebra  [3XA[103X  with  radical  [3XJ[103X  (see  [2XRadicalOfAlgebra[102X  ([14XReference:
  RadicalOfAlgebra[114X)), [2XRadicalSeriesOfAlgebra[102X returns the list [22X[ J^0, J^1, J^2,
  J^3, ..., J^k ][122X, where [22Xk[122X is the smallest index such that [22XJ^k[122X is zero.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XA:= SingerAlgebra( 2, 7 );[127X[104X
    [4X[28XA[2,3,7][128X[104X
    [4X[25Xgap>[125X [27Xser:= RadicalSeriesOfAlgebra( A );[127X[104X
    [4X[28X[ A[2,3,7], <algebra of dimension 7 over Rationals>, [128X[104X
    [4X[28X  <algebra of dimension 4 over Rationals>, [128X[104X
    [4X[28X  <algebra of dimension 1 over Rationals>, [128X[104X
    [4X[28X  <algebra of dimension 0 over Rationals> ][128X[104X
  [4X[32X[104X
  
  [1X3.1-10 SocleSeriesOfAlgebra[101X
  
  [33X[1;0Y[29X[2XSocleSeriesOfAlgebra[102X( [3XA[103X ) [32X attribute[133X
  
  [33X[0;0YFor  an  algebra  [3XA[103X,  [2XSocleSeriesOfAlgebra[102X returns the list [22X[ S_0, S_1, S_2,
  S_3, ..., S_k ][122X, where [22XS_0[122X is the trivial subalgebra of [3XA[103X and [22XS_{i+1}/S_i[122X is
  the  socle  of  [3XA[103X[22X/S_i[122X  and  [22Xk[122X is the smallest index such that [22XS_k =[122X [3XA[103X holds.
  (Thus [3XS_1[103X is the socle of [3XA[103X.)[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XA:= SingerAlgebra( 2, 7 );[127X[104X
    [4X[28XA[2,3,7][128X[104X
    [4X[25Xgap>[125X [27Xser:= SocleSeriesOfAlgebra( A );[127X[104X
    [4X[28X[ <algebra of dimension 0 over Rationals>, [128X[104X
    [4X[28X  <algebra of dimension 1 over Rationals>, [128X[104X
    [4X[28X  <algebra of dimension 4 over Rationals>, [128X[104X
    [4X[28X  <algebra of dimension 7 over Rationals>, A[2,3,7] ][128X[104X
  [4X[32X[104X
  
  
  [1X3.1-11 [33X[0;0YLoewyStructureInfo[133X[101X
  
  [33X[1;0Y[29X[2XLoewyStructureInfo[102X( [3XA[103X ) [32X attribute[133X
  [33X[1;0Y[29X[2XLoewyStructureInfoGAP[102X( [3XA[103X ) [32X attribute[133X
  [33X[1;0Y[29X[2XLoewyStructureInfoJulia[102X( [3XA[103X ) [32X attribute[133X
  [33X[1;0Y[29X[2XLoewyStructureInfo[102X( [3Xq[103X[, [3Xn[103X], [3Xz[103X ) [32X operation[133X
  [33X[1;0Y[29X[2XLoewyStructureInfoGAP[102X( [3Xq[103X[, [3Xn[103X], [3Xz[103X ) [32X operation[133X
  [33X[1;0Y[29X[2XLoewyStructureInfoJulia[102X( [3Xq[103X[, [3Xn[103X], [3Xz[103X ) [32X operation[133X
  
  [33X[0;0YFor  a Singer algebra [3XA[103X (see [2XSingerAlgebra[102X ([14X3.1-1[114X)) with parameters [3Xq[103X, [3Xn[103X, [3Xz[103X,
  or  for  these  parameters  themselves,  these  three operations compute the
  distribution  of  the  canonical  basis in [22XA[[3Xq[103X,[3Xz[103X][122X to Loewy layers, using the
  algorithm from [BHHK20, Proposition 3.2].[133X
  
  [33X[0;0YLet [22Xe = ([3Xq[103X^{[3Xn[103X}-1)/[3Xz[103X[122X.[133X
  
  [33X[0;0Y[2XLoewyStructureInfoJulia[102X  returns  a  [5XJulia[105X  dictionary  whose  keys  are the
  following symbols.[133X
  
  [8X[10X:monomials[110X[8X[108X
        [33X[0;6Ythe  array of reversed (see [2XCoefficientsQadicReversed[102X ([14X3.1-12[114X)) [3Xq[103X-adic
        expansions for multiples of [22Xe[122X, each of length [3Xn[103X,[133X
  
  [8X[10X:layers[110X[8X[108X
        [33X[0;6Ythe array of the Loewy layers to which the monomials belong,[133X
  
  [8X[10X:chain[110X[8X[108X
        [33X[0;6Yan array of positions of monomials of a longest ascending chain,[133X
  
  [8X[10X:m[110X[8X[108X
        [33X[0;6Ythe value [22Xm([3Xq[103X, e)[122X (see [2XMinimalDegreeOfSingerAlgebra[102X ([14X3.1-8[114X)[133X
  
  [8X[10X:LL[110X[8X[108X
        [33X[0;6Ythe  Loewy  length of [3XA[103X (see [2XLoewyLength[102X ([14X3.1-6[114X)), equal to the length
        of the [10X:layers[110X value plus [22X1[122X,[133X
  
  [8X[10X:parameters[110X[8X[108X
        [33X[0;6Ythe array [10X[ [110X[3Xq[103X[10X, [110X[3Xn[103X[10X, [110X[3Xz[103X[10X ][110X of parameters of [3XA[103X.[133X
  
  [33X[0;0Y[2XLoewyStructureInfoGAP[102X  returns  a  [5XGAP[105X record whose components correspond to
  the  keys  listed  above.  [2XLoewyStructureInfo[102X  returns the same; however, if
  [5XJulia[105X  is available then this result is computed by converting the result of
  [2XLoewyStructureInfoJulia[102X to a [5XGAP[105X object.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XLoewyStructureInfo( 6, 7 );[127X[104X
    [4X[28Xrec( LL := 3, chain := [ 8, 2, 1 ], [128X[104X
    [4X[28X  layers := [ 0, 1, 1, 1, 1, 1, 1, 2 ], m := 5, [128X[104X
    [4X[28X  monomials := [ [ 0, 0 ], [ 0, 5 ], [ 1, 4 ], [ 2, 3 ], [ 3, 2 ], [128X[104X
    [4X[28X      [ 4, 1 ], [ 5, 0 ], [ 5, 5 ] ], parameters := [ 6, 2, 7 ] )[128X[104X
  [4X[32X[104X
  
  [1X3.1-12 CoefficientsQadicReversed[101X
  
  [33X[1;0Y[29X[2XCoefficientsQadicReversed[102X( [3Xk[103X, [3Xz[103X, [3Xq[103X, [3Xn[103X ) [32X function[133X
  
  [33X[0;0YLet [3Xk[103X, [3Xz[103X, [3Xq[103X, [3Xn[103X be positive integers such that [22X0 ≤[122X [3Xk[103X [22X≤[122X [3Xz[103X, [3Xq[103X [22X> 1[122X, and [3Xn[103X [22X> 0[122X.[133X
  
  [33X[0;0YThis  function  computes  the  coefficients of the [3Xq[103X-adic expansion of [22Xe =[122X [3Xk[103X
  [22X([122X[3Xq[103X[10X^[110X[3Xn[103X[22X-1)/[122X[3Xz[103X,  of  length [3Xn[103X, without creating this number, which may be a large
  integer although all arguments are small (see [BHHK21, Remark 2.23 (iv)] and
  section [14X2.2-1[114X).[133X
  
  [33X[0;0YIf  [22Xe = v_n[122X [3Xq[103X[22X^0 + v_{n-1}[122X [3Xq[103X[22X^1 + ⋯ + v_1[122X [3Xq[103X[22X^{n-1}[122X then the returned array is [22X[
  v_1, v_2, ..., v_n ][122X.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XCoefficientsQadicReversed( 2, 7, 6, 2 );[127X[104X
    [4X[28X[ 1, 4 ][128X[104X
    [4X[25Xgap>[125X [27Xe:= (6^2-1)/7;[127X[104X
    [4X[28X5[128X[104X
    [4X[25Xgap>[125X [27XCoefficientsQadic( 2*e, 6 );[127X[104X
    [4X[28X[ 4, 1 ][128X[104X
  [4X[32X[104X
  
  
  [1X3.2 [33X[0;0YVisualization of Singer Algebras[133X[101X
  
  [33X[0;0YThe  following functions can be used to show the canonical basis of a Singer
  algebra  in  a  two-dimensional  array,  where  the rows correspond to Loewy
  layers.[133X
  
  
  [1X3.2-1 [33X[0;0YDisplaySingerMonomials[133X[101X
  
  [33X[1;0Y[29X[2XDisplaySingerMonomials[102X( [3XA[103X ) [32X function[133X
  [33X[1;0Y[29X[2XDisplaySingerMonomials[102X( [3Xq[103X, [3Xz[103X ) [32X function[133X
  [33X[1;0Y[29X[2XDisplaySingerMonomials[102X( [3Xq[103X, [3Xn[103X, [3Xe[103X ) [32X function[133X
  [6XReturns:[106X  [33X[0;10Ynothing.[133X
  
  [33X[0;0YLet [3XA[103X be a Singer algebra [22XA[[3Xq[103X, n, [3Xz[103X][122X, where [22Xn[122X is the multiplicative order of
  [3Xq[103X  modulo  [3Xz[103X,  or  let  [3Xq[103X  and [3Xz[103X be two coprime integers that define such an
  algebra [22XA[[3Xq[103X, n, [3Xz[103X][122X, or let [3Xq[103X, [3Xn[103X, [3Xe[103X be parameters such that [22X[3Xz[103X = ([3Xq[103X^{[3Xn[103X}-1) / [3Xe[103X[122X
  holds.[133X
  
  [33X[0;0Y[2XDisplaySingerMonomials[102X  prints a table showing three column parts: The first
  column contains the positions [22X0, 1, ...[122X of the Loewy layers of [3XA[103X, the second
  column  contains  the  dimensions  of  the  Loewy  layers, and the remaining
  columns  describe the elements of the canonical basis of [3XA[103X in each layer; by
  default,  the  element [22Xb_i[122X is represented by [22Xi[122X, but when the global option [10Xm[110X
  is  present  (which  stands  for  [21Xmonomials[121X)  then [22XB_i[122X is represented by the
  coefficients of the [3Xq[103X-adic expansion of [22Xi [3Xe[103X[122X.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XDisplaySingerMonomials( 2, 7 );  # e = 1[127X[104X
    [4X[28XA[2,3,7][128X[104X
    [4X[28X[128X[104X
    [4X[28X0 | 1 | 0[128X[104X
    [4X[28X1 | 3 | 1 2 4[128X[104X
    [4X[28X2 | 3 | 3 5 6[128X[104X
    [4X[28X3 | 1 | 7[128X[104X
    [4X[25Xgap>[125X [27XDisplaySingerMonomials( 2, 7 : m );  # same, show monomials[127X[104X
    [4X[28XA[2,3,7][128X[104X
    [4X[28X[128X[104X
    [4X[28X0 | 1 | (0,0,0)[128X[104X
    [4X[28X1 | 3 | (0,0,1) (0,1,0) (1,0,0)[128X[104X
    [4X[28X2 | 3 | (0,1,1) (1,0,1) (1,1,0)[128X[104X
    [4X[28X3 | 1 | (1,1,1)[128X[104X
    [4X[25Xgap>[125X [27XDisplaySingerMonomials( 9, 8 : m );  # uniserial case[127X[104X
    [4X[28XA[9,1,8][128X[104X
    [4X[28X[128X[104X
    [4X[28X0 | 1 | (0)[128X[104X
    [4X[28X1 | 1 | (1)[128X[104X
    [4X[28X2 | 1 | (2)[128X[104X
    [4X[28X3 | 1 | (3)[128X[104X
    [4X[28X4 | 1 | (4)[128X[104X
    [4X[28X5 | 1 | (5)[128X[104X
    [4X[28X6 | 1 | (6)[128X[104X
    [4X[28X7 | 1 | (7)[128X[104X
    [4X[28X8 | 1 | (8)[128X[104X
    [4X[25Xgap>[125X [27XDisplaySingerMonomials( 6, 7 : m );  # Loewy length 3[127X[104X
    [4X[28XA[6,2,7][128X[104X
    [4X[28X[128X[104X
    [4X[28X0 | 1 | (0,0)[128X[104X
    [4X[28X1 | 6 | (0,5) (1,4) (2,3) (3,2) (4,1) (5,0)[128X[104X
    [4X[28X2 | 1 | (5,5)[128X[104X
    [4X[25Xgap>[125X [27XDisplaySingerMonomials( 14, 15 : m );  # wrapped output[127X[104X
    [4X[28XA[14,2,15][128X[104X
    [4X[28X[128X[104X
    [4X[28X0 |  1 | ( 0, 0)[128X[104X
    [4X[28X1 | 14 | ( 0,13) ( 1,12) ( 2,11) ( 3,10) ( 4, 9) ( 5, 8) ( 6, 7)[128X[104X
    [4X[28X  |    | ( 7, 6) ( 8, 5) ( 9, 4) (10, 3) (11, 2) (12, 1) (13, 0)[128X[104X
    [4X[28X2 |  1 | (13,13)[128X[104X
  [4X[32X[104X
  
  
  [1X3.2-2 [33X[0;0YBrowseSingerMonomials[133X[101X
  
  [33X[1;0Y[29X[2XBrowseSingerMonomials[102X( [3XA[103X ) [32X function[133X
  [33X[1;0Y[29X[2XBrowseSingerMonomials[102X( [3Xq[103X, [3Xz[103X ) [32X function[133X
  [33X[1;0Y[29X[2XBrowseSingerMonomials[102X( [3Xq[103X, [3Xn[103X, [3Xe[103X ) [32X function[133X
  [6XReturns:[106X  [33X[0;10Ynothing.[133X
  
  [33X[0;0YLet [3XA[103X be a Singer algebra [22XA[[3Xq[103X, n, [3Xz[103X][122X, where [22Xn[122X is the multiplicative order of
  [3Xq[103X  modulo  [3Xz[103X,  or  let  [3Xq[103X  and [3Xz[103X be two coprime integers that define such an
  algebra [22XA[[3Xq[103X, n, [3Xz[103X][122X, or let [3Xq[103X, [3Xn[103X, [3Xe[103X be parameters such that [22X[3Xz[103X = ([3Xq[103X^{[3Xn[103X}-1) / [3Xe[103X[122X
  holds.[133X
  
  [33X[0;0Y[2XBrowseSingerMonomials[102X  opens  a Browse table showing three column parts: The
  first  column contains the positions [22X0, 1, ...[122X of the Loewy layers of [3XA[103X, the
  second column contains the dimensions of the Loewy layers, and the remaining
  columns  describe the elements of the canonical basis of [3XA[103X in each layer; by
  default,  the  element [22Xb_i[122X is represented by [22Xi[122X, but when the global option [10Xm[110X
  is  present  (which  stands  for  [21Xmonomials[121X)  then [22XB_i[122X is represented by the
  coefficients  of  the  [3Xq[103X-adic  expansion  of  [22Xi [3Xe[103X[122X. The first two columns are
  regarded  as  row labels, that is, their horizontal position is fixed on the
  screen when one scrolls to the left or right in the third column[133X
  
  [33X[0;0Y[2XBrowseSingerMonomials[102X  is  based  on  the  [2XNCurses.BrowseDenseList[102X  ([14XBrowse:
  NCurses.BrowseDenseList[114X)  function  from  the  [5XBrowse[105X  package [BL20]; it is
  available only if this package is available.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27Xif IsBound( BrowseSingerMonomials ) then[127X[104X
    [4X[25X>[125X [27X  n:= [ 14, 14, 14 ];;  # ``do nothing'' input[127X[104X
    [4X[25X>[125X [27X  BrowseData.SetReplay( Concatenation( n, n, "Q" ) );[127X[104X
    [4X[25X>[125X [27X  BrowseSingerMonomials( 2, 7 );[127X[104X
    [4X[25X>[125X [27X  BrowseData.SetReplay( false );[127X[104X
    [4X[25X>[125X [27Xfi;[127X[104X
  [4X[32X[104X
  
  
  [1X3.2-3 [33X[0;0YChanging the display format: User preference [10XDisplayFunction[110X[101X[1X[133X[101X
  
  [33X[0;0YThe  way  how  the  function  [2XDisplaySingerMonomials[102X  ([14X3.2-1[114X)  shows tabular
  information  can  be customized via the user preference [10X"DisplayFunction"[110X of
  the  [5XSingerAlg[105X  package.  The value must be a string that evaluates to a [5XGAP[105X
  function.   Useful  values  are  [10X"Print"[110X  (see  [2XPrint[102X  ([14XReference:  Print[114X)),
  [10X"PrintFormattedString"[110X        (see       [2XPrintFormattedString[102X       ([14XGAPDoc:
  PrintFormattedString[114X)  in  [LN19]),  and [10X"SingerAlg.Pager"[110X, which means that
  [2XPager[102X  ([14XReference:  Pager[114X)  is  called  with  the [10Xformatted[110X option, which is
  necessary for switching off [5XGAP[105X's automatic line breaking. The default value
  is  [10X"SingerAlg.Pager"[110X  if  [10XGAPInfo.TermEncoding[110X  has  the value [10X"UTF-8"[110X, and
  [10X"Print"[110X otherwise.[133X
  
  
  [1X3.3 [33X[0;0YSinger Algebras as Combinatorial Structures[133X[101X
  
  [33X[0;0YMany  interesting  subalgebras and subspaces [22XU[122X, say, of a Singer algebra [22XA =
  A[q,z][122X  or  [22XA  =  A[q,z]_p[122X  have  vector space bases that are subsets of the
  canonical  basis  [22XB(A)[122X,  that  is, [22XU[122X is spanned by the set [22XU ∩ B(A)[122X. We call
  these  subspaces  [13Xcombinatorial[113X,  and  write  [22XB(U) = U ∩ B(A)[122X, the canonical
  basis   of   [22XU[122X.   The   examples   of   combinatorial  subspaces  for  which
  implementations are provided are listed below.[133X
  
  [33X[0;0YEach of the [5XGAP[105X functions in question returns the set of indices [22Xi[122X such that
  the basis vectors [22XB(A[q,z])_i[122X are members of [22XB(U)[122X. The idea is that this set
  can  be  computed  combinatorially,  without  performing  computations  with
  elements  of  the  algebra  [22XA[122X, and that for example the product space of two
  combinatorial  subspaces  is  again  combinatorial.  The availability of the
  attribute   [2XGeneratingSubsetOfCanonicalBasisOfSingerAlgebra[102X   ([14X3.3-1[114X)  in  a
  subspace  [22XU[122X  marks [22XU[122X as combinatorial, and the attribute value is the set of
  indices of [22XB(U)[122X.[133X
  
  [1X3.3-1 GeneratingSubsetOfCanonicalBasisOfSingerAlgebra[101X
  
  [33X[1;0Y[29X[2XGeneratingSubsetOfCanonicalBasisOfSingerAlgebra[102X( [3XU[103X ) [32X attribute[133X
  
  [33X[0;0YLet  [3XU[103X be a subspace of a Singer algebra [22XA[122X, say. If this attribute is set in
  [3XU[103X then the value is a strictly sorted list of nonnegative integers such that
  the  corresponding  subset  of  the canonical basis of [22XA[122X is a basis of [3XU[103X. In
  particular,  [3XU[103X  is  a  combinatorial  subspace of [22XA[122X, see the introduction of
  Section [14X3.3[114X.[133X
  
  [33X[0;0YThere is no default method for computing the value of this attribute. On the
  other  hand,  if  the  value  is  known  then there are efficient methods to
  compute annihilators, product spaces, etc.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XA:= SingerAlgebra( 3, 7 );[127X[104X
    [4X[28XA[3,6,7][128X[104X
    [4X[25Xgap>[125X [27XJ:= RadicalOfAlgebra( A );;[127X[104X
    [4X[25Xgap>[125X [27XHasGeneratingSubsetOfCanonicalBasisOfSingerAlgebra( J );[127X[104X
    [4X[28Xtrue[128X[104X
    [4X[25Xgap>[125X [27XGeneratingSubsetOfCanonicalBasisOfSingerAlgebra( J );[127X[104X
    [4X[28X[ 2 .. 8 ][128X[104X
    [4X[25Xgap>[125X [27XP:= ProductSpace( J, J );[127X[104X
    [4X[28X<vector space of dimension 1 over Rationals>[128X[104X
    [4X[25Xgap>[125X [27XHasGeneratingSubsetOfCanonicalBasisOfSingerAlgebra( P );[127X[104X
    [4X[28Xtrue[128X[104X
    [4X[25Xgap>[125X [27XGeneratingSubsetOfCanonicalBasisOfSingerAlgebra( P );[127X[104X
    [4X[28X[ 8 ][128X[104X
    [4X[25Xgap>[125X [27XV:= Subspace( A, Basis( A ){ [ 2, 3 ] } );;[127X[104X
    [4X[25Xgap>[125X [27XHasGeneratingSubsetOfCanonicalBasisOfSingerAlgebra( V );[127X[104X
    [4X[28Xfalse[128X[104X
  [4X[32X[104X
  
  [1X3.3-2 SingerAlg.MultTable[101X
  
  [33X[1;0Y[29X[2XSingerAlg.MultTable[102X( [3Xdata[103X ) [32X function[133X
  
  [33X[0;0YLet  [3Xdata[103X  be  the  record  returned  by [2XLoewyStructureInfoGAP[102X ([14X3.1-11[114X) that
  describes  a  Singer  algebra  [22XA[q,z][122X, and let [22XB = B(A)[122X. [2XSingerAlg.MultTable[102X
  returns  the  [22X(z+1)  ×  (z+1)[122X matrix that contains at the position [22X(i,j)[122X the
  value  [22Xi+j-1[122X  if the product [22XB_i ⋅ B_j[122X is nonzero (hence equal to [22XB_{i+j-1}[122X,
  the [22Xi+j-1[122X-th basis vector), and [22X0[122X otherwise.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27Xdata:= LoewyStructureInfoGAP( 2, 3, 7 );;[127X[104X
    [4X[25Xgap>[125X [27XDisplay( SingerAlg.MultTable( data ) );[127X[104X
    [4X[28X[ [  1,  2,  3,  4,  5,  6,  7,  8 ],[128X[104X
    [4X[28X  [  2,  0,  4,  0,  6,  0,  8,  0 ],[128X[104X
    [4X[28X  [  3,  4,  0,  0,  7,  8,  0,  0 ],[128X[104X
    [4X[28X  [  4,  0,  0,  0,  8,  0,  0,  0 ],[128X[104X
    [4X[28X  [  5,  6,  7,  8,  0,  0,  0,  0 ],[128X[104X
    [4X[28X  [  6,  0,  8,  0,  0,  0,  0,  0 ],[128X[104X
    [4X[28X  [  7,  8,  0,  0,  0,  0,  0,  0 ],[128X[104X
    [4X[28X  [  8,  0,  0,  0,  0,  0,  0,  0 ] ][128X[104X
  [4X[32X[104X
  
  [33X[0;0YThe  multiplication table of a Singer algebra of dimension [22XN[122X has the value [22XN[122X
  on  the  antidiagonal  ([22Xi+j  =  N+1[122X),  is  zero  below the antidiagonal, and
  contains only [22XN-i[122X and zero on the [22Xi[122X parallel above the antidiagonal.[133X
  
  
  [1X3.3-3 [33X[0;0YSingerAlg.BasisOfSum and SingerAlg.BasisOfIntersection[133X[101X
  
  [33X[1;0Y[29X[2XSingerAlg.BasisOfSum[102X( [3Xdata[103X, [3XI[103X, [3XJ[103X ) [32X function[133X
  [33X[1;0Y[29X[2XSingerAlg.BasisOfIntersection[102X( [3Xdata[103X, [3XI[103X, [3XJ[103X ) [32X function[133X
  
  [33X[0;0YFor  two subsets [3XI[103X, [3XJ[103X of [22X{ 1, 2, ..., z+1 }[122X, these functions just return the
  union and the intersection, respectively, of [3XI[103X and [3XJ[103X.[133X
  
  [33X[0;0Y[3XI[103X and [3XJ[103X describe subsets of a basis, which generate the spaces [22XU[122X and [22XV[122X, say,
  then  the  result  describes the subset of this basis that generates the sum
  and the intersection, respectively, of [22XU[122X and [22XV[122X.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XSingerAlg.BasisOfSum( data, [ 1, 2, 3 ], [ 2, 4, 6 ] );[127X[104X
    [4X[28X[ 1, 2, 3, 4, 6 ][128X[104X
    [4X[25Xgap>[125X [27XSingerAlg.BasisOfIntersection( data, [ 1, 2, 3 ], [ 2, 4, 6 ] );[127X[104X
    [4X[28X[ 2 ][128X[104X
  [4X[32X[104X
  
  [1X3.3-4 SingerAlg.BasisOfProductSpace[101X
  
  [33X[1;0Y[29X[2XSingerAlg.BasisOfProductSpace[102X( [3Xdata[103X, [3XI[103X, [3XJ[103X ) [32X function[133X
  
  [33X[0;0YLet  [3Xdata[103X  be  the  record  returned  by [2XLoewyStructureInfoGAP[102X ([14X3.1-11[114X) that
  describes a Singer algebra [22XA = A[q,z][122X, let [22XB = B(A)[122X, and let [3XI[103X, [3XJ[103X be subsets
  of  [22X{ 1, 2, ..., z+1 }[122X, describing subspaces [22XU[122X, [22XV[122X of [22XA[122X with bases [22X( B_i; i ∈
  I  )[122X and [22X( B_i; i ∈ J )[122X, respectively. [2XSingerAlg.BasisOfProductSpace[102X returns
  the  subset  [22XK[122X  of [22X{ 1, 2, ..., z+1 }[122X such that [22X( B_i; i ∈ K )[122X is a basis of
  the product space [22XU ⋅ V[122X.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27Xdata:= LoewyStructureInfoGAP( 2, 7 );;[127X[104X
    [4X[25Xgap>[125X [27Xradser:= SingerAlg.BasesOfRadicalSeries( data );[127X[104X
    [4X[28X[ [ 2 .. 8 ], [ 4, 6, 7, 8 ], [ 8 ] ][128X[104X
    [4X[25Xgap>[125X [27XSingerAlg.BasisOfProductSpace( data, radser[1], radser[1] );[127X[104X
    [4X[28X[ 4, 6, 7, 8 ][128X[104X
    [4X[25Xgap>[125X [27XSingerAlg.BasisOfProductSpace( data, radser[1], radser[2] );[127X[104X
    [4X[28X[ 8 ][128X[104X
    [4X[25Xgap>[125X [27XSingerAlg.BasisOfProductSpace( data, radser[2], radser[2] );[127X[104X
    [4X[28X[  ][128X[104X
  [4X[32X[104X
  
  [1X3.3-5 SingerAlg.BasisOfIdeal[101X
  
  [33X[1;0Y[29X[2XSingerAlg.BasisOfIdeal[102X( [3Xdata[103X, [3XI[103X ) [32X function[133X
  
  [33X[0;0YLet  [3Xdata[103X  be  the  record  returned  by [2XLoewyStructureInfoGAP[102X ([14X3.1-11[114X) that
  describes  a  Singer algebra [22XA = A[q,z][122X, let [22XB = B(A)[122X, and let [3XI[103X be a subset
  of  [22X{ 1, 2, ..., z+1 }[122X, describing a subspace [22XU[122X of [22XA[122X with basis [22X( B_i; i ∈ I
  )[122X.  [2XSingerAlg.BasisOfIdeal[102X  returns  the subset [22XJ[122X of [22X{ 1, 2, ..., z+1 }[122X such
  that [22X( B_i; i ∈ J )[122X is a basis of the ideal [22XU ⋅ A[122X.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27Xdata:= LoewyStructureInfoGAP( 2, 7 );;[127X[104X
    [4X[25Xgap>[125X [27XSingerAlg.BasisOfIdeal( data, [ 4 ] );[127X[104X
    [4X[28X[ 4, 8 ][128X[104X
  [4X[32X[104X
  
  [1X3.3-6 SingerAlg.BasisOfAnnihilator[101X
  
  [33X[1;0Y[29X[2XSingerAlg.BasisOfAnnihilator[102X( [3Xdata[103X, [3XI[103X ) [32X function[133X
  
  [33X[0;0YLet  [3Xdata[103X  be  the  record  returned  by [2XLoewyStructureInfoGAP[102X ([14X3.1-11[114X) that
  describes  a  Singer algebra [22XA = A[q,z][122X, let [22XB = B(A)[122X, and let [3XI[103X be a subset
  of  [22X{ 1, 2, ..., z+1 }[122X, describing a subspace [22XU[122X of [22XA[122X with basis [22X( B_i; i ∈ I
  )[122X.  [2XSingerAlg.BasisOfAnnihilator[102X  returns the subset [22XJ[122X of [22X{ 1, 2, ..., z+1 }[122X
  such  that [22X( B_i; i ∈ J )[122X is a basis of the annihilator [22X{ x ∈ A; x ⋅ U = 0 }[122X
  of [22XU[122X in [22XA[122X.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27Xdata:= LoewyStructureInfoGAP( 2, 7 );;[127X[104X
    [4X[25Xgap>[125X [27Xradser:= SingerAlg.BasesOfRadicalSeries( data );[127X[104X
    [4X[28X[ [ 2 .. 8 ], [ 4, 6, 7, 8 ], [ 8 ] ][128X[104X
    [4X[25Xgap>[125X [27XList( radser, I -> SingerAlg.BasisOfAnnihilator( data, I ) );[127X[104X
    [4X[28X[ [ 8 ], [ 4, 6, 7, 8 ], [ 2, 3, 4, 5, 6, 7, 8 ] ][128X[104X
  [4X[32X[104X
  
  [1X3.3-7 SingerAlg.BasesOfRadicalSeries[101X
  
  [33X[1;0Y[29X[2XSingerAlg.BasesOfRadicalSeries[102X( [3Xdata[103X ) [32X function[133X
  
  [33X[0;0YLet  [3Xdata[103X  be  the  record  returned  by [2XLoewyStructureInfoGAP[102X ([14X3.1-11[114X) that
  describes   a   Singer   algebra   [22XA   =   A[q,z][122X,   and   let   [22XB  =  B(A)[122X.
  [2XSingerAlg.BasesOfRadicalSeries[102X  returns  the  list [22X[ I_1, I_2, ..., I_l ][122X of
  subsets  of  [22X{ 1, 2, ..., z+1 }[122X such that [22X( B_i; i ∈ I_j )[122X is a basis of the
  [22Xj[122X-th  power of the Jacobson radical [22XJ[122X of [22XA[122X, and such that [22XJ^l[122X is nonzero and
  [22XJ^{l+1}[122X is zero.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27Xdata:= LoewyStructureInfoGAP( 2, 7 );;[127X[104X
    [4X[25Xgap>[125X [27Xradser:= SingerAlg.BasesOfRadicalSeries( data );[127X[104X
    [4X[28X[ [ 2 .. 8 ], [ 4, 6, 7, 8 ], [ 8 ] ][128X[104X
  [4X[32X[104X
  
  [1X3.3-8 SingerAlg.BasesOfSocleSeries[101X
  
  [33X[1;0Y[29X[2XSingerAlg.BasesOfSocleSeries[102X( [3Xdata[103X ) [32X function[133X
  
  [33X[0;0YLet  [3Xdata[103X  be  the  record  returned  by [2XLoewyStructureInfoGAP[102X ([14X3.1-11[114X) that
  describes   a   Singer   algebra   [22XA   =   A[q,z][122X,   and   let   [22XB  =  B(A)[122X.
  [2XSingerAlg.BasesOfSocleSeries[102X  returns  the  list  [22X[  I_1, I_2, ..., I_l ][122X of
  subsets  of [22X{ 1, 2, ..., z+1 }[122X such that [22X( B_i; i ∈ I_j )[122X is a basis of [22XS_j[122X,
  where [22XS_1[122X is the socle of [22XA[122X, [22XS_{j+1}/S_j[122X is the socle of [3XA[103X[22X/S_j[122X, and [3XA[103X[22X/S_l[122X is
  nonzero and its own socle.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27Xsocser:= SingerAlg.BasesOfSocleSeries( data );[127X[104X
    [4X[28X[ [ 8 ], [ 4, 6, 7, 8 ], [ 2 .. 8 ] ][128X[104X
  [4X[32X[104X
  
  [1X3.3-9 SingerAlg.BasisOfPowers[101X
  
  [33X[1;0Y[29X[2XSingerAlg.BasisOfPowers[102X( [3Xdata[103X, [3XI[103X, [3Xp[103X, [3Xm[103X ) [32X function[133X
  
  [33X[0;0YLet   [3Xp[103X   be   a   prime  integer,  let  [3Xdata[103X  be  the  record  returned  by
  [2XLoewyStructureInfoGAP[102X  ([14X3.1-11[114X)  that describes a Singer algebra [22XA = A[q,z][122X,
  let  [22XB  =  B(A_p)[122X,  let  [3XI[103X  be  a subset of [22X{ 1, 2, ..., z+1 }[122X, describing a
  subspace  [22XU[122X  of  [22XA_p[122X  with  basis  [22X(  B_i;  i ∈ I )[122X, and let [3Xm[103X be a positive
  integer.  [2XSingerAlg.BasisOfPowers[102X returns the subset [22XJ[122X of [22X{ 1, 2, ..., z+1 }[122X
  such  that  [22X(  B_i; i ∈ J )[122X is a basis of the subspace [22X{ x^{p^m}; x ∈ U }[122X of
  [22XA_p[122X.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27Xdata:= LoewyStructureInfoGAP( 3, 8 );;[127X[104X
    [4X[25Xgap>[125X [27XSingerAlg.BasisOfPowers( data, [ 1 .. 9 ], 2, 1 );[127X[104X
    [4X[28X[ 1, 3, 7, 9 ][128X[104X
    [4X[25Xgap>[125X [27XSingerAlg.BasisOfPowers( data, [ 1 .. 9 ], 2, 2 );[127X[104X
    [4X[28X[ 1 ][128X[104X
    [4X[25Xgap>[125X [27XSingerAlg.BasisOfPowers( data, [ 1 .. 9 ], 3, 1 );[127X[104X
    [4X[28X[ 1 ][128X[104X
  [4X[32X[104X
  
  [1X3.3-10 SingerAlg.BasisOfPMRoots[101X
  
  [33X[1;0Y[29X[2XSingerAlg.BasisOfPMRoots[102X( [3Xdata[103X, [3XI[103X, [3Xp[103X, [3Xm[103X ) [32X function[133X
  
  [33X[0;0YLet   [3Xp[103X   be   a   prime  integer,  let  [3Xdata[103X  be  the  record  returned  by
  [2XLoewyStructureInfoGAP[102X  ([14X3.1-11[114X)  that describes a Singer algebra [22XA = A[q,z][122X,
  let  [22XB  =  B(A_p)[122X,  let  [3XI[103X  be  a subset of [22X{ 1, 2, ..., z+1 }[122X, describing a
  subspace  [22XU[122X  of  [22XA_p[122X  with  basis  [22X(  B_i;  i ∈ I )[122X, and let [3Xm[103X be a positive
  integer. (See Section [14X1.2[114X for the definition of [22XA_p[122X.)[133X
  
  [33X[0;0Y[2XSingerAlg.BasisOfPMRoots[102X  returns  the  subset  [22XJ[122X of [22X{ 1, 2, ..., z+1 }[122X such
  that  [22X(  B_i; i ∈ J )[122X is a basis of the subspace [22X{ x ∈ A_p; x^{p^m} ∈ U }[122X of
  [22XA_p[122X.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27Xdata:= LoewyStructureInfoGAP( 3, 8 );;[127X[104X
    [4X[25Xgap>[125X [27XSingerAlg.BasisOfPMRoots( data, [], 2, 1 );[127X[104X
    [4X[28X[ 3, 6, 7, 8, 9 ][128X[104X
    [4X[25Xgap>[125X [27XSingerAlg.BasisOfPMRoots( data, [], 2, 2 );[127X[104X
    [4X[28X[ 2, 3, 4, 5, 6, 7, 8, 9 ][128X[104X
    [4X[25Xgap>[125X [27XSingerAlg.BasisOfPMRoots( data, [ 3 ], 2, 1 );[127X[104X
    [4X[28X[ 2, 3, 6, 7, 8, 9 ][128X[104X
  [4X[32X[104X
  
  [1X3.3-11 SingerAlg.BasisOfPC[101X
  
  [33X[1;0Y[29X[2XSingerAlg.BasisOfPC[102X( [3Xdata[103X, [3XI[103X, [3XJ[103X ) [32X function[133X
  
  [33X[0;0YLet  [3Xdata[103X  be  the  record  returned  by [2XLoewyStructureInfoGAP[102X ([14X3.1-11[114X) that
  describes  a Singer algebra [22XA = A[q,z][122X, let [22XB = B(A)[122X, let [3XI[103X and [22XJ[122X be subsets
  of [22X{ 1, 2, ..., z+1 }[122X, describing subspaces [22XU[122X and [22XV[122X of [22XA[122X with bases [22X( B_i; i
  ∈  I  )[122X  and  [22X(  B_i; i ∈ J )[122X, respectively. [2XSingerAlg.BasisOfPC[102X returns the
  subset  [22XK[122X  of  [22X{ 2, 3, ..., z+1 }[122X such that [22X( B_i; i ∈ K )[122X is a basis of the
  subspace [22X{ x ∈ J(A); x ⋅ U ⊆ V }[122X of [22XJ(A)[122X.[133X
  
  [33X[0;0Y(The  perhaps  strange name [21XBasisOfPC[121X was chosen because the result contains
  the indices of those basis vectors such that the [13XP[113Xroduct with the space [22XU[122X is
  [13XC[113Xontained in the space [22XV[122X.)[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27Xdata:= LoewyStructureInfoGAP( 23, 585 );;[127X[104X
    [4X[25Xgap>[125X [27Xsoc:= SingerAlg.BasesOfSocleSeries( data );;[127X[104X
    [4X[25Xgap>[125X [27Xrad:= SingerAlg.BasesOfRadicalSeries( data );;[127X[104X
    [4X[25Xgap>[125X [27XI1:= SingerAlg.BasisOfPC( data, soc[3], rad[3] );;[127X[104X
    [4X[25Xgap>[125X [27XLength( I1 );[127X[104X
    [4X[28X581[128X[104X
    [4X[25Xgap>[125X [27Xdata:= LoewyStructureInfoGAP( 212, 585 );;[127X[104X
    [4X[25Xgap>[125X [27Xsoc:= SingerAlg.BasesOfSocleSeries( data );;[127X[104X
    [4X[25Xgap>[125X [27Xrad:= SingerAlg.BasesOfRadicalSeries( data );;[127X[104X
    [4X[25Xgap>[125X [27XI2:= SingerAlg.BasisOfPC( data, soc[3], rad[3] );;[127X[104X
    [4X[25Xgap>[125X [27XLength( I2 );[127X[104X
    [4X[28X545[128X[104X
  [4X[32X[104X
  
  
  [1X3.4 [33X[0;0YPermutation Isomorphism of Singer Algebras[133X[101X
  
  [33X[0;0YProving that two given Singer algebras are isomorphic is in general hard. An
  easier  question  is  whether  an  algebra  isomorphism exists that maps the
  canonical  basis  of  the  first  to the canonical basis of the second. (And
  fortunately this situation occurs in quite a few cases, see [14X4.3-4[114X.)[133X
  
  [33X[0;0YThe   following  functions  can  be  used  to  check  for  such  permutation
  isomorphisms.[133X
  
  [1X3.4-1 SingerAlg.IsInducedAlgebraIsomorphism[101X
  
  [33X[1;0Y[29X[2XSingerAlg.IsInducedAlgebraIsomorphism[102X( [3Xt1[103X, [3Xt2[103X, [3Xperm[103X ) [32X function[133X
  [6XReturns:[106X  [33X[0;10Y[9Xtrue[109X or [9Xfalse[109X.[133X
  
  [33X[0;0YLet  [3Xt1[103X and [3Xt2[103X be the multiplication tables of two Singer algebras [22XA_1[122X, [22XA_2[122X,
  respectively,   of   the   same   dimension   [22Xz+1[122X,   say,   as  returned  by
  [2XSingerAlg.MultTable[102X  ([14X3.3-2[114X).  Let  [3Xperm[103X be a permutation with largest moved
  point at most [22Xz[122X.[133X
  
  [33X[0;0YThis function returns [9Xtrue[109X if mapping the [22Xi[122X-th vector of the canonical basis
  of  [22XA_1[122X  to  the  [22Xi[122X[10X^[110X[3Xperm[103X-th  vector of the canonical basis of [22XA_2[122X defines an
  algebra isomorphism, and [9Xfalse[109X otherwise.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27X# Loewy length 3, naturally isomorphic[127X[104X
    [4X[25Xgap>[125X [27Xt1:= SingerAlg.MultTable( LoewyStructureInfo( 3, 7 ) );;[127X[104X
    [4X[25Xgap>[125X [27Xt2:= SingerAlg.MultTable( LoewyStructureInfo( 6, 7 ) );;[127X[104X
    [4X[25Xgap>[125X [27XSingerAlg.IsInducedAlgebraIsomorphism( t1, t2, () );[127X[104X
    [4X[28Xtrue[128X[104X
    [4X[25Xgap>[125X [27X# q1 and q2 generate the same group of residues modulo z,[127X[104X
    [4X[25Xgap>[125X [27X# naturally isomorphic[127X[104X
    [4X[25Xgap>[125X [27Xt1:= SingerAlg.MultTable( LoewyStructureInfo( 2, 7 ) );;[127X[104X
    [4X[25Xgap>[125X [27Xt2:= SingerAlg.MultTable( LoewyStructureInfo( 4, 7 ) );;[127X[104X
    [4X[25Xgap>[125X [27XSingerAlg.IsInducedAlgebraIsomorphism( t1, t2, () );[127X[104X
    [4X[28Xtrue[128X[104X
    [4X[25Xgap>[125X [27X# one of the explicitly computed natural isomorphisms[127X[104X
    [4X[25Xgap>[125X [27Xt1:= SingerAlg.MultTable( LoewyStructureInfo( 3, 65 ) );;[127X[104X
    [4X[25Xgap>[125X [27Xt2:= SingerAlg.MultTable( LoewyStructureInfo( 9, 65 ) );;[127X[104X
    [4X[25Xgap>[125X [27XSingerAlg.IsInducedAlgebraIsomorphism( t1, t2, () );[127X[104X
    [4X[28Xtrue[128X[104X
    [4X[25Xgap>[125X [27X# one of the explicitly computed permutation isomorphisms[127X[104X
    [4X[25Xgap>[125X [27X# that are not natural isomorphisms[127X[104X
    [4X[25Xgap>[125X [27Xt1:= SingerAlg.MultTable( LoewyStructureInfo(  41, 275 ) );;[127X[104X
    [4X[25Xgap>[125X [27Xt2:= SingerAlg.MultTable( LoewyStructureInfo( 116, 275 ) );;[127X[104X
    [4X[25Xgap>[125X [27XSingerAlg.IsInducedAlgebraIsomorphism( t1, t2, () );[127X[104X
    [4X[28Xfalse[128X[104X
    [4X[25Xgap>[125X [27Xpi:= (2,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3)[127X[104X
    [4X[25X>[125X [27X(28,29,30,31,32)(38,39,40,41,42)(43,44,45,46,47,48,49,50)[127X[104X
    [4X[25X>[125X [27X(54,55,57,79,77,94,91,89,87,83,82,81,80,78,76,75,74,73,72,64,65,63,62,[127X[104X
    [4X[25X>[125X [27X61,60)[127X[104X
    [4X[25X>[125X [27X(85,99,97,93,90,88,86)(92,108,107,106,105,98,96,95)[127X[104X
    [4X[25X>[125X [27X(109,110,112,113,115)[127X[104X
    [4X[25X>[125X [27X(114,116,117,120,118,121,124,127,119,122,125,129,132,149,146,144,143,[127X[104X
    [4X[25X>[125X [27X142,141,140,154,151,147,163,161,160,157,159,156,153,150,158,155,152,[127X[104X
    [4X[25X>[125X [27X148,145,128,131,133,134,135,136,137,123,126,130)(162,168,167,165,164)[127X[104X
    [4X[25X>[125X [27X(169,170,171,172,179,181,182,185)(178,180,184,187,189,191,192)[127X[104X
    [4X[25X>[125X [27X(183,186,188,190,194,195,196,197,199,201,202,203,204,205,213,212,214,[127X[104X
    [4X[25X>[125X [27X215,216,217,223,222,220,198,200)(227,234,233,232,231,230,229,228)[127X[104X
    [4X[25X>[125X [27X(235,239,238,237,236)(245,249,248,247,246)[127X[104X
    [4X[25X>[125X [27X(253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,[127X[104X
    [4X[25X>[125X [27X270,271,272,273,274,275);;[127X[104X
    [4X[25Xgap>[125X [27XSingerAlg.IsInducedAlgebraIsomorphism( t1, t2, pi );[127X[104X
    [4X[28Xtrue[128X[104X
    [4X[25Xgap>[125X [27XSingerAlg.IsInducedAlgebraIsomorphism( t1, t2, pi^-1 );[127X[104X
    [4X[28Xfalse[128X[104X
  [4X[32X[104X
  
  [1X3.4-2 SingerAlg.ProposedPermutationIsomorphism[101X
  
  [33X[1;0Y[29X[2XSingerAlg.ProposedPermutationIsomorphism[102X( [3Xdata1[103X, [3Xdata2[103X ) [32X function[133X
  [6XReturns:[106X  [33X[0;10Ya string, a permutation, or [9Xfail[109X.[133X
  
  [33X[0;0YLet  [3Xdata1[103X and [3Xdata2[103X be the [2XLoewyStructureInfo[102X ([14X3.1-11[114X) values of two Singer
  algebras [22XA_1[122X, [22XA_2[122X, respectively, of the same dimension [22Xz+1[122X, say.[133X
  
  [33X[0;0YThis function returns either a string that describes why there is no algebra
  isomorphism  induced  by  mapping the canonical basis of [22XA_1[122X to the permuted
  canonical  basis of [22XA_2[122X, or [9Xfail[109X (indicating that the relevant functionality
  of  the  [5XGraPe[105X  package  is  not available), or a permutation [22Xπ[122X such that at
  least the following necessary conditions for such a mapping are satisfied.[133X
  
  [30X    [33X[0;6Y[22Xπ[122X  maps pairs [22X(i,j)[122X where [22Xb_i ⋅ b_j[122X is zero to pairs [22X(k,l)[122X where [22XB_k ⋅
        B_l[122X is zero.[133X
  
  [30X    [33X[0;6YThe  basis vectors [22Xb_i[122X and [22XB_{π(i)}[122X lie in the same Loewy layer and in
        the same socle layer.[133X
  
  [30X    [33X[0;6YThe  basis  vector  [22Xb_i[122X is a [22Xp^m[122X-th power if and only if [22XB_{π(i)}[122X is a
        [22Xp^m[122X-th power.[133X
  
  [33X[0;0YThe  first  condition  is forced via a call to the function [2XGraphIsomorphism[102X
  ([14XGRAPE:  GraphIsomorphism[114X)  (which is based on [McK90]) from the [5XGAP[105X package
  [5XGraPe[105X  [Soi19]  with  two graphs whose incidence relation is defined by this
  property,  and  the  other conditions are translated into colorings of these
  graphs.[133X
  
  [33X[0;0YWhen     a     permutation    is    returned,    one    can    check    with
  [2XSingerAlg.IsInducedAlgebraIsomorphism[102X ([14X3.4-1[114X) whether it does in fact induce
  an  algebra isomorphism. (For Singer algebras [22XA[q,z][122X with [22Xz ≤ 10000[122X, this is
  always the case, see Section [14X4.3-4[114X.)[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27X# a canonical isomorphism[127X[104X
    [4X[25Xgap>[125X [27Xdata1:= LoewyStructureInfo( 3, 7 );;[127X[104X
    [4X[25Xgap>[125X [27Xdata2:= LoewyStructureInfo( 6, 7 );;[127X[104X
    [4X[25Xgap>[125X [27XSingerAlg.ProposedPermutationIsomorphism( data1, data2 );[127X[104X
    [4X[28X()[128X[104X
    [4X[25Xgap>[125X [27X# a proper permutation isomorphism[127X[104X
    [4X[25Xgap>[125X [27Xdata1:= LoewyStructureInfo(  41, 275 );;[127X[104X
    [4X[25Xgap>[125X [27Xdata2:= LoewyStructureInfo( 116, 275 );;[127X[104X
    [4X[25Xgap>[125X [27Xpi:= SingerAlg.ProposedPermutationIsomorphism( data1, data2 );;[127X[104X
    [4X[25Xgap>[125X [27Xt1:= SingerAlg.MultTable( data1 );;[127X[104X
    [4X[25Xgap>[125X [27Xt2:= SingerAlg.MultTable( data2 );;[127X[104X
    [4X[25Xgap>[125X [27XSingerAlg.IsInducedAlgebraIsomorphism( t1, t2, pi );[127X[104X
    [4X[28Xtrue[128X[104X
    [4X[25Xgap>[125X [27X# no permutation isomorphism[127X[104X
    [4X[25Xgap>[125X [27Xdata1:= LoewyStructureInfo(  11, 171 );;[127X[104X
    [4X[25Xgap>[125X [27Xdata2:= LoewyStructureInfo(  68, 171 );;[127X[104X
    [4X[25Xgap>[125X [27XSingerAlg.ProposedPermutationIsomorphism( data1, data2 );[127X[104X
    [4X[28X"different distributions of products"[128X[104X
  [4X[32X[104X
  
  
  [1X3.5 [33X[0;0YInvariants of Singer Algebras[133X[101X
  
  [33X[0;0YThe  following  functions  can  be used to prove the nonisomorphism of given
  Singer algebras via invariants.[133X
  
  [1X3.5-1 ConsiderInvariantsByParameters[101X
  
  [33X[1;0Y[29X[2XConsiderInvariantsByParameters[102X( [3Xz[103X, [3Xqs[103X[, [3Xbounds[103X] ) [32X function[133X
  [6XReturns:[106X  [33X[0;10Ya record.[133X
  
  [33X[0;0YLet  [3Xz[103X  [22X∈ { 1, 2, ..., 10000 }[122X, and [3Xqs[103X be a list of prime residues modulo [3Xz[103X.
  [2XConsiderInvariantsByParameters[102X  tries  to  find  an invariant (under algebra
  isomorphisms)  that  is not equal for all Singer algebras [22XA[q,[122X[3Xz[103X[22X][122X, for [22Xq ∈[122X[3Xqs[103X.
  The  invariants  used  here  are the dimensions of suitable subspaces or the
  numbers of solutions of suitable equations.[133X
  
  [33X[0;0YThe  function  returns  a  record with at least the components [10Xsuccess[110X (with
  value  [9Xtrue[109X  if  an  invariant  was  found  that  distinguishes at least two
  algebras  corresponding  to [3Xqs[103X, and [9Xfalse[109X otherwise) and [10Xcomment[110X (a string).
  If  the  search  was successful then the result contains also the components
  [10Xlabel[110X  (a  string  that  decribes the distinguishing invariant) and [10Xlists[110X (a
  partition of [3Xqs[103X according to the values of this invariant).[133X
  
  [33X[0;0YIf  a record [3Xbounds[103X is given then it controls how many checks are performed,
  as follows.[133X
  
  [30X    [33X[0;6YIf the component [10Xmaxnumber[110X is bound then the function returns a record
        with [10Xsuccess[110X value [9Xfalse[109X as soon as at least [10Xmaxnumber[110X invariants have
        been checked without success; the default value of [10Xmaxnumber[110X is [22X100[122X.[133X
  
  [30X    [33X[0;6YIf  the  components  [10XRCdim[110X  and  [10XRCnum[110X  are  bound  then  the function
        [2XSingerAlg.NumberOfProductsInSubspace[102X  ([14X3.5-3[114X)  gets  called  after the
        combinatorial  invariants  have  been  computed,  with  the  first two
        arguments  taken  from  the  first  [10XRCnum[110X of these invariants and with
        third   argument   equal   to   the   value   of  [10XRCdim[110X;  by  default,
        [2XSingerAlg.NumberOfProductsInSubspace[102X ([14X3.5-3[114X) is not called at all.[133X
  
        [33X[0;6YIf  such a call is successful for two subspaces [22XU[122X and [22XV[122X then the [10Xlabel[110X
        component of the result has the form [10X"RC([110X[22XU[122X[10X,[110X[22XV[122X[10X)"[110X.[133X
  
  [30X    [33X[0;6YIf  the component [10XLL4QuoDerMax[110X is bound then its value is taken as the
        [10Xmaxdim[110X argument of [2XSingerAlg.LL4QuoDerDim[102X ([14X3.5-4[114X), the default is [22X50[122X.[133X
  
  [30X    [33X[0;6YIf  the component [10XSubquoDerMax[110X is bound then its value is taken as the
        [10Xmaxdim[110X argument of [2XSingerAlg.SubquoDerDim[102X ([14X3.5-5[114X), the default is [22X50[122X.[133X
  
  [33X[0;0YThe following invariant subspaces of a Singer algebra [22XA[122X or its reduction [22XA_p[122X
  modulo some prime [22Xp[122X, respectively, are considered.[133X
  
  [30X    [33X[0;6YThe  members  [22XJ(A)^i[122X  of  the  radical  series of [22XA[122X (denoted by [10X"J^1"[110X,
        [10X"J^2"[110X,  [22X...[122X in the [10Xlabel[110X component; see [2XSingerAlg.BasesOfRadicalSeries[102X
        ([14X3.3-7[114X)),[133X
  
  [30X    [33X[0;6Ythe  members [22XS(A)_i[122X of the socle series of [22XA[122X (denoted by [10X"S_1"[110X, [10X"S_2"[110X,
        [22X...[122X; see [2XSingerAlg.BasesOfSocleSeries[102X ([14X3.3-8[114X)),[133X
  
  [30X    [33X[0;6Ythe  space of elements in [22XA_p[122X whose [22Xp^m[122X-th powers are zero, for primes
        [22Xp[122X   and   positive   integers   [22Xm[122X   (denoted  by  [10X"Roots(0,[110X[22Xp[122X[10X,[110X[22Xm[122X[10X)"[110X;  see
        [2XSingerAlg.BasisOfPMRoots[102X ([14X3.3-10[114X)),[133X
  
  [30X    [33X[0;6Ythe  ideal  in  [22XA[122X  or  [22XA_p[122X  that is spanned by an invariant subspace [22XU[122X
        described    in    this    list    (denoted    by    [10X"Ideal([110X[22XU[122X[10X)"[110X;   see
        [2XSingerAlg.BasisOfIdeal[102X ([14X3.3-5[114X)),[133X
  
  [30X    [33X[0;6Ythe  annihilator  in  [22XA[122X or [22XA_p[122X of an invariant subspace [22XU[122X described in
        this       list       (denoted      by      [10X"Annihilator([110X[22XU[122X[10X)"[110X;      see
        [2XSingerAlg.BasisOfAnnihilator[102X ([14X3.3-6[114X)),[133X
  
  [30X    [33X[0;6Ythe space of [22Xp^m[122X-th powers of elements in [22XU[122X, for primes [22Xp[122X and positive
        integers  [22Xm[122X, where [22XU[122X is an invariant subspace of [22XA[122X or [22XA_p[122X described in
        this  list  (denoted  by  [10X"Power([110X[22XU[122X[10X,[110X[22Xp[122X[10X,[110X[22Xm[122X[10X)"[110X;  see [2XSingerAlg.BasisOfPowers[102X
        ([14X3.3-9[114X)),[133X
  
  [30X    [33X[0;6Ythe  space of elements in [22XA_p[122X whose [22Xp^m[122X-th powers are in [22XU[122X, for primes
        [22Xp[122X  and  positive  integers [22Xm[122X, where [22XU[122X is an invariant subspace of [22XA[122X or
        [22XA_p[122X   described   in   this   list  (denoted  by  [10X"Roots([110X[22XU[122X[10X,[110X[22Xp[122X[10X,[110X[22Xm[122X[10X)"[110X;  see
        [2XSingerAlg.BasisOfPMRoots[102X ([14X3.3-10[114X)),[133X
  
  [30X    [33X[0;6Ythe  product  space  of  two subspaces [22XU[122X, [22XV[122X in the same characteristic
        (denoted by [10X"Prod([110X[22XU[122X[10X,[110X[22XV[122X[10X)"[110X; see [2XSingerAlg.BasisOfProductSpace[102X ([14X3.3-4[114X)),[133X
  
  [30X    [33X[0;6Ythe  sum  of two subspaces [22XU[122X, [22XV[122X in the same characteristic (denoted by
        [10X"Sum([110X[22XU[122X[10X,[110X[22XV[122X[10X)"[110X; see [2XSingerAlg.BasisOfSum[102X ([14X3.3-3[114X)),[133X
  
  [30X    [33X[0;6Ythe  intersection  of  two  subspaces  [22XU[122X, [22XV[122X in the same characteristic
        (denoted  by  [10X"Intersection([110X[22XU[122X[10X,[110X[22XV[122X[10X)"[110X;  see  [2XSingerAlg.BasisOfIntersection[102X
        ([14X3.3-3[114X)),[133X
  
  [30X    [33X[0;6Ythe  space of elements [22X{ x ∈ J(A); x ⋅ U ⊆ V }[122X, for two subspaces [22XU[122X, [22XV[122X
        in    the    same    characteristic   (denoted   by   [10X"PC([110X[22XU[122X[10X,[110X[22XV[122X[10X)"[110X;   see
        [2XSingerAlg.BasisOfPC[102X ([14X3.3-11[114X)),[133X
  
  [33X[0;0YA basis for the invariant subspace can be recovered from the [10Xlabel[110X string of
  the result, using the function [2XSingerAlg.InfoFromInvariantString[102X ([14X3.5-2[114X).[133X
  
  [33X[0;0YA  different  kind  of invariant is given by the number of solutions of some
  equation, as computed with [2XSingerAlg.NumberOfProductsInSubspace[102X ([14X3.5-3[114X), the
  corresponding   label   has   the   form   [10X"RC([110X[22XU[122X[10X,[110X[22XV[122X[10X)"[110X,   and   the   function
  [2XSingerAlg.InfoFromInvariantString[102X  ([14X3.5-2[114X) can be used to compute the number
  of solutions.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27Xinv:= ConsiderInvariantsByParameters( 117, [ 29, 35 ] );[127X[104X
    [4X[28Xrec( comment := "total 12 invariants checked", [128X[104X
    [4X[28X  label := "Prod(Annihilator(Power(J^1,2,1)),Roots(0,2,1))", [128X[104X
    [4X[28X  lists := [ [ 29 ], [ 35 ] ], success := true )[128X[104X
    [4X[25Xgap>[125X [27XConsiderInvariantsByParameters( 247, [ 37, 46 ] );[127X[104X
    [4X[28Xrec( comment := "total 4 invariants plus LL4QuoDerDim checked", [128X[104X
    [4X[28X  label := "LL4QuoDerDim", lists := [ [ 46 ], [ 37 ] ], [128X[104X
    [4X[28X  success := true )[128X[104X
    [4X[25Xgap>[125X [27XConsiderInvariantsByParameters( 171, [ 11, 68 ] );[127X[104X
    [4X[28Xrec( comment := "no decision, checked 11 invariants", [128X[104X
    [4X[28X  labels := [ "J^3", "Power(J^1,2,1)", "Annihilator(Roots(0,2,1))", [128X[104X
    [4X[28X      "Sum(Power(J^1,2,1),J^3)", [128X[104X
    [4X[28X      "Sum(Power(J^1,2,1),Annihilator(Roots(0,2,1)))", "J^2", "S_2", [128X[104X
    [4X[28X      "Annihilator(Sum(Power(J^1,2,1),Annihilator(Roots(0,2,1))))", [128X[104X
    [4X[28X      "Roots(0,2,1)", "Annihilator(Power(J^1,2,1))", "J^1" ], [128X[104X
    [4X[28X  success := false )[128X[104X
    [4X[25Xgap>[125X [27Xres:= ConsiderInvariantsByParameters( 171, [ 11, 68 ],[127X[104X
    [4X[25X>[125X [27X             rec( SubquoDerMax:= 158 ) );;[127X[104X
    [4X[25Xgap>[125X [27Xres.success;[127X[104X
    [4X[28Xtrue[128X[104X
  [4X[32X[104X
  
  [1X3.5-2 SingerAlg.InfoFromInvariantString[101X
  
  [33X[1;0Y[29X[2XSingerAlg.InfoFromInvariantString[102X( [3Xdata[103X, [3Xstr[103X ) [32X function[133X
  [6XReturns:[106X  [33X[0;10Ya record.[133X
  
  [33X[0;0YLet  [3Xdata[103X be a [5XGAP[105X record as returned by [2XLoewyStructureInfoGAP[102X ([14X3.1-11[114X) or a
  [5XJulia[105X  dictionary  as  returned  by  [2XLoewyStructureInfoJulia[102X ([14X3.1-11[114X), which
  describes  a  Singer algebra [22XA[122X, say, and let [3Xstr[103X be a string as in the [10Xlabel[110X
  component of a record returned by [2XConsiderInvariantsByParameters[102X ([14X3.5-1[114X).[133X
  
  [33X[0;0Y[2XSingerAlg.InfoFromInvariantString[102X returns a record with one of the following
  components.[133X
  
  [8X[10XbasisIndices[110X[8X:[108X
        [33X[0;6Ythe  list  [22XI[122X  of indices such that [22X{ B(A)_i; i ∈ I }[122X is a basis of the
        subspace defined by [3Xstr[103X,[133X
  
  [8X[10XderivationsDim[110X[8X:[108X
        [33X[0;6Ythe   dimension   of  the  algebra  of  derivations  (see  [2XDerivations[102X
        ([14XReference: Derivations[114X)) of the algebra,[133X
  
  [8X[10XLL4QuoDerDim[110X[8X:[108X
        [33X[0;6Ythe  dimension of the algebra of derivations of the algebra considered
        by the function [2XSingerAlg.LL4QuoDerDim[102X ([14X3.5-4[114X) or its [5XJulia[105X variant,[133X
  
  [8X[10XSubquoDerDim[110X[8X:[108X
        [33X[0;6Ythe  dimension  of  the  algebra  of  derivations  of  the subquotient
        described    by    [3Xstr[103X    that   is   considered   by   the   function
        [2XSingerAlg.SubquoDerDim[102X ([14X3.5-5[114X) or its [5XJulia[105X variant,[133X
  
  [8X[10XsolutionCount[110X[8X:[108X
        [33X[0;6Ythe  pair [22X[ e, o ][122X such that the number of solutions is [22X2^e ⋅ o[122X, where
        [22Xo[122X is an odd number.[133X
  
  [33X[0;0YIf  [3Xdata[103X  is  a [5XGAP[105X record then the invariants in question are computed with
  [5XGAP[105X functions, otherwise the [5XJulia[105X implementations are used.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XSingerAlg.InfoFromInvariantString([127X[104X
    [4X[25X>[125X [27X       LoewyStructureInfoGAP( 29, 6, 117 ),[127X[104X
    [4X[25X>[125X [27X       "Prod(Annihilator(Power(J^1,2,1)),Roots(0,2,1))" );[127X[104X
    [4X[28Xrec( basisIndices := [ 36, 64, 69, 73, 80, 93, 95, 100, 101, 118 ] )[128X[104X
    [4X[25Xgap>[125X [27XSingerAlg.InfoFromInvariantString([127X[104X
    [4X[25X>[125X [27X       LoewyStructureInfoGAP( 35, 6, 117 ),[127X[104X
    [4X[25X>[125X [27X       "Prod(Annihilator(Power(J^1,2,1)),Roots(0,2,1))" );[127X[104X
    [4X[28Xrec( basisIndices := [ 37, 51, 60, 64, 73, 77, 86, 87, 91, 100, 109, [128X[104X
    [4X[28X      113, 118 ] )[128X[104X
    [4X[25Xgap>[125X [27XSingerAlg.InfoFromInvariantString([127X[104X
    [4X[25X>[125X [27X       LoewyStructureInfoGAP( 2, 3, 7 ),[127X[104X
    [4X[25X>[125X [27X       "Derivations" );[127X[104X
    [4X[28Xrec( derivationsDim := 24 )[128X[104X
    [4X[25Xgap>[125X [27XSingerAlg.InfoFromInvariantString([127X[104X
    [4X[25X>[125X [27X       LoewyStructureInfoGAP( 37, 12, 247 ),[127X[104X
    [4X[25X>[125X [27X       "LL4QuoDerDim" );[127X[104X
    [4X[28Xrec( LL4QuoDerDim := 656 )[128X[104X
    [4X[25Xgap>[125X [27XSingerAlg.InfoFromInvariantString([127X[104X
    [4X[25X>[125X [27X       LoewyStructureInfoGAP( 68, 6, 171 ),[127X[104X
    [4X[25X>[125X [27X       "SubquoDerDim(J^2,J^3)" );[127X[104X
    [4X[28Xrec( SubquoDerDim := 2025 )[128X[104X
    [4X[25Xgap>[125X [27XSingerAlg.InfoFromInvariantString([127X[104X
    [4X[25X>[125X [27X       LoewyStructureInfoGAP( 23, 12, 259 ),[127X[104X
    [4X[25X>[125X [27X       "RC(J^3,J^1)" );[127X[104X
    [4X[28Xrec( solutionCount := [ 492, 51055 ] )[128X[104X
  [4X[32X[104X
  
  [1X3.5-3 SingerAlg.NumberOfProductsInSubspace[101X
  
  [33X[1;0Y[29X[2XSingerAlg.NumberOfProductsInSubspace[102X( [3Xdata[103X, [3XJ[103X, [3XI[103X[, [3Xbound[103X] ) [32X function[133X
  [6XReturns:[106X  [33X[0;10Ya pair of nonnegative integers, or [9Xfail[109X.[133X
  
  [33X[0;0YLet  [3Xdata[103X  be  a  record  as returned by [2XLoewyStructureInfoGAP[102X ([14X3.1-11[114X) that
  describes a Singer algebra [22XA = A[q,z][122X, let [22XB = B(A)[122X, and let [3XJ[103X, [3XI[103X be subsets
  of [22X{ 1, 2, ..., z+1 }[122X, describing subspaces [22XV[122X and [22XU[122X of [22XA[122X with bases [22X( B_i; i
  ∈ J )[122X and [22X( B_i; i ∈ I )[122X, respectively.[133X
  
  [33X[0;0Y[2XSingerAlg.NumberOfProductsInSubspace[102X tries to compute the cardinality of the
  set[133X
  
  
  [24X[33X[0;6YX = { (x,y) ∈ U × U; x ⋅ y ∈ V }.[133X[124X
  
  [33X[0;0YFor that, we set[133X
  
        [22XK[122X   [22X=[122X   [22X{ i ∈ I; B_i ⋅ B_j not\in V[122X for some [22Xj ∈ I }[122X,   
        [22XS[122X   [22X=[122X   [22X{ k; 0 ≠ B_i ⋅ B_j = B_k[122X for some [22Xi, j ∈ I }[122X,   
        [22XD[122X   [22X=[122X   [22X{ k ∈ S; B_k not\in V }[122X.                        
  
  [33X[0;0YIf [22X|K|[122X is larger than [3Xbound[103X then [9Xfail[109X is returned, otherwise the list [22X[ e, o
  ][122X  such  that  [22X|X|  =  2^e ⋅ o[122X holds. The default value for [3Xbound[103X is [22X15[122X, the
  maximal  possible  value  for  [3Xbound[103X  is  [22X59[122X  (which  is  much too large for
  practical purposes).[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27Xdata:= LoewyStructureInfoGAP( 23, 12, 259 );;[127X[104X
    [4X[25Xgap>[125X [27Xradser:= SingerAlg.BasesOfRadicalSeries( data );;[127X[104X
    [4X[25Xgap>[125X [27XSingerAlg.NumberOfProductsInSubspace( data, radser[3], radser[1] );[127X[104X
    [4X[28X[ 492, 51055 ][128X[104X
    [4X[25Xgap>[125X [27Xdata:= LoewyStructureInfoGAP( 60, 12, 259 );;[127X[104X
    [4X[25Xgap>[125X [27Xradser:= SingerAlg.BasesOfRadicalSeries( data );;[127X[104X
    [4X[25Xgap>[125X [27XSingerAlg.NumberOfProductsInSubspace( data, radser[3], radser[1] );[127X[104X
    [4X[28X[ 493, 161051 ][128X[104X
  [4X[32X[104X
  
  [33X[0;0YNote that for [22Xx = ∑_{i ∈ I} x_i B_i[122X and [22Xy = ∑_{j ∈ I} y_j B_j[122X, we have[133X
  
  
  [24X[33X[0;6Yx ⋅ y = ∑_{i, j ∈ I} x_i y_j (B_i ⋅ B_j) = v + ∑_{i, j ∈ K} x_i y_j (B_i ⋅ B_j) = v' + ∑_{k ∈ D} ( ∑_{i, j ∈ K, B_i ⋅ B_j = B_k} x_i y_j ) B_k,[133X[124X
  
  [33X[0;0Yfor  some  [22Xv,  v' ∈ V[122X, thus [22Xx ⋅ y ∈ V[122X if and only if [22Xx' M_k y' = 0[122X holds for
  all [22Xk ∈ D[122X, where [22X[M_k]_{i,j}[122X is [22X1[122X if [22XB_i ⋅ B_j = B_k[122X holds, and [22X0[122X otherwise,
  for  [22Xi, j ∈ K[122X, and where [22Xx'[122X, [22Xy'[122X are the restrictions of [22Xx, y[122X to [22XK[122X. Let [22XM(x')[122X
  be the matrix with rows [22Xx' M_k[122X, [22Xk ∈ D[122X. Then[133X
  
  
  [24X[33X[0;6Y|X| = 4^{|I|-|K|} ⋅ ∑_{x' ∈ F_2^{|K|}} 2^{|K|-rank( M(x') )}.[133X[124X
  
  [1X3.5-4 SingerAlg.LL4QuoDerDim[101X
  
  [33X[1;0Y[29X[2XSingerAlg.LL4QuoDerDim[102X( [3Xdata[103X[, [3Xmaxdim[103X] ) [32X function[133X
  [6XReturns:[106X  [33X[0;10Ya positive integer, or [9Xfail[109X.[133X
  
  [33X[0;0YLet  [3Xdata[103X  be  a  record  as returned by [2XLoewyStructureInfoGAP[102X ([14X3.1-11[114X) that
  describes a Singer algebra [22XA = A[q,z][122X of Loewy length [22X4[122X. We consider [22XA[122X as an
  algebra  over  the  field  [22XF[122X  with  two  elements. Let [22XJ[122X denote the Jacobson
  radical  of  [22XA[122X,  [22XS_2(A)[122X  denote  the annihilator of [22XJ^2[122X, and let [22XV(A)[122X be the
  [22XF[122X-vector  space generated by those elements of the canonical basis of [22XA[122X that
  lie in [22XJ(A) ∖ S_2(A)[122X.[133X
  
  [33X[0;0Y[2XSingerAlg.LL4QuoDerDim[102X  tries  to  compute  the  dimension of the algebra of
  derivations   of   the   algebra   [22X(J(A)^2   ⊕   V(A))   /   S_1(A)[122X,   using
  [2XSingerAlg.RightDerivationsDimension[102X  ([14X3.6-5[114X).  If  the  return  value  is  a
  positive integer then it is this dimension. The return value [9Xfail[109X means that
  either  [22XA[122X has Loewy length different from [22X4[122X or that the dimension of [22XV(A)[122X is
  larger than the optional argument [3Xmaxdim[103X (the default is [22X50[122X).[133X
  
  [33X[0;0Y(Note that we have [22Xdim(J(A)^2 ⊕ V(A)) = 2 dim(J(A)^2) - 1[122X.)[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27Xdata:= LoewyStructureInfoGAP( 37, 247 );;[127X[104X
    [4X[25Xgap>[125X [27XSingerAlg.LL4QuoDerDim( data );[127X[104X
    [4X[28X656[128X[104X
    [4X[25Xgap>[125X [27Xdata:= LoewyStructureInfoGAP( 46, 247 );;[127X[104X
    [4X[25Xgap>[125X [27XSingerAlg.LL4QuoDerDim( data );[127X[104X
    [4X[28X585[128X[104X
  [4X[32X[104X
  
  [1X3.5-5 SingerAlg.SubquoDerDim[101X
  
  [33X[1;0Y[29X[2XSingerAlg.SubquoDerDim[102X( [3Xdatalist[103X, [3Xlabels[103X, [3Xsubspaces[103X[, [3Xmaxdim[103X] ) [32X function[133X
  [6XReturns:[106X  [33X[0;10Ya record or [9Xfail[109X.[133X
  
  [33X[0;0YLet  [3Xdatalist[103X  be  a  list  of  length  [22Xn[122X,  say,  of  records as returned by
  [2XLoewyStructureInfoGAP[102X  ([14X3.1-11[114X),  which  belong to Singer algebras [22XA_1, A_2,
  ...,  A_n[122X  of  the  same dimension. We consider the [22XA_i[122X as algebras over the
  field [22XF[122X with two elements.[133X
  
  [33X[0;0YLet [3Xlabels[103X be a list of length [22Xm[122X, say, that consists of strings.[133X
  
  [33X[0;0YLet  [3Xsubspaces[103X be a list of length [22Xm[122X, where each entry is a list of length [22Xn[122X
  such  that [3Xsubspaces[103X[22X[i][j][122X is a list of positive integers that describes the
  basis of the subspace of [22XA_j[122X that corresponds to the label [3Xlabels[103X[22X[i][122X.[133X
  
  [33X[0;0YLet [3Xmaxdim[103X be a positive integer; the default is [22X50[122X.[133X
  
  [33X[0;0Y[2XSingerAlg.SubquoDerDim[102X  runs over the pairs [22X(i, j)[122X such that, for [22X1 ≤ k ≤ n[122X,
  both  [3Xsubspaces[103X[22X[i][k][122X  and  [3Xsubspaces[103X[22X[j][k][122X describe bases of ideals [22XI_{i,k}[122X
  and  [22XI_{j,k}[122X,  respectively,  in  [22XA_k[122X, such that [22XI_{j,k} ⊂ I_{i,k}[122X holds and
  [22XI_{i,k}  /  I_{j,k}[122X  has  dimension  at  most  [3Xmaxdim[103X.  Then it computes the
  dimensions  of  the  algebras  of  derivations  of  the  quotients [22XI_{i,k} /
  I_{j,k}[122X.[133X
  
  [33X[0;0YIf  not all of these dimensions are equal for some pair [22X(i, j)[122X then a record
  with  the  components  [10Xlabels[110X  (the  list  [10X[ [110X[22Xi[122X[10X, [110X[22Xj[122X[10X ][110X) and [10Xderdim[110X (the list of
  computed dimensions) is returned. Otherwise [9Xfail[109X is returned.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27Xz:= 171;;  qs:= [ 11, 68 ];;[127X[104X
    [4X[25Xgap>[125X [27Xdatalist:= List( qs, q -> LoewyStructureInfoGAP( q, z ) );;[127X[104X
    [4X[25Xgap>[125X [27Xids:= [ Difference( [ 2 .. z+1 ], [ 10, 37, 55, 64, 82, 100 ] ),[127X[104X
    [4X[25X>[125X [27X           [ 73, 91, 109, 118, 136, 163, 172 ] ];;[127X[104X
    [4X[25Xgap>[125X [27Xideals:= [ [ ids[1], ids[1] ], [ ids[2], ids[2] ] ];;[127X[104X
    [4X[25Xgap>[125X [27Xlabels:= [ "I", "J" ];;[127X[104X
    [4X[25Xgap>[125X [27XSingerAlg.SubquoDerDim( datalist, labels, ideals, 150 );[127X[104X
    [4X[28Xfail[128X[104X
    [4X[25Xgap>[125X [27XSingerAlg.SubquoDerDim( datalist, labels, ideals, 158 );[127X[104X
    [4X[28Xrec( derdim := [ 14179, 14201 ], labels := [ "I", "J" ] )[128X[104X
  [4X[32X[104X
  
  
  [1X3.6 [33X[0;0YMiscellaneous variables related to Singer Algebras[133X[101X
  
  [1X3.6-1 SingerAlg[101X
  
  [33X[1;0Y[29X[2XSingerAlg[102X [32X global variable[133X
  
  [33X[0;0YThis global record is used to store information about the [5XSingerAlg[105X package.
  Some of its components are documented individually, see the manual index.[133X
  
  [1X3.6-2 OrderModExt[101X
  
  [33X[1;0Y[29X[2XOrderModExt[102X( [3Xn[103X, [3Xm[103X[, [3Xbound[103X] ) [32X function[133X
  [6XReturns:[106X  [33X[0;10Ya nonnegative integer.[133X
  
  [33X[0;0YWhen  called with two arguments [3Xn[103X and [3Xm[103X, [2XOrderModExt[102X returns the same as the
  [5XGAP[105X   library   function   [2XOrderMod[102X  ([14XReference:  OrderMod[114X),  that  is,  the
  multiplicative  order  of  the integer [3Xn[103X modulo the positive integer [3Xm[103X. If [3Xn[103X
  and  [3Xm[103X  are  not  coprime the order of [3Xn[103X is not defined and [2XOrderModExt[102X will
  return [10X0[110X.[133X
  
  [33X[0;0YIf  [3Xn[103X  and  [3Xm[103X are relatively prime the multiplicative order of [3Xn[103X modulo [3Xm[103X is
  the smallest positive integer [22Xi[122X such that [22X[3Xn[103X^i ≡ 1 mod [3Xm[103X[122X.[133X
  
  [33X[0;0YIf  no  a  priori  known  multiple  [3Xbound[103X  of  the  desired  order is given,
  [2XOrderModExt[102X  usually  spends  most  of  its time factoring [3Xm[103X for computing a
  default  for  [3Xbound[103X, and then factoring [3Xbound[103X. Thus it is advisable to enter
  [3Xbound[103X whenever one knows a reasonable bound.[133X
  
  [33X[0;0YIf an incorrect [3Xbound[103X is given then the result will be wrong.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XOrderModExt( 2, 7 );[127X[104X
    [4X[28X3[128X[104X
    [4X[25Xgap>[125X [27XOrderModExt( 3, 7 );  # 3 is a primitive root modulo 7[127X[104X
    [4X[28X6[128X[104X
    [4X[25Xgap>[125X [27Xm:= (5^166-1) / 167;;      # about 10^113[127X[104X
    [4X[25Xgap>[125X [27XOrderModExt( 5, m, 166 );  # needs minutes without third argument[127X[104X
    [4X[28X166[128X[104X
  [4X[32X[104X
  
  [1X3.6-3 SingerAlg.ContentsOfDataFile[101X
  
  [33X[1;0Y[29X[2XSingerAlg.ContentsOfDataFile[102X( [3Xfilename[103X ) [32X attribute[133X
  [6XReturns:[106X  [33X[0;10Ythe [5XGAP[105X object stored in the given file.[133X
  
  [33X[0;0YLet  [3Xfilename[103X  be  a  string  that  denotes  the  name of a file in the [11Xdata[111X
  subdirectory       of       the       [5XSingerAlg[105X      package      directory.
  [2XSingerAlg.ContentsOfDataFile[102X  evaluates  the contents of this file (assuming
  that it is [5XGAP[105X readable) and returns the result.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27Xval:= SingerAlg.ContentsOfDataFile( "mqe.json" );;[127X[104X
    [4X[25Xgap>[125X [27Xval[1][2];[127X[104X
    [4X[28X"This file contains the sorted list of values '[ e, q, m(q,e) ]', "[128X[104X
  [4X[32X[104X
  
  [1X3.6-4 GrayCodeSwitchIndexIterator[101X
  
  [33X[1;0Y[29X[2XGrayCodeSwitchIndexIterator[102X( [3Xn[103X ) [32X function[133X
  [6XReturns:[106X  [33X[0;10Yan iterator (see [14X'Reference: Iterators'[114X).[133X
  
  [33X[0;0YFor  a  nonnegative  integer  [3Xn[103X,  this  function returns an iterator for the
  sequence of the positions of those bits in an [3Xn[103X-bit Gray code where the next
  flip takes place.[133X
  
  [33X[0;0YFor  [3Xn[103X  tending  to  infinity,  this  is  series  [10XA001511[110X  of the OEIS [Slo]
  ([7Xhttps://oeis.org/A001511[107X).[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27Xl:= [];;[127X[104X
    [4X[25Xgap>[125X [27Xfor i in GrayCodeSwitchIndexIterator( 4 ) do[127X[104X
    [4X[25X>[125X [27X     Add( l, i );[127X[104X
    [4X[25X>[125X [27X   od;[127X[104X
    [4X[25Xgap>[125X [27Xl;[127X[104X
    [4X[28X[ 1, 2, 1, 3, 1, 2, 1, 4, 1, 2, 1, 3, 1, 2, 1 ][128X[104X
  [4X[32X[104X
  
  [33X[0;0YThe  idea  of a Gray code is to run over the vectors of a [22XGF(2)[122X-vector space
  in such a way that subsequent vectors differ in exactly one position.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27XF:= GF(2);;  one:= One( F );;  V:= F^4;;[127X[104X
    [4X[25Xgap>[125X [27Xv:= ShallowCopy( Zero( V ) );;  l:= [ ShallowCopy( v ) ];;[127X[104X
    [4X[25Xgap>[125X [27Xfor i in GrayCodeSwitchIndexIterator( 4 ) do[127X[104X
    [4X[25X>[125X [27X     v[i]:= v[i] + one;[127X[104X
    [4X[25X>[125X [27X     Add( l, ShallowCopy( v ) );[127X[104X
    [4X[25X>[125X [27X   od;[127X[104X
    [4X[25Xgap>[125X [27XSet( l ) = Elements( V );[127X[104X
    [4X[28Xtrue[128X[104X
  [4X[32X[104X
  
  [1X3.6-5 SingerAlg.RightDerivationsDimension[101X
  
  [33X[1;0Y[29X[2XSingerAlg.RightDerivationsDimension[102X( [3XT[103X ) [32X function[133X
  [6XReturns:[106X  [33X[0;10Ya positive integer.[133X
  
  [33X[0;0YLet  [3XT[103X  be  a symmetric square matrix with [22Xn[122X rows and columns, whose entries
  are  integers in [22X[ 0 .. n ][122X. We interpret [3XT[103X as the multiplication table of a
  commutative  algebra [22XA[122X over the field with two elements, as follows. Let [22XB =
  [ b_1, b_2, ..., b_n ][122X be a basis of [22XA[122X. If [3XT[103X[22X[i,j] = k[122X holds then the product
  [22Xb_i b_j[122X is zero if [22Xk = 0[122X, and [22Xb_i b_j = b_k[122X otherwise.[133X
  
  [33X[0;0Y[2XSingerAlg.RightDerivationsDimension[102X   returns   the   dimension  of  (right)
  derivations of [22XA[122X.[133X
  
  [33X[0;0YLet  the  structure constants of [22XA[122X w.r.t. the basis [22XB[122X be [22Xc_{i,j,k}[122X, that is,
  we  have  [22Xb_i  b_j  = ∑_{k=1}^n c_{i,j,k} b_k[122X. For each pair [22X(i, j)[122X, we have
  thus  [22Xc_{i,j,k}  =  1[122X  if  [3XT[103X[22X[i,j]  =  k  (not=  0)[122X  holds, and [22Xc_{i,j,k} = 0[122X
  otherwise. A linear map [22XD: b_i ↦ ∑_{j=1}^n d_{i,j} b_j[122X is a right derivation
  if  the  equation  [22X∑_{k=1}^n  (  c_{i,j,k}  d_{k,m}  -  c_{k,j,m}  d_{i,k} -
  c_{i,k,m} d_{j,k} ) = 0[122X is satisfied for all [22X1 ≤ i, j, m ≤ n[122X. Thus the right
  derivations  of  [22XA[122X  are  given by the solution space of this linear equation
  system, in terms of the [22Xn^2[122X indeterminates [22Xd_{i,j}, 1 ≤ i, j ≤ n[122X, and we can
  compute  the  dimension of this space by computing the rank of the matrix of
  the equation system.[133X
  
  [33X[0;0YSince  the  algebra [22XA[122X is commutative, we have [22Xc_{i,j,k} = c_{j,i,k}[122X, thus we
  need only the equations with [22Xi ≤ j[122X.[133X
  
  [4X[32X  Example  [32X[104X
    [4X[25Xgap>[125X [27Xq:= 3;;  z:= 40;;  a:= SingerAlgebra( q, z, GF(2) );;[127X[104X
    [4X[25Xgap>[125X [27XT:= SingerAlg.MultTable( LoewyStructureInfo( 3, 40 ) );;[127X[104X
    [4X[25Xgap>[125X [27XSingerAlg.RightDerivationsDimension( T );[127X[104X
    [4X[28X118[128X[104X
    [4X[25Xgap>[125X [27XDimension( Derivations( CanonicalBasis( a ) ) );[127X[104X
    [4X[28X118[128X[104X
  [4X[32X[104X
  
