-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
wrong inverse action when using ConstructionFunctor.coercion_reversed #19521
Comments
comment:1
BTW: For some reason it works (partially) for polynomial rings:
but
At one point this should be investigated, but probably on a different ticket. |
Author: Daniel Krenn |
Dependencies: #19259 |
Branch: u/dkrenn/coerce/inverse-action |
Commit: |
comment:4
Branch should fix this; still need to run a Last 10 new commits:
|
comment:5
Replying to @dkrenn:
Passed. So I set it to needs review. |
Reviewer: Benjamin Hackl |
Changed branch from u/dkrenn/coerce/inverse-action to u/behackl/coercion/inverse-action |
comment:6
Hi! I've merged the (positively reviewed) dependency into this branch and reviewed the code in this ticket. I think I understand your fix as well as the strategy behind it, and I am willing to give this a In principle, all that happens is that you order the functors and parents from smallest to largest (in the sense of coercion) and iterate over this reordered tower such that actually the smallest parent with the required property is found? For example, (using your notation from the comment), if we had a tower Also, I'd like to give the patchbots a chance to test this---or, at least, run New commits:
|
comment:7
Replying to @behackl:
Thanks.
Correct.
Ok. |
comment:8
... alright. Passes |
Changed branch from u/behackl/coercion/inverse-action to |
but the result should be
since there is a coercion from the integer ring to the symbolc constants subring.
This is because the attrirute
coercion_reversed
ofConstructionFunctor
is not taken into account.Depends on #19259
Component: coercion
Author: Daniel Krenn
Branch/Commit:
867d6d3
Reviewer: Benjamin Hackl
Issue created by migration from https://trac.sagemath.org/ticket/19521
The text was updated successfully, but these errors were encountered: