Skip to content

Commit

Permalink
properties: the empty semigroup is not monogenic
Browse files Browse the repository at this point in the history
  • Loading branch information
wilfwilson authored and james-d-mitchell committed Nov 26, 2018
1 parent da98a22 commit feb7cf2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gap/attributes/properties.gi
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ function(S)
gens := GeneratorsOfSemigroup(S);
if Length(gens) <= 1 then
SetMinimalSemigroupGeneratingSet(S, gens);
return true;
return Length(gens) = 1;
elif CanEasilyCompareElements(gens)
and ForAll([2 .. Length(gens)], i -> gens[1] = gens[i]) then
SetMinimalSemigroupGeneratingSet(S, [gens[1]]);
Expand Down
5 changes: 5 additions & 0 deletions tst/standard/properties.tst
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,11 @@ gap> x := MinimalSemigroupGeneratingSet(S)[1];;
gap> S := Semigroup(x, x, x);;
gap> IsMonogenicSemigroup(S);
true
gap> S := Subsemigroup(FullTransformationMonoid(2), []);;
gap> IsEmpty(S);
true
gap> IsMonogenicSemigroup(S);
false
# properties: IsMonogenicInverseSemigroup, 1
gap> IsMonogenicInverseSemigroup(AsSemigroup(IsBooleanMatSemigroup,
Expand Down

0 comments on commit feb7cf2

Please sign in to comment.