Skip to content
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

Gorenstein and Picard index #2667

Merged
merged 5 commits into from
Aug 22, 2023

Conversation

justus-springer
Copy link
Contributor

@justus-springer justus-springer commented Aug 12, 2023

Add functions gorenstein_index and picard_index for normal toric varieties. Also adds map_from_torusinvariant_cartier_divisors_to_class_group and map_from_picard_group_to_class_group.

@justus-springer justus-springer marked this pull request as draft August 12, 2023 14:32
@codecov
Copy link

codecov bot commented Aug 12, 2023

Codecov Report

Merging #2667 (a480ba6) into master (47432f8) will decrease coverage by 0.20%.
Report is 2 commits behind head on master.
The diff coverage is 67.85%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2667      +/-   ##
==========================================
- Coverage   72.25%   72.05%   -0.20%     
==========================================
  Files         437      441       +4     
  Lines       61995    62339     +344     
==========================================
+ Hits        44796    44920     +124     
- Misses      17199    17419     +220     
Files Changed Coverage Δ
.../ToricSchemes/src/NormalToricSchemes/Attributes.jl 48.90% <0.00%> (-3.04%) ⬇️
.../ToricVarieties/NormalToricVarieties/attributes.jl 93.08% <95.00%> (+0.08%) ⬆️

... and 12 files with indirect coverage changes

@justus-springer justus-springer marked this pull request as ready for review August 14, 2023 13:36
@lgoettgens lgoettgens requested review from HereAround and lkastner and removed request for HereAround August 14, 2023 14:39
Copy link
Member

@HereAround HereAround left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this great PR @justus-springer!

Generally speaking, your PR looks great. It adds good new code, documentation and valuable quick tests. Exactly what we aim for. Very nice!

I noticed a couple of things while checking your PR and left comments below.

Comment on lines 971 to 976

Return the index of the Picard group in the class group of an abstact normal toric variety `v`.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to the above comment on the Gorenstein index - consider adding a few explaining words and/or a reference (if not introduced in CLS11 - I could not yet find it in there).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unlike the Gorenstein Index, there are indeed not many references for this index (there is at least one though). Though it's very easy to define, since it's just the index of the Picard group in the class group, under the well-known embedding. I added it since it's so easy to compute and it relates to the Gorenstein index (the latter divides the former).

Copy link
Member

@HereAround HereAround Aug 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you explaining this index in the doc string. This is definitely sufficient to know what this index is.

I agree with @lkastner that it would be nice to have a reference and link it here. However, if you really cannot find anything, I think this should not be a leg breaker. Unless @lkastner objects, I am in this case good to go without reference.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added a reference in the docstring of picard_index, let me know what you think. It doesn't really go into detail about it, but it is a reference where the Picard index was used in a classification.

@justus-springer
Copy link
Contributor Author

Thanks for the review @HereAround ! I replied to your comments and added a few more words explaining gorenstein_index and picard_index. If you think picard_index is too obscure (it does not occur in CLS11), I'd be fine with removing it from the PR.

@lkastner
Copy link
Member

lkastner commented Aug 16, 2023

If you think picard_index is too obscure (it does not occur in CLS11), I'd be fine with removing it from the PR.

Could you maybe just add the reference? https://docs.oscar-system.org/dev/DeveloperDocumentation/documentation/#Updating-the-bibliography If you need this functionality it makes sense to have it in Oscar.

@HereAround
Copy link
Member

HereAround commented Aug 17, 2023

@justus-springer For your information, the failures of the tests are (very very likely) not due to the changes in this PR. A fix is being worked on...

@HereAround
Copy link
Member

HereAround commented Aug 18, 2023

@justus-springer Could you please rebase on the current master, so we can see if the tests complete? (There were significant changes this week.) Thank you!

@justus-springer
Copy link
Contributor Author

justus-springer commented Aug 18, 2023

Oh sorry, this doesn't look right. I tried rebasing, but I don't know what happened.
Edit: Should be fixed now.

Copy link
Member

@HereAround HereAround left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for making those changes @justus-springer . From my perspective, this PR is good to go. (Of course @lkastner can correct me, should I have overlooked something.)

One subtlety seems to be the Run tests / doctest (1.9, macOS-latest) (pull_request) , which times out after 150 minutes. I rerun the tests already, but to no avail. Maybe @benlorenz , @thofma or @fingolfin can propose a way forward?

@benlorenz
Copy link
Member

One subtlety seems to be the Run tests / doctest (1.9, macOS-latest) (pull_request) , which times out after 150 minutes. I rerun the tests already, but to no avail. Maybe @benlorenz , @thofma or @fingolfin can propose a way forward?

#2685 will probably fix that timeout.

@HereAround
Copy link
Member

One subtlety seems to be the Run tests / doctest (1.9, macOS-latest) (pull_request) , which times out after 150 minutes. I rerun the tests already, but to no avail. Maybe @benlorenz , @thofma or @fingolfin can propose a way forward?

#2685 will probably fix that timeout.

I understand that @lkastner is adding a bit more functionality to this other PR (hence, it is still a draft). So this might take a little while longer.

@lkastner lkastner merged commit f9f87dd into oscar-system:master Aug 22, 2023
9 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants