Skip to content

Commit

Permalink
Merge pull request #513 from wilfwilson/fix-508-eq-for-sgp-ideal
Browse files Browse the repository at this point in the history
Add an IsFinite filter to a method for \= for a semigroup and an ideal
  • Loading branch information
james-d-mitchell authored Sep 10, 2018
2 parents 02958b3 + e50edb0 commit 439dc62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gap/ideals/ideals.gi
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ function(I, J)
and ForAll(GeneratorsOfSemigroup(J), x -> x in I);
end);

InstallMethod(\=, "for a semigroup ideal and semigroup with generators",
InstallMethod(\=, "for a semigroup ideal and finite semigroup with generators",
[IsSemigroupIdeal and HasGeneratorsOfSemigroupIdeal,
IsSemigroup and HasGeneratorsOfSemigroup],
IsSemigroup and HasGeneratorsOfSemigroup and IsFinite],
function(I, S)
if ForAll(GeneratorsOfSemigroup(S), x -> x in I) then
if S = Parent(I) then
Expand Down

0 comments on commit 439dc62

Please sign in to comment.