Skip to content

Commit

Permalink
Merge branch 'mitsch-new' of github.com:/Tianrun-Y/Semigroups into mi…
Browse files Browse the repository at this point in the history
…tsch-new
  • Loading branch information
Tianrun-Y committed Aug 7, 2024
2 parents 9ff45bb + 1ec7731 commit 185fdde
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions gap/attributes/attr.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,7 @@ SEMIGROUPS.ExistsTransversal := function(a, b, n)
break;
fi;
od;
if exists = false then
if not exists then
return false;
fi;
od;
Expand Down Expand Up @@ -1114,15 +1114,18 @@ InstallMethod(MitschOrderOfTransformationSemigroup,
[IsTransformationSemigroup],
function(S)
local elts, p, func1, func2, out, i, j, regular, D, a;
elts := ShallowCopy(Elements(S));
elts := ShallowCopy(AsListCanonical(S));
p := Sortex(elts, {x, y} -> IsGreensDGreaterThanFunc(S)(y, x)) ^ -1;
func1 := RegularLeqTransformationSemigroup(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 := Position(elts, a);
i := PositionCanonical(S, a) ^ (p ^ -1);
regular[i] := true;
od;
od;
Expand Down

0 comments on commit 185fdde

Please sign in to comment.