mathlib documentation

algebra.group_power.order

Lemmas about the interaction of power operations with order #

Note that some lemmas are in algebra/group_power/lemmas.lean as they import files which depend on this file.

theorem nsmul_le_nsmul_of_le_right {M : Type u_3} [add_monoid M] [preorder M] [covariant_class M M has_add.add has_le.le] [covariant_class M M (function.swap has_add.add) has_le.le] {a b : M} (hab : a b) (i : ) :
i a i b
theorem pow_le_pow_of_le_left' {M : Type u_3} [monoid M] [preorder M] [covariant_class M M has_mul.mul has_le.le] [covariant_class M M (function.swap has_mul.mul) has_le.le] {a b : M} (hab : a b) (i : ) :
a ^ i b ^ i
theorem one_le_pow_of_one_le' {M : Type u_3} [monoid M] [preorder M] [covariant_class M M has_mul.mul has_le.le] {a : M} (H : 1 a) (n : ) :
1 a ^ n
theorem nsmul_nonneg {M : Type u_3} [add_monoid M] [preorder M] [covariant_class M M has_add.add has_le.le] {a : M} (H : 0 a) (n : ) :
0 n a
theorem pow_le_one' {M : Type u_3} [monoid M] [preorder M] [covariant_class M M has_mul.mul has_le.le] {a : M} (H : a 1) (n : ) :
a ^ n 1
theorem nsmul_nonpos {M : Type u_3} [add_monoid M] [preorder M] [covariant_class M M has_add.add has_le.le] {a : M} (H : a 0) (n : ) :
n a 0
theorem pow_le_pow' {M : Type u_3} [monoid M] [preorder M] [covariant_class M M has_mul.mul has_le.le] {a : M} {n m : } (ha : 1 a) (h : n m) :
a ^ n a ^ m
theorem nsmul_le_nsmul {M : Type u_3} [add_monoid M] [preorder M] [covariant_class M M has_add.add has_le.le] {a : M} {n m : } (ha : 0 a) (h : n m) :
n a m a
theorem nsmul_le_nsmul_of_nonpos {M : Type u_3} [add_monoid M] [preorder M] [covariant_class M M has_add.add has_le.le] {a : M} {n m : } (ha : a 0) (h : n m) :
m a n a
theorem pow_le_pow_of_le_one' {M : Type u_3} [monoid M] [preorder M] [covariant_class M M has_mul.mul has_le.le] {a : M} {n m : } (ha : a 1) (h : n m) :
a ^ m a ^ n
theorem one_lt_pow' {M : Type u_3} [monoid M] [preorder M] [covariant_class M M has_mul.mul has_le.le] {a : M} (ha : 1 < a) {k : } (hk : k 0) :
1 < a ^ k
theorem nsmul_pos {M : Type u_3} [add_monoid M] [preorder M] [covariant_class M M has_add.add has_le.le] {a : M} (ha : 0 < a) {k : } (hk : k 0) :
0 < k a
theorem pow_lt_one' {M : Type u_3} [monoid M] [preorder M] [covariant_class M M has_mul.mul has_le.le] {a : M} (ha : a < 1) {k : } (hk : k 0) :
a ^ k < 1
theorem nsmul_neg {M : Type u_3} [add_monoid M] [preorder M] [covariant_class M M has_add.add has_le.le] {a : M} (ha : a < 0) {k : } (hk : k 0) :
k a < 0
theorem pow_lt_pow' {M : Type u_3} [monoid M] [preorder M] [covariant_class M M has_mul.mul has_le.le] [covariant_class M M has_mul.mul has_lt.lt] {a : M} {n m : } (ha : 1 < a) (h : n < m) :
a ^ n < a ^ m
theorem nsmul_lt_nsmul {M : Type u_3} [add_monoid M] [preorder M] [covariant_class M M has_add.add has_le.le] [covariant_class M M has_add.add has_lt.lt] {a : M} {n m : } (ha : 0 < a) (h : n < m) :
n a < m a
theorem nsmul_nonneg_iff {M : Type u_3} [add_monoid M] [linear_order M] [covariant_class M M has_add.add has_le.le] {x : M} {n : } (hn : n 0) :
0 n x 0 x
theorem one_le_pow_iff {M : Type u_3} [monoid M] [linear_order M] [covariant_class M M has_mul.mul has_le.le] {x : M} {n : } (hn : n 0) :
1 x ^ n 1 x
theorem nsmul_nonpos_iff {M : Type u_3} [add_monoid M] [linear_order M] [covariant_class M M has_add.add has_le.le] {x : M} {n : } (hn : n 0) :
n x 0 x 0
theorem pow_le_one_iff {M : Type u_3} [monoid M] [linear_order M] [covariant_class M M has_mul.mul has_le.le] {x : M} {n : } (hn : n 0) :
x ^ n 1 x 1
theorem one_lt_pow_iff {M : Type u_3} [monoid M] [linear_order M] [covariant_class M M has_mul.mul has_le.le] {x : M} {n : } (hn : n 0) :
1 < x ^ n 1 < x
theorem nsmul_pos_iff {M : Type u_3} [add_monoid M] [linear_order M] [covariant_class M M has_add.add has_le.le] {x : M} {n : } (hn : n 0) :
0 < n x 0 < x
theorem pow_lt_one_iff {M : Type u_3} [monoid M] [linear_order M] [covariant_class M M has_mul.mul has_le.le] {x : M} {n : } (hn : n 0) :
x ^ n < 1 x < 1
theorem nsmul_neg_iff {M : Type u_3} [add_monoid M] [linear_order M] [covariant_class M M has_add.add has_le.le] {x : M} {n : } (hn : n 0) :
n x < 0 x < 0
theorem pow_eq_one_iff {M : Type u_3} [monoid M] [linear_order M] [covariant_class M M has_mul.mul has_le.le] {x : M} {n : } (hn : n 0) :
x ^ n = 1 x = 1
theorem nsmul_eq_zero_iff {M : Type u_3} [add_monoid M] [linear_order M] [covariant_class M M has_add.add has_le.le] {x : M} {n : } (hn : n 0) :
n x = 0 x = 0
theorem one_le_zpow {G : Type u_2} [div_inv_monoid G] [preorder G] [covariant_class G G has_mul.mul has_le.le] {x : G} (H : 1 x) {n : } (hn : 0 n) :
1 x ^ n
theorem zsmul_nonneg {G : Type u_2} [sub_neg_monoid G] [preorder G] [covariant_class G G has_add.add has_le.le] {x : G} (H : 0 x) {n : } (hn : 0 n) :
0 n x
theorem canonically_ordered_comm_semiring.pow_pos {R : Type u_4} [canonically_ordered_comm_semiring R] {a : R} (H : 0 < a) (n : ) :
0 < a ^ n
theorem pow_add_pow_le {R : Type u_4} [ordered_semiring R] {x y : R} {n : } (hx : 0 x) (hy : 0 y) (hn : n 0) :
x ^ n + y ^ n (x + y) ^ n
theorem pow_lt_pow_of_lt_left {R : Type u_4} [ordered_semiring R] {x y : R} {n : } (Hxy : x < y) (Hxpos : 0 x) (Hnpos : 0 < n) :
x ^ n < y ^ n
theorem pow_lt_one {R : Type u_4} [ordered_semiring R] {a : R} (h₀ : 0 a) (h₁ : a < 1) {n : } (hn : n 0) :
a ^ n < 1
theorem strict_mono_on_pow {R : Type u_4} [ordered_semiring R] {n : } (hn : 0 < n) :
strict_mono_on (λ (x : R), x ^ n) (set.Ici 0)
theorem one_le_pow_of_one_le {R : Type u_4} [ordered_semiring R] {a : R} (H : 1 a) (n : ) :
1 a ^ n
theorem pow_mono {R : Type u_4} [ordered_semiring R] {a : R} (h : 1 a) :
monotone (λ (n : ), a ^ n)
theorem pow_le_pow {R : Type u_4} [ordered_semiring R] {a : R} {n m : } (ha : 1 a) (h : n m) :
a ^ n a ^ m
theorem le_self_pow {R : Type u_4} [ordered_semiring R] {a : R} {m : } (ha : 1 a) (h : 1 m) :
a a ^ m
theorem strict_mono_pow {R : Type u_4} [ordered_semiring R] {a : R} (h : 1 < a) :
strict_mono (λ (n : ), a ^ n)
theorem pow_lt_pow {R : Type u_4} [ordered_semiring R] {a : R} {n m : } (h : 1 < a) (h2 : n < m) :
a ^ n < a ^ m
theorem pow_lt_pow_iff {R : Type u_4} [ordered_semiring R] {a : R} {n m : } (h : 1 < a) :
a ^ n < a ^ m n < m
theorem pow_le_pow_iff {R : Type u_4} [ordered_semiring R] {a : R} {n m : } (h : 1 < a) :
a ^ n a ^ m n m
theorem strict_anti_pow {R : Type u_4} [ordered_semiring R] {a : R} (h₀ : 0 < a) (h₁ : a < 1) :
strict_anti (λ (n : ), a ^ n)
theorem pow_lt_pow_iff_of_lt_one {R : Type u_4} [ordered_semiring R] {a : R} {n m : } (h₀ : 0 < a) (h₁ : a < 1) :
a ^ m < a ^ n n < m
theorem pow_lt_pow_of_lt_one {R : Type u_4} [ordered_semiring R] {a : R} (h : 0 < a) (ha : a < 1) {i j : } (hij : i < j) :
a ^ j < a ^ i
theorem pow_le_pow_of_le_left {R : Type u_4} [ordered_semiring R] {a b : R} (ha : 0 a) (hab : a b) (i : ) :
a ^ i b ^ i
theorem one_lt_pow {R : Type u_4} [ordered_semiring R] {a : R} (ha : 1 < a) {n : } (hn : n 0) :
1 < a ^ n
theorem pow_le_one {R : Type u_4} [ordered_semiring R] {a : R} (n : ) (h₀ : 0 a) (h₁ : a 1) :
a ^ n 1
theorem sq_pos_of_pos {R : Type u_4} [ordered_semiring R] {a : R} (ha : 0 < a) :
0 < a ^ 2
theorem sq_pos_of_neg {R : Type u_4} [ordered_ring R] {a : R} (ha : a < 0) :
0 < a ^ 2
theorem pow_bit0_pos_of_neg {R : Type u_4} [ordered_ring R] {a : R} (ha : a < 0) (n : ) :
0 < a ^ bit0 n
theorem pow_bit1_neg {R : Type u_4} [ordered_ring R] {a : R} (ha : a < 0) (n : ) :
a ^ bit1 n < 0
theorem pow_le_one_iff_of_nonneg {R : Type u_4} [linear_ordered_semiring R] {a : R} (ha : 0 a) {n : } (hn : n 0) :
a ^ n 1 a 1
theorem one_le_pow_iff_of_nonneg {R : Type u_4} [linear_ordered_semiring R] {a : R} (ha : 0 a) {n : } (hn : n 0) :
1 a ^ n 1 a
theorem one_lt_pow_iff_of_nonneg {R : Type u_4} [linear_ordered_semiring R] {a : R} (ha : 0 a) {n : } (hn : n 0) :
1 < a ^ n 1 < a
theorem pow_lt_one_iff_of_nonneg {R : Type u_4} [linear_ordered_semiring R] {a : R} (ha : 0 a) {n : } (hn : n 0) :
a ^ n < 1 a < 1
theorem sq_le_one_iff {R : Type u_4} [linear_ordered_semiring R] {a : R} (ha : 0 a) :
a ^ 2 1 a 1
theorem sq_lt_one_iff {R : Type u_4} [linear_ordered_semiring R] {a : R} (ha : 0 a) :
a ^ 2 < 1 a < 1
theorem one_le_sq_iff {R : Type u_4} [linear_ordered_semiring R] {a : R} (ha : 0 a) :
1 a ^ 2 1 a
theorem one_lt_sq_iff {R : Type u_4} [linear_ordered_semiring R] {a : R} (ha : 0 a) :
1 < a ^ 2 1 < a
@[simp]
theorem pow_left_inj {R : Type u_4} [linear_ordered_semiring R] {x y : R} {n : } (Hxpos : 0 x) (Hypos : 0 y) (Hnpos : 0 < n) :
x ^ n = y ^ n x = y
theorem lt_of_pow_lt_pow {R : Type u_4} [linear_ordered_semiring R] {a b : R} (n : ) (hb : 0 b) (h : a ^ n < b ^ n) :
a < b
theorem le_of_pow_le_pow {R : Type u_4} [linear_ordered_semiring R] {a b : R} (n : ) (hb : 0 b) (hn : 0 < n) (h : a ^ n b ^ n) :
a b
@[simp]
theorem sq_eq_sq {R : Type u_4} [linear_ordered_semiring R] {a b : R} (ha : 0 a) (hb : 0 b) :
a ^ 2 = b ^ 2 a = b
theorem pow_abs {R : Type u_4} [linear_ordered_ring R] (a : R) (n : ) :
|a| ^ n = |a ^ n|
theorem abs_neg_one_pow {R : Type u_4} [linear_ordered_ring R] (n : ) :
|(-1) ^ n| = 1
theorem pow_bit0_nonneg {R : Type u_4} [linear_ordered_ring R] (a : R) (n : ) :
0 a ^ bit0 n
theorem sq_nonneg {R : Type u_4} [linear_ordered_ring R] (a : R) :
0 a ^ 2
theorem pow_two_nonneg {R : Type u_4} [linear_ordered_ring R] (a : R) :
0 a ^ 2

Alias of sq_nonneg.

theorem pow_bit0_pos {R : Type u_4} [linear_ordered_ring R] {a : R} (h : a 0) (n : ) :
0 < a ^ bit0 n
theorem sq_pos_of_ne_zero {R : Type u_4} [linear_ordered_ring R] (a : R) (h : a 0) :
0 < a ^ 2
theorem pow_two_pos_of_ne_zero {R : Type u_4} [linear_ordered_ring R] (a : R) (h : a 0) :
0 < a ^ 2

Alias of sq_pos_of_ne_zero.

theorem pow_bit0_pos_iff {R : Type u_4} [linear_ordered_ring R] (a : R) {n : } (hn : n 0) :
0 < a ^ bit0 n a 0
theorem sq_pos_iff {R : Type u_4} [linear_ordered_ring R] (a : R) :
0 < a ^ 2 a 0
theorem sq_abs {R : Type u_4} [linear_ordered_ring R] (x : R) :
|x| ^ 2 = x ^ 2
theorem abs_sq {R : Type u_4} [linear_ordered_ring R] (x : R) :
|x ^ 2| = x ^ 2
theorem sq_lt_sq {R : Type u_4} [linear_ordered_ring R] {x y : R} (h : |x| < |y|) :
x ^ 2 < y ^ 2
theorem sq_lt_sq' {R : Type u_4} [linear_ordered_ring R] {x y : R} (h1 : -y < x) (h2 : x < y) :
x ^ 2 < y ^ 2
theorem sq_le_sq {R : Type u_4} [linear_ordered_ring R] {x y : R} (h : |x| |y|) :
x ^ 2 y ^ 2
theorem sq_le_sq' {R : Type u_4} [linear_ordered_ring R] {x y : R} (h1 : -y x) (h2 : x y) :
x ^ 2 y ^ 2
theorem abs_lt_abs_of_sq_lt_sq {R : Type u_4} [linear_ordered_ring R] {x y : R} (h : x ^ 2 < y ^ 2) :
|x| < |y|
theorem abs_lt_of_sq_lt_sq {R : Type u_4} [linear_ordered_ring R] {x y : R} (h : x ^ 2 < y ^ 2) (hy : 0 y) :
|x| < y
theorem abs_lt_of_sq_lt_sq' {R : Type u_4} [linear_ordered_ring R] {x y : R} (h : x ^ 2 < y ^ 2) (hy : 0 y) :
-y < x x < y
theorem abs_le_abs_of_sq_le_sq {R : Type u_4} [linear_ordered_ring R] {x y : R} (h : x ^ 2 y ^ 2) :
theorem abs_le_of_sq_le_sq {R : Type u_4} [linear_ordered_ring R] {x y : R} (h : x ^ 2 y ^ 2) (hy : 0 y) :
|x| y
theorem abs_le_of_sq_le_sq' {R : Type u_4} [linear_ordered_ring R] {x y : R} (h : x ^ 2 y ^ 2) (hy : 0 y) :
-y x x y
theorem sq_eq_sq_iff_abs_eq_abs {R : Type u_4} [linear_ordered_ring R] (x y : R) :
x ^ 2 = y ^ 2 |x| = |y|
@[simp]
theorem sq_eq_one_iff {R : Type u_4} [linear_ordered_ring R] (x : R) :
x ^ 2 = 1 x = 1 x = -1
theorem sq_ne_one_iff {R : Type u_4} [linear_ordered_ring R] (x : R) :
x ^ 2 1 x 1 x -1
@[simp]
theorem sq_le_one_iff_abs_le_one {R : Type u_4} [linear_ordered_ring R] (x : R) :
x ^ 2 1 |x| 1
@[simp]
theorem sq_lt_one_iff_abs_lt_one {R : Type u_4} [linear_ordered_ring R] (x : R) :
x ^ 2 < 1 |x| < 1
@[simp]
theorem one_le_sq_iff_one_le_abs {R : Type u_4} [linear_ordered_ring R] (x : R) :
1 x ^ 2 1 |x|
@[simp]
theorem one_lt_sq_iff_one_lt_abs {R : Type u_4} [linear_ordered_ring R] (x : R) :
1 < x ^ 2 1 < |x|
theorem two_mul_le_add_sq {R : Type u_4} [linear_ordered_comm_ring R] (a b : R) :
(2 * a) * b a ^ 2 + b ^ 2

Arithmetic mean-geometric mean (AM-GM) inequality for linearly ordered commutative rings.

theorem two_mul_le_add_pow_two {R : Type u_4} [linear_ordered_comm_ring R] (a b : R) :
(2 * a) * b a ^ 2 + b ^ 2

Alias of two_mul_le_add_sq.