8000 check base to decide whether singular supports the ring by mantepse · Pull Request #39112 · sagemath/sage · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

check base to decide whether singular supports the ring #39112

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

Merged

Conversation

mantepse
Copy link
Contributor
@mantepse mantepse commented Dec 10, 2024

For fraction fields, we also have to check whether the base is a polynomial ring.

Fixes #39106

Copy link

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

@user202729
Copy link
Contributor

On the long term, I feel it's better to change the whole thing to EAFP instead of LBYL.

The current "check before convert" system has a massive issue that when Singular implements something upstream we won't know to change it. Or if one part of the code implement it, other part won't benefit from it.

That's the plan, but easier said than done. Maybe I'll take a look after #39075 is done (sound like there will be a lot of merge conflicts otherwise)

@mantepse
Copy link
Contributor Author

I agree completely! I would think that, currently, we actually do the work almost twice, right? Once for checking and once for actually converting.

Copy link
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.

LGTM.

vbraun pushed a commit to vbraun/sage that referenced this pull request May 28, 2025
sagemathgh-39112: check base to decide whether singular supports the ring
    
For fraction fields, we also have to check whether the base is a
polynomial ring.

Fixes sagemath#39106
    
URL: sagemath#39112
Reported by: Martin Rubey
Reviewer(s): Travis Scrimshaw
@vbraun vbraun merged commit ff9d47f into sagemath:develop Jun 1, 2025
22 of 23 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.

can_convert_to_singular returns true for fraction fields of arbitrary rings over a nice base ring
4 participants
0