Power function on ℝ
#
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
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 arbitary 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
- real.has_pow = {pow := real.rpow}
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.