Skip to content

Commit

Permalink
rename minimal_generating_set for groups to `minimal_size_generatin…
Browse files Browse the repository at this point in the history
…g_set` (oscar-system#4278)
  • Loading branch information
ThomasBreuer authored Nov 6, 2024
1 parent 309dcf7 commit 24711ee
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions docs/src/Groups/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ has_gens(::GAPGroup)
number_of_generators(G::GAPGroup)
gen(::GAPGroup, i::Int)
small_generating_set(G::GAPGroup)
minimal_size_generating_set(G::GAPGroup)
Base.rand(G::GAPGroup)
rand_pseudo(G::GAPGroup)
```
Expand Down
12 changes: 6 additions & 6 deletions src/Groups/GAPGroups.jl
Original file line number Diff line number Diff line change
Expand Up @@ -673,25 +673,25 @@ julia> length(small_generating_set(abelian_group(PermGroup, [2,3,4])))
end

"""
minimal_generating_set(G::GAPGroup)
minimal_size_generating_set(G::GAPGroup)
Return a vector of minimal length of elements in `G` that generate `G`.
# Examples
```jldoctest
julia> length(minimal_generating_set(abelian_group(SubPcGroup, [2,3,4])))
julia> length(minimal_size_generating_set(abelian_group(SubPcGroup, [2,3,4])))
2
julia> length(minimal_generating_set(abelian_group(PermGroup, [2,3,4])))
julia> length(minimal_size_generating_set(abelian_group(PermGroup, [2,3,4])))
2
julia> minimal_generating_set(symmetric_group(5))
julia> minimal_size_generating_set(symmetric_group(5))
2-element Vector{PermGroupElem}:
(1,2,3,4,5)
(1,2)
```
"""
@gapattribute function minimal_generating_set(G::GAPGroup)
@gapattribute function minimal_size_generating_set(G::GAPGroup)
L = GAP.Globals.MinimalGeneratingSet(GapObj(G))::GapObj
res = Vector{elem_type(G)}(undef, length(L))
for i = 1:length(res)
Expand Down Expand Up @@ -1852,7 +1852,7 @@ end
# if is_free(G) || (has_is_finite(G) && is_finite(G) && is_pgroup(G))
# return GAP.Globals.Rank(GapObj(G))::Int
# end
# has_is_finite(G) && is_finite(G) && return length(minimal_generating_set(G))
# has_is_finite(G) && is_finite(G) && return length(minimal_size_generating_set(G))
# error("not yet supported")
#end

Expand Down
4 changes: 4 additions & 0 deletions src/deprecations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,7 @@ Base.@deprecate_binding in_linear_system is_in_linear_system
@deprecate scheme(W::AbsAlgebraicCycle) ambient_scheme(W)
@deprecate scheme(W::CartierDivisor) ambient_scheme(W)
@deprecate scheme(W::EffectiveCartierDivisor) ambient_scheme(W)

@deprecate minimal_generating_set(G::GAPGroup) minimal_size_generating_set(G)
@deprecate has_minimal_generating_set(G::GAPGroup) has_minimal_size_generating_set(G)
@deprecate set_minimal_generating_set(G::GAPGroup, v) set_minimal_size_generating_set(G, v)
3 changes: 2 additions & 1 deletion src/exports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,8 @@ export min_weights
export minimal_betti_table
export minimal_block_reps
export minimal_faces
export minimal_generating_set, has_minimal_generating_set, set_minimal_generating_set
export minimal_generating_set
export minimal_size_generating_set, has_minimal_size_generating_set, set_minimal_size_generating_set
export minimal_nonfaces
export minimal_normal_subgroups, has_minimal_normal_subgroups, set_minimal_normal_subgroups
export minimal_primes
Expand Down

0 comments on commit 24711ee

Please sign in to comment.