Skip to content

Commit

Permalink
Adjust localizations to proper types for monomial orderings (#1171)
Browse files Browse the repository at this point in the history
* Use proper types for monomial orderings in the localizations
  • Loading branch information
joschmitt committed Mar 18, 2022
1 parent ed979d7 commit f8ea633
Show file tree
Hide file tree
Showing 8 changed files with 268 additions and 73 deletions.
2 changes: 1 addition & 1 deletion experimental/PlaneCurve/AffinePlaneCurve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ function intersection_multiplicity(C::AffinePlaneCurve{S}, D::AffinePlaneCurve{S
m = ideal_point(R, P)
r = Localization(R, m)
I = ideal(r, [C.eq, D.eq])
G = groebner_assure(I)
G = Oscar.groebner_assure(I)
return Singular.vdim(G.S)
end

Expand Down
2 changes: 1 addition & 1 deletion experimental/PlaneCurve/ProjPlaneCurve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ function curve_singular_locus(PP::Oscar.Geometry.ProjSpc{S}, C::ProjectivePlaneC
pY = phi(FY.f)
pZ = phi(FZ.f)
I = ideal([pF, pX, pY, pZ])
g = collect(groebner_assure(I, lex(gens(rr)), true))
g = collect(Oscar.groebner_assure(I, lex(gens(rr)), true))
f = factor(g[1])
ro = []
for h in keys(f.fac)
Expand Down
2 changes: 1 addition & 1 deletion experimental/Schemes/AffineSchemes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ function hypersurface_complement(X::Spec{BRT, BRET, RT, RET, MST}, f::RET; keep_
if issubset(Jsat, saturated_ideal(IX))
for o in keys(DIX)
gb = DIX[o]
groebner_bases(J)[o] = LocalizedBiPolyArray(localized_ring(W), singular_gens(gb), shift(gb), true)
groebner_bases(J)[o] = LocalizedBiPolyArray(localized_ring(W), singular_gens(gb), shift(gb), o.o, true)
end
end
set_attribute!(W, :localized_modulus, J)
Expand Down
Loading

0 comments on commit f8ea633

Please sign in to comment.