Skip to content

Conversation

@SirToby25
Copy link
Collaborator

This PR adds coefficient_ring and replaces the functionality of base_ring for action polynomial rings as a follow-up to the discussion in #5427.

@joschmitt joschmitt added experimental Only changes experimental parts of the code release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes labels Oct 8, 2025
Copy link
Member

@SoongNoonien SoongNoonien left a comment

Choose a reason for hiding this comment

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

This seems fine. I don't know that much about these action polynomials so I'm not entirely sure if we still want #5427 after this PR. Do we want base_ring and coefficient_ring to be effectively the same or do want them to be more in line with Nemocas/AbstractAlgebra.jl#2182? I would think that base_ring returning some internal universal polynomial ring isn't what we want, so #5427 should still be relevant but it wouldn't be needed to repair the tests of Nemocas/AbstractAlgebra.jl#2182 anymore.


##### Rings #####

base_ring(apr::ActionPolyRing) = base_ring(__upr(apr))
Copy link
Member

Choose a reason for hiding this comment

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

In fact I'd argue that "right" definition here would be

Suggested change
base_ring(apr::ActionPolyRing) = base_ring(__upr(apr))
base_ring(apr::ActionPolyRing) = __upr(apr)

Or rather: __upr should be replaced by base_ring. The "base ring" or a ring R is a ring from which R was constructed.

@fingolfin fingolfin merged commit d3c7691 into oscar-system:master Oct 8, 2025
35 of 37 checks passed
@SirToby25
Copy link
Collaborator Author

Yes, I agree on that. I wanted to wait for #5427 to be merged. I will set up a new PR for this now.

@SirToby25 SirToby25 deleted the tb/add_coefficient_ring branch October 8, 2025 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

experimental Only changes experimental parts of the code release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants