Skip to content

Commit

Permalink
feat(algebra/group_power): mul_two_nonneg
Browse files Browse the repository at this point in the history
  • Loading branch information
digama0 committed May 29, 2018
1 parent 40bd947 commit 00a2eb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions algebra/group_power.lean
Expand Up @@ -391,6 +391,9 @@ calc a ^ n = a ^ n * 1 : by simp

end linear_ordered_semiring

theorem pow_two_nonneg [linear_ordered_ring α] (a : α) : 0 ≤ a ^ 2 :=
by rw pow_two; exact mul_self_nonneg _

theorem pow_ge_one_add_sub_mul [linear_ordered_ring α]
{a : α} (H : a ≥ 1) (n : ℕ) : 1 + n • (a - 1) ≤ a ^ n :=
by simpa using pow_ge_one_add_mul (sub_nonneg.2 H) n

1 comment on commit 00a2eb4

@kbuzzard
Copy link
Member

Choose a reason for hiding this comment

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

commit message should be pow_two_nonneg. Name of theorem is fine :-)

Please sign in to comment.