Skip to content

Commit

Permalink
Don't know
Browse files Browse the repository at this point in the history
  • Loading branch information
james-d-mitchell committed Jan 10, 2024
1 parent b6bf638 commit c239b9d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
2 changes: 2 additions & 0 deletions gap/semigroups/semicons.gd
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ DeclareGlobalFunction("LeftZeroSemigroup");
DeclareGlobalFunction("RightZeroSemigroup");
DeclareConstructor("BrandtSemigroupCons", [IsSemigroup, IsGroup, IsPosInt]);
DeclareGlobalFunction("BrandtSemigroup");
DeclareConstructor("FreeSemilatticeCons", [IsSemigroup, IsPosInt]);
DeclareGlobalFunction("FreeSemilattice");

DeclareCategory("IsSSSE", IsAssociativeElement);
DeclareCategoryCollections("IsSSSE");
Expand Down
22 changes: 21 additions & 1 deletion gap/semigroups/semicons.gi
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ function(arg)
S := BrandtSemigroupCons(arg[1], arg[2], arg[3]);
else
ErrorNoReturn("the arguments must be a positive integer or a filter and",
" a positive integer, or a perm group and positive ",
" a positive integer, or a perm group and positive ",
"integer, or a filter, perm group, and positive ",
"integer");
fi;
Expand Down Expand Up @@ -796,6 +796,26 @@ for _IsXSemigroup in ["IsTransformationSemigroup",
od;
Unbind(_IsXSemigroup);

InstallGlobalFunction(FreeSemilattice,
function(arg)
local S;

if Length(arg) = 0 then
S := TrivialSemigroupCons(IsTransformationSemigroup, 0);
elif Length(arg) = 1 and IsInt(arg[1]) and arg[1] >= 0 then
S := TrivialSemigroupCons(IsTransformationSemigroup, arg[1]);
elif Length(arg) = 1 and IsOperation(arg[1]) then
S := TrivialSemigroupCons(arg[1], 0);
elif Length(arg) = 2 and IsOperation(arg[1]) and IsInt(arg[2])
and arg[2] >= 0 then
S := TrivialSemigroupCons(arg[1], arg[2]);
else
ErrorNoReturn("the arguments must be a non-negative integer or ",
"a filter and a non-negative integer");
fi;
SetIsTrivial(S, true);
return S;
end);
InstallMethod(StrongSemilatticeOfSemigroups,
"for a digraph, a list, and a list",
[IsDigraph, IsList, IsList],
Expand Down
2 changes: 1 addition & 1 deletion gap/semigroups/semiex.gi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#############################################################################
##
## semigroups/semiex.gi
## Copyright (C) 2013-2022 James D. Mitchell
## Copyright (C) 2013-2023 James D. Mitchell
##
## Licensing information can be found in the README file of this package.
##
Expand Down

0 comments on commit c239b9d

Please sign in to comment.