Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

semifp: add missing methods for fp monoids/semigroups #874

Merged
merged 1 commit into from
Sep 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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