Introduce class_group_with_map and picard_group_with_map#5064
Merged
fieker merged 1 commit intooscar-system:masterfrom Aug 20, 2025
Merged
Introduce class_group_with_map and picard_group_with_map#5064fieker merged 1 commit intooscar-system:masterfrom
class_group_with_map and picard_group_with_map#5064fieker merged 1 commit intooscar-system:masterfrom
Conversation
a88c511 to
3f4c551
Compare
Member
|
Unfortunately it is breaking. Suggestion was to maybe introduce |
c715420 to
97e38e5
Compare
Member
Author
|
@antonydellavecchia as discussed I have split this up. The first stages of changes are: |
This was referenced Aug 15, 2025
9635f16 to
7ba1b1c
Compare
1e315b9 to
c3d8222
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5064 +/- ##
==========================================
- Coverage 84.85% 84.85% -0.01%
==========================================
Files 710 710
Lines 95593 95599 +6
==========================================
+ Hits 81114 81118 +4
- Misses 14479 14481 +2
🚀 New features to boost your workflow:
|
fieker
approved these changes
Aug 20, 2025
class_group_with_map and picard_group_with_map
lgoettgens
referenced
this pull request
Sep 11, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR aims to fix #1095.
The basic idea is simple: Change the return value of the functions
class_groupandpicard_groupso that they each return a pair of the corresponding group and an interpretation map. Specifically, I envision:This is desired by @fieker for consistency across OSCAR.
Sadly, changing as such is a massively breaking change (see below) and cannot happen before the OSCAR 2.0 release. Therefore we proceed in two steps.
Step 1: In this PR:
class_group_with_map,class_group(...)with calls ofclass_group_with_map(...)picard_group_with_map,picard_group(...)with calls ofpicard_group_with_map(...)..._with_mapfunction) since the underlying maps (say the map from the torus invariant Weil divisors to the class group) are attributes. Cf. Serialize mappings of properties of toric varieties and update QSMDB #5198. So I removed the correspondingattrmacro from these functions.class_groupany more. So I removed this from the serialization. Note however that there are .mrdi files of toric varieties out there, which remember the class group. And they still load. A check for this are the zenodo files loaded byt = literature_model(arxiv_id = "1511.03209")andfully_resolved_big_model = resolve(t, 1). Those are loaded as part of the extra long tests, which thus serves as a check that loading such .mrdi files still works with the changes in this PR.Step 2: With the transition to OSCAR 2.0
class_group( )andpicard_group( )for toric varieties.class_group_with_maptoclass_group.picard_group_with_maptopicard_group.has_attribute(v, :class_group)in the following code snippet must not be removed:Of course, we must open an issue with the content of step 2 and tag it to the OSCAR 2.0 release, so that this is not forgotten.