Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianrun-Y committed Aug 14, 2024
1 parent e679757 commit 3d7bd8c
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions gap/attributes/attr.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1056,8 +1056,8 @@ SEMIGROUPS.ExistsTransversal := function(a, b, n)
local exists, class, i;
if DegreeOfTransformation(a) > n or
DegreeOfTransformation(b) > n then
ErrorNoReturn("Transformation does not \
belong to a transformation semigroup of degree n");
ErrorNoReturn("Transformation does not",
"belong to a transformation semigroup of degree n");
fi;
for class in KernelOfTransformation(a, n) do
exists := false;
Expand All @@ -1083,7 +1083,7 @@ function(S)
return
function(x, y)
# Only returns the correct answer if y is a regular element
return KernelContainment(x, y, deg)
return IsRefinementKernelOfTransformation(x, y, deg)
and SEMIGROUPS.ExistsTransversal(x, y, deg);
end;
end);
Expand Down Expand Up @@ -1120,15 +1120,16 @@ function(S)
func2 := MitschLeqSemigroup(S);
out := List([1 .. Size(S)], x -> []);
regular := ListWithIdenticalEntries(Size(S), false);
if IsRegularSemigroup(S) do
FlipBlist(regular);
else
for D in RegularDClasses(S) do
for a in D do
i := PositionCanonical(S, a) ^ (p ^ -1);
regular[i] := true;
if IsRegularSemigroup(S) then
FlipBlist(regular);
else
for D in RegularDClasses(S) do
for a in D do
i := PositionCanonical(S, a) ^ (p ^ -1);
regular[i] := true;
od;
od;
od;
fi;
for j in [Size(S), Size(S) - 1 .. 1] do
if regular[j] then
for i in [j - 1, j - 2 .. 1] do
Expand Down

0 comments on commit 3d7bd8c

Please sign in to comment.