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: tidy various files #3124
Conversation
Ruben-VandeVelde
commented
Mar 27, 2023
Mathlib/Algebra/Ring/Basic.lean
Outdated
theorem coe_mul_left [NonUnitalNonAssocSemiring R] (r : R) : | ||
(mulLeft r : R → R) = HMul.hMul r := | ||
theorem coe_mulLeft [NonUnitalNonAssocSemiring R] (r : R) : | ||
(mulLeft r : R → R) = (r * ·) := |
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'd be more inclined not to change this one. Somebody might want to write rw [<- coe_mulLeft]
and that becomes harder with the new statement.
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.
Yeah, that's what I added mulLeft_apply
for. In fact, your PR #2725 introduced this change relative to mathlib3. I think it's better to be consistent with mathlib3 as well as with coe_mulRight
.
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.
The HMul.hMul
version is closer to mathlib3, mathport introduced the change. Sometimes you want to use these lemmas on partially applied functions.
Apart from the one comment LGTM. bors d+ |
✌️ Ruben-VandeVelde can now approve this pull request. To approve and merge a pull request, simply reply with |
bors merge |
Build failed:
|
bors merge |
Pull request successfully merged into master. Build succeeded:
|