Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Rings/mpoly-ideals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -627,16 +627,16 @@ Ideal generated by

julia> RI = radical(I)
Ideal generated by
1326*a*d
663*a*c
102*b*d
51*b*c
663*a*c*d
51*b*c*d
78*a*d
51*b*c
39*a*c
6*a*b*d
3*a*b*c
1326*a*d
663*a*c
663*a*c*d
51*b*c*d
39*a*c*d
3*a*b*c*d
```
Expand Down
7 changes: 7 additions & 0 deletions src/Rings/mpolyquo-localizations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,14 @@ function simplify(L::MPolyLocRing{<:Any, <:Any, <:Any, <:Any, <:MPolyPowersOfEle
return Lnew, hom(L, Lnew, f), hom(Lnew, L, finv, check=false)
end

# The `simplify` routine uses Singular's "elimpart". This does not work
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this comment should be attached to the next method, as the method it documents right now does not call into Singular at all?

# when the coefficient ring is not a field. Hence, unless that is the case,
# we refrain from doing anything here.
function simplify(L::MPolyQuoRing)
return L, identity_map(L), identity_map(L)
end

function simplify(L::MPolyQuoRing{<:MPolyRingElem{T}}) where {T<:FieldElem}
J = modulus(L)
R = base_ring(L)
is_zero(ngens(R)) && return L, identity_map(L), identity_map(L)
Expand Down
8 changes: 6 additions & 2 deletions test/Rings/mpoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -693,5 +693,9 @@ end
@test Oscar.is_known(is_principal, I3) # result is cached
end



@testset "issue 5175" begin
R,(x,y) = polynomial_ring(ZZ,2)
I = ideal(R,[y,2*x-1])
@test !is_one(radical(I))
end

Loading