Power function on β #
We construct the power functions x ^ y, where x and y are real numbers.
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).
Equations
Instances For
See Real.rpow_inv_log for the equality when x β 1 is strictly positive.
Variant of Real.rpow_add' that avoids having to prove y + z = w twice.
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.
See also rpow_neg for a version with (x ^ y)β»ΒΉ in the RHS.
See also rpow_neg_eq_inv_rpow for a version with xβ»ΒΉ ^ y in the RHS.
Comparing real and complex powers #
Positivity extension #
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.
Equations
Instances For
Extension for the positivity tactic: exponentiation by a real number is nonnegative when
the base is nonnegative and positive when the base is positive.
Equations
Instances For
Note: lemmas about (β i β s, f i ^ r) such as Real.finset_prod_rpow are proved
in Mathlib/Analysis/SpecialFunctions/Pow/NNReal.lean instead.
Order and monotonicity #
Alias of Real.rpow_lt_rpow_of_neg.
Alias of Real.rpow_le_rpow_of_nonpos.
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.
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.
log x is bounded above by a multiple of every power of x with positive exponent.
The (real) logarithm of a natural number n is bounded by a multiple of every power of n
with positive exponent.
Square roots of reals #
Tactic extensions for real powers #
Given proofs
- that
ais a natural numberm - that
bis a nonnegative rational numbern / d - that
r ^ d = m ^ n(written asr ^ d = k,m ^ n = l,k = l) prove thata ^ 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.
Equations
Instances For
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.