From 1ce1e7c4b15c7f52dab5b7579b8b48a769a861e6 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 31 Jul 2017 18:31:09 +0200 Subject: [PATCH] Change doc of IsPGroup to *not* require finiteness --- lib/grp.gd | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/grp.gd b/lib/grp.gd index 89c36764e0..3eb9310dcf 100644 --- a/lib/grp.gd +++ b/lib/grp.gd @@ -415,11 +415,18 @@ DeclareOperation( "KnowsHowToDecompose", [ IsGroup, IsList ] ); ## ## ## p-group -## A p-group is a finite group whose order -## (see ) is of the form p^n for a prime -## integer p and a nonnegative integer n. +## A p-group is a group in which the order +## (see ) of every element is of the form p^n +## for a prime integer p and a nonnegative integer n. ## returns true if G is a ## p-group, and false otherwise. +##

+## Finite p-groups are precisely those groups whose order +## (see ) is a prime power, and are always +## nilpotent. +##

+## Note that p-groups can also be infinite, and in that case, +## need not be nilpotent. ## ## ## <#/GAPDoc>