Skip to content

Commit

Permalink
Add isfinitelygenerated(G::GAPGroup)
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Mar 2, 2022
1 parent 9f88359 commit c83aaa6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/Groups/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ issolvable
isperfect
issimple
isalmostsimple
isfinitelygenerated
```


Expand Down
24 changes: 24 additions & 0 deletions src/Groups/GAPGroups.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export
isalmostsimple, hasisalmostsimple, setisalmostsimple,
isconjugate,
isfinite, hasisfinite, setisfinite,
isfinitelygenerated, hasisfinitelygenerated, setisfinitelygenerated,
isfiniteorder,
isperfect, hasisperfect, setisperfect,
ispgroup,
Expand Down Expand Up @@ -911,6 +912,29 @@ function ispgroup(G::GAPGroup)
return false, nothing
end

"""
isfinitelygenerated(G)
Return whether `G` is a finitely generated group.
# Examples
```jldoctest
julia> F = free_group(2)
<free group on the generators [ f1, f2 ]>
julia> isfinitelygenerated(F)
true
julia> H = derived_subgroup(F)[1]
Group(<free, no generators known>)
julia> isfinitelygenerated(H)
false
```
"""
@gapattribute isfinitelygenerated(G::GAPGroup) = GAP.Globals.IsFinitelyGeneratedGroup(G.X)::Bool


@doc Markdown.doc"""
relators(G::FPGroup)
Expand Down

0 comments on commit c83aaa6

Please sign in to comment.