Skip to content
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

Fix bug in universal polynomial ring #1286

Merged
merged 1 commit into from
Mar 17, 2023
Merged

Fix bug in universal polynomial ring #1286

merged 1 commit into from
Mar 17, 2023

Conversation

thofma
Copy link
Member

@thofma thofma commented Mar 17, 2023

Not all multivariate polynomial rings can be constructed with
zero indeterminants (e.g. all ring coming from flint).
Thus we always use a generic polynomial ring underpinning the
universal one.

Fixes oscar-system/Oscar.jl#2076

I cannot test it here.

@fredrik-johansson
Copy link
Contributor

I thought Dan already fixed multivariates in FLINT to work with zero variables. Are you saying that this is broken throughout FLINT, or are there possibly just some isolated bugs that we can fix on the FLINT side?

@thofma
Copy link
Member Author

thofma commented Mar 17, 2023

Ah, did he? If so, he did not remove the check in Nemo. Let me check.

Not all multivariate polynomial rings can be constructed with
zero indeterminants (e.g. all ring coming from flint).
Thus we always use a generic polynomial ring underpinning the
universal one.
@codecov
Copy link

codecov bot commented Mar 17, 2023

Codecov Report

Merging #1286 (ba52c7c) into master (70aff86) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1286      +/-   ##
==========================================
- Coverage   85.53%   85.50%   -0.03%     
==========================================
  Files         102      102              
  Lines       27987    27987              
==========================================
- Hits        23938    23931       -7     
- Misses       4049     4056       +7     
Impacted Files Coverage Δ
src/UnivPoly.jl 100.00% <ø> (ø)
src/generic/GenericTypes.jl 93.38% <ø> (ø)
src/generic/UnivPoly.jl 89.62% <100.00%> (ø)

... and 7 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@thofma thofma closed this Mar 17, 2023
@thofma thofma reopened this Mar 17, 2023
@thofma thofma merged commit 2f75fe2 into master Mar 17, 2023
@thofma thofma deleted the th/fixuniv branch March 17, 2023 17:40
@thofma
Copy link
Member Author

thofma commented Mar 17, 2023

I will merge this for now. Allowing flint rings is a bigger project.

julien-schanz pushed a commit to julien-schanz/AbstractAlgebra.jl that referenced this pull request Mar 28, 2023
Not all multivariate polynomial rings can be constructed with
zero indeterminants (e.g. all ring coming from flint).
Thus we always use a generic polynomial ring underpinning the
universal one.
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.

Universal polynomials are broken
2 participants