Skip to content

wrong group order of a preimage of a group homomorphism #5704

Closed
@ThomasBreuer

Description

@ThomasBreuer

The following happens in GAP 4.13.0 as well as in the current master branch.

gap> G:= AbelianGroup( IsPcGroup, [ 3, 3, 3 ] );;
gap> Size( G );  
27
gap> H:= AbelianGroup( IsPcGroup, [ 3, 3 ] );;
gap> f:= GroupHomomorphismByImages( G, H, GeneratorsOfGroup( G ),
>         [ GeneratorsOfGroup( H )[1], One(H), One(H) ] );;
gap> ker:= Kernel( f );;
gap> Size( ker );
9
gap> pre:= PreImage( f, H );;
gap> HasSize( pre );
true
gap> Size( pre );
81

When the input line Size( ker ) is left out then the HasSize output is false, and the final Size value is correct.

(I found this problem when working on oscar-system/Oscar.jl/pull/3166.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugIssues describing general bugs, and PRs fixing themkind: bug: wrong resultIssues describing bugs that result in mathematically or otherwise wrong results, and PRs fixing themtopic: library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions