In this chapter we describe several ways in which quasigroups and loops can be created in LOOPS.
Let X={x1,...,xn} be a set and · a binary operation on X. Then an n by n array with rows and columns bordered by x1, ..., xn, in this order, is a Cayley tableindexCayley table, or a multiplication tableindexmultiplication table of ·, if the entry in the row xi and column xj is xi·xj.
A Cayley table is a quasigroup tableindexquasigroup table if it is a Latin squareindexLatin square, i.e., if every entry xi appears in every column and every row exactly once.
An annoying feature of quasigroup tables in practice is that they are often not bordered, and it is up to the reader to figure out what is meant. Throughout this manual and in LOOPS, we therefore make the following assumption: All distinct entries in a quasigroup table must be integers, say x1 < x2 < ¼ < xn, and if no border is specified, we assume that the table is bordered by x1, ..., xn, in this order. Note that we do not assume that the distinct entries x1, ..., xn form the interval 1, ..., n. The significance of this observation will become clear in Chapter Methods based on permutation groups.
Finally, we say that a quasigroup table is a loop tableindexloop table if the first row and the first column are the same, and if the entries in the first row are ordered in an ascending fashion.
A square array with integral entries is called a matrix in GAP. The following synonymous operations test if a matrix T is a quasigroup table, as defined above:
IsQuasigroupTable(
T ) O
IsQuasigroupCayleyTable(
T ) O
The following synonymous operations test if a matrix T is a loop table:
IsLoopTable(
T ) O
IsLoopCayleyTable(
T ) O
We would like to call attention to the fact that the package GUAVA
also has some operations dealing with Latin squares. In particular,
IsLatinSquare
is declared in GUAVA.
Although we do not assume that a quasigroup table with distinct entries x1 < ¼ < xn satisfies xi=i, it is often desirable to present quasigroup tables in the latter way. The rather general operation
CanonicalCayleyTable(
T ) O
takes any Cayley table T with distinct entries x1 < ¼ < xn, and returns a Cayley table in which xi has been replaced by i.
The operation
NormalizedQuasigroupTable(
T ) O
makes a quasigroup table T into a loop table by:
CanonicalCayleyTable
to rename the entries to 1,
..., n,
When T is a quasigroup table, the corresponding quasigroup is obtained by
QuasigroupByCayleyTable(
T ) O
Since CanonicalCayleyTable
is called within the above operation, the
resulting quasigroup will have a Cayley table with distinct entries 1,
..., n.
Here is the analogous operation for a loop table T:
LoopByCayleyTable(
T ) O
And here is an example for methods concerning Cayley tables:
gap> ct := CanonicalCayleyTable( [[5,3],[3,5]] ); [ [ 2, 1 ], [ 1, 2 ] ] gap> NormalizedQuasigroupTable( ct ); [ [ 1, 2 ], [ 2, 1 ] ] gap> LoopByCayleyTable( last ); <loop of order 2> gap> [ IsQuasigroupTable( ct ), IsLoopTable( ct ) ]; [ true, false ]
Typing a large multiplication table manually is tedious and error-prone. We have therefore included a universal algorithm in LOOPS that reads multiplication tables of quasigroups from a file.
Instead of writing a separate algorithm for each common format, our algorithm relies on the user to provide a bit of information about the input file. Here is an outline of the algorithm, with file named F and a string D as arguments on the input:
The following examples clarify the algorithm and document its versatility. All examples are of the form F+DÞ T, meaning that an input file containing F together with the string D produce multiplication table T.
Example 1: Data does not have to be arranged into an array of any kind.
|
Example 2: Chunks can be any strings.
|
Example 3: A typical table produced by GAP is easily parsed by deleting
brackets and commas.
|
Example 4: A typical TeX table with rows separated by lines is also easily
converted. Note that we have to use \\ to make sure that
every occurrence of \ is deleted, since \\
represents the character \ in GAP.
|
And here are the needed \LOOPS commands:
QuasigroupFromFile(
F,
D ) O
LoopFromFile(
F,
D ) O
Let P be a set of n permutations of an n-element set X. If at most one permutation of P is the identity permutation, and if all other permutations of P move all points of X, the operation
CayleyTableByPerms(
P ) O
returns an n×n Cayley table C such that C[i][j] = X[j]^P[i]
.
In particular, if P is the left section of a quasigroup Q, the above operation returns the multiplication table of Q.
If P is a set of permutations corresponding to the left translations of a quasigroup (or loop) Q, the operation
QuasigroupByLeftSection(
P ) O
LoopByLeftSection(
P ) O
returns the corresponding quasigroup (or loop). The order of permutations in P is important in the quasigroup case, but it is disregarded in the loop case, since the order of rows in the corresponding multiplication table is determined by the presence of the neutral element.
Analogously, we define
QuasigroupByRightSection(
P ) O
LoopByRightSection(
P ) O
Here is an example:
gap> S := Subloop( MoufangLoop( 12, 1 ), [ 3 ] );; gap> ls := LeftSection( S ); [ (), (1,3,5), (1,5,3) ] gap> CayleyTableByPerms( ls ); [ [ 1, 3, 5 ], [ 3, 5, 1 ], [ 5, 1, 3 ] ] gap> CayleyTable( LoopByLeftSection( ls ) ); [ [ 1, 2, 3 ], [ 2, 3, 1 ], [ 3, 1, 2 ] ]
Let G be a group, H a subgroup, and T a right transversalindextransversal to H in G. Then the operation ° defined on the right cosets Q = {Ht; t Î T} by Ht°Ht¢ = H(tt¢) turns Q into a quasigroup if and only if T is a right transversal to all conjugates g-1Hg of H in G. In fact, every quasigroup Q can be obtained in this way (let G=Mlt(Q), H=RMlt(Q) and T={Rx; x Î Q}).
The resulting quasigroup (or loop) is returned via
QuasigroupByRightSection(
G,
H,
T ) O
LoopByRightSection(
G,
H,
T ) O
We do not support the dual operations for left sections since, by default, actions in GAP act on the right.
To demonstrate LoopByRightSection
, let us recall a construction due to Nagy Na:
Let X be a simple group with subgroups Y0, Y1 such that Y0ÇY1=1 and X=Y0Y1. Let G=X×X and H=Y0×Y1. Then T = {(x,x-1); x Î X} is a right transversal of H in G, and the corresponding loop is a simple (right) Bol loop.indexsimple Bol loop
The next example illustrates this construction with X=A5, Y0=A4, and Y1 = á(1,2,3,4,5)ñ.
gap> Shift := function( p ) # shifts permutation "up" by 5 > local ls; > ls := ListPerm( p ); > ls := Concatenation( [1,2,3,4,5], List( ls, x -> x + 5 ) ); > return PermList( ls ); > end; function( p ) ... end gap> A := AlternatingGroup( 5 );; gap> G := DirectProduct( A, A );; gap> H := Subgroup( G, [ (1,2,3), (2,3,4), (6,7,8,9,10) ] );; gap> T := List( A, x -> x * Shift(x)^(-1) );; gap> L := LoopByRightSection( G, H, T ); <loop of order 60> gap> [ IsRightBolLoop( L ), IsSimple( L ), IsMoufangLoop( L ) ]; [ true, true, false ]
If Q is a loop and K an abelian subgroup of N(Q) then
NuclearExtension(
Q,
K ) O
returns [K0, F, j, q], where K0 @ K, F @ Q/K, j:F®AutK is a homomorphism, q:F×F® K is a cocycle, and Q is isomorphic to K0×F with multiplication (a,x)(b,y) = (ajx(b)q(x,y),xy).
If n=|F| and m=|K|, the cocycle q is returned as an n×n array with entries in {1,...,m}, and j is returned as a list of length n of permutations of {1,...,m}.
Conversely, given K, F, f = j, and t = q as above,
LoopByExtension(
K,
F,
f,
t ) O
returns the extension of K by F using the action f and cocycle t.
gap> F := AsLoop( Group( (1,2) ) ); <loop of order 2> gap> K := DirectProduct( F, F );; gap> phi := [ (), (2,3) ];; gap> theta := [ [ 1, 1 ], [ 1, 3 ] ];; gap> LoopByExtension( K, F, phi, theta ); <loop of order 8> gap> IsAssociative( last ); false
As we have already mentioned, LOOPS contains operations that convert between magmas, quasigroups, loops and groups, provided such conversions are possible.
If M is a declared magma that happens to be a quasigroup, the corresponding quasigroup is returned via
AsQuasigroup(
M ) O
Given a quasigroup M and two of its elements f, g, the principal loop isotope x°y = Rg-1(x)·Lf-1(y) turns (M,°) into a loop with neutral element f·g (see Section Homomorphisms and homotopisms). Since loops in LOOPS have to have neutral element labelled as 1, the function
PrincipalLoopIsotope(
M,
f,
g )
returns an isomorphic copy of the principal isotope (M,°) via the transposition (1,f·g).
If M is a magma that happens to be a quasigroup, the operation
AsLoop(
M ) O
returns a loop L as follows:
PrincipalLoopIsotope(
M,
M.1,
M.1 )
One could obtain a loop from M in yet another way, by normalizing the Cayley table of M. These three approaches can result in nonisomorphic loops in general.
Finally, when M is a declared magma that happens to be a group, then the corresponding group is returned by
AsGroup(
M ) A
Note that the conversions work in both directions, not just toward more special
structures. Thus, if G is a declared group, then AsLoop(
G )
returns the
corresponding loop, for instance. Use the AsLoop
command to apply methods of
LOOPS to groups.
Also see IsomorphicCopyByPerm
.
noindentLet L1, ..., Ln be a list consisting of loops and groups, where n ³ 1. Then
DirectProduct(
L1, ...,
Ln) O
returns the direct product of L1, ..., Ln.
If there are only groups among L1, ..., Ln, a group is returned. Otherwise a loop is returned. If n=1, L1 is returned.
When Q is a quasigroup with multiplication ·, the opposite quasigroup of Q is a quasigroup with the same underlying set as Q and with multiplication * defined by x*y=y·x.
Since the quasigroup-theoretical concepts are often chiral (cf. left Bol loops versus right Bol loops), it is useful to have access to the opposite quasigroup of Q:
Opposite(
Q ) O
[Up] [Previous] [Next] [Index]
loops manual