-
Notifications
You must be signed in to change notification settings - Fork 136
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
Cleanup some code related to dim(I) == -inf
checks
#4571
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not 100% sure about all the changes made, sorry. But thanks for the attempt.
src/Rings/mpolyquo-localizations.jl
Outdated
@@ -2555,7 +2555,6 @@ end | |||
@attr Union{Int, NegInf} function dim(R::MPolyQuoLocRing{<:Any, <:Any, <:MPolyRing, <:MPolyRingElem, <:Union{MPolyComplementOfPrimeIdeal, MPolyComplementOfKPointIdeal}}) | |||
P = prime_ideal(inverted_set(R)) | |||
I = saturated_ideal(modulus(R)) | |||
dim(I) === -inf && return -inf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This catches the case where the sum below is -Inf - (-Inf)
. Not sure this can ever happen, though.
Now that I look at the title again: If anything, it should be "Replace |
I do not understand the title of this PR: julia> R, (x,) = polynomial_ring(QQ, [:x]) julia> I = ideal(R, [one(R)]) julia> dim(I) julia> is_zero(I) julia> is_one(I) |
dim(I) == -inf
by is_zero(I)
dim(I) == -inf
by is_one(I)
766655f
to
a65401b
Compare
dim(I) == -inf
by is_one(I)
dim(I) == -inf
checks
Revised now. Sorry my confusion and the confusion it caused others :-( |
a65401b
to
a66dae3
Compare
@HechtiDerLachs OK to merge? |
bdfcf10
to
8443c65
Compare
Also remove two redundant
dim
checks. The removed code inmonomial_basis
was never triggered.