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
Fix membership in QQbar for number field elements -- canonical embedding of subfields #4621
Comments
Attachment: 4621-qqbar-embed.patch.gz |
comment:1
This issue is fixed. Followup about embedding into QQbar at #7960. |
comment:3
A side effect of this patch is the following because it now tries to explicitly convert its argument to QQ. Is that desirable?
(Related 'in's:
) |
comment:4
This exposes a separate but that == for QQbar is not symetric...
|
comment:5
See #7984 for a fix for QQbar cmp. |
comment:6
For this to return True, one would have to change the definition of canonical comparison--not something that should be done lightly. |
comment:7
Just a note -- this patch no longer works with #7984. |
comment:12
The reason why this fails is
One way to fix it is to be more flexible on creation of algebraic number (in Vincent |
comment:13
Replying to @videlec:
the above is fixed in #14485 and #20400 but it does not solve the containment test! |
comment:16
To put it another way. In Sage 9.3.rc0:
|
This comment has been minimized.
This comment has been minimized.
comment:17
Replying to @slel:
The embedding is not set by writing only
Though the following is definitely annoying
|
comment:18
Note that it will quickly become annoying with extensions
|
comment:19
Note also that
Again, with properly set embeddings it compares as a user might expect
|
comment:20
The only way I can imagine a fix would be to implement intersection of parents as part of the coercion model. It would have at least the following requirements
Given that, we could design a more reasonable |
comment:21
Thanks for launching a discussion on sage-devel: |
comment:22
Sage development has entered the release candidate phase for 9.3. Setting a new milestone for this ticket based on a cursory review. |
comment:23
Setting a new milestone for this ticket based on a cursory review. |
comment:24
Stalled in |
Reported by Alex Raichev
on sage-support.
or more directly
Perhaps related to this is
Robert Bradshow comments that
F.is_subring(QQbar)
should beFalse
, becauseQQbar
has a canonical embedding intoCC
, butF
has not.So, from that point of view, it makes sense that
a^2
is inF
but not inQQbar
. However,a^2
is equal to2
after all, and hence is in a part ofF
that does have a canonical embedding.In other words, we have a field element
x
inF_1
such that there is in fact a subfieldF_2
ofF_1
withx
inF_1
. Moreover, we have a fieldF_3
such thatF_2
has a canonical embedding intoF_3
, butF_1
has no canonical embedding.Is it possible for Sage to detect that situation?
Idea: Is there a unique maximal subfield
F_m
ofF_1
that has a canonical embedding intoF_3
? If there is, there could be a methodmax_subfield_coercing_into(...)
.Then, in the original example, we probably have
and then
x in QQbar
would answerTrue
, sinceSorry if that idea is not realistic.
CC: @kliem @slel
Component: algebra
Keywords: canonical embedding subfield
Issue created by migration from https://trac.sagemath.org/ticket/4621
The text was updated successfully, but these errors were encountered: