Skip to content
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
1 change: 0 additions & 1 deletion gap/attributes/attr.gd
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ DeclareAttribute("SmallestElementSemigroup", IsSemigroup);
DeclareAttribute("LargestElementSemigroup", IsSemigroup);

DeclareAttribute("StructureDescription", IsBrandtSemigroup);
DeclareAttribute("StructureDescription", IsGroupAsSemigroup);
DeclareAttribute("StructureDescriptionMaximalSubgroups",
IsSemigroup);
DeclareAttribute("MaximalDClasses", IsSemigroup);
Expand Down
2 changes: 1 addition & 1 deletion gap/attributes/attr.gi
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ end);

# same method for ideals

InstallMethod(StructureDescription, "for a group as semigroup",
InstallOtherMethod(StructureDescription, "for a group as semigroup",
[IsGroupAsSemigroup],
function(S)
if IsGroup(S) then
Expand Down
6 changes: 5 additions & 1 deletion gap/attributes/factor.gd
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@ DeclareOperation("MinimalFactorization",
DeclareOperation("NonTrivialFactorization",
[IsSemigroup, IsMultiplicativeElement]);
DeclareOperation("Factorization", [IsLambdaOrb, IsPosInt, IsPerm]);
DeclareOperation("Factorization", [IsSemigroup, IsMultiplicativeElement]);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively we could also widen the declaration in GAP itself, which currently is

DeclareOperation( "Factorization",
                  [ IsGroup, IsMultiplicativeElementWithInverse ] );

The drawback of that would be that if GAP did that, loading any older Semigroups versions would produce a warning

#I  equal requirements in multiple declarations for operation `Factorization'

and the new semigroups would either only work on the new GAP; or would have to have code to the effect of "if GAp does not declare this operation for IsSemigroup then declare it for semigroups".

So I am not sure it would be worth that hassle.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed I'll just merge this for now (when updated) and then we can think about what to do later.

DeclareOperation("Factorization",
[IsSemigroup and CanUseFroidurePin, IsMultiplicativeElement]);
DeclareOperation("Factorization",
[IsActingSemigroup and HasGeneratorsOfSemigroup,
IsMultiplicativeElement]);
DeclareOperation("TraceSchreierTreeForward", [IsSemigroupData, IsPosInt]);
5 changes: 5 additions & 0 deletions gap/semigroups/semifp.gd
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@ DeclareOperation("ReversedOp", [IsElementOfFpMonoid]);

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

DeclareOperation("Factorization", [IsFpSemigroup, IsElementOfFpSemigroup]);
DeclareOperation("Factorization", [IsFpMonoid, IsElementOfFpMonoid]);
DeclareOperation("Factorization", [IsFreeSemigroup, IsWord]);
DeclareOperation("Factorization", [IsFreeMonoid, IsWord]);
7 changes: 5 additions & 2 deletions gap/semigroups/semitrans.gd
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ DeclareOperation("EndomorphismMonoid", [IsDigraph, IsHomogeneousList]);
DeclareAttribute("DigraphCore", IsDigraph);

DeclareOperation("WreathProduct",
[IsMultiplicativeElementCollection,
IsMultiplicativeElementCollection]);
[IsTransformationMonoid, IsPermGroup]);
DeclareOperation("WreathProduct",
[IsPermGroup, IsTransformationSemigroup]);
DeclareOperation("WreathProduct",
[IsTransformationMonoid, IsTransformationSemigroup]);

DeclareAttribute("SmallestElementRClass", IsGreensRClass);
DeclareAttribute("LargestElementRClass", IsGreensRClass);
Loading