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] - feat(algebra/group_power/lemmas): sign of even/odd powers #5990

Closed
wants to merge 2 commits into from

Conversation

benjamindavidson
Copy link
Collaborator

Added theorems about the sign of even and odd natural powers.

@benjamindavidson benjamindavidson added the awaiting-review The author would like community review of the PR label Feb 1, 2021
@robertylewis
Copy link
Member

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 Feb 1, 2021
Comment on lines 387 to 391
theorem even_pow_nonneg (a : R) (hn : even n) : 0 ≤ a ^ n :=
by cases hn with k hk; simpa only [hk, two_mul] using pow_bit0_nonneg a k

theorem even_pow_pos (ha : a ≠ 0) (hn : even n) : 0 < a ^ n :=
by cases hn with k hk; simpa only [hk, two_mul] using pow_bit0_pos ha k
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't these be called pow_even_nonneg? Using pow_bit0_nonneg as a template, statements about the exponent go after the word pow not before.

Copy link
Member

Choose a reason for hiding this comment

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

Indeed, you're right, I should have looked more closely at the naming.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@robertylewis
Copy link
Member

bors r-

@bors
Copy link

bors bot commented Feb 1, 2021

Canceled.

@robertylewis robertylewis added awaiting-author A reviewer has asked the author a question or requested changes and removed ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) labels Feb 1, 2021
@benjamindavidson benjamindavidson added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Feb 1, 2021
@robertylewis
Copy link
Member

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 Feb 2, 2021
bors bot pushed a commit that referenced this pull request Feb 2, 2021
Added theorems about the sign of even and odd natural powers.
@bors
Copy link

bors bot commented Feb 2, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(algebra/group_power/lemmas): sign of even/odd powers [Merged by Bors] - feat(algebra/group_power/lemmas): sign of even/odd powers Feb 2, 2021
@bors bors bot closed this Feb 2, 2021
@bors bors bot deleted the even_odd_pow branch February 2, 2021 18:28
b-mehta pushed a commit that referenced this pull request Apr 2, 2021
Added theorems about the sign of even and odd natural powers.
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

3 participants