The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V15. Real analysis in one variable

Mathlib.Analysis.SpecialFunctions.Pow.Real

215 declarations. Mathlib docs · Source

Power function on ℝ

We construct the power functions x ^ y, where x and y are real numbers.

Comparing real and complex powers

Positivity extension

Further algebraic properties of rpow

Note: lemmas about (∏ i ∈ s, f i ^ r) such as Real.finsetProd_rpow are proved in Mathlib/Analysis/SpecialFunctions/Pow/NNReal.lean instead.

Order and monotonicity

Square roots of reals

Tactic extensions for real powers

def Real.rpow E3 #

ℝ → ℝ → ℝ

The real power function x ^ y, defined as the real part of the complex 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. For x < 0, the definition is somewhat arbitrary as it depends on the choice of a complex determination of the logarithm. With our conventions, it is equal to exp (y log x) cos (π y).

instance Real.instPow E0 #

Pow ℝ ℝ

theorem Real.rpow_eq_pow E0 #

∀ (x y : ℝ), x.rpow y = x ^ y

theorem Real.rpow_def E0 #

∀ (x y : ℝ), x ^ y = (↑x ^ ↑y).re

theorem Real.rpow_def_of_nonneg E1 #

∀ {x : ℝ}, 0 ≤ x → ∀ (y : ℝ), x ^ y = if x = 0 then if y = 0 then 1 else 0 else Real.exp (Real.log x * y)

theorem Real.rpow_def_of_pos E1 #

∀ {x : ℝ}, 0 < x → ∀ (y : ℝ), x ^ y = Real.exp (Real.log x * y)

theorem Real.exp_mul E1 #

∀ (x y : ℝ), Real.exp (x * y) = Real.exp x ^ y

theorem Real.rpow_intCast E0 #

∀ (x : ℝ) (n : ℤ), x ^ ↑n = x ^ n

theorem Real.rpow_natCast E0 #

∀ (x : ℝ) (n : ℕ), x ^ ↑n = x ^ n

theorem Real.rpow_neg_natCast E0 #

∀ (x : ℝ) (n : ℕ), x ^ (-↑n) = x ^ (-↑n)

theorem Real.rpow_ofNat E0 #

∀ (x : ℝ) (n : ℕ) [inst : n.AtLeastTwo], x ^ OfNat.ofNat n = x ^ OfNat.ofNat n

theorem Real.rpow_neg_ofNat E0 #

∀ (x : ℝ) (n : ℕ) [inst : n.AtLeastTwo], x ^ (-OfNat.ofNat n) = x ^ (-OfNat.ofNat n)

theorem Real.exp_one_rpow E0 #

∀ (x : ℝ), Real.exp 1 ^ x = Real.exp x

theorem Real.exp_one_pow E0 #

∀ (n : ℕ), Real.exp 1 ^ n = Real.exp ↑n

theorem Real.rpow_eq_zero_iff_of_nonneg E1 #

∀ {x y : ℝ}, 0 ≤ x → (x ^ y = 0 ↔ x = 0 ∧ y ≠ 0)

theorem Real.rpow_eq_zero E0 #

∀ {x y : ℝ}, 0 ≤ x → y ≠ 0 → (x ^ y = 0 ↔ x = 0)

theorem Real.rpow_ne_zero E1 #

∀ {x y : ℝ}, 0 ≤ x → y ≠ 0 → (x ^ y ≠ 0 ↔ x ≠ 0)

theorem Real.rpow_def_of_neg E1 #

∀ {x : ℝ}, x < 0 → ∀ (y : ℝ), x ^ y = Real.exp (Real.log x * y) * Real.cos (y * Real.pi)

theorem Real.rpow_def_of_nonpos E1 #

∀ {x : ℝ},
  x ≤ 0 →
    ∀ (y : ℝ), x ^ y = if x = 0 then if y = 0 then 1 else 0 else Real.exp (Real.log x * y) * Real.cos (y * Real.pi)

theorem Real.rpow_pos_of_pos E1 #

∀ {x : ℝ}, 0 < x → ∀ (y : ℝ), 0 < x ^ y

theorem Real.rpow_zero E0 #

∀ (x : ℝ), x ^ 0 = 1

theorem Real.rpow_zero_pos E1 #

∀ (x : ℝ), 0 < x ^ 0

theorem Real.pi_rpow_zero E0 #

∀ {α : Type u_1} (f : α → ℝ), f ^ 0 = 1

theorem Real.zero_rpow E0 #

∀ {x : ℝ}, x ≠ 0 → 0 ^ x = 0

theorem Real.zero_rpow_eq_iff E0 #

∀ {x a : ℝ}, 0 ^ x = a ↔ x ≠ 0 ∧ a = 0 ∨ x = 0 ∧ a = 1

theorem Real.rpow_one E0 #

∀ (x : ℝ), x ^ 1 = x

theorem Real.pi_rpow_one E0 #

∀ {α : Type u_1} (f : α → ℝ), f ^ 1 = f

theorem Real.one_rpow E0 #

∀ (x : ℝ), 1 ^ x = 1

theorem Real.zero_rpow_le_one E1 #

∀ (x : ℝ), 0 ^ x ≤ 1

theorem Real.zero_rpow_nonneg E1 #

∀ (x : ℝ), 0 ≤ 0 ^ x

theorem Real.rpow_nonneg E1 #

∀ {x : ℝ}, 0 ≤ x → ∀ (y : ℝ), 0 ≤ x ^ y

theorem Real.abs_rpow_of_nonneg E1 #

∀ {x y : ℝ}, 0 ≤ x → |x ^ y| = |x| ^ y

theorem Real.abs_rpow_le_abs_rpow E1 #

∀ (x y : ℝ), |x ^ y| ≤ |x| ^ y

theorem Real.abs_rpow_le_exp_log_mul E1 #

∀ (x y : ℝ), |x ^ y| ≤ Real.exp (Real.log x * y)

theorem Real.rpow_inv_log E1 #

∀ {x : ℝ}, 0 < x → x ≠ 1 → x ^ (Real.log x)⁻¹ = Real.exp 1

theorem Real.rpow_inv_log_le_exp_one E1 #

∀ {x : ℝ}, x ^ (Real.log x)⁻¹ ≤ Real.exp 1

See Real.rpow_inv_log for the equality when x ≠ 1 is strictly positive.

theorem Real.norm_rpow_of_nonneg E1 #

∀ {x y : ℝ}, 0 ≤ x → ‖x ^ y‖ = ‖x‖ ^ y

theorem Real.rpow_add E1 #

∀ {x : ℝ}, 0 < x → ∀ (y z : ℝ), x ^ (y + z) = x ^ y * x ^ z

theorem Real.rpow_add' E1 #

∀ {x y z : ℝ}, 0 ≤ x → y + z ≠ 0 → x ^ (y + z) = x ^ y * x ^ z

theorem Real.rpow_of_add_eq E0 #

∀ {w x y z : ℝ}, 0 ≤ x → w ≠ 0 → y + z = w → x ^ w = x ^ y * x ^ z

Variant of Real.rpow_add' that avoids having to prove y + z = w twice.

theorem Real.rpow_add_of_nonneg E1 #

∀ {x y z : ℝ}, 0 ≤ x → 0 ≤ y → 0 ≤ z → x ^ (y + z) = x ^ y * x ^ z

theorem Real.le_rpow_add E2 #

∀ {x : ℝ}, 0 ≤ x → ∀ (y z : ℝ), x ^ y * x ^ z ≤ x ^ (y + z)

For 0 ≤ x, the only problematic case in the equality x ^ y * x ^ z = x ^ (y + z) is for x = 0 and y + z = 0, where the right-hand side is 1 while the left-hand side can vanish. The inequality is always true, though, and given in this lemma.

theorem Real.rpow_sum_of_pos E1 #

∀ {ι : Type u_1} {a : ℝ}, 0 < a → ∀ (f : ι → ℝ) (s : Finset ι), a ^ ∑ x ∈ s, f x = ∏ x ∈ s, a ^ f x

theorem Real.rpow_sum_of_nonneg E1 #

∀ {ι : Type u_1} {a : ℝ}, 0 ≤ a → ∀ {s : Finset ι} {f : ι → ℝ}, (∀ x ∈ s, 0 ≤ f x) → a ^ ∑ x ∈ s, f x = ∏ x ∈ s, a ^ f x

theorem Real.rpow_neg_eq_inv_rpow E1 #

∀ (x y : ℝ), x ^ (-y) = x⁻¹ ^ y

See also rpow_neg for a version with (x ^ y)⁻¹ in the RHS.

theorem Real.rpow_neg E1 #

∀ {x : ℝ}, 0 ≤ x → ∀ (y : ℝ), x ^ (-y) = (x ^ y)⁻¹

See also rpow_neg_eq_inv_rpow for a version with x⁻¹ ^ y in the RHS.

theorem Real.rpow_sub E1 #

∀ {x : ℝ}, 0 < x → ∀ (y z : ℝ), x ^ (y - z) = x ^ y / x ^ z

theorem Real.rpow_sub' E1 #

∀ {x : ℝ}, 0 ≤ x → ∀ {y z : ℝ}, y - z ≠ 0 → x ^ (y - z) = x ^ y / x ^ z

theorem HasCompactSupport.rpow_const E1 #

∀ {α : Type u_1} [inst : TopologicalSpace α] {f : α → ℝ},
  HasCompactSupport f → ∀ {r : ℝ}, r ≠ 0 → HasCompactSupport fun x ↦ f x ^ r

theorem Complex.ofReal_cpow E1 #

∀ {x : ℝ}, 0 ≤ x → ∀ (y : ℝ), ↑(x ^ y) = ↑x ^ ↑y

theorem Complex.ofReal_cpow_of_nonpos E1 #

∀ {x : ℝ}, x ≤ 0 → ∀ (y : ℂ), ↑x ^ y = (-↑x) ^ y * Complex.exp (↑Real.pi * Complex.I * y)

theorem Complex.cpow_ofReal E1 #

∀ (x : ℂ) (y : ℝ), x ^ ↑y = ↑(‖x‖ ^ y) * (↑(Real.cos (x.arg * y)) + ↑(Real.sin (x.arg * y)) * Complex.I)

theorem Complex.cpow_ofReal_re E1 #

∀ (x : ℂ) (y : ℝ), (x ^ ↑y).re = ‖x‖ ^ y * Real.cos (x.arg * y)

theorem Complex.cpow_ofReal_im E1 #

∀ (x : ℂ) (y : ℝ), (x ^ ↑y).im = ‖x‖ ^ y * Real.sin (x.arg * y)

theorem Complex.norm_cpow_of_ne_zero E1 #

∀ {z : ℂ}, z ≠ 0 → ∀ (w : ℂ), ‖z ^ w‖ = ‖z‖ ^ w.re / Real.exp (z.arg * w.im)

theorem Complex.norm_cpow_of_imp E1 #

∀ {z w : ℂ}, (z = 0 → w.re = 0 → w = 0) → ‖z ^ w‖ = ‖z‖ ^ w.re / Real.exp (z.arg * w.im)

theorem Complex.norm_cpow_le E1 #

∀ (z w : ℂ), ‖z ^ w‖ ≤ ‖z‖ ^ w.re / Real.exp (z.arg * w.im)

theorem Complex.norm_cpow_real E0 #

∀ (x : ℂ) (y : ℝ), ‖x ^ ↑y‖ = ‖x‖ ^ y

theorem Complex.norm_cpow_inv_nat E0 #

∀ (x : ℂ) (n : ℕ), ‖x ^ (↑n)⁻¹‖ = ‖x‖ ^ (↑n)⁻¹

theorem Complex.norm_cpow_eq_rpow_re_of_pos E1 #

∀ {x : ℝ}, 0 < x → ∀ (y : ℂ), ‖↑x ^ y‖ = x ^ y.re

theorem Complex.norm_cpow_eq_rpow_re_of_nonneg E1 #

∀ {x : ℝ}, 0 ≤ x → ∀ {y : ℂ}, y.re ≠ 0 → ‖↑x ^ y‖ = x ^ y.re

theorem Complex.norm_ofReal_cpow_eventually_eq_atTop E1 #

∀ (c : ℂ), (fun t ↦ ‖↑t ^ c‖) =ᶠ[Filter.atTop] fun t ↦ t ^ c.re

theorem Complex.norm_natCast_cpow_of_re_ne_zero E1 #

∀ (n : ℕ) {s : ℂ}, s.re ≠ 0 → ‖↑n ^ s‖ = ↑n ^ s.re

theorem Complex.norm_natCast_cpow_of_pos E1 #

∀ {n : ℕ}, 0 < n → ∀ (s : ℂ), ‖↑n ^ s‖ = ↑n ^ s.re

theorem Complex.norm_natCast_cpow_pos_of_pos E1 #

∀ {n : ℕ}, 0 < n → ∀ (s : ℂ), 0 < ‖↑n ^ s‖

theorem Complex.cpow_mul_ofReal_nonneg E1 #

∀ {x : ℝ}, 0 ≤ x → ∀ (y : ℝ) (z : ℂ), ↑x ^ (↑y * z) = ↑(x ^ y) ^ z

def Mathlib.Meta.Positivity.evalRpowZero E1 #

Mathlib.Meta.Positivity.PositivityExt

Extension for the positivity tactic: exponentiation by a real number is positive (namely 1) when the exponent is zero. The other cases are done in evalRpow.

def Mathlib.Meta.Positivity.evalRpow 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.

theorem Real.rpow_mul E1 #

∀ {x : ℝ}, 0 ≤ x → ∀ (y z : ℝ), x ^ (y * z) = (x ^ y) ^ z

theorem Real.rpow_pow_comm E1 #

∀ {x : ℝ}, 0 ≤ x → ∀ (y : ℝ) (n : ℕ), (x ^ y) ^ n = (x ^ n) ^ y

theorem Real.rpow_zpow_comm E1 #

∀ {x : ℝ}, 0 ≤ x → ∀ (y : ℝ) (n : ℤ), (x ^ y) ^ n = (x ^ n) ^ y

theorem Real.rpow_add_intCast E1 #

∀ {x : ℝ}, x ≠ 0 → ∀ (y : ℝ) (n : ℤ), x ^ (y + ↑n) = x ^ y * x ^ n

theorem Real.rpow_add_natCast E1 #

∀ {x : ℝ}, x ≠ 0 → ∀ (y : ℝ) (n : ℕ), x ^ (y + ↑n) = x ^ y * x ^ n

theorem Real.rpow_sub_intCast E1 #

∀ {x : ℝ}, x ≠ 0 → ∀ (y : ℝ) (n : ℤ), x ^ (y - ↑n) = x ^ y / x ^ n

theorem Real.rpow_sub_natCast E1 #

∀ {x : ℝ}, x ≠ 0 → ∀ (y : ℝ) (n : ℕ), x ^ (y - ↑n) = x ^ y / x ^ n

theorem Real.rpow_add_intCast' E1 #

∀ {x y : ℝ}, 0 ≤ x → ∀ {n : ℤ}, y + ↑n ≠ 0 → x ^ (y + ↑n) = x ^ y * x ^ n

theorem Real.rpow_add_natCast' E1 #

∀ {x y : ℝ} {n : ℕ}, 0 ≤ x → y + ↑n ≠ 0 → x ^ (y + ↑n) = x ^ y * x ^ n

theorem Real.rpow_sub_intCast' E1 #

∀ {x y : ℝ}, 0 ≤ x → ∀ {n : ℤ}, y - ↑n ≠ 0 → x ^ (y - ↑n) = x ^ y / x ^ n

theorem Real.rpow_sub_natCast' E1 #

∀ {x y : ℝ} {n : ℕ}, 0 ≤ x → y - ↑n ≠ 0 → x ^ (y - ↑n) = x ^ y / x ^ n

theorem Real.rpow_add_one E1 #

∀ {x : ℝ}, x ≠ 0 → ∀ (y : ℝ), x ^ (y + 1) = x ^ y * x

theorem Real.rpow_sub_one E1 #

∀ {x : ℝ}, x ≠ 0 → ∀ (y : ℝ), x ^ (y - 1) = x ^ y / x

theorem Real.rpow_add_one' E1 #

∀ {x y : ℝ}, 0 ≤ x → y + 1 ≠ 0 → x ^ (y + 1) = x ^ y * x

theorem Real.rpow_one_add' E1 #

∀ {x y : ℝ}, 0 ≤ x → 1 + y ≠ 0 → x ^ (1 + y) = x * x ^ y

theorem Real.rpow_sub_one' E1 #

∀ {x y : ℝ}, 0 ≤ x → y - 1 ≠ 0 → x ^ (y - 1) = x ^ y / x

theorem Real.rpow_one_sub' E1 #

∀ {x y : ℝ}, 0 ≤ x → 1 - y ≠ 0 → x ^ (1 - y) = x / x ^ y

theorem Real.rpow_two E1 #

∀ (x : ℝ), x ^ 2 = x ^ 2

theorem Real.rpow_neg_one E1 #

∀ (x : ℝ), x ^ (-1) = x⁻¹

theorem Real.mul_rpow E1 #

∀ {x y z : ℝ}, 0 ≤ x → 0 ≤ y → (x * y) ^ z = x ^ z * y ^ z

theorem Real.inv_rpow E1 #

∀ {x : ℝ}, 0 ≤ x → ∀ (y : ℝ), x⁻¹ ^ y = (x ^ y)⁻¹

theorem Real.div_rpow E1 #

∀ {x y : ℝ}, 0 ≤ x → 0 ≤ y → ∀ (z : ℝ), (x / y) ^ z = x ^ z / y ^ z

theorem Real.log_rpow E1 #

∀ {x : ℝ}, 0 < x → ∀ (y : ℝ), Real.log (x ^ y) = y * Real.log x

theorem Real.mul_log_eq_log_iff E0 #

∀ {x y z : ℝ}, 0 < x → 0 < z → (y * Real.log x = Real.log z ↔ x ^ y = z)

theorem Real.rpow_rpow_inv E0 #

∀ {x y : ℝ}, 0 ≤ x → y ≠ 0 → (x ^ y) ^ y⁻¹ = x

theorem Real.rpow_inv_rpow E0 #

∀ {x y : ℝ}, 0 ≤ x → y ≠ 0 → (x ^ y⁻¹) ^ y = x

theorem Real.pow_rpow_inv_natCast E1 #

∀ {x : ℝ} {n : ℕ}, 0 ≤ x → n ≠ 0 → (x ^ n) ^ (↑n)⁻¹ = x

theorem Real.rpow_inv_natCast_pow E1 #

∀ {x : ℝ} {n : ℕ}, 0 ≤ x → n ≠ 0 → (x ^ (↑n)⁻¹) ^ n = x

theorem Real.rpow_natCast_mul E1 #

∀ {x : ℝ}, 0 ≤ x → ∀ (n : ℕ) (z : ℝ), x ^ (↑n * z) = (x ^ n) ^ z

theorem Real.rpow_mul_natCast E1 #

∀ {x : ℝ}, 0 ≤ x → ∀ (y : ℝ) (n : ℕ), x ^ (y * ↑n) = (x ^ y) ^ n

theorem Real.rpow_intCast_mul E1 #

∀ {x : ℝ}, 0 ≤ x → ∀ (n : ℤ) (z : ℝ), x ^ (↑n * z) = (x ^ n) ^ z

theorem Real.rpow_mul_intCast E1 #

∀ {x : ℝ}, 0 ≤ x → ∀ (y : ℝ) (n : ℤ), x ^ (y * ↑n) = (x ^ y) ^ n

theorem Real.rpow_lt_rpow E1 #

∀ {x y z : ℝ}, 0 ≤ x → x < y → 0 < z → x ^ z < y ^ z

theorem Real.strictMonoOn_rpow_Ici_of_exponent_pos E1 #

∀ {r : ℝ}, 0 < r → StrictMonoOn (fun x ↦ x ^ r) (Set.Ici 0)

theorem Real.rpow_le_rpow E1 #

∀ {x y z : ℝ}, 0 ≤ x → x ≤ y → 0 ≤ z → x ^ z ≤ y ^ z

theorem Real.monotoneOn_rpow_Ici_of_exponent_nonneg E1 #

∀ {r : ℝ}, 0 ≤ r → MonotoneOn (fun x ↦ x ^ r) (Set.Ici 0)

theorem Real.rpow_lt_rpow_of_neg E1 #

∀ {x y z : ℝ}, 0 < x → x < y → z < 0 → y ^ z < x ^ z

theorem Real.rpow_le_rpow_of_nonpos E1 #

∀ {x y z : ℝ}, 0 < x → x ≤ y → z ≤ 0 → y ^ z ≤ x ^ z

theorem Real.rpow_lt_rpow_iff E0 #

∀ {x y z : ℝ}, 0 ≤ x → 0 ≤ y → 0 < z → (x ^ z < y ^ z ↔ x < y)

theorem Real.rpow_le_rpow_iff E0 #

∀ {x y z : ℝ}, 0 ≤ x → 0 ≤ y → 0 < z → (x ^ z ≤ y ^ z ↔ x ≤ y)

theorem Real.rpow_lt_rpow_iff_of_neg E1 #

∀ {x y z : ℝ}, 0 < x → 0 < y → z < 0 → (x ^ z < y ^ z ↔ y < x)

theorem Real.rpow_le_rpow_iff_of_neg E1 #

∀ {x y z : ℝ}, 0 < x → 0 < y → z < 0 → (x ^ z ≤ y ^ z ↔ y ≤ x)

theorem Real.le_rpow_inv_iff_of_pos E1 #

∀ {x y z : ℝ}, 0 ≤ x → 0 ≤ y → 0 < z → (x ≤ y ^ z⁻¹ ↔ x ^ z ≤ y)

theorem Real.rpow_inv_le_iff_of_pos E1 #

∀ {x y z : ℝ}, 0 ≤ x → 0 ≤ y → 0 < z → (x ^ z⁻¹ ≤ y ↔ x ≤ y ^ z)

theorem Real.lt_rpow_inv_iff_of_pos E1 #

∀ {x y z : ℝ}, 0 ≤ x → 0 ≤ y → 0 < z → (x < y ^ z⁻¹ ↔ x ^ z < y)

theorem Real.rpow_inv_lt_iff_of_pos E1 #

∀ {x y z : ℝ}, 0 ≤ x → 0 ≤ y → 0 < z → (x ^ z⁻¹ < y ↔ x < y ^ z)

theorem Real.le_rpow_inv_iff_of_neg E1 #

∀ {x y z : ℝ}, 0 < x → 0 < y → z < 0 → (x ≤ y ^ z⁻¹ ↔ y ≤ x ^ z)

theorem Real.lt_rpow_inv_iff_of_neg E1 #

∀ {x y z : ℝ}, 0 < x → 0 < y → z < 0 → (x < y ^ z⁻¹ ↔ y < x ^ z)

theorem Real.rpow_inv_lt_iff_of_neg E1 #

∀ {x y z : ℝ}, 0 < x → 0 < y → z < 0 → (x ^ z⁻¹ < y ↔ y ^ z < x)

theorem Real.rpow_inv_le_iff_of_neg E1 #

∀ {x y z : ℝ}, 0 < x → 0 < y → z < 0 → (x ^ z⁻¹ ≤ y ↔ y ^ z ≤ x)

theorem Real.rpow_lt_rpow_of_exponent_lt E1 #

∀ {x y z : ℝ}, 1 < x → y < z → x ^ y < x ^ z

theorem Real.rpow_le_rpow_of_exponent_le E1 #

∀ {x y z : ℝ}, 1 ≤ x → y ≤ z → x ^ y ≤ x ^ z

theorem Real.strictAntiOn_rpow_Ioi_of_exponent_neg E1 #

∀ {r : ℝ}, r < 0 → StrictAntiOn (fun x ↦ x ^ r) (Set.Ioi 0)

theorem Real.antitoneOn_rpow_Ioi_of_exponent_nonpos E1 #

∀ {r : ℝ}, r ≤ 0 → AntitoneOn (fun x ↦ x ^ r) (Set.Ioi 0)

theorem Real.rpow_le_rpow_left_iff E0 #

∀ {x y z : ℝ}, 1 < x → (x ^ y ≤ x ^ z ↔ y ≤ z)

theorem Real.rpow_lt_rpow_left_iff E0 #

∀ {x y z : ℝ}, 1 < x → (x ^ y < x ^ z ↔ y < z)

theorem Real.rpow_lt_rpow_of_exponent_gt E1 #

∀ {x y z : ℝ}, 0 < x → x < 1 → z < y → x ^ y < x ^ z

theorem Real.rpow_le_rpow_of_exponent_ge E1 #

∀ {x y z : ℝ}, 0 < x → x ≤ 1 → z ≤ y → x ^ y ≤ x ^ z

theorem Real.rpow_le_rpow_left_iff_of_base_lt_one E0 #

∀ {x y z : ℝ}, 0 < x → x < 1 → (x ^ y ≤ x ^ z ↔ z ≤ y)

theorem Real.rpow_lt_rpow_left_iff_of_base_lt_one E0 #

∀ {x y z : ℝ}, 0 < x → x < 1 → (x ^ y < x ^ z ↔ z < y)

theorem Real.rpow_lt_one E1 #

∀ {x z : ℝ}, 0 ≤ x → x < 1 → 0 < z → x ^ z < 1

theorem Real.rpow_le_one E1 #

∀ {x z : ℝ}, 0 ≤ x → x ≤ 1 → 0 ≤ z → x ^ z ≤ 1

theorem Real.rpow_lt_one_of_one_lt_of_neg E1 #

∀ {x z : ℝ}, 1 < x → z < 0 → x ^ z < 1

theorem Real.rpow_le_one_of_one_le_of_nonpos E1 #

∀ {x z : ℝ}, 1 ≤ x → z ≤ 0 → x ^ z ≤ 1

theorem Real.one_lt_rpow E1 #

∀ {x z : ℝ}, 1 < x → 0 < z → 1 < x ^ z

theorem Real.one_le_rpow E1 #

∀ {x z : ℝ}, 1 ≤ x → 0 ≤ z → 1 ≤ x ^ z

theorem Real.one_lt_rpow_of_pos_of_lt_one_of_neg E1 #

∀ {x z : ℝ}, 0 < x → x < 1 → z < 0 → 1 < x ^ z

theorem Real.one_le_rpow_of_pos_of_le_one_of_nonpos E1 #

∀ {x z : ℝ}, 0 < x → x ≤ 1 → z ≤ 0 → 1 ≤ x ^ z

theorem Real.rpow_lt_one_iff_of_pos E1 #

∀ {x y : ℝ}, 0 < x → (x ^ y < 1 ↔ 1 < x ∧ y < 0 ∨ x < 1 ∧ 0 < y)

theorem Real.rpow_lt_one_iff E0 #

∀ {x y : ℝ}, 0 ≤ x → (x ^ y < 1 ↔ x = 0 ∧ y ≠ 0 ∨ 1 < x ∧ y < 0 ∨ x < 1 ∧ 0 < y)

theorem Real.rpow_lt_one_iff' E1 #

∀ {x y : ℝ}, 0 ≤ x → 0 < y → (x ^ y < 1 ↔ x < 1)

theorem Real.one_lt_rpow_iff_of_pos E1 #

∀ {x y : ℝ}, 0 < x → (1 < x ^ y ↔ 1 < x ∧ 0 < y ∨ x < 1 ∧ y < 0)

theorem Real.one_lt_rpow_iff E0 #

∀ {x y : ℝ}, 0 ≤ x → (1 < x ^ y ↔ 1 < x ∧ 0 < y ∨ 0 < x ∧ x < 1 ∧ y < 0)

theorem Real.rpow_le_rpow_of_exponent_ge_of_imp E1 #

∀ {x y z : ℝ}, 0 ≤ x → x ≤ 1 → z ≤ y → (x = 0 → y = 0 → z = 0) → x ^ y ≤ x ^ z

This is a more general but less convenient version of rpow_le_rpow_of_exponent_ge. This version allows x = 0, so it explicitly forbids x = y = 0, z ≠ 0.

theorem Real.rpow_le_rpow_of_exponent_ge' E1 #

∀ {x y z : ℝ}, 0 ≤ x → x ≤ 1 → 0 ≤ z → z ≤ y → x ^ y ≤ x ^ z

This version of rpow_le_rpow_of_exponent_ge allows x = 0 but requires 0 ≤ z. See also rpow_le_rpow_of_exponent_ge_of_imp for the most general version.

theorem Real.rpow_max E1 #

∀ {x y p : ℝ}, 0 ≤ x → 0 ≤ y → 0 ≤ p → max x y ^ p = max (x ^ p) (y ^ p)

theorem Real.self_le_rpow_of_le_one E1 #

∀ {x y : ℝ}, 0 ≤ x → x ≤ 1 → y ≤ 1 → x ≤ x ^ y

theorem Real.self_le_rpow_of_one_le E1 #

∀ {x y : ℝ}, 1 ≤ x → 1 ≤ y → x ≤ x ^ y

theorem Real.rpow_le_self_of_le_one E1 #

∀ {x y : ℝ}, 0 ≤ x → x ≤ 1 → 1 ≤ y → x ^ y ≤ x

theorem Real.rpow_le_self_of_one_le E1 #

∀ {x y : ℝ}, 1 ≤ x → y ≤ 1 → x ^ y ≤ x

theorem Real.self_lt_rpow_of_lt_one E1 #

∀ {x y : ℝ}, 0 < x → x < 1 → y < 1 → x < x ^ y

theorem Real.self_lt_rpow_of_one_lt E1 #

∀ {x y : ℝ}, 1 < x → 1 < y → x < x ^ y

theorem Real.rpow_lt_self_of_lt_one E1 #

∀ {x y : ℝ}, 0 < x → x < 1 → 1 < y → x ^ y < x

theorem Real.rpow_lt_self_of_one_lt E1 #

∀ {x y : ℝ}, 1 < x → y < 1 → x ^ y < x

theorem Real.rpow_left_injOn E1 #

∀ {x : ℝ}, x ≠ 0 → Set.InjOn (fun y ↦ y ^ x) {y | 0 ≤ y}

theorem Real.rpow_left_inj E1 #

∀ {x y z : ℝ}, 0 ≤ x → 0 ≤ y → z ≠ 0 → (x ^ z = y ^ z ↔ x = y)

theorem Real.rpow_inv_eq E0 #

∀ {x y z : ℝ}, 0 ≤ x → 0 ≤ y → z ≠ 0 → (x ^ z⁻¹ = y ↔ x = y ^ z)

theorem Real.le_rpow_iff_log_le E1 #

∀ {x y z : ℝ}, 0 < x → 0 < y → (x ≤ y ^ z ↔ Real.log x ≤ z * Real.log y)

theorem Real.le_pow_iff_log_le E1 #

∀ {x y : ℝ} {n : ℕ}, 0 < x → 0 < y → (x ≤ y ^ n ↔ Real.log x ≤ ↑n * Real.log y)

theorem Real.le_zpow_iff_log_le E1 #

∀ {x y : ℝ} {n : ℤ}, 0 < x → 0 < y → (x ≤ y ^ n ↔ Real.log x ≤ ↑n * Real.log y)

theorem Real.le_rpow_of_log_le E1 #

∀ {x y z : ℝ}, 0 < y → Real.log x ≤ z * Real.log y → x ≤ y ^ z

theorem Real.le_pow_of_log_le E1 #

∀ {x y : ℝ} {n : ℕ}, 0 < y → Real.log x ≤ ↑n * Real.log y → x ≤ y ^ n

theorem Real.le_zpow_of_log_le E1 #

∀ {x y : ℝ} {n : ℤ}, 0 < y → Real.log x ≤ ↑n * Real.log y → x ≤ y ^ n

theorem Real.lt_rpow_iff_log_lt E1 #

∀ {x y z : ℝ}, 0 < x → 0 < y → (x < y ^ z ↔ Real.log x < z * Real.log y)

theorem Real.lt_pow_iff_log_lt E1 #

∀ {x y : ℝ} {n : ℕ}, 0 < x → 0 < y → (x < y ^ n ↔ Real.log x < ↑n * Real.log y)

theorem Real.lt_zpow_iff_log_lt E1 #

∀ {x y : ℝ} {n : ℤ}, 0 < x → 0 < y → (x < y ^ n ↔ Real.log x < ↑n * Real.log y)

theorem Real.lt_rpow_of_log_lt E1 #

∀ {x y z : ℝ}, 0 < y → Real.log x < z * Real.log y → x < y ^ z

theorem Real.lt_pow_of_log_lt E1 #

∀ {x y : ℝ} {n : ℕ}, 0 < y → Real.log x < ↑n * Real.log y → x < y ^ n

theorem Real.lt_zpow_of_log_lt E1 #

∀ {x y : ℝ} {n : ℤ}, 0 < y → Real.log x < ↑n * Real.log y → x < y ^ n

theorem Real.rpow_le_iff_le_log E1 #

∀ {x y z : ℝ}, 0 < x → 0 < y → (x ^ z ≤ y ↔ z * Real.log x ≤ Real.log y)

theorem Real.pow_le_iff_le_log E1 #

∀ {x y : ℝ} {n : ℕ}, 0 < x → 0 < y → (x ^ n ≤ y ↔ ↑n * Real.log x ≤ Real.log y)

theorem Real.zpow_le_iff_le_log E1 #

∀ {x y : ℝ} {n : ℤ}, 0 < x → 0 < y → (x ^ n ≤ y ↔ ↑n * Real.log x ≤ Real.log y)

theorem Real.le_log_of_rpow_le E1 #

∀ {x y z : ℝ}, 0 < x → x ^ z ≤ y → z * Real.log x ≤ Real.log y

theorem Real.le_log_of_pow_le E1 #

∀ {x y : ℝ} {n : ℕ}, 0 < x → x ^ n ≤ y → ↑n * Real.log x ≤ Real.log y

theorem Real.le_log_of_zpow_le E1 #

∀ {x y : ℝ} {n : ℤ}, 0 < x → x ^ n ≤ y → ↑n * Real.log x ≤ Real.log y

theorem Real.rpow_le_of_le_log E1 #

∀ {x y z : ℝ}, 0 < y → Real.log x ≤ z * Real.log y → x ≤ y ^ z

theorem Real.pow_le_of_le_log E1 #

∀ {x y : ℝ} {n : ℕ}, 0 < y → Real.log x ≤ ↑n * Real.log y → x ≤ y ^ n

theorem Real.zpow_le_of_le_log E1 #

∀ {x y : ℝ} {n : ℤ}, 0 < y → Real.log x ≤ ↑n * Real.log y → x ≤ y ^ n

theorem Real.rpow_lt_iff_lt_log E1 #

∀ {x y z : ℝ}, 0 < x → 0 < y → (x ^ z < y ↔ z * Real.log x < Real.log y)

theorem Real.pow_lt_iff_lt_log E1 #

∀ {x y : ℝ} {n : ℕ}, 0 < x → 0 < y → (x ^ n < y ↔ ↑n * Real.log x < Real.log y)

theorem Real.zpow_lt_iff_lt_log E1 #

∀ {x y : ℝ} {n : ℤ}, 0 < x → 0 < y → (x ^ n < y ↔ ↑n * Real.log x < Real.log y)

theorem Real.lt_log_of_rpow_lt E1 #

∀ {x y z : ℝ}, 0 < x → x ^ z < y → z * Real.log x < Real.log y

theorem Real.lt_log_of_pow_lt E1 #

∀ {x y : ℝ} {n : ℕ}, 0 < x → x ^ n < y → ↑n * Real.log x < Real.log y

theorem Real.lt_log_of_zpow_lt E1 #

∀ {x y : ℝ} {n : ℤ}, 0 < x → x ^ n < y → ↑n * Real.log x < Real.log y

theorem Real.rpow_lt_of_lt_log E1 #

∀ {x y z : ℝ}, 0 < y → Real.log x < z * Real.log y → x < y ^ z

theorem Real.pow_lt_of_lt_log E1 #

∀ {x y : ℝ} {n : ℕ}, 0 < y → Real.log x < ↑n * Real.log y → x < y ^ n

theorem Real.zpow_lt_of_lt_log E1 #

∀ {x y : ℝ} {n : ℤ}, 0 < y → Real.log x < ↑n * Real.log y → x < y ^ n

theorem Real.rpow_le_one_iff_of_pos E1 #

∀ {x y : ℝ}, 0 < x → (x ^ y ≤ 1 ↔ 1 ≤ x ∧ y ≤ 0 ∨ x ≤ 1 ∧ 0 ≤ y)

theorem Real.abs_log_mul_self_rpow_lt E1 #

∀ (x t : ℝ), 0 < x → x ≤ 1 → 0 < t → |Real.log x * x ^ t| < 1 / t

Bound for |log x * x ^ t| in the interval (0, 1], for positive real t.

theorem Real.log_le_rpow_div E1 #

∀ {x ε : ℝ}, 0 ≤ x → 0 < ε → Real.log x ≤ x ^ ε / ε

log x is bounded above by a multiple of every power of x with positive exponent.

theorem Real.log_natCast_le_rpow_div E1 #

∀ (n : ℕ) {ε : ℝ}, 0 < ε → Real.log ↑n ≤ ↑n ^ ε / ε

The (real) logarithm of a natural number n is bounded by a multiple of every power of n with positive exponent.

theorem Real.neg_rpow_div_le_log E1 #

∀ {x ε : ℝ}, 0 ≤ x → 0 < ε → -x ^ (-ε) / ε ≤ Real.log x

log x is bounded below by minus a multiple of every power of x with negative exponent.

theorem Real.strictMono_rpow_of_base_gt_one E1 #

∀ {b : ℝ}, 1 < b → StrictMono fun x ↦ b ^ x

theorem Real.monotone_rpow_of_base_ge_one E1 #

∀ {b : ℝ}, 1 ≤ b → Monotone fun x ↦ b ^ x

theorem Real.strictAnti_rpow_of_base_lt_one E1 #

∀ {b : ℝ}, 0 < b → b < 1 → StrictAnti fun x ↦ b ^ x

theorem Real.antitone_rpow_of_base_le_one E1 #

∀ {b : ℝ}, 0 < b → b ≤ 1 → Antitone fun x ↦ b ^ x

theorem Real.rpow_right_inj E1 #

∀ {x y z : ℝ}, 0 < x → x ≠ 1 → (x ^ y = x ^ z ↔ y = z)

theorem Real.rpow_le_rpow_of_exponent_le_or_ge E1 #

∀ {x y z : ℝ}, 1 ≤ x ∧ y ≤ z ∨ 0 < x ∧ x ≤ 1 ∧ z ≤ y → x ^ y ≤ x ^ z

Guessing rule for the bound tactic: when trying to prove x ^ y ≤ x ^ z, we can either assume 1 ≤ x or 0 < x ≤ 1.

theorem Complex.norm_prime_cpow_le_one_half E1 #

∀ (p : Nat.Primes) {s : ℂ}, 1 < s.re → ‖↑↑p ^ (-s)‖ ≤ 1 / 2

theorem Complex.one_sub_prime_cpow_ne_zero E1 #

∀ {p : ℕ}, Nat.Prime p → ∀ {s : ℂ}, 1 < s.re → 1 - ↑p ^ (-s) ≠ 0

theorem Complex.norm_natCast_cpow_le_norm_natCast_cpow_of_pos E1 #

∀ {n : ℕ}, 0 < n → ∀ {w z : ℂ}, w.re ≤ z.re → ‖↑n ^ w‖ ≤ ‖↑n ^ z‖

theorem Complex.norm_natCast_cpow_le_norm_natCast_cpow_iff E0 #

∀ {n : ℕ}, 1 < n → ∀ {w z : ℂ}, ‖↑n ^ w‖ ≤ ‖↑n ^ z‖ ↔ w.re ≤ z.re

theorem Complex.norm_log_natCast_le_rpow_div E1 #

∀ (n : ℕ) {ε : ℝ}, 0 < ε → ‖Complex.log ↑n‖ ≤ ↑n ^ ε / ε

theorem Real.sqrt_eq_rpow E1 #

∀ (x : ℝ), √x = x ^ (1 / 2)

theorem Real.rpow_div_two_eq_sqrt E1 #

∀ {x : ℝ} (r : ℝ), 0 ≤ x → x ^ (r / 2) = √x ^ r

theorem Complex.cpow_inv_two_re E1 #

∀ (x : ℂ), (x ^ 2⁻¹).re = √((‖x‖ + x.re) / 2)

theorem Complex.cpow_inv_two_im_eq_sqrt E1 #

∀ {x : ℂ}, 0 ≤ x.im → (x ^ 2⁻¹).im = √((‖x‖ - x.re) / 2)

theorem Complex.cpow_inv_two_im_eq_neg_sqrt E1 #

∀ {x : ℂ}, x.im < 0 → (x ^ 2⁻¹).im = -√((‖x‖ - x.re) / 2)

theorem Complex.abs_cpow_inv_two_im E1 #

∀ (x : ℂ), |(x ^ 2⁻¹).im| = √((‖x‖ - x.re) / 2)

theorem Complex.inv_natCast_cpow_ofReal_pos E1 #

∀ {n : ℕ}, n ≠ 0 → ∀ (x : ℝ), 0 < (↑n ^ ↑x)⁻¹

theorem Mathlib.Meta.NormNum.IsNat.rpow_eq_pow E1 #

∀ {b : ℝ} {n : ℕ}, Mathlib.Meta.NormNum.IsNat b n → ∀ (a : ℝ), a ^ b = a ^ n

theorem Mathlib.Meta.NormNum.IsInt.rpow_eq_inv_pow E1 #

∀ {b : ℝ} {n : ℕ}, Mathlib.Meta.NormNum.IsInt b (Int.negOfNat n) → ∀ (a : ℝ), a ^ b = (a ^ n)⁻¹

theorem Mathlib.Meta.NormNum.IsNat.rpow_isNNRat E1 #

∀ {a 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

Given proofs

  • that a is a natural number m
  • that b is a nonnegative rational number n / d
  • that r ^ d = m ^ n (written as r ^ d = k, m ^ n = l, k = l)

prove that a ^ b = r.

theorem Mathlib.Meta.NormNum.IsNNRat.rpow_isNNRat E1 #

∀ (a 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.rpow_isRat_eq_inv_rpow E1 #

∀ (a b : ℝ) (n d : ℕ), Mathlib.Meta.NormNum.IsRat b (Int.negOfNat n) d → a ^ b = a⁻¹ ^ (↑n / ↑d)

def Mathlib.Meta.NormNum.proveIsNatRPowIsNNRat E1 #

(a : Q(ℝ)) →
  (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 a is a natural number na;
  • that b is a nonnegative rational number nb / 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.evalRPow E1 #

Mathlib.Meta.NormNum.NormNumExt

Evaluates expressions of the form a ^ b when a and b are both reals. Works if a, b, and a ^ b are in fact rational numbers, except for the case a < 0, b isn't integer.

TODO: simplify terms like (-a : ℝ) ^ (b / 3 : ℝ) and (-a : ℝ) ^ (b / 2 : ℝ) too, possibly after first considering changing the junk value.