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

Add is_trivial(::NCRing) #1848

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Add is_trivial(::NCRing) #1848

merged 1 commit into from
Oct 8, 2024

Conversation

fingolfin
Copy link
Member

Also remove some outdated or pointless TODO comments, and
add a docstring for is_perfect

Also remove some outdated or pointless TODO comments, and
add a docstring for is_perfect
lgoettgens
lgoettgens previously approved these changes Oct 8, 2024
Copy link

codecov bot commented Oct 8, 2024

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 88.13%. Comparing base (5748ac4) to head (02b981c).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
src/Rings.jl 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1848      +/-   ##
==========================================
- Coverage   88.14%   88.13%   -0.01%     
==========================================
  Files         119      119              
  Lines       29978    29980       +2     
==========================================
  Hits        26423    26423              
- Misses       3555     3557       +2     

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

@lgoettgens
Copy link
Collaborator

what about 0x0 matrix rings? they are trivial as well and lead to the same problems

@fingolfin
Copy link
Member Author

I am tempted to say 0x0 matrix rings should just be not supported. For quotient rings we can't easily / cheaply check for them being trivial (as it may involve a Gröbner basis calculation or worse). But here it would be trivial.

For that matter, we definitely should prevent -1x-1 matrix rings 🤡

julia> matrix_ring(ZZ, -1)
Matrix ring of degree -1
  over integers

@fingolfin
Copy link
Member Author

In any case, even if we decide to keep supporting 0x0 MatRing instances, the fix should be made to its characteristic function and seems out of scope for this PR?

@lgoettgens
Copy link
Collaborator

lgoettgens commented Oct 8, 2024

True, this PR delegates the question to characteristic. So this is good to go

@fingolfin fingolfin merged commit afcb420 into master Oct 8, 2024
28 of 30 checks passed
@fingolfin fingolfin deleted the mh/is_trivial branch October 8, 2024 23:38
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.

2 participants