Skip to content

Commit 7cbdb84

Browse files
authored
Merge pull request #78 from rlutowsk/rl-leftcosets
correcting behaviour of `LeftCoset` creation
2 parents 6ce1627 + 3cd7900 commit 7cbdb84

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

doc/groups.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ by converting <M>gU</M> to <M>Ug^{-1}</M>;
172172
applying the equivalent method for right cosets;
173173
and, if necessary, converting back again to left cosets.
174174
<P/>
175-
<M>G</M> acts on <M>gU</M> by <C>OnLeftInverse</C>:
175+
<M>G</M> acts on left cosets by <C>OnLeftInverse</C>:
176176
<M>(gU)^{g_0} = g_0^{-1}*(gU) = (g_0^{-1}g)U</M>.
177177
<P/>
178178
</Description>

lib/lcset.gi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function( g, U )
2323
ObjectifyWithAttributes( lc, fam!.leftCosetsDefaultType,
2424
Representative, g,
2525
ActingDomain, U,
26-
FunctionAction, OnLeftInverse,
26+
FunctionAction, OnRight,
2727
IsLeftCoset, true );
2828
if HasSize( U ) then
2929
SetSize( lc, Size( U ) );

tst/lcset.tst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ gap> IsBiCoset( LeftCoset( (1,7), AlternatingGroup(6) ) );
2626
false
2727
gap> IsLeftCoset( LeftCoset( (1,2,3), MathieuGroup(12) ) );
2828
true
29+
gap> g:=SymmetricGroup(3);;
30+
gap> h:=Group((1,2));;
31+
gap> List(LeftCosets(g,h), SSortedList);
32+
[ [ (), (1,2) ], [ (1,3,2), (1,3) ], [ (2,3), (1,2,3) ] ]
2933

3034
# test intersecting permutation cosets
3135
gap> H1 := Group( [ (), (2,7,6)(3,4,5), (1,2,7,5,6,4,3) ] );;

0 commit comments

Comments
 (0)