-
-
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
p-adic factoring does not detect multiple roots #24193
Comments
comment:1
So, I can replicate this in GP, but I think the problem is that pari doesn't try to handle the precision issues that arise in factoring. This polynomial is not squarefree, so small perturbations of the coefficients will yield polynomials with different factorization patterns. Note the following excerpt from the documentation for pari's
https://pari.math.u-bordeaux.fr/dochtml/html/Polynomials_and_power_series.html I think the solution is to implement the reduction to squarefree factorization in Sage. |
comment:2
I think I remember having this discussion before with you, David. There is no bug. It's an ill-posed question because there is no uniquely defined answer. To give a simpler example:
These are 3 different factorization patterns for polynomials which are all the same up to |
This comment has been minimized.
This comment has been minimized.
comment:3
Replying to @jdemeyer:
Yeah, we've talked about it before though I don't remember the ticket/thread. I agree that this is not a bug in Pari. But I think we should adopt a principle in Sage along the lines of "assume you are in the smallest dimensional subvariety that is consistent with the given information." Otherwise asking for the kernel of a p-adic matrix never makes sense. Though I guess this is inconsistent with the valuation of Anyway, I'm probably not going to work on this ticket immediately. When I'm ready to propose concrete changes like this, I'll raise it on the sage-padics list (and try to track down the discussions that we've had previously). |
This comment has been minimized.
This comment has been minimized.
comment:4
Reduced the bug somewhat. |
This comment has been minimized.
This comment has been minimized.
comment:5
Replying to @roed314:
Right. Knowing a p-adic matrix up to any finite absolute precision is never sufficient to know that it has a kernel. Similarly, knowing any non-squrefree p-adic polynomial to any finite absolute precision is never sufficient to know that it is non-squarefree. That is mathematics, which is easy :-) The hard question is how to deal with this. Personally, I would argue that it's simply an error to ask something if the answer is not well-defined. That is what I tried in #15422 for factoring, but apparently it didn't quite work. That being said, I'm not against "fixing" this "bug". It would make sense to do that as part of #12561 (but that seems to be stalled). |
One could argue that this is simply bad user input, since the problem of factoring a p-adic polynomial is not well-defined if the discriminant is 0.
This is a follow-up to #15422.
Component: padics
Issue created by migration from https://trac.sagemath.org/ticket/24193
The text was updated successfully, but these errors were encountered: