-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
semirel: fix FroidurePinExtended for pperm monoids
Resolves #1674
- Loading branch information
1 parent
e6c5462
commit a8867a9
Showing
2 changed files
with
53 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Issue related to FroidurePinExtendedAlg | ||
# Examples reported on issue #1674 on github.com/gap-system/gap | ||
# | ||
gap> sort := function(x, y) | ||
> local rx, ry; | ||
> rx := RankOfPartialPerm(Representative(x)); | ||
> ry := RankOfPartialPerm(Representative(y)); | ||
> return rx < ry; | ||
> end;; | ||
gap> x := PartialPerm([1]); | ||
<identity partial perm on [ 1 ]> | ||
gap> y := PartialPerm([0]); | ||
<empty partial perm> | ||
gap> S := Semigroup(x, y); | ||
<partial perm monoid of rank 1 with 2 generators> | ||
gap> D := ShallowCopy(GreensDClasses(S));; | ||
gap> Sort(D, sort); | ||
gap> D; | ||
[ <Green's D-class: <empty partial perm>>, | ||
<Green's D-class: <identity partial perm on [ 1 ]>> ] | ||
gap> Elements(S); | ||
[ <empty partial perm>, <identity partial perm on [ 1 ]> ] | ||
gap> S := Semigroup(x, y); | ||
<partial perm monoid of rank 1 with 2 generators> | ||
gap> Elements(S); | ||
[ <empty partial perm>, <identity partial perm on [ 1 ]> ] | ||
gap> D := ShallowCopy(GreensDClasses(S));; | ||
gap> Sort(D, sort); | ||
gap> D; | ||
[ <Green's D-class: <empty partial perm>>, | ||
<Green's D-class: <identity partial perm on [ 1 ]>> ] | ||
|
||
# | ||
gap> SymmetricInverseMonoid(2); | ||
<symmetric inverse monoid of degree 2> | ||
gap> D := ShallowCopy(GreensDClasses(last));; | ||
gap> Sort(D, sort); | ||
gap> D; | ||
[ <Green's D-class: <empty partial perm>>, | ||
<Green's D-class: <identity partial perm on [ 1 ]>>, | ||
<Green's D-class: <identity partial perm on [ 1, 2 ]>> ] | ||
# | ||
gap> S := Semigroup(x, y); | ||
<partial perm monoid of rank 1 with 2 generators> | ||
gap> FroidurePinExtendedAlg(S); | ||
gap> LeftCayleyGraphSemigroup(S); | ||
[ [ 1 ], [ 1 ] ] |