Skip to content

Commit 297e8b2

Browse files
Implemented functions in ParentLibGAP
1 parent df7bf34 commit 297e8b2

File tree

2 files changed

+27
-27
lines changed

2 files changed

+27
-27
lines changed

src/sage/groups/libgap_wrapper.pyx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,33 @@ class ParentLibGAP(SageObject):
345345
"""
346346
return self._libgap._repr_()
347347

348+
def minimal_normal_subgroups(self):
349+
"""
350+
Return a list containing those nontrivial normal subgroups of the group that are minimal among the nontrivial normal subgroups.
351+
352+
EXAMPLES::
353+
354+
sage: G = PermutationGroup([(1,2,3),(4,5)])
355+
sage: G.minimal_normal_subgroups()
356+
[Subgroup generated by [(4,5)] of (Permutation Group with generators [(4,5), (1,2,3)]),
357+
Subgroup generated by [(1,2,3)] of (Permutation Group with generators [(4,5), (1,2,3)])]
358+
"""
359+
return [self.subgroup(gap_subgroup.GeneratorsOfGroup()) for gap_subgroup in self.gap().MinimalNormalSubgroups()]
360+
361+
def maximal_normal_subgroups(self):
362+
"""
363+
Return a list containing those proper normal subgroups of the group G that are maximal among the proper normal subgroups.
364+
Gives error if G/G' is infinite, yielding infinitely many maximal normal subgroups.
365+
366+
EXAMPLES::
367+
368+
sage: G = PermutationGroup([(1,2,3),(4,5)])
369+
sage: G.maximal_normal_subgroups()
370+
[Subgroup generated by [(1,2,3)] of (Permutation Group with generators [(4,5), (1,2,3)]),
371+
Subgroup generated by [(4,5)] of (Permutation Group with generators [(4,5), (1,2,3)])]
372+
"""
373+
return [self.subgroup(gap_group=gap_subgroup) for gap_subgroup in self.gap().MaximalNormalSubgroups()]
374+
348375
@cached_method
349376
def gens(self):
350377
"""

src/sage/groups/perm_gps/permgroup.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4106,33 +4106,6 @@ def isomorphism_type_info_simple_group(self):
41064106
else:
41074107
raise TypeError("group must be simple")
41084108

4109-
def minimal_normal_subgroups(self):
4110-
"""
4111-
Return a list containing those nontrivial normal subgroups of the group that are minimal among the nontrivial normal subgroups.
4112-
4113-
EXAMPLES::
4114-
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)])]
4119-
"""
4120-
return [self.subgroup(gap_group=gap_subgroup) for gap_subgroup in self.gap().MinimalNormalSubgroups()]
4121-
4122-
def maximal_normal_subgroups(self):
4123-
"""
4124-
Return a list containing those proper normal subgroups of the group G that are maximal among the proper normal subgroups.
4125-
Gives error if G/G' is infinite, yielding infinitely many maximal normal subgroups.
4126-
4127-
EXAMPLES::
4128-
4129-
sage: G = PermutationGroup([(1,2,3),(4,5)])
4130-
sage: G.maximal_normal_subgroups()
4131-
[Subgroup generated by [(1,2,3)] of (Permutation Group with generators [(4,5), (1,2,3)]),
4132-
Subgroup generated by [(4,5)] of (Permutation Group with generators [(4,5), (1,2,3)])]
4133-
"""
4134-
return [self.subgroup(gap_group=gap_subgroup) for gap_subgroup in self.gap().MaximalNormalSubgroups()]
4135-
41364109
###################### Boolean tests #####################
41374110

41384111
def is_abelian(self):

0 commit comments

Comments
 (0)