Skip to content

Change behavior of base_ring for UniversalPolyRing#2182

Merged
SoongNoonien merged 1 commit intoNemocas:masterfrom
SoongNoonien:univ_poly_base_ring
Dec 12, 2025
Merged

Change behavior of base_ring for UniversalPolyRing#2182
SoongNoonien merged 1 commit intoNemocas:masterfrom
SoongNoonien:univ_poly_base_ring

Conversation

@SoongNoonien
Copy link
Copy Markdown
Collaborator

As mentioned here, I've adjusted the behavior of base_ring to eliminate more polynomial-specific code in the implementation of UniversalPolyRing in preparation for #2172.

@SoongNoonien SoongNoonien requested a review from fingolfin October 6, 2025 12:05
@SoongNoonien SoongNoonien marked this pull request as draft October 6, 2025 12:17
@SoongNoonien
Copy link
Copy Markdown
Collaborator Author

Ok, I forgot to replace all original occurrences of base_ring by coefficient_ring...

@SoongNoonien
Copy link
Copy Markdown
Collaborator Author

I noticed that things like change_base_ring might be a bit unintuitive now.

@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 6, 2025

Codecov Report

❌ Patch coverage is 90.32258% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.07%. Comparing base (d977ff1) to head (ac08061).
⚠️ Report is 10 commits behind head on master.

Files with missing lines Patch % Lines
src/generic/UnivPoly.jl 90.32% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2182      +/-   ##
==========================================
- Coverage   88.07%   88.07%   -0.01%     
==========================================
  Files         127      127              
  Lines       31771    31769       -2     
==========================================
- Hits        27982    27980       -2     
  Misses       3789     3789              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@SoongNoonien SoongNoonien marked this pull request as ready for review October 6, 2025 14:19
@SoongNoonien
Copy link
Copy Markdown
Collaborator Author

The error seem to be related to the serialization in Oscar. To obtain the type of the coefficients of a given universal polynomial p Oscar uses elem_type(base_ring(parent(p))) where instead elem_type(coefficient_ring(parent(p))) (or even elem_type(coefficient_ring(p))) should be used now. In general I'd say using coefficient_ring is the better choice as it is easier to understand what's happening. I'll provide a PR which fixes this in Oscar.

Comment thread src/generic/UnivPoly.jl Outdated
@SoongNoonien SoongNoonien reopened this Oct 7, 2025
@SoongNoonien
Copy link
Copy Markdown
Collaborator Author

It is still failing because I overlooked some occurrences of base_ring in the serialization code. I'll investigate further...

@SoongNoonien
Copy link
Copy Markdown
Collaborator Author

The tests are still failing... The experimental action polynomial rings of Oscar which use universal polynomial rings seem to be the issue. I've isolated the respective use of base_ring and will provide yet another PR to clean up the usage of base_ring.

@fingolfin
Copy link
Copy Markdown
Member

Has a merge conflict now.

We had a look, the OSCAR booktest error is due to GenericCharactertables, @SoongNoonien is work on it.

@SoongNoonien
Copy link
Copy Markdown
Collaborator Author

I think this should be good to go now.

Comment thread src/generic/UnivPoly.jl Outdated
Comment thread src/generic/UnivPoly.jl Outdated
Co-authored-by: Max Horn <max@quendi.de>
@SoongNoonien SoongNoonien merged commit 31ea1cd into Nemocas:master Dec 12, 2025
28 of 31 checks passed
@SoongNoonien SoongNoonien deleted the univ_poly_base_ring branch December 12, 2025 22:44
@fingolfin fingolfin added the release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes label Dec 17, 2025
fingolfin referenced this pull request Jan 9, 2026
Co-authored-by: Lars Göttgens <lars.goettgens@rwth-aachen.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking release notes: use title For PRs: the title of this PR is suitable for direct use in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants