Skip to content

Commit

Permalink
Fixed Order for FR elements
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentbartholdi committed Apr 21, 2016
1 parent f0f9672 commit ab86122
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gap/frelement.gi
Original file line number Diff line number Diff line change
Expand Up @@ -1184,6 +1184,10 @@ BindGlobal("ORDER@", function(e)
if HasUnderlyingMealyElement(e) then
e := UnderlyingMealyElement(e);
fi;

if not IsInvertible(e) then
return fail;
fi;

if IsAbelian(VertexTransformationsFRElement(e)) then
found := NewDictionary(e,false);
Expand Down Expand Up @@ -1246,10 +1250,10 @@ BindGlobal("ORDER@", function(e)
end);

InstallMethod(Order, "(FR) for an FR element; not guaranteed to terminate",
[IsFRElement and IsFRElementStdRep and IsInvertible], ORDER@);
[IsFRElement and IsFRElementStdRep], ORDER@);

InstallMethod(Order, "(FR) for a Mealy element; not guaranteed to terminate",
[IsMealyElement and IsInvertible], ORDER@);
[IsMealyElement], ORDER@);

InstallMethod(IsLevelTransitive, "(FR) for a group FR element",
[IsGroupFRMealyElement],
Expand Down

0 comments on commit ab86122

Please sign in to comment.