Skip to content
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

polycyclic: IsConjugate for pcp groups returns element instead of boolean #874

Closed
ThGroth opened this issue Aug 3, 2016 · 3 comments
Closed
Labels
kind: bug: wrong result Issues describing bugs that result in mathematically or otherwise wrong results, and PRs fixing them kind: bug Issues describing general bugs, and PRs fixing them topic: packages issues or PRs related to package handling, or specific to a package (for packages w/o issue tracker)

Comments

@ThGroth
Copy link

ThGroth commented Aug 3, 2016

Observed behaviour

As verified in the code the method IsConjugate for polycyclic groups (pkg/polycyclic-2.11/gap/pcpgrp/centcon.gi:328) returns not a boolean but in some cases the conjugator.
For example:

H := DihedralPcpGroup( 0 );
IsConjugate(H,One(H),One(H));

returns "id" instead of "true"

Perhaps the method should be changed to

 InstallMethod( IsConjugate, "for a pcp group", IsCollsElmsElms, [IsPcpGroup, IsPcpElement, IsPcpElement],
      function( G, g, h )
           return not false = ConjugacyElementsBySeries( G, g, h, PcpsOfEfaSeries(G) );
 end );

GAP 4.8.3, 19-Mar-2016, build of 2016-04-20 10:15:48 (CEST)
Architecture: x86_64-pc-linux-gnu-gcc-default64

@markuspf
Copy link
Member

markuspf commented Aug 3, 2016

While this is a bug, and the fix seems to be the correct one, this is a bug in the polycyclic package. @fingolfin would you be able to fix this?

@fingolfin
Copy link
Member

Yes, this should get fixed in polycyclic. Ahh, I wish I had a public bug tracker for that.. Gotta talk to Bettina about this

@fingolfin fingolfin added kind: bug Issues describing general bugs, and PRs fixing them topic: packages issues or PRs related to package handling, or specific to a package (for packages w/o issue tracker) labels May 9, 2017
@fingolfin fingolfin added the kind: bug: wrong result Issues describing bugs that result in mathematically or otherwise wrong results, and PRs fixing them label Jul 20, 2017
@fingolfin fingolfin changed the title IsConjugate for pcp groups returns element instead of boolean polycyclic: IsConjugate for pcp groups returns element instead of boolean Jul 20, 2017
@olexandr-konovalov
Copy link
Member

This issue is migrated to gap-packages/polycyclic#18. Thank you @ThGroth for reporting it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug: wrong result Issues describing bugs that result in mathematically or otherwise wrong results, and PRs fixing them kind: bug Issues describing general bugs, and PRs fixing them topic: packages issues or PRs related to package handling, or specific to a package (for packages w/o issue tracker)
Projects
None yet
Development

No branches or pull requests

4 participants