Skip to content

Conversation

@stevelinton
Copy link
Contributor

as already existed for Natural Symmetric Groups.

There might be more similar ommissions so don't merge yet.

@frankluebeck
Copy link
Member

Looks good to me so far.

@stevelinton
Copy link
Contributor Author

Looking at the code for natural symmetric and alternating groups more closely, it was a bit of a mess. There was a StabilizerOp method that could never be called, for instance. The latest version of this includes effective StabilizerOp methods for natural Sn for some basic actions. Still WIP.

@stevelinton stevelinton changed the title Add Size and Random for Natural Alternating Groups (WIP) Add Size and Random for Natural Alternating Groups Nov 27, 2015
@stevelinton
Copy link
Contributor Author

As far as I know this is now good to merge.

@ChrisJefferson
Copy link
Contributor

Only found one small issue:

gap> g := Group([()]);;
gap> IsAlternatingGroup(g);
true
gap> Size(g);
1/2

@olexandr-konovalov
Copy link
Member

Thanks - let's merge this. I'd only update the title of this PR to reflect that is also contains some further improvements,not only Size and Random.

@stevelinton stevelinton changed the title Add Size and Random for Natural Alternating Groups New and better methods for Natural Alternating and Symmetric Groups Nov 30, 2015
markuspf added a commit that referenced this pull request Nov 30, 2015
New and better methods for Natural Alternating and Symmetric Groups
@markuspf markuspf merged commit c8817d2 into gap-system:master Nov 30, 2015
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stevelinton while loading the library, SYMGP_STABILIZER causes "unbound global variable" warning for gens and size. This does not crash testinstall, but but hits the test of Tutorial examples and seemingly teststandard. Shall I just add them to local ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, please.

@olexandr-konovalov
Copy link
Member

Finally, something less trivial: this input, based on the doc/tut/group.xml leads to an error:

s8 := Group( (1,2), (1,2,3,4,5,6,7,8) );
a8 := DerivedSubgroup( s8 );
IsNaturalAlternatingGroup(a8);
pairs := Tuples( [1..8], 2 );;
IsTransitive( a8, pairs, OnPairs );
orbs := Orbits( a8, pairs, OnPairs );; Length( orbs );
u56 := Stabilizer( a8, orbs[2][1], OnPairs );; Index( a8, u56 );

and the error is

gap> u56 := Stabilizer( a8, orbs[2][1], OnPairs );; Index( a8, u56 );
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `AlternatingSubgroup' on 1 arguments called from
AlternatingSubgroup( CallFuncList( SYMGP_STABILIZER, Concatenation( [ SymmetricParentGroup( g ) ], arg 
     ) ) ) at /Users/alexk/GITREPS/gap/lib/gpprmsya.gi:1007 called from
orbish( G, pnt, gens, acts, act ) at /Users/alexk/GITREPS/gap/lib/oprt.gd:863 called from
CallFuncList( StabilizerFunc, arg ) at /Users/alexk/GITREPS/gap/lib/oprt.gi:2829 called from
<function "Stabilizer">( <arguments> )
 called from read-eval loop at line 30 of *stdin*
you can 'quit;' to quit to outer loop, or
you can 'return;' to continue
brk> 

If one removes the call of IsNaturalAlternatingGroup(a8); then everything works.

@stevelinton
Copy link
Contributor Author

Fixed now in a commit on the master branch.

@olexandr-konovalov
Copy link
Member

Thanks - 4485002 fixed all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants