Skip to content

Commit

Permalink
Fix is_very_ample (oscar-system#4105)
Browse files Browse the repository at this point in the history
* Fix is_very_ample

Co-authored-by: Lars Göttgens <lars.goettgens@gmail.com>
Co-authored-by: Lars Kastner <lkastner@users.noreply.github.com>
  • Loading branch information
3 people authored and HechtiDerLachs committed Sep 20, 2024
1 parent 7ac8e7d commit 64be073
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ false
```
"""
@attr Bool function is_ample(td::ToricDivisor)
@req is_complete(toric_variety(td)) "Definition of ample divisor requires underlying toric variety to be complete. ([Def 6.1.9 CLS11])"
@req is_complete(toric_variety(td)) "Ampleness test is only implemented for complete toric varieties. ([Def 6.1.9 CLS11])"
@req is_cartier(td) "Definition of ample divisor requires divisor to be Cartier. ([Def 6.1.9 CLS11])"
return pm_object(td).AMPLE::Bool
end
Expand All @@ -153,7 +153,10 @@ julia> is_very_ample(td)
false
```
"""
@attr Bool is_very_ample(td::ToricDivisor) = pm_object(td).VERY_AMPLE
@attr Bool function is_very_ample(td::ToricDivisor)
@req is_complete(toric_variety(td)) "Very ampleness test is only implemented for complete toric varieties. ([Def 6.1.9 CLS11])"
return pm_object(td).VERY_AMPLE::Bool
end


@doc raw"""
Expand Down

0 comments on commit 64be073

Please sign in to comment.