-
-
Notifications
You must be signed in to change notification settings - Fork 541
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
Isomorphisms of absolute fields can not be used in change_ring #28869
Comments
comment:1
Ticket retargeted after milestone closed |
comment:2
One way to solve this is by moving ring homsets to the new coercion model; among other things, when doing |
Dependencies: #29008 |
Author: Peter Bruin |
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:7
The last commit modifies/adds doctests to cover all |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:9
LGTM. |
Reviewer: Travis Scrimshaw |
Changed branch from u/pbruin/28869-NumberFieldHomset_coercion to |
For a polynomial
f
defined over a number fieldK
, when replacingK
by its absolute fieldL = K.absolute_field(names='b')
there might be an error when changingf
with the appropriate isomorphismf.change_ring(L.structure()[1])
.The problem arises from the fact that
change_ring
wants to check whether the isomorphism is part ofK.Hom(L)
by callingK.Hom(L)(L.structure()[1])
which gives an error ifL.structure()[1]
is not an instance ofNumberFieldHomomorphism_im_gens
which it not necessarily is. Here is a minimal working exampleThe error seems a consequence of a call to
K.Hom(L)
interpreting the argument as an element of the codomain if it is not an instance ofNumberFieldHomomorphism_im_gens
.Here is the example failing on
change_ring
where the error message is even less insightfulDepends on #29008
Depends on #29010
Component: number fields
Keywords: absolute field
Author: Peter Bruin
Branch/Commit:
5939e98
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/28869
The text was updated successfully, but these errors were encountered: