-
Notifications
You must be signed in to change notification settings - Fork 299
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
Conversation
bors merge |
src/algebra/group_power/lemmas.lean
Outdated
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 |
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.
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.
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.
Indeed, you're right, I should have looked more closely at the naming.
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.
@eric-wieser @robertylewis Fixed!
bors r- |
Canceled. |
bors merge |
Added theorems about the sign of even and odd natural powers.
Pull request successfully merged into master. Build succeeded: |
Added theorems about the sign of even and odd natural powers.
Added theorems about the sign of even and odd natural powers.