-
-
Notifications
You must be signed in to change notification settings - Fork 568
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
Finite fields defined by Conway polynomials: conversion of elements into subfields #11938
Comments
comment:1
Attachment: trac_11938_conversion_gf_conway.patch.gz Here comes the patch ;) Conversion is possible in both directions (up and down), see example below.
|
Author: Daniel Krenn |
comment:3
I'm afraid this doesn't apply to the current Sage beta (see patchbot logs). I suspect it conflicts with #12084 (merged in 5.0.beta0). |
Work Issues: needs rebase |
Attachment: trac_11938_conversion_gf_conway.2.patch.gz |
This comment has been minimized.
This comment has been minimized.
Changed work issues from needs rebase to none |
Dependencies: #12084 |
comment:6
trac_11938_conversion_gf_conway.2.patch is on sage-5.0.beta13 |
comment:7
This ticket actually fixes a nasty bug in the coding theory part.
After this patch:
Perhaps someone more knowledgeable about conway polynomials and the finite field givaro code can properly review it. I have just minor comments to make. It will be nice to have statements like
instead written as
This will increase the compatibility with python3 (when Sage moves to python3 in the future). |
This comment has been minimized.
This comment has been minimized.
comment:10
Is it normal that the patch is failing it's own doctest? The current answer is negative of the previous answer. From the patchbot:
|
comment:11
I think you might be interested in #8335 which should definitely get in as well and might even superseed what is done here (no time to look at the patches now, so sorry if that's wrong). |
comment:12
Replying to @jpflori:
Thanks for bringing this to our attention. All these nice patches are bitrotting while the functionality remains missing in Sage. I don't know much about the theory behind conway polynomials (or pseudo-conway polynomials that is being used in #8335), otherwise I might have tried to fix this. |
This comment has been minimized.
This comment has been minimized.
comment:13
Some of the stuff here might be more efficient for Givaro than what is provided in #8335, and you also give the opportunity to go down, i.e. from a field to a subfield which is not the case in #8335. Nonetheless, I think both of these should be handled after #8335 gets merged. |
Reviewed patch, rebased on top of #8335. |
This comment has been minimized.
This comment has been minimized.
Reviewer: Jean-Pierre Flori |
comment:15
Attachment: trac_11938-5.11.beta1.patch.gz Rebased the patch on top of #8335, some fixes. |
Changed keywords from finite field, givaro, Conway polynomial, conversion to finite field, givaro, Conway polynomial, conversion, coercion sd51 |
comment:19
In the meantime, #8335 changed a lot and this patch does not apply anymore. On the other hand, after #8335, one can now do
I want to advocate the viewpoint that this feature should only be enabled when a compatible system of finite fields is expressly requested, either using the The fact that elements from It is probably better to put this in One thing to think about: in the current patch, the down-conversion involves taking roots in the finite field. This might be the best way for finite fields that are implemented using Givaro, because it represents elements as powers of a generator of the multiplicative group. For general finite fields, it could be more efficient to write down the inclusion map as an Fp-linear map and to find the unique solution of the corresponding linear system. |
comment:20
I just finished reviewing (and slightly extending) #13214. It seems to me that the problem of mapping finite field elements into subfields is now solved in a more systematic way by #13214. This is due to the following fact: if you have a coercion map K -> L and a section of this map, and if b is in L, typing
Am I correct that #13214 (if positively reviewed) supersedes this ticket? |
comment:21
Indeed it looks like #13214 will supercede this. |
comment:23
I agree that this should be closed as wontfix. |
We have
so one should implement this. Incidentally I did that, patch follows.
Apply
Depends on #13214
CC: @rbeezer @dimpase @jpflori @pjbruin @defeo
Component: finite rings
Keywords: finite field, givaro, Conway polynomial, conversion, coercion sd51
Author: Daniel Krenn
Reviewer: Jean-Pierre Flori
Issue created by migration from https://trac.sagemath.org/ticket/11938
The text was updated successfully, but these errors were encountered: