Skip to content

Commit 4c351f7

Browse files
Added another function maximal_normal_subgroups and did some changes in example
1 parent 4fc4d26 commit 4c351f7

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

src/sage/groups/perm_gps/permgroup.py

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4108,18 +4108,34 @@ def isomorphism_type_info_simple_group(self):
41084108

41094109
def minimal_normal_subgroups(self):
41104110
"""
4111-
Return all minimal normal subgroups of the group.
4111+
Return a list containing all minimal normal subgroups of the group.
41124112
41134113
EXAMPLES::
41144114
4115-
sage: G = SymmetricGroup(4)
4116-
sage: G.minimal_normal_subgroups()
4117-
[ Group([ (1,4)(2,3), (1,3)(2,4) ]) ]
4115+
sage: G = PermutationGroup([(1,2,3),(4,5)])
4116+
sage: G.minimal_normal_subgroups()
4117+
[Subgroup generated by [(4,5)] of (Permutation Group with generators [(4,5), (1,2,3)]),
4118+
Subgroup generated by [(1,2,3)] of (Permutation Group with generators [(4,5), (1,2,3)])]
41184119
"""
41194120
gap_subgroups = self.gap().MinimalNormalSubgroups()
41204121
sage_subgroups = [self.subgroup(gap_group=gap_subgroup) for gap_subgroup in gap_subgroups]
41214122
return sage_subgroups
41224123

4124+
def maximal_normal_subgroups(self):
4125+
"""
4126+
Return a list containing those proper normal subgroups of the group G that are maximal among the proper normal subgroups.
4127+
Gives error if G/G' is infinite, yielding infinitely many maximal normal subgroups.
4128+
4129+
EXAMPLES::
4130+
4131+
sage: G = SymmetricGroup(4)
4132+
sage: G.maximal_normal_subgroups()
4133+
[Subgroup generated by [(2,3,4), (1,2,3)] of (Symmetric group of order 4! as a permutation group)]
4134+
"""
4135+
gap_subgroups = self.gap().MaximalNormalSubgroups()
4136+
sage_subgroups = [self.subgroup(gap_group=gap_subgroup) for gap_subgroup in gap_subgroups]
4137+
return sage_subgroups
4138+
41234139
###################### Boolean tests #####################
41244140

41254141
def is_abelian(self):

0 commit comments

Comments
 (0)