Closed mahrud closed 3 years ago
I think the coefficient ring of a local ring R_P should be the coefficient ring of R.
I think I appreciate the simplicity of leaving it this way, and I don't have a specific reason why this could make doing math harder.
The example with (2,x) in ZZ[x] shows the result returned is wrong mathematically, so it should be fixed.
It's returning ZZ now, is that wrong?
So it is, I didn't know it had changed, closing, thanks.
+ M2 --no-readline --print-width 195
Macaulay2, version 1.16.99
with packages: ConwayPolynomials, Elimination, IntegralClosure, InverseSystems, LLLBases, MinimalPrimes, PrimaryDecomposition, ReesAlgebra, Saturation, TangentCone
i1 : needsPackage "LocalRings";
i2 : R = ZZ[x];
i3 : I = ideal(2,x)
o3 = ideal (2, x)
o3 : Ideal of R
i4 : S = localRing (R,I)
o4 = S
o4 : LocalRing, maximal ideal (2, x)
i5 : coefficientRing S
o5 = ZZ
o5 : Ring
It's unclear to me what the correct answer should be. Specifically, I believe
coefficientRing localRing(ZZ[x], ideal x)
should beQQ
, notZZ
:On the other hand, per @DanGrayson:
i1 : needsPackage "LocalRings";
i3 : R = ZZ[x];
i4 : I = ideal(2,x)
o4 = ideal (2, x)
o4 : Ideal of R
i5 : S = localRing (R,I)
o5 = S
o5 : LocalRing, maximal ideal (2, x)
i6 : coefficientRing S
o6 = QQ
o6 : Ring
_Originally posted by @DanGrayson in https://github.com/Macaulay2/M2/pull/1385#discussion_r531232374_