  
  [1X1 [33X[0;0YIntroduction to the [5XSingerAlg[105X[101X[1X Package[133X[101X
  
  
  [1X1.1 [33X[0;0YAims of the [5XSingerAlg[105X[101X[1X Package[133X[101X
  
  [33X[0;0YThe [13Xmathematical aims[113X of the package are[133X
  
  [30X    [33X[0;6Yto  document the computational results used in the papers [BHHK20] and
        [BHHK21],[133X
  
  [30X    [33X[0;6Yto  give  access  to  [5XGAP[105X  and  [5XJulia[105X  [BEKS17] implementations of the
        relevant functions (see Chapter [14X3[114X), and[133X
  
  [30X    [33X[0;6Yto give access to the known data about the Singer algebras [22XA[q,z][122X with
        [22X1  ≤  z  ≤ 10000[122X (see Section [14X1.2[114X for the background and Chapter [14X4[114X for
        the database).[133X
  
  [33X[0;0YFrom  the  viewpoint  of  [13Xprogramming[113X, the package provides examples how the
  [5XGAP[105X/[5XJulia[105X  integration  via  the  [5XJuliaInterface[105X package [BGH20] can be used
  (see  Section  [14X1.3[114X).  From  the  viewpoint of [13Xteaching[113X, some aspects of this
  package  and of the papers mentioned above would be suitable for a course in
  elementary  number theory, with accompanying computational experiments. Note
  that  one  can neglect the representation theoretic background, and restrict
  the  needed  theory  to  knowledge  of the group of prime residues modulo an
  integer,  g.c.d. computations, and linear algebra; for examples, see Chapter
  [14X2[114X, in particular Section [14X2.2[114X, and Chapter [14X4[114X.[133X
  
  
  [1X1.2 [33X[0;0YTheoretical Background: Singer algebras[133X[101X
  
  [33X[0;0YLet [22Xz[122X be a positive integer, and [22Xq ∈ { 2, 3, ..., z+1 }[122X be coprime to [22Xz[122X. Let
  [22Xn  =  ord_z(q)[122X  denote  the  multiplicative order of [22Xq[122X modulo [22Xz[122X, and let [22Xe =
  (q^n-1)/z[122X.  We define the [13XSinger algebra[113X [22XA[q,z][122X as the free [22Xℤ[122X-module spanned
  by  [22X(b_0,  b_1,  ...,  b_z)[122X where the multiplication is given by [22Xb_i ⋅ b_j =
  b_{i+j}[122X  if  the  pointwise sum of the [22Xq[122X-adic expansions of [22Xi e[122X and [22Xj e[122X does
  not exceed [22Xq-1[122X (that is, there is no carry in the [22Xq[122X-adic addition of [22Xi e[122X and
  [22Xj e[122X), and [22Xb_i ⋅ b_j = 0[122X otherwise.[133X
  
  [33X[0;0YAnother  interpretation  of  [22XA[q,z][122X  and the basis of [22Xb_i[122X is as follows (see
  [BHHK21,  Section 1]). Consider the factor of the polynomial ring [22XR = ℤ[X_1,
  X_2,  ..., X_n][122X modulo the ideal [22XI[122X spanned by [22XX_1^q, X_2^q, ..., X_n^q[122X. Then
  [22XA[q,z][122X is isomorphic to a subalgebra of this algebra, via mapping [22Xb_k[122X to the
  monomial  [22Xx_1^{i_1}  x_2^{i_2}  ⋯ x_n^{i_n}[122X, where [22Xi_1 + q i_2 + ⋯ + q^{n-1}
  i_n  =  k  e[122X  and  [22Xx_i  =  X_i  + I[122X. This interpretation motivates the terms
  [21Xmonomials[121X  for the [22Xb_i[122X and [21Xdegree[121X for the sum [22Xi_1 + i_2 + ⋯ i_n[122X; these terms
  occur in the names and descriptions of several functions of this package.[133X
  
  [33X[0;0YThe algebra [22XA[q,z][122X is called [22XA(q,n,e)[122X and [22XA[q,n,z][122X in [BHHK20] and [BHHK21],
  where  [22Xn[122X is required to be a multiple of [22Xord_e(q)[122X or [22Xord_z(q)[122X, respectively,
  and  [22Xq[122X  can  be  any  integer  larger  than  [22X1[122X  that  is  coprime to [22Xe[122X or [22Xz[122X,
  respectively.  For  the purposes of this [5XGAP[105X package, it is more suitable to
  consider  the  parameters [22Xq[122X and [22Xz[122X, as introduced above. In particular, these
  numbers  are small for low dimensional algebras, whereas the number [22Xe[122X can be
  quite large, see Section [14X2.2-1[114X.[133X
  
  [33X[0;0YNote  that  [22XA[q,n,z][122X is isomorphic to [22XA[q,ord_z(q),z][122X for each multiple [22Xn[122X of
  [22Xord_z(q)[122X,  by  [BHHK21,  Lemma  7.1],  and  [22XA[q,z][122X  is isomorphic to [22XA[q',z][122X
  whenever  [22Xq[122X and [22Xq'[122X generate the same subgroup of prime residues modulo [22Xz[122X, by
  [BHHK21, Lemma 7.5].[133X
  
  [33X[0;0YFor  any  prime  integer  [22Xp[122X,  [22XA[q,z]_p  = ⨁_{0 ≤ i ≤ z} FF_p b_i[122X denotes the
  reduction  of  [22XA[q,z][122X  modulo  [22Xp[122X. We call [22X(b_0, b_1, ..., b_z)[122X the [13Xcanonical
  basis[113X  of  [22XA[q,z][122X  and [22XA[q,z]_p[122X, and denote it by [22XB(A[q,z])[122X and [22XB(A[q,z]_p)[122X,
  respectively. Note that the [22Xi[122X-th basis vector is [22XB(A[q,z])_i = b_{i-1}[122X.[133X
  
  [33X[0;0YThe  name  [21XSinger  algebra[121X  was  chosen  because these algebras occur in the
  following context.[133X
  
  [33X[0;0YLet [22Xp[122X be a prime, [22Xn[122X be a positive integer, [22XF[122X be the field with [22Xp^n[122X elements,
  and [22XF_1[122X be the prime field of [22XF[122X.[133X
  
  [33X[0;0YWe  choose an element [22Xσ[122X of order [22Xp^n - 1[122X in the group [22XGL(n,F_1)[122X, a so-called
  [13XSinger cycle[113X, let [22Xe[122X be a divisor of [22Xp^n - 1[122X, and set [22Xz = (p^n - 1) / e[122X.[133X
  
  [33X[0;0YThe  cyclic  group  [22XH  = ⟨ σ^z ⟩[122X of order [22Xe[122X acts naturally on the elementary
  abelian  group  [22XP = ⟨ x_1, x_2, ..., x_n ⟩[122X of order [22Xp^n[122X. This action extends
  to  the  group algebra [22XF P[122X, and we may consider the algebra [22X(F P)^H[122X of fixed
  points  in [22XF P[122X under this action. As is described in [BHHK21, Section 2], we
  can construct an [22XF[122X-basis of [22XF P[122X that consists of eigenvectors for the action
  of  [22XH[122X.  This  yields  a basis of [22X(F P)^H[122X, for which the multiplication rules
  stated  above  for  [22XA[q,z][122X  can  be  derived.  In  other  words,  [22X(F P)^H[122X is
  isomorphic with [22XF ⊗_{F_1} A[q,z]_p[122X.[133X
  
  
  [1X1.3 [33X[0;0Y[5XGAP[105X[101X[1X-[5XJulia[105X[101X[1X Integration in the [5XSingerAlg[105X[101X[1X Package[133X[101X
  
  [33X[0;0YIf   the   [5XSingerAlg[105X   package   is  used  together  with  the  [5XGAP[105X  package
  [5XJuliaInterface[105X  [BGH20]  then  both [5XGAP[105X and [5XJulia[105X implementations of most of
  the  package's functions are available. For example, there are the functions
  [2XLoewyLengthGAP[102X  ([14X3.1-6[114X) and [2XLoewyLengthJulia[102X ([14X3.1-6[114X) for computing the Loewy
  length  of  a Singer algebra from its defining parameters. There is also the
  function  [2XLoewyLength[102X ([14X3.1-6[114X), which uses one of the two implementations. By
  default,  the  [5XJulia[105X  code  is  used  for  computations if [5XJuliaInterface[105X is
  available, and the [5XGAP[105X code is used by default if not.[133X
  
  [33X[0;0YNote  that  some of the [5XJulia[105X functions call [5XGAP[105X functions. For example, the
  factorization  of  large integers in [5XGAP[105X and its package [5XFactInt[105X [Koh19] are
  (currently)  faster  than  the  corresponding  functions from [5XJulia[105X's [10XPrimes[110X
  package.  In  order  to achieve a [21Xfair[121X comparison of the runtimes in [5XGAP[105X and
  [5XJulia[105X,  we  call  the  [5XGAP[105X  function  [2XFactors[102X  ([14XReference:  Factors[114X) in both
  situations.[133X
  
  [33X[0;0YNote also that [5XJulia[105X objects are stored as the values of [5XGAP[105X attributes such
  as  [2XLoewyStructureInfoJulia[102X  ([14X3.1-11[114X),  and  some [5XJulia[105X functions take a [5XGAP[105X
  object  as  an  argument,  in  order to benefit from its attribute values if
  applicable.[133X
  
  [33X[0;0YOne can also use the [5XJulia[105X functions in a [5XJulia[105X session, by loading the file
  [11Xjulia/SingerAlg.jl[111X  into  [5XJulia[105X with [10Xinclude[110X; afterwards the [5XJulia[105X functions
  are  accessible  in the [5XJulia[105X module [10X"SingerAlg"[110X. This approach requires the
  [5XJulia[105X package [10XGAP.jl[110X (and thus a [5XJulia[105X compatible installation of [5XGAP[105X).[133X
  
  
  [1X1.4 [33X[0;0YInstallation of the [5XSingerAlg[105X[101X[1X Package[133X[101X
  
  [33X[0;0YThe [5XSingerAlg[105X package itself consists only of [5XGAP[105X (and [5XJulia[105X) code, it is in
  principle  enough  to  unpack  the  archive  in  a  [11Xpkg[111X  directory  of a [5XGAP[105X
  installation, and then to load the package into the [5XGAP[105X session.[133X
  
  [33X[0;0YHowever,  if  one  wants  to  use the [5XJulia[105X implementations of the package's
  functions  then the [5XGAP[105X package [5XJuliaInterface[105X [BGH20] must be available. In
  particular,  the  [5XGAP[105X  installation  must  be  done  using  [5XJulia[105X's  garbage
  collector  in  this  case;  one  can  check  this by looking at the value of
  [10XGAPInfo.KernelInfo.GC[110X: If it is [10X"Julia GC"[110X then [5XJuliaInterface[105X can be loaded
  (provided it is installed), otherwise [5XJulia[105X features are not available.[133X
  
  [33X[0;0YThe  easiest way to install [5XGAP[105X with [5XJulia[105X's garbage collector is to install
  [5XJulia[105X  (see  [7Xhttps://julialang.org/downloads/[107X),  then  ask  [5XJulia[105X's  package
  manager to download and install [5XGAP[105X (by entering [10Xusing Pkg; Pkg.add( "GAP" )[110X
  at  the  [5XJulia[105X  prompt),  and  then  to  use the [5XSingerAlg[105X package with this
  version of [5XGAP[105X.[133X
  
  [33X[0;0YFor  one  function  of the package ([2XSingerAlg.ProposedPermutationIsomorphism[102X
  ([14X3.4-2[114X)),  the  interface to [McK90] provided by [5XGAP[105X's [5XGraPe[105X package [Soi19]
  is needed; if one wants to use this function –see for example Section [14X4.3-4[114X–
  then [5XGraPe[105X must be installed.[133X
  
  
  [1X1.5 [33X[0;0YAcknowledgements[133X[101X
  
  [33X[0;0YThe  development  of  this [5XGAP[105X package has been supported by the SFB-TRR 195
  [21XSymbolic     Tools     in     Mathematics     and     their     Applications[121X
  ([7Xhttps://www.computeralgebra.de/sfb/[107X)  (from 2017 until 2020). Thanks to the
  coauthors  of  the  papers  [BHHK20]  and [BHHK21], Erzsébet Horváth, László
  Héthelyi, and Burkhard Külshammer, for many discussions and suggestions that
  contributed  to  this  package.  Thanks  to  Bettina  Eick  for  hints about
  invariants, see Section [14X3.5[114X.[133X
  
