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

[Merged by Bors] - chore(algebra/module): Swap the naming of smul_(left|right)_injective to match the naming guide #8659

Closed

Conversation

eric-wieser
Copy link
Member

@eric-wieser eric-wieser commented Aug 13, 2021

The naming conventions say:

An injectivity lemma that uses "left" or "right" should refer to the argument that "changes". For example, a lemma with the statement a - b = a - c ↔ b = c could be called sub_right_inj.

This corrects the name of function.injective (λ c : R, c • x) to be smul_left_injective instead of the previous smul_right_injective, and vice versa for function.injective (λ x : M, r • x).

This also brings it in line with mul_left_injective and mul_right_injective.


Open in Gitpod

As requested by @ChrisHughes24 in #8618

@eric-wieser eric-wieser added the awaiting-review The author would like community review of the PR label Aug 13, 2021
@semorrison
Copy link
Collaborator

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Aug 16, 2021
bors bot pushed a commit that referenced this pull request Aug 16, 2021
…e` to match the naming guide (#8659)

The naming conventions say:

> An injectivity lemma that uses "left" or "right" should refer to the argument that "changes". For example, a lemma with the statement `a - b = a - c ↔ b = c` could be called `sub_right_inj`.

This corrects the name of `function.injective (λ c : R, c • x)` to be `smul_left_injective` instead of the previous `smul_right_injective`, and vice versa for `function.injective (λ x : M, r • x)`.

This also brings it in line with `mul_left_injective` and `mul_right_injective`.
@bors
Copy link

bors bot commented Aug 16, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore(algebra/module): Swap the naming of smul_(left|right)_injective to match the naming guide [Merged by Bors] - chore(algebra/module): Swap the naming of smul_(left|right)_injective to match the naming guide Aug 16, 2021
@bors bors bot closed this Aug 16, 2021
@bors bors bot deleted the eric-wieser/swap-left-right-smul_injective branch August 16, 2021 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants