-
Notifications
You must be signed in to change notification settings - Fork 160
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
Change definition of IsPGroup to *not* require finiteness #1545
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1545 +/- ##
==========================================
- Coverage 63.12% 63.06% -0.06%
==========================================
Files 967 970 +3
Lines 290318 292381 +2063
Branches 12746 12906 +160
==========================================
+ Hits 183269 184398 +1129
- Misses 104248 105177 +929
- Partials 2801 2806 +5
|
I'd make the documentation of IsPGroup more explicit about finiteness, especially as it a change. That is I would say directly that infinite p groups are allowed and that code which relies on properties like finiteness or nilpotence should require (or test) it explicitly. |
I agree with @stevelinton , this should be made very explicit. I updated the documentation comment, please check if that's better, or please suggest further edits. I also split out most of the changes into PR #1578, which I hope is uncontroversial, and could be merged sooner, so that this PR can focus on the change in the meaning of |
9b7dcf4
to
97be091
Compare
Updated to match PR #1578 -- interestingly, the only extra change is a change to the
|
@fingolfin segmentation fault in Travis test of HPC-GAP... |
@alex-konovalov well, not surprising, given that it does om Travis, too :-) |
Specifically, this PR has not yet been updated to match #1578, so testing it is pointless for now. |
985bc51
to
3c3dc4a
Compare
I have now pushed a rebased version of this PR, but to clarify, I don't expect this to go into 4.9 so briefly before release. I'd still like #1578 to be merged, though. |
3c3dc4a
to
1ce1e7c
Compare
I support this change. |
I support this change. In fact, if #1578 went into 4.9, then I suggest to move this into 4.9, as well. This is really the documentation of that change. |
@hungaborhorvath I disagree. First off, this is a fairly major change (even though it only affects documentation), and we already released the first beta of 4.9 -- it is now way too later for putting in such a change. Secondly, I don't see how you justify that this PR here "is really the documentation of [PR #1578]". The only thing I can see in that PR that might justify this assertion is that it changed InstallTrueMethod( IsPowerfulPGroup, IsPGroup and IsAbelian );
...
InstallTrueMethod( IsNilpotentGroup, IsGroup and IsPGroup ); to this, with InstallTrueMethod( IsPowerfulPGroup, IsFinite and IsPGroup and IsAbelian );
...
InstallTrueMethod( IsNilpotentGroup, IsGroup and IsPGroup and IsFinite ); But if one keeps up the definition that Perhaps there is something else in that PR to support your claim, if so, please point it out, then we can decide if it needs to be reverted in the |
@fingolfin I see #1578 as the technical implementation of the consequences of the decision to use the usual definition of p-groups which allows for infinite groups, as well. You even admitted that this was your goal all along, but of course you did it in a way so that it does not break anything. In my opinion this change was long overdue, and I very much welcomed it. In fact, as far as I can see, gap 4.9 does not assume anymore that p-groups are finite. So we might as well say that p-groups are not assumed to be finite, anymore. I do not see this as much of a problem. 4.9 is still beta, and it is not like it was distributed very widely as a stable release. In fact, google has no idea about gap 4.9, and had I not been on the gap forum, I would not know about its existence or where to download it. I think it is much worse when a package gets released which is not compatible with the current stable gap version (which happened I think with 4.8.9 and Semigroups package, maybe, I do not remember exactly). But anyway, if you feel this is too big a change to put it into the stable 4.9 release, I do not mind much. If anyone wants to define infinite p-groups, they will be able to do so. I just personally do not see the point of taking another 2-3 (4-5?) years on this decision (until 4.10 comes out) when the actual work is already done and will be released with 4.9. |
@hungaborhorvath FYI, I recently learned from @Stefan-Kohl that one can already now define infinite p-groups in GAP (albeit of course not yet in the filter As to timeline: Our plan is to release 4.10 later this year. That it took 2 years from 4.8 to 4.9 is unfortunate, but was mostly because of several large projects (e.g. revised build system, integration of HPC-GAP) which delayed the release by a year, and also later on organizational problems with e.g. the creation of release notes (which sounds like a trivial thing, but really isn't) |
Also, conversely: GAP managed to be usable for 20+ years with this definition for |
@fingolfin As I said, I do not mind if this does not go into 4.9, it is just simply my preference. Anyway, I hope that the timeline on 4.10 can be kept. |
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 looks good to me.
Is there some statement in the release notes that people should keep an eye out for slow-downs if they don't tell GAP that a p-group they are using is finite? I could imagine some pretty big slowdowns if a generic algorithm is used instead of one suitable for nilpotent ones. |
This is kind of the opposite of PR #483 which changes the implementation (i.e. the actual filter) of
IsPGroup
to implyIsFinite
, matching its documentation. This PR instead adjusts the documentation to also include infinite p-groups.That means of course that
IsPGroup
should no longer implyIsNilpotent
-- instead,IsFinite and IsPGroup
is needed.We discussed this briefly a few years ago, and IIRC the thought was that it's too risky to change this, as code might implicitly rely on
IsPGroup
"implying"IsFinite
. Well, I audited all distributed packages and the GAP library, and surprisingly little code does. And virtually all of it just would run into an error if used on an infinite p-group.The main reason to adjust code to explicitly check for
IsFinite
thus would be to get more helpful error messages... I performed various adjustments in this direction, which were merged as part of PR #1578. I also submitted patches to a few packages which improved code that seemed to implicitly rely on p-groups being finite, but in all cases, the only effect an infinite p-group should have would be a plain error, or perhaps a non-terminating program (e.g. trying to get an infinite generating set).In the end, all that is left for this PR is to adjust the documentation!