Skip to content

Conversation

SoongNoonien
Copy link
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
Collaborator Author

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

@SoongNoonien
Copy link
Collaborator Author

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

Copy link

codecov bot commented Oct 6, 2025

Codecov Report

❌ Patch coverage is 87.87879% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.95%. Comparing base (2980528) to head (653f220).

Files with missing lines Patch % Lines
src/generic/UnivPoly.jl 87.87% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2182      +/-   ##
==========================================
- Coverage   87.95%   87.95%   -0.01%     
==========================================
  Files         127      127              
  Lines       31791    31789       -2     
==========================================
- Hits        27961    27959       -2     
  Misses       3830     3830              

☔ 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
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.

@SoongNoonien SoongNoonien reopened this Oct 7, 2025
@SoongNoonien
Copy link
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
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
Member

Has a merge conflict now.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants