Skip to content

Commit

Permalink
Repair methods for has_dim_leq_zero.
Browse files Browse the repository at this point in the history
  • Loading branch information
HechtiDerLachs committed Oct 4, 2024
1 parent 2dd38da commit f4df3ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AlgebraicGeometry/Schemes/Sheaves/IdealSheaves.jl
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ end
end

@attr Bool function has_dimension_leq_zero(I::Ideal)
is_one(I) && return true
#is_one(I) && return true
return dim(I) <= 0
end

Expand All @@ -354,14 +354,14 @@ end
P = base_ring(R)::MPolyRing
J = ideal(P, numerator.(gens(I)))
has_dimension_leq_zero(J) && return true
is_one(I) && return true
#is_one(I) && return true
return dim(I) <= 0
end

@attr Bool function has_dimension_leq_zero(I::MPolyQuoLocalizedIdeal)
R = base_ring(I)
P = base_ring(R)::MPolyRing
J = ideal(P, lifted_numerator.(gens(I)))
J = pre_saturated_ideal(pre_image_ideal(I))
has_dimension_leq_zero(J) && return true
is_one(I) && return true
return dim(I) <= 0
Expand Down

0 comments on commit f4df3ad

Please sign in to comment.