[ToricVarieties] Bugfix in ideal of linear relations #2472
Merged
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.
As reported by Giosuè Muratore on slack, an intersection number is computed incorrectly for a particular smooth, Fano 3-fold:
The answer should be 62 and not 104 (https://www.fanography.info/2-36). Note that the following line gives the desired answer of 62:
I investigated this and found the following:
u_i
rather than the ray generatorsrho_i
(cf. CLS equ. 12.4.3 on page 593).* The fix in this PR uses a different route. Under the assumption that the Cox ring is graded byZ^n
(that is at least covering all my applications), we can think of this grading as a matrix over Z. Then the generators of the ideal of linear relations are 1:1 to a basis of the kernel of said matrix.I have modified the code accordingly. Thereby, the above example works fine. As refined check for the future, I have added this example to the documentation of the command
integrate
for cohomology classes.cc @lkastner