Skip to content

Commit

Permalink
semifp: add missing methods for fp monoids/semigroups
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-mitchell committed Sep 27, 2022
1 parent 57420f3 commit 5f738fd
Show file tree
Hide file tree
Showing 6 changed files with 427 additions and 32 deletions.
27 changes: 26 additions & 1 deletion doc/semifp.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#############################################################################
##
#W semifp.xml
#Y Copyright (C) 2020 Luke Elliott
#Y Copyright (C) 2020-2022 Luke Elliott
##
## Licensing information can be found in the README file of this package.
##
Expand Down Expand Up @@ -89,3 +89,28 @@ true]]></Example>
</Description>
</ManSection>
<#/GAPDoc>

<#GAPDoc Label="FreeMonoidAndAssignGeneratorVars">
<ManSection>
<Func Name="FreeMonoidAndAssignGeneratorVars" Arg="arg..."/>
<Func Name="FreeSemigroupAndAssignGeneratorVars" Arg="arg..."/>
<Returns>A free semigroup or monoid.</Returns>
<Description>
<C>FreeMonoidAndAssignGeneratorVars</C> is synonym with:
<Log>
FreeMonoid(arg...);
AssignGeneratorVariables(last);</Log>
These functions exist so that the <C>String</C> method for a finitely
presented semigroup or monoid to be valid &GAP; input which can be used to
reconstruct the semigroup or monoid.
<Example><![CDATA[
gap> F := FreeSemigroupAndAssignGeneratorVars("x", "y");;
gap> IsBound(x);
true
gap> IsBound(y);
true]]></Example>
</Description>
</ManSection>
<#/GAPDoc>


1 change: 1 addition & 0 deletions doc/z-chap15.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<#Include Label = "ParseRelations">
<#Include Label = "ElementOfFpSemigroup">
<#Include Label = "ElementOfFpMonoid">
<#Include Label = "FreeMonoidAndAssignGeneratorVars">
</Section>

<Section Label="Creating Tietze transformation objects">
Expand Down
3 changes: 3 additions & 0 deletions gap/semigroups/semifp.gd
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ DeclareAttribute("UnderlyingCongruence", IsFpSemigroup);
DeclareAttribute("UnderlyingCongruence", IsFpMonoid);
DeclareAttribute("Length", IsFpSemigroup);
DeclareAttribute("Length", IsFpMonoid);

DeclareGlobalFunction("FreeMonoidAndAssignGeneratorVars");
DeclareGlobalFunction("FreeSemigroupAndAssignGeneratorVars");
Loading

0 comments on commit 5f738fd

Please sign in to comment.