Macaulay2 / Macaulay2/M2

Hom of CoherentSheaf on a NormalToricVariety fails due to a missing pruningMap

Open
#4,481 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

NormalToricVarieties
Dominant language
Macaulay2
Stars
435
Forks
297
Avg merge
4d 20h
Merged PRs (30d)
11

Description

```macaulay2
needsPackage "NormalToricVarieties"
X = hirzebruchSurface 3
Hom(OO_X(1,0),OO_X(0,0))
```
This call to Hom fails since it expects prune of a sheaf map to always populate `H.cache.pruningMap`. In this case, `prune sheafHom(OO_X(1,0),OO_X(0,0))` doesn't. I think this is because the hook for minimalPresentation for normal toric varieties doesn't populate this field.

See: https://github.com/Macaulay2/M2/blob/1a37f6fe95badb1e5f99707a485503d213fd9d49/M2/Macaulay2/packages/Varieties/SheafMaps.m2#L445

@mahrud

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the NormalToricVarieties package using the Hirzebruch surface and Hom example in the issue. Read the prune/sheafHom handling at Varieties/SheafMaps.m2 around line 445 and inspect the minimalPresentation hook for normal toric varieties. Done means the Hom call succeeds and the pruningMap is populated.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.