Skip to content

Commit

Permalink
fix filter problem and also add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianrun-Y committed Jul 31, 2024
1 parent 554e0dd commit 513712b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gap/attributes/attr.gi
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ end);


InstallMethod(InversesOfSemigroupElementNC,
"for CanUseFroidurePin and a multiplicative element",
"for a semigroup that can use froidure-pin and a multiplicative element",
[CanUseFroidurePin, IsMultiplicativeElement],
function(S, a)
local R, L, inverses, e, f, s;
Expand All @@ -793,7 +793,7 @@ function(S, a)
end);

InstallMethod(InversesOfSemigroupElement,
"for a semigroup and a multiplicative element",
"for a semigroup that can use froidure-pin and a multiplicative element",
[CanUseFroidurePin, IsMultiplicativeElement], # to beat the library method
function(S, x)
if not IsFinite(S) then
Expand Down Expand Up @@ -834,7 +834,7 @@ function(S, a)
end);

InstallMethod(OneInverseOfSemigroupElement,
"for CanUseFroidurePin and a multiplicative element",
"for a semigroup and a multiplicative element",
[IsSemigroup, IsMultiplicativeElement],
function(S, x)
if not IsFinite(S) then
Expand Down
5 changes: 5 additions & 0 deletions tst/standard/attributes/attr.tst
Original file line number Diff line number Diff line change
Expand Up @@ -1494,6 +1494,11 @@ fail
gap> OneInverseOfSemigroupElement(S, S.1 * S.2 * S.1);
Matrix(IsBooleanMat, [[1, 1, 1], [1, 1, 1], [0, 0, 1]])

# OneInverseOfSemigroupElement, for a semigrop that cannot use Froidure-PrincipalFactor
gap> S := Semigroup(SEMIGROUPS.UniversalFakeOne);;
gap> OneInverseOfSemigroupElement(S, S.1);
[ <universal fake one> ]

# OneInverseOfSemigroupElement, for an infinite semigroup, 1
gap> S := FreeSemigroup(1);
<free semigroup on the generators [ s1 ]>
Expand Down

0 comments on commit 513712b

Please sign in to comment.