-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ONanScottType
and introduce RestrictedInverseGeneralMapping
#1937
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1937 +/- ##
==========================================
+ Coverage 65.88% 65.89% +0.01%
==========================================
Files 898 898
Lines 273240 273306 +66
Branches 12749 12775 +26
==========================================
+ Hits 180020 180091 +71
+ Misses 90406 90398 -8
- Partials 2814 2817 +3
|
lib/grpperm.gi
Outdated
# so the group now is of type 3 or 4. Next we determine a simple socle | ||
# factor and a direct product of all but one socle factor. | ||
# simple socle factor. | ||
stb:=Stabilizer(s,1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this wrong if the socle's domain doesn't include 1
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gap> G := Group(GeneratorsOfGroup(PrimitiveGroup(3600,1)));;
gap> ONanScottType(G^(1,3601));
"4b"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Thank you. Fixed.
This now breaks
The 2nd diff clearly follows from the 1st; seeing It also breaks manual examples, but that does not sound dangerous:
|
@hulpke furthermore with the current version of this PR, I have:
(compare with previous behaviour in #852). |
@alex-konovalov |
@hulpke thanks. I guess this PR will require an interactive rebase before merging it in its final form. |
@alex-konovalov gap> SetAssertionLevel(2); runs through in a few minutes. Should I call it differently? |
@alex-konovalov |
@hulpke could be useful to add a test file calling |
@alex-konovalov |
@hulpke will work, because PrimGrp is required package. |
For a discussion of the enhancements see #1982 |
@alex-konovalov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, esp. the new RestrictedInverseGeneralMapping
(which also fixes the polycyclic
tests, which now pass again, yay :-)
lib/ghomperm.gi
Outdated
# [ n + 1 .. n + k ], conperminv, One( Source( hom ) ), hom, | ||
# KernelOfMultiplicativeGeneralMapping ); | ||
#fi; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps there is no need to keep the commented out code above any more?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can take it out -- it was there to allow for easy undo if issues would have come up.
## | ||
#A RestrictedInverseGeneralMapping( <map> ) | ||
## | ||
## <#GAPDoc Label="RestrictedInverseGeneralMapping"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a matching Include
statement somewhere in doc/ref/*.xml
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added now.
## positive integer <A>e</A> such that <A>a^e=b</A>, or <K>false</A> if no such | ||
## element exists. | ||
## </Description> | ||
## </ManSection> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to observe that this is not documented (fine with me, just in case).
Also, would it be better to return fail
instead of false
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to stay with false
for a valid "not a number" output, and keep fail
for "calculation did not complete".
@hulpke thanks, looks good to me now. Will you do |
generator redundancy testing in perm groups. FIX: Need to place differently to satisfy load order.
This will resolve gap-system#944 and gap-system#1971 (also utilize stored inverse hom.)
This fixes gap-system#852 also changed manual example that was affected by prior change This includes: added enhancements suggested by ssicha, tests, manual include, minor cleanup.
@alex-konovalov What do we do with the data library, that will need updates as well? |
@hulpke there is a PR for primitive groups library at gap-packages/primgrp#12 - looks good to me, I am going to merge it and release new version. Please have a look at it too and leave a comment if it looks good to you. |
lib/permutat.g
Outdated
@@ -722,6 +722,7 @@ InstallMethod( Order, | |||
[ IsPerm ], | |||
ORDER_PERM ); | |||
|
|||
|
|||
############################################################################# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is included in this PR, but only because an empty line has been added? Could you revert it, please?
@hulpke said
I still can see them clicking on "Show outdated", so it's fine with me if you will amend commits and force-push in cases like that, instead of pushing a correcting commit, and then rebasing and force-pushing. |
Checked again with gap-packages/primgrp#12, all works fine. I think we can merge this now. |
I've released new PrimGrp 3.3.0 today. It will be picked up for testing tomorrow. |
ONanScottType
and introduce RestrictedInverseGeneralMapping
.
ONanScottType
and introduce RestrictedInverseGeneralMapping
. ONanScottType
and introduce RestrictedInverseGeneralMapping
These are (besides minor enhancements) corrections that are needed for 4.9:
ONanScottType, Homomorphisms