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

IrredundantGeneratingSubset for a semigroup with a single repeated generator #160

Closed
wilfwilson opened this issue Apr 22, 2016 · 1 comment
Assignees
Labels
bug Label for issues or PR which report or fix bugs

Comments

@wilfwilson
Copy link
Collaborator

In stable-2.7 and unstable 3.0, IrreundantGeneratingSubset first checks whether there is only one generator; and returns it if so. It then takes the set of generators (sorts and removes duplicates) and now continues, assuming there are at least 2 generators.

If the generating set consists of a single generator repeated multiple times, then this assumption is wrong and the function ends up failing, as below:

gap> S := Semigroup([Transformation([1, 1]), Transformation([1, 1])]);
<transformation semigroup of degree 2 with 2 generators>
gap> IrredundantGeneratingSubset(S);
Error, Usage: cannot create a semigroup with no generators, at /Users/Wilf/GAP/lib/semigrp.gi:570 called from
Semigroup( Difference( gens, [ x ] )

I'll submit a pull request to fix this.

@wilfwilson wilfwilson self-assigned this Apr 22, 2016
wilfwilson added a commit to wilfwilson/Semigroups that referenced this issue Apr 22, 2016
IrreundantGeneratingSubset behaves incorrectly when given a
semigroup whose generating set consists of a single repeated
element.

Resolves: semigroups#160
wilfwilson added a commit to wilfwilson/Semigroups that referenced this issue Apr 22, 2016
IrreundantGeneratingSubset behaves incorrectly when given a
semigroup whose generating set consists of a single repeated
element.

Resolves: semigroups#160
@wilfwilson wilfwilson added bug Label for issues or PR which report or fix bugs 3.0 and removed 3.0 labels Apr 22, 2016
james-d-mitchell added a commit that referenced this issue Apr 23, 2016
Fix IrredundantGeneratingSubset in stable-2.7 (Issue #160)
james-d-mitchell added a commit that referenced this issue Apr 23, 2016
Fix IrredundantGeneratingSubset in unstable-3.0 (Issue #160)
@james-d-mitchell
Copy link
Collaborator

This is closed by PR #161 and #162

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