Hi all! As we know Mathematica has a great in-built support for finite group theory in terms of permutation groups and Cycles. Though, support for infinite groups has been missing. One class of infinite groups is covered under finitely presented groups, and I took the liberty to make a paclet that tries to fill this gap. The paclet is called Taggar/FinitelyPresentedGroups and is available at the paclet repository at FinitelyPresentedGroups | Wolfram Language Paclet Repository . Below I run us through a short demonstration of what the package can do at the moment! A design motivation here has been to keep it as standard as possible matching official Mathematica code and architecture.
There are several directions I hope to explore further, including improvements to the word problem and coset enumeration algorithms, as well as additional computational tools from combinatorial and geometric group theory. The paclet is most open to feedback, suggestions, and contributions. If you have an interest in computational group theory, I would be glad to hear your thoughts!
Installation and importing is as simple as running the following two commands:
In[1]:= PacletInstall["Taggar/FinitelyPresentedGroups", UpdatePacletSites -> True]
<<Taggar`FinitelyPresentedGroups`
Finitely presented groups
We define a finitely presented group using its generators and relators, for example the Dihedral group of order 10 can be defined as follows:
In[3]:= D5 = FinitelyPresentedGroup[{r, s}, {r^5, s^2, (r ** s)^2}]
Out[3]= FinitelyPresentedGroup[{r, s}, {r^5, s^2, (r ** s)^2}]
As we see, relators in the group can be written using NonCommutatitiveMultiply and Power. Equal can also be used, so for example the following is equivalent to above:
In[4]:= D5 = FinitelyPresentedGroup[{r, s}, {r^5, s^2, s ** r == (1/r) ** s}];
Furthermore, in-built named groups can be ready-made converted to FPGs, for example one could also then equivalently do:
In[5]:= D5 = FinitelyPresentedGroup[DihedralGroup[5]];
Retrieve information about the group, checking its properties:
In[6]:= GroupGenerators[D5] (* or D5["GeneratorList"] *)
Out[6]= {r, s}
In[7]:= D5["RelatorList"]
Out[7]= {r^5, s^2, (r ** s)^2}
In[8]:= GroupOrder[D5]
Out[8]= 10
In[9]:= GroupElements[D5]
Out[9]= {1, r, r^2, r^(-2), r^(-1), s, r ** s, r^2 ** s, s ** r^2, s ** r}
Speaking of group elements, they can be reduced (upto a reasonable extent) and also compared. For example:
In[10]:= ElementReduce[D5, r^10 ** s^5]
Out[10]= s
Equivalently, one could provide elements as group words (using indices):
In[11]:= ElementReduce[D5, Join[Table[1, 10], Table[2, 5]]]
Out[11]= {2}
Verify that is indeed r^2 ** s is indeed a reflection (has order 2):
In[12]:= ElementEqualQ[D5, r^2 ** s, 1]
ElementEqualQ[D5, (r^2 ** s)^2, 1]
Out[12]= False
Out[13]= True
Note, even though reduction does not necessarily happen:
In[14]:= ElementReduce[D5, (r^2 ** s)^2]
Out[14]= r^2 ** s ** r^2 ** s
See the Cayley graph of a finitely presented group:
In[15]:= CayleyGraph[D5]
Out[15]= (* below *)
Free Groups
The package also allows working with free groups and provides FreeGroup:
In[16]:= F2 = FreeGroup[{a, b}]
Out[16]= FreeGroup[{a, b}]
Verify that the free group is indeed infinite:
In[17]:= GroupOrder[F2]
Out[17]= Infinity
and also that it is not Abelian:
In[18]:= ElementEqualQ[F2, a ** b, b ** a]
Out[18]= False
Coset tables
Coset tables are enumerated using Todd-Coxeter algorithm. For example:
In[19]:= CosetTable[D5, {}]
Out[19]= {{2, 6, 6, 5}, {3, 7, 7, 1}, {4, 8, 8, 2}, {5, 9, 9, 3}, {1, 10, 10, 4}, {10, 1, 1, 7}, {6, 2, 2, 8}, {7, 3, 3, 9}, {8, 4, 4,
10}, {9, 5, 5, 6}}
or with respect to a subgroup specified by its generators:
In[20]:= CosetTable[D5, {r}]
Out[20]= {{1, 2, 2, 1}, {2, 1, 1, 2}}
Action of the generators on the cosets:
In[21]:= PermutationCycles /@ Transpose[CosetTable[D5, {s}]][[;; D5["GeneratorCount"]]]
Out[21]= {Cycles[{{1, 2, 3, 4, 5}}], Cycles[{{2, 5}, {3, 4}}]}
Fox derivatives
See Fox derivative - Wikipedia , we can calculate the Fox derivative as follows:
In[22]:= Table[FoxD[F2, x, y], {x, {a, b}}, {y, {a, b}}]
Out[22]= {{1, 0}, {0, 1}}
For a more complicated word:
In[23]:= FoxD[F2, a ** b, b]
Out[23]= b
Powers give geometric sums, whereas inverses gives negative ones:
In[24]:= FoxD[F2, a^3, a]
Out[24]= 1 + a + a^2
In[25]:= FoxD[F2, a^-3, a]
Out[25]= -a^(-3) - a^(-2) - a^(-1)
Thus, the Alexander matrix can also be computed:
In[25]:= Z2 = FinitelyPresentedGroup[{x, y}, {x ** y == y ** x}];
AlexanderMatrix[Z2]
Out[26]= {{1 - x ** y ** x^(-1), x - x ** y ** x^(-1) ** y^(-1)}}
Send the generators to a commuting symbol:
In[27]:= AlexanderMatrix[Z2, {t1, t2}]
Out[27]= {{1 - t2, -1 + t1}}
Find Alexander matrix of the trefoil group:
In[28]:= trefoil = FinitelyPresentedGroup[{a, b}, {a ** b ** a ** b^(-1) ** a^(-1) ** b^(-1)}];
AlexanderMatrix[trefoil, {t, t}]
Out[29]= {{1 - t + t^2, -1 + t - t^2}}
The first element of the matrix is trefoil’s Alexander group. Define the group of torus knot T(2, 5):
In[30]:= t25 = FinitelyPresentedGroup[{x, y}, {x^2 == y^5}]
AlexanderMatrix[T25, {t^5, t^2}]
Out[31]= {{1 + t^5, -1 - t^2 - t^4 - t^6 - t^8}}
In[32]:= PolynomialGCD[1 + t^5, -1 - t^2 - t^4 - t^6 - t^8]
Out[32]= 1 - t + t^2 - t^3 + t^4
This is the tenth cyclotomic polynomial:
In[33]:= Cyclotomic[10, t]
Out[34]= 1 - t + t^2 - t^3 + t^4
Homepage: FinitelyPresentedGroups | Wolfram Language Paclet Repository
