-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ToricVarieties] Introduce Chern classes of tangent bundle #3996
[ToricVarieties] Introduce Chern classes of tangent bundle #3996
Conversation
49e4499
to
9b05943
Compare
@lkastner As of right now, I am not happy with the performance of this method. I have a particular toric variety in mind for which i would like to be able to compute the 4-th Chern class of the tangent bundle. As of right now, this seems almost hopeless with the current implementation. Suggestions/advice appreciated. Sadly, I cannot attach the corresponding .mrdi file here as github says "We don't support that file type". But I will of course be happy to share said file e.g. via slack with anyone interested. |
30b5286
to
75eb995
Compare
7fb8204
to
3ff0665
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3996 +/- ##
==========================================
+ Coverage 84.56% 84.62% +0.05%
==========================================
Files 597 600 +3
Lines 82190 82596 +406
==========================================
+ Hits 69506 69894 +388
- Misses 12684 12702 +18
|
bc670d9
to
b22d58d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have some comments about inferability and thus making the code a bit faster. Please have a look and replace the placeholder types by the actual ones (if possible)
src/AlgebraicGeometry/ToricVarieties/CohomologyClasses/special_attributes.jl
Outdated
Show resolved
Hide resolved
src/AlgebraicGeometry/ToricVarieties/CohomologyClasses/special_attributes.jl
Outdated
Show resolved
Hide resolved
src/AlgebraicGeometry/ToricVarieties/CohomologyClasses/special_attributes.jl
Outdated
Show resolved
Hide resolved
src/AlgebraicGeometry/ToricVarieties/CohomologyClasses/special_attributes.jl
Outdated
Show resolved
Hide resolved
src/AlgebraicGeometry/ToricVarieties/CohomologyClasses/special_attributes.jl
Outdated
Show resolved
Hide resolved
Thank you @lgoettgens . Let me work those changes in. |
b22d58d
to
79c30ef
Compare
Done. |
src/AlgebraicGeometry/ToricVarieties/CohomologyClasses/special_attributes.jl
Outdated
Show resolved
Hide resolved
|
||
# Examples | ||
```jldoctest | ||
julia> F3 = hirzebruch_surface(NormalToricVariety, 3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As long as hirzebruch_surface
can only return NormalToricVariety
, this argument is redundant.
Just in case you were asking: no, it does not make things globally more consistent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have just added simplified constructors in 3889afd. This should (hopefully) fix this issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not redundant here, as adding a default will keep this default necessary in all of Oscar 1.x.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. I removed it again. To be discussed at a convenient time/setting.
Co-authored-by: Michael Joswig <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in 3889afd
(#3996) are now in conflict with what was decided upon in #922.
In particular, there should only be a default added for all of these, if this is discussed with people from all areas that already have (or could add) another implementation of this.
3889afd
to
6187ee0
Compare
Fine @lgoettgens . Removed again and to be discussed at a convenient time/setting then. |
The concerning commit has been dropped.
I do not see this as a conflict, unless someone has a precise plan to implement Chern classes for arbitrary varieties or schemes. The example back then were projective spaces and projective planes which pop up everywhere (and already exits in Oscar). It is not so easy to derive a design from a few general principles; sometimes it is good to keeping things lean. |
Since the (now again removed) commit doesn't seem to be available on github anymore, let me summarize its changes: it did not only add a shorthand for |
Sorry for creating a mess. My comment only refered to hirzebruch. |
I opened a new PR #4051 regarding the above discussion on |
This PR is inspired by developments in
FTheoryTools
. It aims to provide functionality to compute the Chern classes of the tangent bundle of a simplicial and complete toric variety.