Skip to content

Fix wrong result of isomorphism(FPGroup, G, on_gens = true) for trivial G with more than 0 generators#4378

Merged
fingolfin merged 2 commits intooscar-system:masterfrom
ThomasBreuer:TB_trivial_FPGroup
Dec 3, 2024
Merged

Fix wrong result of isomorphism(FPGroup, G, on_gens = true) for trivial G with more than 0 generators#4378
fingolfin merged 2 commits intooscar-system:masterfrom
ThomasBreuer:TB_trivial_FPGroup

Conversation

@ThomasBreuer
Copy link
Copy Markdown
Member

for trivial G with more than 0 generators

resolves #4377

for trivial `G` with more than 0 generators
Copy link
Copy Markdown
Contributor

@fieker fieker left a comment

Choose a reason for hiding this comment

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

if it helps... I am never sure about the gap side, in particular in view of the TODO

Comment thread src/Groups/homomorphisms.jl Outdated
if is_trivial(G) && ngens(G) == 0
# TODO: remove this special treatment as soon as the change from
# https://github.com/gap-system/gap/pull/5700 is available in Oscar
# (not yet in GAP 4.13.0)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

gap-system/gap#5700 was backported to gap 4.13.1 which is available in Oscar right now, so you could remove this special case altogether if I am not mistaken here

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Indeed, that seems to work. I just pushed a corresponding commit. It works locally, let's see if it also passes CI.

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.36%. Comparing base (651e595) to head (110a2ae).
Report is 204 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4378      +/-   ##
==========================================
- Coverage   84.36%   84.36%   -0.01%     
==========================================
  Files         652      652              
  Lines       86955    86952       -3     
==========================================
- Hits        73360    73356       -4     
- Misses      13595    13596       +1     
Files with missing lines Coverage Δ
src/Groups/homomorphisms.jl 91.94% <100.00%> (-0.05%) ⬇️

... and 1 file with indirect coverage changes

@fingolfin fingolfin enabled auto-merge (squash) December 3, 2024 20:09
@fingolfin fingolfin merged commit 7526b4f into oscar-system:master Dec 3, 2024
@ThomasBreuer ThomasBreuer deleted the TB_trivial_FPGroup branch December 11, 2024 09:18
@fingolfin fingolfin changed the title fix isomorphism(FPGroup, G, on_gens = true) Fix unexpected error isomorphism(FPGroup, G, on_gens = true) for trivial G with more than 0 generators Feb 27, 2025
@fingolfin fingolfin added bug Something isn't working release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes bug: unexpected error bug: wrong result and removed bug: unexpected error labels Feb 27, 2025
@fingolfin fingolfin changed the title Fix unexpected error isomorphism(FPGroup, G, on_gens = true) for trivial G with more than 0 generators Fix wrong result of isomorphism(FPGroup, G, on_gens = true) for trivial G with more than 0 generators Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug: wrong result bug Something isn't working release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes topic: groups

Projects

None yet

Development

Successfully merging this pull request may close these issues.

isomorphism(FPGroup, G; on_gens=true) incorrect when G is trivial

4 participants