Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Size of fp semigroup is negative #685

Closed
james-d-mitchell opened this issue Jul 3, 2020 · 2 comments
Closed

Size of fp semigroup is negative #685

james-d-mitchell opened this issue Jul 3, 2020 · 2 comments
Labels
bug Label for issues or PR which report or fix bugs

Comments

@james-d-mitchell
Copy link
Collaborator

F := FreeSemigroup(2);
s1 := F.1; s2 := F.2;
rels := [ [ s2*s1*s2, s2*s1 ], [ s1, s1 ], [ s2, s2 ], [ s1*s2, s1*s2 ], [
        s2*s1, s2*s1 ] ];
Size(F / rels); # returns -2!!

This is likely caused by libsemigroups returning that the fp semigroup is infinite, and this getting incorrectly returned as -2 in GAP.

@james-d-mitchell james-d-mitchell added the bug Label for issues or PR which report or fix bugs label Jul 3, 2020
@olexandr-konovalov
Copy link
Contributor

I wonder if Size in GAP should have an assertion to forbid negative sizes...

james-d-mitchell added a commit to james-d-mitchell/Semigroups that referenced this issue Jul 29, 2020
james-d-mitchell added a commit to james-d-mitchell/Semigroups that referenced this issue Jul 29, 2020
james-d-mitchell added a commit to james-d-mitchell/Semigroups that referenced this issue Aug 4, 2020
james-d-mitchell added a commit that referenced this issue Aug 5, 2020
@james-d-mitchell
Copy link
Collaborator Author

Resolved in v3.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Label for issues or PR which report or fix bugs
Projects
None yet
Development

No branches or pull requests

2 participants