-
-
Notifications
You must be signed in to change notification settings - Fork 535
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
Creating homomorphisms of relative number fields seems totally broken #4726
Comments
This comment has been minimized.
This comment has been minimized.
Author: Robert Harron |
comment:3
I just uploaded a patch that allows you to construct relative number field morphisms as above (the code simply wasn't written accept something like that). I just made it go recursively through the list you provide, so in a tower of fields, you only need to provide the images up to the point where your morphism is the identity. I'll set this to needs review after I do a full doctest overnight (the number_field module passes all doctests). |
comment:5
This mostly works well. I tried it on some cases where the relative
My concerns are about when the default base homomorphism is used. It is certainly not correct to describe Pick an embedding of the base field of self into the codomain of this homset. This is done in an essentially arbitrary way. Since the value is cached, see line 526 of
This happens because
which does not restrict to the base_field correctly. I note that at present In fact since
there is only one homomorphism from |
comment:6
Nice catch. I've written a fix for _from_im and have mostly done writing up code that given a "short" list for im_gens attempts to find a base_hom that works. I'll upload it when I get that done. |
comment:9
Attachment: trac_4726_enhance_relative_number_morphism_constructor.patch.gz Alright, I've updated the patch. I added a check in _from_im for whether the morphism agrees with base_hom. And I added a new method _from_im_without_base_hom which is like _from_im, but attempts to find a base_hom compatible with the im_gen passed. |
comment:10
This improves things significantly. But I'm not too happy about The real problem is that the present code for I attach a patch (to be applied after your latest patch) which implements these changes. In addition it rewrites There are some problems too with the docstring for
I also think that there needs to be a warning that a homomorphism for which a partial list of generators is given may not be uniquely defined. In |
Reviewer: Francis Clarke |
Attachment: trac_4726_reviewer.patch.gz To be applied on top of trac_4726_enhance_relative_number_morphism_constructor.patch |
The following
_should_
create the correct homomorphism (complex conjugation, see #4725):However it doesn't.
CC: @lftabera
Component: number fields
Author: Robert Harron
Reviewer: Francis Clarke
Issue created by migration from https://trac.sagemath.org/ticket/4726
The text was updated successfully, but these errors were encountered: