-
Notifications
You must be signed in to change notification settings - Fork 297
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
[Merged by Bors] - chore(algebra/ring/basic): weaken ring.inverse to only require monoid_with_zero #6603
Conversation
@@ -892,24 +892,24 @@ lemma add_monoid_hom.coe_add_monoid_hom_mk_ring_hom_of_mul_self_of_two_ne_zero [ | |||
end integral_domain | |||
|
|||
namespace ring |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you really want to keep this in the ring namespace?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea where this belongs. monoid_with_zero.inverse
is significantly longer. My thinking was that if no one has any particularly compelling name ideas, we may as well leave it where it is.
Leaving the name unchanged also saves me from having to change every caller!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with this, but then should mention it explicitly in the docstring.
bors r+ |
Build failed (retrying...): |
Pull request successfully merged into master. Build succeeded: |
Split from #5539 because I actually want to use this, and the PR is large and stalled.