-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug in IsFinitelyGeneratedGroup method
There was an incorrect method for IsFinitelyGeneratedGroup which assumed that a group given by an infinite generating set is not finitely generated, which is of course false: any finitely generated infinite group is generated by its set of elements.
- Loading branch information
Showing
2 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# There was an incorrect method for IsFinitelyGeneratedGroup which assumed | ||
# that a group given by an infinite generating set is not finitely generated, | ||
# which is of course false: any finitely generated infinite group is generated | ||
# by its set of elements. | ||
# | ||
# Test that this is not the case anymore: | ||
gap> F:=FreeGroup(1);; | ||
gap> G:=SubgroupShell(F); | ||
Group(<free, no generators known>) | ||
gap> SetGeneratorsOfGroup(G, Enumerator(F)); | ||
|
||
# We are defensive: GAP should either not know that G is finitely generated | ||
# (that's the situation right now), or, if it ever is improved to handle this | ||
# case, it should correctly determine that G = F is finitely generated (even | ||
# cyclic) | ||
gap> not HasIsFinitelyGeneratedGroup(G) or IsFinitelyGeneratedGroup(G); | ||
true |