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

Require non-zero coefficient ring in universal polynomial ring #1858

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

lgoettgens
Copy link
Collaborator

Progress towards #1856, split off from #1857.

Copy link

codecov bot commented Oct 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.06%. Comparing base (9ebc781) to head (9fd6601).
Report is 5 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1858   +/-   ##
=======================================
  Coverage   88.06%   88.06%           
=======================================
  Files         120      120           
  Lines       30057    30058    +1     
=======================================
+ Hits        26469    26472    +3     
+ Misses       3588     3586    -2     

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

@@ -1170,6 +1170,7 @@ x*y - z
```
"""
function universal_polynomial_ring(R::Ring; cached::Bool=true, internal_ordering::Symbol=:lex)
@req !is_trivial(R) "Zero rings are currently not supported as coefficient ring."
Copy link
Member

Choose a reason for hiding this comment

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

Having a period at the end is somewhat rare in our error messages. A quick experiment in Oscar.jl:

$ git grep -E 'error\(.*\."' | wc -l
     101
$ git grep -E 'error\(' | wc -l
    1526

and

$ git grep -E '@req.*\."' | wc -l
     137
$ git grep -E '@req.*"' | wc -l
    1599

So less than 10% of our @req calls use a trailing period. The numbers for error` are a bit less reliably because they miss the case were the string spans over more than one line but I don't think there will be a fundamentally different outcome.

Anyway I am merging this and the other PRs now as this is a very minor point and also a matter of taste.

@fingolfin fingolfin merged commit 0e8c63d into Nemocas:master Oct 11, 2024
30 checks passed
@lgoettgens lgoettgens deleted the lg/req-is-not-trivial-univpoly branch October 11, 2024 13:01
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