The areas / V15. Real analysis in one variable
Mathlib.Analysis.SpecialFunctions.Pow.NNReal
226 declarations and 8 deprecated aliases. Mathlib docs · Source
Power function on ℝ≥0 and ℝ≥0∞
We construct the power functions x ^ y where
xis a nonnegative real number andyis a real number;xis a number from[0, +∞](a.k.a.ℝ≥0∞) andyis a real number.
We also prove basic properties of these functions.
Positivity extension
NormNum extension for NNReal powers
theorem StrictMono.orderIsoOfRightInverse.congr_simp E1 #
∀ {α : Type u_2} {β : Type u_3} [inst : LinearOrder α] [inst_1 : Preorder β] (f f_1 : α → β) (e_f : f = f_1)
(h_mono : StrictMono f) (g g_1 : β → α) (e_g : g = g_1) (hg : Function.RightInverse g f),
StrictMono.orderIsoOfRightInverse f h_mono g hg = StrictMono.orderIsoOfRightInverse f_1 ⋯ g_1 ⋯
def NNReal.rpow E1 #
NNReal → ℝ → NNReal
The nonnegative real power function x^y, defined for x : ℝ≥0 and y : ℝ as the
restriction of the real power function. For x > 0, it is equal to exp (y log x). For x = 0,
one sets 0 ^ 0 = 1 and 0 ^ y = 0 for y ≠ 0.
instance NNReal.instPowReal E0 #
Pow NNReal ℝ
theorem NNReal.rpow_eq_pow E0 #
∀ (x : NNReal) (y : ℝ), x.rpow y = x ^ y
theorem NNReal.coe_rpow E0 #
∀ (x : NNReal) (y : ℝ), ↑(x ^ y) = ↑x ^ y
theorem NNReal.rpow_zero E0 #
∀ (x : NNReal), x ^ 0 = 1
theorem NNReal.rpow_zero_pos E1 #
∀ (x : NNReal), 0 < x ^ 0
theorem NNReal.rpow_eq_zero_iff E0 #
∀ {x : NNReal} {y : ℝ}, x ^ y = 0 ↔ x = 0 ∧ y ≠ 0
theorem NNReal.rpow_eq_zero E1 #
∀ {x : NNReal} {y : ℝ}, y ≠ 0 → (x ^ y = 0 ↔ x = 0)
theorem NNReal.zero_rpow E0 #
∀ {x : ℝ}, x ≠ 0 → 0 ^ x = 0
theorem NNReal.zero_rpow_def E0 #
∀ (y : ℝ), 0 ^ y = if y = 0 then 1 else 0
theorem NNReal.rpow_one E0 #
∀ (x : NNReal), x ^ 1 = x
theorem NNReal.rpow_neg E1 #
∀ (x : NNReal) (y : ℝ), x ^ (-y) = (x ^ y)⁻¹
theorem NNReal.rpow_natCast E0 #
∀ (x : NNReal) (n : ℕ), x ^ ↑n = x ^ n
theorem NNReal.rpow_intCast E0 #
∀ (x : NNReal) (n : ℤ), x ^ ↑n = x ^ n
theorem NNReal.one_rpow E0 #
∀ (x : ℝ), 1 ^ x = 1
theorem NNReal.rpow_add E1 #
∀ {x : NNReal}, x ≠ 0 → ∀ (y z : ℝ), x ^ (y + z) = x ^ y * x ^ z
theorem NNReal.rpow_add' E1 #
∀ {y z : ℝ}, y + z ≠ 0 → ∀ (x : NNReal), x ^ (y + z) = x ^ y * x ^ z
theorem NNReal.rpow_add_intCast E1 #
∀ {x : NNReal}, x ≠ 0 → ∀ (y : ℝ) (n : ℤ), x ^ (y + ↑n) = x ^ y * x ^ n
theorem NNReal.rpow_add_natCast E1 #
∀ {x : NNReal}, x ≠ 0 → ∀ (y : ℝ) (n : ℕ), x ^ (y + ↑n) = x ^ y * x ^ n
theorem NNReal.rpow_sub_intCast E1 #
∀ {x : NNReal}, x ≠ 0 → ∀ (y : ℝ) (n : ℕ), x ^ (y - ↑n) = x ^ y / x ^ n
theorem NNReal.rpow_sub_natCast E1 #
∀ {x : NNReal}, x ≠ 0 → ∀ (y : ℝ) (n : ℕ), x ^ (y - ↑n) = x ^ y / x ^ n
theorem NNReal.rpow_add_intCast' E1 #
∀ {y : ℝ} {n : ℤ}, y + ↑n ≠ 0 → ∀ (x : NNReal), x ^ (y + ↑n) = x ^ y * x ^ n
theorem NNReal.rpow_add_natCast' E1 #
∀ {y : ℝ} {n : ℕ}, y + ↑n ≠ 0 → ∀ (x : NNReal), x ^ (y + ↑n) = x ^ y * x ^ n
theorem NNReal.rpow_sub_intCast' E1 #
∀ {y : ℝ} {n : ℤ}, y - ↑n ≠ 0 → ∀ (x : NNReal), x ^ (y - ↑n) = x ^ y / x ^ n
theorem NNReal.rpow_sub_natCast' E1 #
∀ {y : ℝ} {n : ℕ}, y - ↑n ≠ 0 → ∀ (x : NNReal), x ^ (y - ↑n) = x ^ y / x ^ n
theorem NNReal.rpow_add_one E1 #
∀ {x : NNReal}, x ≠ 0 → ∀ (y : ℝ), x ^ (y + 1) = x ^ y * x
theorem NNReal.rpow_sub_one E1 #
∀ {x : NNReal}, x ≠ 0 → ∀ (y : ℝ), x ^ (y - 1) = x ^ y / x
theorem NNReal.rpow_add_one' E1 #
∀ {y : ℝ}, y + 1 ≠ 0 → ∀ (x : NNReal), x ^ (y + 1) = x ^ y * x
theorem NNReal.rpow_one_add' E1 #
∀ {y : ℝ}, 1 + y ≠ 0 → ∀ (x : NNReal), x ^ (1 + y) = x * x ^ y
theorem NNReal.rpow_add_of_nonneg E1 #
∀ (x : NNReal) {y z : ℝ}, 0 ≤ y → 0 ≤ z → x ^ (y + z) = x ^ y * x ^ z
theorem NNReal.rpow_of_add_eq E0 #
∀ {w y z : ℝ} (x : NNReal), w ≠ 0 → y + z = w → x ^ w = x ^ y * x ^ z
Variant of NNReal.rpow_add' that avoids having to prove y + z = w twice.
theorem NNReal.rpow_mul E1 #
∀ (x : NNReal) (y z : ℝ), x ^ (y * z) = (x ^ y) ^ z
theorem NNReal.rpow_natCast_mul E1 #
∀ (x : NNReal) (n : ℕ) (z : ℝ), x ^ (↑n * z) = (x ^ n) ^ z
theorem NNReal.rpow_mul_natCast E1 #
∀ (x : NNReal) (y : ℝ) (n : ℕ), x ^ (y * ↑n) = (x ^ y) ^ n
theorem NNReal.rpow_intCast_mul E1 #
∀ (x : NNReal) (n : ℤ) (z : ℝ), x ^ (↑n * z) = (x ^ n) ^ z
theorem NNReal.rpow_mul_intCast E1 #
∀ (x : NNReal) (y : ℝ) (n : ℤ), x ^ (y * ↑n) = (x ^ y) ^ n
theorem NNReal.rpow_neg_one E1 #
∀ (x : NNReal), x ^ (-1) = x⁻¹
theorem NNReal.rpow_sub E1 #
∀ {x : NNReal}, x ≠ 0 → ∀ (y z : ℝ), x ^ (y - z) = x ^ y / x ^ z
theorem NNReal.rpow_sub' E1 #
∀ {y z : ℝ}, y - z ≠ 0 → ∀ (x : NNReal), x ^ (y - z) = x ^ y / x ^ z
theorem NNReal.rpow_sub_one' E1 #
∀ {y : ℝ}, y - 1 ≠ 0 → ∀ (x : NNReal), x ^ (y - 1) = x ^ y / x
theorem NNReal.rpow_one_sub' E1 #
∀ {y : ℝ}, 1 - y ≠ 0 → ∀ (x : NNReal), x ^ (1 - y) = x / x ^ y
theorem NNReal.rpow_inv_rpow_self E1 #
∀ {y : ℝ}, y ≠ 0 → ∀ (x : NNReal), (x ^ y) ^ (1 / y) = x
theorem NNReal.rpow_self_rpow_inv E1 #
∀ {y : ℝ}, y ≠ 0 → ∀ (x : NNReal), (x ^ (1 / y)) ^ y = x
theorem NNReal.inv_rpow E1 #
∀ (x : NNReal) (y : ℝ), x⁻¹ ^ y = (x ^ y)⁻¹
theorem NNReal.div_rpow E1 #
∀ (x y : NNReal) (z : ℝ), (x / y) ^ z = x ^ z / y ^ z
theorem NNReal.sqrt_eq_rpow E1 #
∀ (x : NNReal), NNReal.sqrt x = x ^ (1 / 2)
theorem NNReal.rpow_ofNat E0 #
∀ (x : NNReal) (n : ℕ) [inst : n.AtLeastTwo], x ^ OfNat.ofNat n = x ^ OfNat.ofNat n
theorem NNReal.rpow_two E1 #
∀ (x : NNReal), x ^ 2 = x ^ 2
theorem NNReal.mul_rpow E1 #
∀ {x y : NNReal} {z : ℝ}, (x * y) ^ z = x ^ z * y ^ z
def NNReal.rpowMonoidHom E1 #
ℝ → NNReal →* NNReal
rpow as a MonoidHom
theorem NNReal.rpowMonoidHom_apply E0 #
∀ (r : ℝ) (x : NNReal), (NNReal.rpowMonoidHom r) x = x ^ r
theorem NNReal.list_prod_map_rpow E1 #
∀ (l : List NNReal) (r : ℝ), (List.map (fun x ↦ x ^ r) l).prod = l.prod ^ r
rpow variant of List.prod_map_pow for ℝ≥0
theorem NNReal.list_prod_map_rpow' E1 #
∀ {ι : Type u_1} (l : List ι) (f : ι → NNReal) (r : ℝ), (List.map (fun x ↦ f x ^ r) l).prod = (List.map f l).prod ^ r
theorem NNReal.multiset_prod_map_rpow E1 #
∀ {ι : Type u_1} (s : Multiset ι) (f : ι → NNReal) (r : ℝ),
(Multiset.map (fun x ↦ f x ^ r) s).prod = (Multiset.map f s).prod ^ r
rpow version of Multiset.prod_map_pow for ℝ≥0.
theorem NNReal.finsetProd_rpow E1 #
∀ {ι : Type u_1} (s : Finset ι) (f : ι → NNReal) (r : ℝ), ∏ i ∈ s, f i ^ r = (∏ i ∈ s, f i) ^ r
rpow version of Finset.prod_pow for ℝ≥0.
theorem Real.list_prod_map_rpow E1 #
∀ (l : List ℝ), (∀ x ∈ l, 0 ≤ x) → ∀ (r : ℝ), (List.map (fun x ↦ x ^ r) l).prod = l.prod ^ r
rpow version of List.prod_map_pow for Real.
theorem Real.list_prod_map_rpow' E1 #
∀ {ι : Type u_1} (l : List ι) (f : ι → ℝ),
(∀ i ∈ l, 0 ≤ f i) → ∀ (r : ℝ), (List.map (fun x ↦ f x ^ r) l).prod = (List.map f l).prod ^ r
theorem Real.multiset_prod_map_rpow E1 #
∀ {ι : Type u_1} (s : Multiset ι) (f : ι → ℝ),
(∀ i ∈ s, 0 ≤ f i) → ∀ (r : ℝ), (Multiset.map (fun x ↦ f x ^ r) s).prod = (Multiset.map f s).prod ^ r
rpow version of Multiset.prod_map_pow.
theorem Real.finsetProd_rpow E1 #
∀ {ι : Type u_1} (s : Finset ι) (f : ι → ℝ), (∀ i ∈ s, 0 ≤ f i) → ∀ (r : ℝ), ∏ i ∈ s, f i ^ r = (∏ i ∈ s, f i) ^ r
rpow version of Finset.prod_pow.
theorem NNReal.rpow_le_rpow E1 #
∀ {x y : NNReal} {z : ℝ}, x ≤ y → 0 ≤ z → x ^ z ≤ y ^ z
theorem NNReal.rpow_lt_rpow E1 #
∀ {x y : NNReal} {z : ℝ}, x < y → 0 < z → x ^ z < y ^ z
theorem NNReal.rpow_lt_rpow_iff E0 #
∀ {x y : NNReal} {z : ℝ}, 0 < z → (x ^ z < y ^ z ↔ x < y)
theorem NNReal.rpow_le_rpow_iff E0 #
∀ {x y : NNReal} {z : ℝ}, 0 < z → (x ^ z ≤ y ^ z ↔ x ≤ y)
theorem NNReal.le_rpow_inv_iff E0 #
∀ {x y : NNReal} {z : ℝ}, 0 < z → (x ≤ y ^ z⁻¹ ↔ x ^ z ≤ y)
theorem NNReal.rpow_inv_le_iff E0 #
∀ {x y : NNReal} {z : ℝ}, 0 < z → (x ^ z⁻¹ ≤ y ↔ x ≤ y ^ z)
theorem NNReal.lt_rpow_inv_iff E0 #
∀ {x y : NNReal} {z : ℝ}, 0 < z → (x < y ^ z⁻¹ ↔ x ^ z < y)
theorem NNReal.rpow_inv_lt_iff E0 #
∀ {x y : NNReal} {z : ℝ}, 0 < z → (x ^ z⁻¹ < y ↔ x < y ^ z)
theorem NNReal.rpow_lt_rpow_of_neg E1 #
∀ {x : NNReal} {z : ℝ} {y : NNReal}, 0 < x → x < y → z < 0 → y ^ z < x ^ z
theorem NNReal.rpow_le_rpow_of_nonpos E1 #
∀ {x : NNReal} {z : ℝ} {y : NNReal}, 0 < x → x ≤ y → z ≤ 0 → y ^ z ≤ x ^ z
theorem NNReal.rpow_lt_rpow_iff_of_neg E1 #
∀ {x : NNReal} {z : ℝ} {y : NNReal}, 0 < x → 0 < y → z < 0 → (x ^ z < y ^ z ↔ y < x)
theorem NNReal.rpow_le_rpow_iff_of_neg E1 #
∀ {x : NNReal} {z : ℝ} {y : NNReal}, 0 < x → 0 < y → z < 0 → (x ^ z ≤ y ^ z ↔ y ≤ x)
theorem NNReal.le_rpow_inv_iff_of_neg E1 #
∀ {x : NNReal} {z : ℝ} {y : NNReal}, 0 < x → 0 < y → z < 0 → (x ≤ y ^ z⁻¹ ↔ y ≤ x ^ z)
theorem NNReal.lt_rpow_inv_iff_of_neg E1 #
∀ {x : NNReal} {z : ℝ} {y : NNReal}, 0 < x → 0 < y → z < 0 → (x < y ^ z⁻¹ ↔ y < x ^ z)
theorem NNReal.rpow_inv_lt_iff_of_neg E1 #
∀ {x : NNReal} {z : ℝ} {y : NNReal}, 0 < x → 0 < y → z < 0 → (x ^ z⁻¹ < y ↔ y ^ z < x)
theorem NNReal.rpow_inv_le_iff_of_neg E1 #
∀ {x : NNReal} {z : ℝ} {y : NNReal}, 0 < x → 0 < y → z < 0 → (x ^ z⁻¹ ≤ y ↔ y ^ z ≤ x)
theorem NNReal.rpow_lt_rpow_of_exponent_lt E1 #
∀ {x : NNReal} {y z : ℝ}, 1 < x → y < z → x ^ y < x ^ z
theorem NNReal.rpow_le_rpow_of_exponent_le E1 #
∀ {x : NNReal} {y z : ℝ}, 1 ≤ x → y ≤ z → x ^ y ≤ x ^ z
theorem NNReal.rpow_lt_rpow_of_exponent_gt E1 #
∀ {x : NNReal} {y z : ℝ}, 0 < x → x < 1 → z < y → x ^ y < x ^ z
theorem NNReal.rpow_le_rpow_of_exponent_ge E1 #
∀ {x : NNReal} {y z : ℝ}, 0 < x → x ≤ 1 → z ≤ y → x ^ y ≤ x ^ z
theorem NNReal.rpow_pos E1 #
∀ {p : ℝ} {x : NNReal}, 0 < x → 0 < x ^ p
theorem NNReal.rpow_lt_one E1 #
∀ {x : NNReal} {z : ℝ}, x < 1 → 0 < z → x ^ z < 1
theorem NNReal.rpow_le_one E1 #
∀ {x : NNReal} {z : ℝ}, x ≤ 1 → 0 ≤ z → x ^ z ≤ 1
theorem NNReal.rpow_lt_one_of_one_lt_of_neg E1 #
∀ {x : NNReal} {z : ℝ}, 1 < x → z < 0 → x ^ z < 1
theorem NNReal.rpow_le_one_of_one_le_of_nonpos E1 #
∀ {x : NNReal} {z : ℝ}, 1 ≤ x → z ≤ 0 → x ^ z ≤ 1
theorem NNReal.one_lt_rpow E1 #
∀ {x : NNReal} {z : ℝ}, 1 < x → 0 < z → 1 < x ^ z
theorem NNReal.one_le_rpow E1 #
∀ {x : NNReal} {z : ℝ}, 1 ≤ x → 0 ≤ z → 1 ≤ x ^ z
theorem NNReal.one_lt_rpow_of_pos_of_lt_one_of_neg E1 #
∀ {x : NNReal} {z : ℝ}, 0 < x → x < 1 → z < 0 → 1 < x ^ z
theorem NNReal.one_le_rpow_of_pos_of_le_one_of_nonpos E1 #
∀ {x : NNReal} {z : ℝ}, 0 < x → x ≤ 1 → z ≤ 0 → 1 ≤ x ^ z
theorem NNReal.rpow_le_self_of_le_one E1 #
∀ {x : NNReal} {z : ℝ}, x ≤ 1 → 1 ≤ z → x ^ z ≤ x
theorem NNReal.rpow_left_injective E1 #
∀ {x : ℝ}, x ≠ 0 → Function.Injective fun y ↦ y ^ x
theorem NNReal.rpow_eq_rpow_iff E0 #
∀ {x y : NNReal} {z : ℝ}, z ≠ 0 → (x ^ z = y ^ z ↔ x = y)
theorem NNReal.rpow_left_surjective E1 #
∀ {x : ℝ}, x ≠ 0 → Function.Surjective fun y ↦ y ^ x
theorem NNReal.rpow_left_bijective E1 #
∀ {x : ℝ}, x ≠ 0 → Function.Bijective fun y ↦ y ^ x
theorem NNReal.rpow_right_inj E1 #
∀ {x : NNReal} {y z : ℝ}, x ≠ 0 → x ≠ 1 → (x ^ y = x ^ z ↔ y = z)
theorem NNReal.rpow_eq_rpow_right_iff E0 #
∀ {x : NNReal} {y z : ℝ}, x ^ y = x ^ z ↔ y = z ∨ x = 1 ∨ x = 0 ∧ (y = 0 ↔ z = 0)
theorem NNReal.rpow_eq_left_iff E0 #
∀ {x : NNReal} {y : ℝ}, x ^ y = x ↔ x = 1 ∨ y = 1 ∨ x = 0 ∧ y ≠ 0
theorem NNReal.rpow_inv_eq_iff E0 #
∀ {x y : NNReal} {z : ℝ}, z ≠ 0 → (x ^ z⁻¹ = y ↔ x = y ^ z)
theorem NNReal.rpow_rpow_inv E0 #
∀ {y : ℝ}, y ≠ 0 → ∀ (x : NNReal), (x ^ y) ^ y⁻¹ = x
theorem NNReal.rpow_inv_rpow E0 #
∀ {y : ℝ}, y ≠ 0 → ∀ (x : NNReal), (x ^ y⁻¹) ^ y = x
theorem NNReal.rpow_rpow_inv_eq_iff E0 #
∀ {x : NNReal} {y : ℝ}, (x ^ y) ^ y⁻¹ = x ↔ y ≠ 0 ∨ x = 1
theorem NNReal.rpow_inv_rpow_eq_iff E0 #
∀ {x : NNReal} {y : ℝ}, (x ^ y⁻¹) ^ y = x ↔ y ≠ 0 ∨ x = 1
theorem NNReal.pow_rpow_inv_natCast E1 #
∀ (x : NNReal) {n : ℕ}, n ≠ 0 → (x ^ n) ^ (↑n)⁻¹ = x
theorem NNReal.rpow_inv_natCast_pow E1 #
∀ (x : NNReal) {n : ℕ}, n ≠ 0 → (x ^ (↑n)⁻¹) ^ n = x
theorem Real.toNNReal_rpow_of_nonneg E1 #
∀ {x y : ℝ}, 0 ≤ x → (x ^ y).toNNReal = x.toNNReal ^ y
theorem NNReal.strictMono_rpow_of_pos E1 #
∀ {z : ℝ}, 0 < z → StrictMono fun x ↦ x ^ z
theorem NNReal.monotone_rpow_of_nonneg E1 #
∀ {z : ℝ}, 0 ≤ z → Monotone fun x ↦ x ^ z
def NNReal.orderIsoRpow E1 #
(y : ℝ) → 0 < y → NNReal ≃o NNReal
Bundles fun x : ℝ≥0 => x ^ y into an order isomorphism when y : ℝ is positive,
where the inverse is fun x : ℝ≥0 => x ^ (1 / y).
theorem NNReal.orderIsoRpow_apply E0 #
∀ (y : ℝ) (hy : 0 < y) (x : NNReal), (NNReal.orderIsoRpow y hy) x = x ^ y
theorem NNReal.orderIsoRpow_symm_eq E0 #
∀ (y : ℝ) (hy : 0 < y), (NNReal.orderIsoRpow y hy).symm = NNReal.orderIsoRpow (1 / y) ⋯
theorem Real.nnNorm_rpow_of_nonneg E1 #
∀ {x y : ℝ}, 0 ≤ x → ‖x ^ y‖₊ = ‖x‖₊ ^ y
def ENNReal.rpow E1 #
ENNReal → ℝ → ENNReal
The real power function x^y on extended nonnegative reals, defined for x : ℝ≥0∞ and
y : ℝ as the restriction of the real power function if 0 < x < ⊤, and with the natural values
for 0 and ⊤ (i.e., 0 ^ x = 0 for x > 0, 1 for x = 0 and ⊤ for x < 0, and
⊤ ^ x = 1 / 0 ^ x).
instance ENNReal.instPowReal E0 #
Pow ENNReal ℝ
theorem ENNReal.rpow_eq_pow E0 #
∀ (x : ENNReal) (y : ℝ), x.rpow y = x ^ y
theorem ENNReal.rpow_zero E0 #
∀ {x : ENNReal}, x ^ 0 = 1
theorem ENNReal.rpow_zero_pos E1 #
∀ (x : ENNReal), 0 < x ^ 0
theorem ENNReal.top_rpow_def E0 #
∀ (y : ℝ), ⊤ ^ y = if 0 < y then ⊤ else if y = 0 then 1 else 0
theorem ENNReal.top_rpow_of_pos E0 #
∀ {y : ℝ}, 0 < y → ⊤ ^ y = ⊤
theorem ENNReal.top_rpow_of_neg E0 #
∀ {y : ℝ}, y < 0 → ⊤ ^ y = 0
theorem ENNReal.zero_rpow_of_pos E0 #
∀ {y : ℝ}, 0 < y → 0 ^ y = 0
theorem ENNReal.zero_rpow_of_neg E0 #
∀ {y : ℝ}, y < 0 → 0 ^ y = ⊤
theorem ENNReal.zero_rpow_def E0 #
∀ (y : ℝ), 0 ^ y = if 0 < y then 0 else if y = 0 then 1 else ⊤
theorem ENNReal.zero_rpow_mul_self E0 #
∀ (y : ℝ), 0 ^ y * 0 ^ y = 0 ^ y
theorem ENNReal.coe_rpow_of_ne_zero E0 #
∀ {x : NNReal}, x ≠ 0 → ∀ (y : ℝ), ↑(x ^ y) = ↑x ^ y
theorem ENNReal.coe_rpow_of_nonneg E0 #
∀ (x : NNReal) {y : ℝ}, 0 ≤ y → ↑(x ^ y) = ↑x ^ y
theorem ENNReal.coe_rpow_def E0 #
∀ (x : NNReal) (y : ℝ), ↑x ^ y = if x = 0 ∧ y < 0 then ⊤ else ↑(x ^ y)
theorem ENNReal.rpow_ofNNReal E1 #
∀ {M : NNReal} {P : ℝ}, 0 ≤ P → ↑M ^ P = ↑(M ^ P)
theorem ENNReal.rpow_one E0 #
∀ (x : ENNReal), x ^ 1 = x
theorem ENNReal.one_rpow E0 #
∀ (x : ℝ), 1 ^ x = 1
theorem ENNReal.rpow_eq_zero_iff E0 #
∀ {x : ENNReal} {y : ℝ}, x ^ y = 0 ↔ x = 0 ∧ 0 < y ∨ x = ⊤ ∧ y < 0
theorem ENNReal.rpow_eq_zero_iff_of_pos E1 #
∀ {x : ENNReal} {y : ℝ}, 0 < y → (x ^ y = 0 ↔ x = 0)
theorem ENNReal.rpow_eq_top_iff E0 #
∀ {x : ENNReal} {y : ℝ}, x ^ y = ⊤ ↔ x = 0 ∧ y < 0 ∨ x = ⊤ ∧ 0 < y
theorem ENNReal.rpow_eq_top_iff_of_pos E1 #
∀ {x : ENNReal} {y : ℝ}, 0 < y → (x ^ y = ⊤ ↔ x = ⊤)
theorem ENNReal.rpow_lt_top_iff_of_pos E1 #
∀ {x : ENNReal} {y : ℝ}, 0 < y → (x ^ y < ⊤ ↔ x < ⊤)
theorem ENNReal.rpow_eq_top_of_nonneg E1 #
∀ (x : ENNReal) {y : ℝ}, 0 ≤ y → x ^ y = ⊤ → x = ⊤
theorem ENNReal.rpow_ne_top_of_nonneg E1 #
∀ {x : ENNReal} {y : ℝ}, 0 ≤ y → x ≠ ⊤ → x ^ y ≠ ⊤
theorem ENNReal.rpow_ne_top_of_nonneg' E1 #
∀ {y : ℝ} {x : ENNReal}, 0 < x → x ≠ ⊤ → x ^ y ≠ ⊤
theorem ENNReal.rpow_lt_top_of_nonneg E1 #
∀ {x : ENNReal} {y : ℝ}, 0 ≤ y → x ≠ ⊤ → x ^ y < ⊤
theorem ENNReal.rpow_ne_top_of_ne_zero E1 #
∀ {x : ENNReal} {y : ℝ}, x ≠ 0 → x ≠ ⊤ → x ^ y ≠ ⊤
theorem ENNReal.rpow_add E1 #
∀ {x : ENNReal} (y z : ℝ), x ≠ 0 → x ≠ ⊤ → x ^ (y + z) = x ^ y * x ^ z
theorem ENNReal.rpow_add_of_nonneg E1 #
∀ {x : ENNReal} (y z : ℝ), 0 ≤ y → 0 ≤ z → x ^ (y + z) = x ^ y * x ^ z
theorem ENNReal.rpow_add_of_add_pos E1 #
∀ {x : ENNReal}, x ≠ ⊤ → ∀ (y z : ℝ), 0 < y + z → x ^ (y + z) = x ^ y * x ^ z
theorem ENNReal.rpow_neg E1 #
∀ (x : ENNReal) (y : ℝ), x ^ (-y) = (x ^ y)⁻¹
theorem ENNReal.rpow_sub E1 #
∀ {x : ENNReal} (y z : ℝ), x ≠ 0 → x ≠ ⊤ → x ^ (y - z) = x ^ y / x ^ z
theorem ENNReal.rpow_neg_one E1 #
∀ (x : ENNReal), x ^ (-1) = x⁻¹
theorem ENNReal.rpow_mul E1 #
∀ (x : ENNReal) (y z : ℝ), x ^ (y * z) = (x ^ y) ^ z
theorem ENNReal.rpow_natCast E0 #
∀ (x : ENNReal) (n : ℕ), x ^ ↑n = x ^ n
theorem ENNReal.rpow_ofNat E0 #
∀ (x : ENNReal) (n : ℕ) [inst : n.AtLeastTwo], x ^ OfNat.ofNat n = x ^ OfNat.ofNat n
theorem ENNReal.rpow_intCast E0 #
∀ (x : ENNReal) (n : ℤ), x ^ ↑n = x ^ n
theorem ENNReal.rpow_two E1 #
∀ (x : ENNReal), x ^ 2 = x ^ 2
theorem ENNReal.mul_rpow_eq_ite E1 #
∀ (x y : ENNReal) (z : ℝ), (x * y) ^ z = if (x = 0 ∧ y = ⊤ ∨ x = ⊤ ∧ y = 0) ∧ z < 0 then ⊤ else x ^ z * y ^ z
theorem ENNReal.mul_rpow_of_ne_top E1 #
∀ {x y : ENNReal}, x ≠ ⊤ → y ≠ ⊤ → ∀ (z : ℝ), (x * y) ^ z = x ^ z * y ^ z
theorem ENNReal.coe_mul_rpow E0 #
∀ (x y : NNReal) (z : ℝ), (↑x * ↑y) ^ z = ↑x ^ z * ↑y ^ z
theorem ENNReal.prod_coe_rpow E1 #
∀ {ι : Type u_1} (s : Finset ι) (f : ι → NNReal) (r : ℝ), ∏ i ∈ s, ↑(f i) ^ r = ↑(∏ i ∈ s, f i) ^ r
theorem ENNReal.mul_rpow_of_ne_zero E1 #
∀ {x y : ENNReal}, x ≠ 0 → y ≠ 0 → ∀ (z : ℝ), (x * y) ^ z = x ^ z * y ^ z
theorem ENNReal.mul_rpow_of_nonneg E1 #
∀ (x y : ENNReal) {z : ℝ}, 0 ≤ z → (x * y) ^ z = x ^ z * y ^ z
theorem ENNReal.prod_rpow_of_ne_top E1 #
∀ {ι : Type u_1} {s : Finset ι} {f : ι → ENNReal}, (∀ i ∈ s, f i ≠ ⊤) → ∀ (r : ℝ), ∏ i ∈ s, f i ^ r = (∏ i ∈ s, f i) ^ r
theorem ENNReal.prod_rpow_of_nonneg E1 #
∀ {ι : Type u_1} {s : Finset ι} {f : ι → ENNReal} {r : ℝ}, 0 ≤ r → ∏ i ∈ s, f i ^ r = (∏ i ∈ s, f i) ^ r
theorem ENNReal.inv_rpow E1 #
∀ (x : ENNReal) (y : ℝ), x⁻¹ ^ y = (x ^ y)⁻¹
theorem ENNReal.div_rpow_of_nonneg E1 #
∀ (x y : ENNReal) {z : ℝ}, 0 ≤ z → (x / y) ^ z = x ^ z / y ^ z
theorem ENNReal.strictMono_rpow_of_pos E1 #
∀ {z : ℝ}, 0 < z → StrictMono fun x ↦ x ^ z
theorem ENNReal.monotone_rpow_of_nonneg E1 #
∀ {z : ℝ}, 0 ≤ z → Monotone fun x ↦ x ^ z
def ENNReal.orderIsoRpow E1 #
(y : ℝ) → 0 < y → ENNReal ≃o ENNReal
Bundles fun x : ℝ≥0∞ => x ^ y into an order isomorphism when y : ℝ is positive,
where the inverse is fun x : ℝ≥0∞ => x ^ (1 / y).
theorem ENNReal.orderIsoRpow_apply E0 #
∀ (y : ℝ) (hy : 0 < y) (x : ENNReal), (ENNReal.orderIsoRpow y hy) x = x ^ y
theorem ENNReal.orderIsoRpow_symm_apply E0 #
∀ (y : ℝ) (hy : 0 < y), (ENNReal.orderIsoRpow y hy).symm = ENNReal.orderIsoRpow (1 / y) ⋯
theorem ENNReal.rpow_le_rpow E1 #
∀ {x y : ENNReal} {z : ℝ}, x ≤ y → 0 ≤ z → x ^ z ≤ y ^ z
theorem ENNReal.rpow_lt_rpow E1 #
∀ {x y : ENNReal} {z : ℝ}, x < y → 0 < z → x ^ z < y ^ z
theorem ENNReal.rpow_le_rpow_iff E0 #
∀ {x y : ENNReal} {z : ℝ}, 0 < z → (x ^ z ≤ y ^ z ↔ x ≤ y)
theorem ENNReal.rpow_lt_rpow_iff E0 #
∀ {x y : ENNReal} {z : ℝ}, 0 < z → (x ^ z < y ^ z ↔ x < y)
theorem ENNReal.max_rpow E1 #
∀ {x y : ENNReal} {p : ℝ}, 0 ≤ p → max x y ^ p = max (x ^ p) (y ^ p)
theorem ENNReal.le_rpow_inv_iff E0 #
∀ {x y : ENNReal} {z : ℝ}, 0 < z → (x ≤ y ^ z⁻¹ ↔ x ^ z ≤ y)
theorem ENNReal.rpow_inv_le_iff E0 #
∀ {x y : ENNReal} {z : ℝ}, 0 < z → (x ^ z⁻¹ ≤ y ↔ x ≤ y ^ z)
theorem ENNReal.le_rpow_inv_iff_of_neg E1 #
∀ {x y : ENNReal} {z : ℝ}, z < 0 → (x ≤ y ^ z⁻¹ ↔ y ≤ x ^ z)
theorem ENNReal.rpow_inv_le_iff_of_neg E1 #
∀ {x y : ENNReal} {z : ℝ}, z < 0 → (x ^ z⁻¹ ≤ y ↔ y ^ z ≤ x)
theorem ENNReal.lt_rpow_inv_iff E0 #
∀ {x y : ENNReal} {z : ℝ}, 0 < z → (x < y ^ z⁻¹ ↔ x ^ z < y)
theorem ENNReal.rpow_inv_lt_iff E0 #
∀ {x y : ENNReal} {z : ℝ}, 0 < z → (x ^ z⁻¹ < y ↔ x < y ^ z)
theorem ENNReal.lt_rpow_inv_iff_of_neg E1 #
∀ {x y : ENNReal} {z : ℝ}, z < 0 → (x < y ^ z⁻¹ ↔ y < x ^ z)
theorem ENNReal.rpow_inv_lt_iff_of_neg E1 #
∀ {x y : ENNReal} {z : ℝ}, z < 0 → (x ^ z⁻¹ < y ↔ y ^ z < x)
theorem ENNReal.rpow_lt_rpow_of_exponent_lt E1 #
∀ {x : ENNReal} {y z : ℝ}, 1 < x → x ≠ ⊤ → y < z → x ^ y < x ^ z
theorem ENNReal.rpow_le_rpow_of_exponent_le E1 #
∀ {x : ENNReal} {y z : ℝ}, 1 ≤ x → y ≤ z → x ^ y ≤ x ^ z
theorem ENNReal.rpow_lt_rpow_of_exponent_gt E1 #
∀ {x : ENNReal} {y z : ℝ}, 0 < x → x < 1 → z < y → x ^ y < x ^ z
theorem ENNReal.rpow_le_rpow_of_exponent_ge E1 #
∀ {x : ENNReal} {y z : ℝ}, x ≤ 1 → z ≤ y → x ^ y ≤ x ^ z
theorem ENNReal.rpow_le_self_of_le_one E1 #
∀ {x : ENNReal} {z : ℝ}, x ≤ 1 → 1 ≤ z → x ^ z ≤ x
theorem ENNReal.le_rpow_self_of_one_le E1 #
∀ {x : ENNReal} {z : ℝ}, 1 ≤ x → 1 ≤ z → x ≤ x ^ z
theorem ENNReal.rpow_pos_of_nonneg E1 #
∀ {p : ℝ} {x : ENNReal}, 0 < x → 0 ≤ p → 0 < x ^ p
theorem ENNReal.rpow_pos E1 #
∀ {p : ℝ} {x : ENNReal}, 0 < x → x ≠ ⊤ → 0 < x ^ p
theorem ENNReal.rpow_lt_one E1 #
∀ {x : ENNReal} {z : ℝ}, x < 1 → 0 < z → x ^ z < 1
theorem ENNReal.rpow_le_one E1 #
∀ {x : ENNReal} {z : ℝ}, x ≤ 1 → 0 ≤ z → x ^ z ≤ 1
theorem ENNReal.rpow_lt_one_of_one_lt_of_neg E1 #
∀ {x : ENNReal} {z : ℝ}, 1 < x → z < 0 → x ^ z < 1
theorem ENNReal.rpow_le_one_of_one_le_of_neg E1 #
∀ {x : ENNReal} {z : ℝ}, 1 ≤ x → z < 0 → x ^ z ≤ 1
theorem ENNReal.one_lt_rpow E1 #
∀ {x : ENNReal} {z : ℝ}, 1 < x → 0 < z → 1 < x ^ z
theorem ENNReal.one_le_rpow E1 #
∀ {x : ENNReal} {z : ℝ}, 1 ≤ x → 0 < z → 1 ≤ x ^ z
theorem ENNReal.one_lt_rpow_of_lt_one_of_neg E1 #
∀ {x : ENNReal} {z : ℝ}, x < 1 → z < 0 → 1 < x ^ z
theorem ENNReal.one_le_rpow_of_le_one_of_neg E1 #
∀ {x : ENNReal} {z : ℝ}, x ≤ 1 → z < 0 → 1 ≤ x ^ z
theorem ENNReal.toNNReal_rpow E0 #
∀ (x : ENNReal) (z : ℝ), (x ^ z).toNNReal = x.toNNReal ^ z
theorem ENNReal.toReal_rpow E1 #
∀ (x : ENNReal) (z : ℝ), x.toReal ^ z = (x ^ z).toReal
theorem ENNReal.ofReal_rpow_of_pos E1 #
∀ {x p : ℝ}, 0 < x → ENNReal.ofReal x ^ p = ENNReal.ofReal (x ^ p)
theorem ENNReal.ofReal_rpow_of_nonneg E1 #
∀ {x p : ℝ}, 0 ≤ x → 0 ≤ p → ENNReal.ofReal x ^ p = ENNReal.ofReal (x ^ p)
theorem ENNReal.rpow_rpow_inv E0 #
∀ {y : ℝ}, y ≠ 0 → ∀ (x : ENNReal), (x ^ y) ^ y⁻¹ = x
theorem ENNReal.rpow_inv_rpow E0 #
∀ {y : ℝ}, y ≠ 0 → ∀ (x : ENNReal), (x ^ y⁻¹) ^ y = x
theorem ENNReal.rpow_rpow_inv_eq_iff E0 #
∀ {x : ENNReal} {y : ℝ}, (x ^ y) ^ y⁻¹ = x ↔ y ≠ 0 ∨ x = 1
theorem ENNReal.rpow_inv_rpow_eq_iff E0 #
∀ {x : ENNReal} {y : ℝ}, (x ^ y⁻¹) ^ y = x ↔ y ≠ 0 ∨ x = 1
theorem ENNReal.pow_rpow_inv_natCast E1 #
∀ {n : ℕ}, n ≠ 0 → ∀ (x : ENNReal), (x ^ n) ^ (↑n)⁻¹ = x
theorem ENNReal.rpow_inv_natCast_pow E1 #
∀ {n : ℕ}, n ≠ 0 → ∀ (x : ENNReal), (x ^ (↑n)⁻¹) ^ n = x
theorem ENNReal.rpow_natCast_mul E1 #
∀ (x : ENNReal) (n : ℕ) (z : ℝ), x ^ (↑n * z) = (x ^ n) ^ z
theorem ENNReal.rpow_mul_natCast E1 #
∀ (x : ENNReal) (y : ℝ) (n : ℕ), x ^ (y * ↑n) = (x ^ y) ^ n
theorem ENNReal.rpow_intCast_mul E1 #
∀ (x : ENNReal) (n : ℤ) (z : ℝ), x ^ (↑n * z) = (x ^ n) ^ z
theorem ENNReal.rpow_mul_intCast E1 #
∀ (x : ENNReal) (y : ℝ) (n : ℤ), x ^ (y * ↑n) = (x ^ y) ^ n
theorem ENNReal.rpow_left_injective E1 #
∀ {x : ℝ}, x ≠ 0 → Function.Injective fun y ↦ y ^ x
theorem ENNReal.rpow_left_surjective E1 #
∀ {x : ℝ}, x ≠ 0 → Function.Surjective fun y ↦ y ^ x
theorem ENNReal.rpow_left_bijective E1 #
∀ {x : ℝ}, x ≠ 0 → Function.Bijective fun y ↦ y ^ x
theorem Real.eNorm_rpow_of_nonneg E1 #
∀ {x y : ℝ}, 0 ≤ x → 0 ≤ y → ‖x ^ y‖ₑ = ‖x‖ₑ ^ y
theorem ENNReal.add_rpow_le_two_rpow_mul_rpow_add_rpow E1 #
∀ {p : ℝ} (a b : ENNReal), 0 ≤ p → (a + b) ^ p ≤ 2 ^ p * (a ^ p + b ^ p)
theorem ENNReal.iSup_rpow_of_pos E1 #
∀ {ι : Sort u_1} {r : ℝ}, 0 < r → ∀ (f : ι → ENNReal), (⨆ i, f i) ^ r = ⨆ i, f i ^ r
theorem ENNReal.iSup_rpow_of_nonneg E1 #
∀ {ι : Sort u_1} [Nonempty ι] {r : ℝ}, 0 ≤ r → ∀ (f : ι → ENNReal), (⨆ i, f i) ^ r = ⨆ i, f i ^ r
theorem ENNReal.iInf_rpow_of_pos E1 #
∀ {ι : Sort u_1} {r : ℝ}, 0 < r → ∀ (f : ι → ENNReal), (⨅ i, f i) ^ r = ⨅ i, f i ^ r
theorem ENNReal.iInf_rpow_of_nonneg E1 #
∀ {ι : Sort u_1} [Nonempty ι] {r : ℝ}, 0 ≤ r → ∀ (f : ι → ENNReal), (⨅ i, f i) ^ r = ⨅ i, f i ^ r
def Mathlib.Meta.Positivity.evalNNRealRpow E1 #
Mathlib.Meta.Positivity.PositivityExt
Extension for the positivity tactic: exponentiation by a real number is nonnegative when
the base is nonnegative and positive when the base is positive.
This is the NNReal analogue of evalRpow for Real.
def Mathlib.Meta.Positivity.evalENNRealRpow E1 #
Mathlib.Meta.Positivity.PositivityExt
Extension for the positivity tactic: exponentiation by a real number is nonnegative when
the base is nonnegative and positive when the base is positive.
This is the ENNReal analogue of evalRpow for Real.
theorem Mathlib.Meta.NormNum.IsNat.nnreal_rpow_eq_nnreal_pow E1 #
∀ {b : ℝ} {n : ℕ}, Mathlib.Meta.NormNum.IsNat b n → ∀ (a : NNReal), a ^ b = a ^ n
theorem Mathlib.Meta.NormNum.IsInt.nnreal_rpow_eq_inv_nnreal_pow E1 #
∀ {b : ℝ} {n : ℕ}, Mathlib.Meta.NormNum.IsInt b (Int.negOfNat n) → ∀ (a : NNReal), a ^ b = (a ^ n)⁻¹
theorem Mathlib.Meta.NormNum.IsNat.nnreal_rpow_isNNRat E1 #
∀ {a : NNReal} {b : ℝ} {m n d r : ℕ},
Mathlib.Meta.NormNum.IsNat a m →
Mathlib.Meta.NormNum.IsNNRat b n d →
∀ (k : ℕ), r ^ d = k → ∀ (l : ℕ), m ^ n = l → k = l → Mathlib.Meta.NormNum.IsNat (a ^ b) r
theorem Mathlib.Meta.NormNum.IsNNRat.nnreal_rpow_isNNRat E1 #
∀ (a : NNReal) (b : ℝ) (na da : ℕ),
Mathlib.Meta.NormNum.IsNNRat a na da →
∀ (nr dr : ℕ),
Mathlib.Meta.NormNum.IsNat (↑na ^ b) nr →
Mathlib.Meta.NormNum.IsNat (↑da ^ b) dr → Mathlib.Meta.NormNum.IsNNRat (a ^ b) nr dr
theorem Mathlib.Meta.NormNum.nnreal_rpow_isRat_eq_inv_nnreal_rpow E1 #
∀ (a : NNReal) (b : ℝ) (n d : ℕ), Mathlib.Meta.NormNum.IsRat b (Int.negOfNat n) d → a ^ b = a⁻¹ ^ (↑n / ↑d)
def Mathlib.Meta.NormNum.proveIsNatNNRealRPowIsNNRat E1 #
(a : Q(NNReal)) →
(na : Q(ℕ)) →
Q(Mathlib.Meta.NormNum.IsNat «$a» «$na») →
(b : Q(ℝ)) →
(nb db : Q(ℕ)) →
Q(Mathlib.Meta.NormNum.IsNNRat «$b» «$nb» «$db») →
Lean.MetaM (ℕ × (r : Q(ℕ)) × Q(Mathlib.Meta.NormNum.IsNat («$a» ^ «$b») «$r»))
Given proofs
- that
ais a natural numberna; - that
bis a nonnegative rational numbernb / db;
returns a tuple of
- a natural number
r(result); - the same number, as an expression;
- a proof that
a ^ b = r.
Fails if na is not a dbth power of a natural number.
def Mathlib.Meta.NormNum.evalNNRealRPow E1 #
Mathlib.Meta.NormNum.NormNumExt
Evaluates expressions of the form a ^ b when a : ℝ≥0 and b : ℝ.
Works if a, b, and a ^ b are in fact rational numbers.
Deprecated aliases
| Name | New name | Since |
|---|---|---|
ENNReal.one_le_rpow_of_pos_of_le_one_of_neg | ENNReal.one_le_rpow_of_le_one_of_neg | 2026-11-04 |
ENNReal.one_lt_rpow_of_pos_of_lt_one_of_neg | ENNReal.one_lt_rpow_of_lt_one_of_neg | 2026-11-04 |
NNReal.le_rpow_inv_iff_of_pos | NNReal.le_rpow_inv_iff | 2026-11-04 |
NNReal.lt_rpow_inv_iff_of_pos | NNReal.lt_rpow_inv_iff | 2026-11-04 |
NNReal.rpow_inv_le_iff_of_pos | NNReal.rpow_inv_le_iff | 2026-11-04 |
NNReal.rpow_inv_lt_iff_of_pos | NNReal.rpow_inv_lt_iff | 2026-11-04 |
Real.enorm_rpow_of_nonneg | Real.eNorm_rpow_of_nonneg | 2026-11-06 |
Real.nnnorm_rpow_of_nonneg | Real.nnNorm_rpow_of_nonneg | 2026-10-31 |