Open mahrud opened 2 years ago
Yes, in general the algorithms described in GTZ work over any PID (at least if factorization is algorithmic). So using MinimalPrimes.m2
it should in theory be possible to test primality in polynomial rings over ZZ
.
I agree that codimension - which is unambiguously defined for every ideal in any commutative ring whatsoever - should be made to work over ZZ
, as Generic => true
is not really always an acceptable workaround.
Another easy computation that does not work over the integers:
I believe the algorithm of Gianni-Trager-Zacharias should work for
minimalPrimes
over integers. Is that right, @jchen419?Somewhat related, codimension also doesn't work, but I believe it is at least a well-defined notion, since we can just look at the primary decomposition of I.
Reported by @sashapevzner