Skip to content

Adding number fields for dual schemes#41636

Merged
vbraun merged 2 commits intosagemath:developfrom
enriqueartal:dual_scheme
Feb 25, 2026
Merged

Adding number fields for dual schemes#41636
vbraun merged 2 commits intosagemath:developfrom
enriqueartal:dual_scheme

Conversation

@enriqueartal
Copy link
Copy Markdown
Contributor

@enriqueartal enriqueartal commented Feb 13, 2026

There is a method to compute the dual subscheme of a closed subscheme in a projective space. Up to now, it only works when the base ring is either a finite field or QQ. It seems to work in more general cases, e.g., number fields, and the code has been changed to allow it, including some tests.
I wonder if it is useful to add more cases. I think it works also for the field of the rational functions in several variables with coefficients in a number field. Some fields should be excluded, e.g., the non-exact fields. I checked that the code as it is does not work for the field of rational funtions of an algebraic variety.

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 13, 2026

Documentation preview for this PR (built with commit d60b987; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@enriqueartal enriqueartal requested a review from tscrim February 15, 2026 09:44
Copy link
Copy Markdown
Collaborator

@tscrim tscrim left a comment

Choose a reason for hiding this comment

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

Strictly speaking, it is redundant to say $\mathbf{Q}$ or a number field. I would probably phrase it as "a number field (including \QQ)". Once you want to make the change or choose not to, you can set this a positive review.

Minimal correction on the description
vbraun pushed a commit to vbraun/sage that referenced this pull request Feb 20, 2026
sagemathgh-41636: Adding number fields for dual schemes
    
There is a method to compute the dual subscheme of a closed subscheme in
a projective space. Up to now, it only works when the base ring is
either a finite field or `QQ`. It seems to work in more general cases,
e.g., number fields, and the code has been changed to allow it,
including some tests.
I wonder if it is useful to add more cases. I think it works also for
the field of the rational functions in several variables with
coefficients in a number field. Some fields should be excluded, e.g.,
the non-exact fields. I checked that the code as it is does not work for
the field of rational funtions of an algebraic variety.

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [X] The title is concise and informative.
- [X] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [X] I have created tests covering the changes.
- [X] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->
    
URL: sagemath#41636
Reported by: Enrique Manuel Artal Bartolo
Reviewer(s): Travis Scrimshaw
@vbraun vbraun merged commit c78f432 into sagemath:develop Feb 25, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants