-
Notifications
You must be signed in to change notification settings - Fork 132
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
Difference in handling of non-identical parent groups in MapFromFunc
and hom
#4432
Comments
MapFromFunc
behaves badly if domain is a permutation groupMapFromFunc
behaves badly if domain is a symmetric group
I think the problem is that the parent of
I would say that |
Then, in contrast, is the behaviour of
should be considered the same or as distinct copies of Sym(4) (and this is surely a design decision which has already been made long ago), but it is not clear to me why |
On Thu, Jan 09, 2025 at 03:09:13AM -0800, Torben Wiedemann wrote:
Then, in contrast, is the behaviour of `hom` unexpected? I have no opinion whether `G` and `H` in
```
julia> G = symmetric_group(4)
Sym(4)
julia> H = symmetric_group(4)
Sym(4)
```
should be considered the same or as distinct copies of Sym(4) (and this is surely a design decision which has already been made long ago), but it is not clear to me why `hom` should work in one way and `MapFromFunc` the other way.
My guess is that hom here defaults to gap. In gap Sn = Sn. MapFromFunc
is pure Oscar, here Sn !== Sn (deliberately) and the 1st is to check if
the element is in the domain....
I'd call this sloppyness in the hom case
Also: symmetric_group possibly should have a "chached=true/false" option
…
--
Reply to this email directly or view it on GitHub:
#4432 (comment)
You are receiving this because you are subscribed to this thread.
Message ID: ***@***.***>
|
MapFromFunc
behaves badly if domain is a symmetric groupMapFromFunc
and hom
Adding a See also #129 (from 2020...) |
image for gap-homs is lazy/ generous/ wrong:
does the checks, but
checks nothing on the input, in fact forgets the parent and just chages the parent to the correct one on exit.
|
Describe the bug
Expected behavior
I would expect
image(fmap, g)
to produce the same result asimage(fmap, h)
. The documentation ofcperm
states that the parent ofh
should be set tosymmetric_group(4)
, which isG
, so there should not be a difference betweeng
andh
. Indeed:Further, the error message "Element not in the domain" is confusing because
In contrast,
hom
works as I would expect:System (please complete the following information):
The text was updated successfully, but these errors were encountered: