Skip to content

Commit

Permalink
Fix creation of ideal sheaves.
Browse files Browse the repository at this point in the history
  • Loading branch information
HechtiDerLachs committed Apr 15, 2024
1 parent 0f899aa commit 9c8fdef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions experimental/Schemes/MorphismFromRationalFunctions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1125,8 +1125,9 @@ function ideal_sheaf_of_image(phi::MorphismFromRationalFunctions)
phi_loc = random_realization(phi, U, V)
pb_phi = pullback(phi_loc)
K = kernel(pb_phi)
if !is_one(K)
return PrimeIdealSheafFromChart(Y, V, ideal(OO(V), elem_type(OO(V))[OO(V)(a) for a in gens(K)]))
res = ideal(OO(V), elem_type(OO(V))[OO(V)(a) for a in gens(K)])
if !is_one(res) # TODO: Abbreviate test via complement equations?
return PrimeIdealSheafFromChart(Y, V, res)
end
end
error("image ideal could not be computed")
Expand Down

0 comments on commit 9c8fdef

Please sign in to comment.