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)
.
Instances For
Alias of Real.rpow_intCast
.
Alias of Real.rpow_natCast
.
See Real.rpow_inv_log
for the equality when x ≠ 1
is strictly positive.
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.
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
.
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.
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 #
Square roots of reals #
Tactic extensions for real powers #
Evaluates expressions of the form a ^ b
when a
and b
are both reals.
Equations
- One or more equations did not get rendered due to their size.