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

greens: fix RhoOrbStabChain(DClass) #932

Merged
merged 1 commit into from
Jun 25, 2023
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
2 changes: 1 addition & 1 deletion gap/greens/acting.gi
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ end);

InstallMethod(RhoOrbStabChain, "for a D-class of an acting semigroup",
[IsGreensDClass and IsActingSemigroupGreensClass],
D -> RhoOrbStabChain(GreensLClassOfElementNC(D, Representative(D))));
D -> RhoOrbStabChain(GreensLClassOfElementNC(D, D!.rep)));

# same method for regular, not required for inverse, same for ideals

Expand Down
18 changes: 17 additions & 1 deletion tst/standard/greens/acting.tst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#@local BruteForceInverseCheck, BruteForceIsoCheck, CheckLeftGreensMultiplier1
#@local CheckLeftGreensMultiplier2, CheckRightGreensMultiplier1
#@local CheckRightGreensMultiplier2, D, DD, DDD, H, L, L3, LL, R, RR, RRR, S, T
#@local a, acting, b, d, en, h, inv, it, iter, map, mults, nr, r, x, y
#@local a, acting, b, c, d, e, en, h, inv, it, iter, map, mults, nr, r, x, y
gap> START_TEST("Semigroups package: standard/greens/acting.tst");
gap> LoadPackage("semigroups", false);;

Expand Down Expand Up @@ -2012,6 +2012,22 @@ gap> mults := List(HClassReps(LClass(T, d)), h -> LeftGreensMultiplierNC(T, d, h
gap> Length(Set(mults, m -> RClass(T, m * d))) = Length(RClasses(D));
true

# Fix issue #931 (bug in RhoOrbStabChain(DClass) using the wrong representative
gap> S := Monoid(Transformation([3, 2, 3, 3, 5, 5]),
> Transformation([5, 4, 4, 5, 1, 4]),
> Transformation([1, 1, 5, 3, 3]),
> Transformation([4, 5, 6, 4, 1, 4]),
> Transformation([5, 1, 2, 1, 6, 5]));
<transformation monoid of degree 6 with 5 generators>
gap> e := Transformation([1, 6, 6, 1, 5, 6]);
Transformation( [ 1, 6, 6, 1, 5, 6 ] )
gap> c := Transformation([6, 1, 1, 6, 5, 1]);
Transformation( [ 6, 1, 1, 6, 5, 1 ] )
gap> c in DClass(S, e);
true
gap> c in HClass(S, e);
true

#
gap> SEMIGROUPS.StopTest();
gap> STOP_TEST("Semigroups package: standard/greens/acting.tst");
Loading