-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extended domain of rpow (powr) #1252
Conversation
Nice. Why the |
I was thinking the case |
Just a very minor observation: When I first read this definition, the second branch ( Thanks! |
|
No... according to the definition of
See also this Wikipedia article [1] (in short: "Zero to the power of zero, denoted by 0^0, is a mathematical expression that is either defined as 1 or left undefined, depending on context"). Although I'm a hater of division-by-zero ( If |
I have now updated the definition of
I think there's no need to explicitly disable |
Yes, you're right, of course! 😔 |
Thanks both! |
Hi,
Inspired by #1247, this PR extends the domain of
rpow
(powr :real -> real -> real
). Previouslyrpow
has the following definition:Since
ln a
is only specified when0 < a
, the valid domain ofa powr b
is0 < a
andb
arbitrary. (Outside this domaina powr b
is an unspecified positive real.) But there are two more cases whena powr b
is a (finite) real number:a = 0
and0 < b
.a
is arbitrary andb
is an integer.Now I extend the definition of
rpow
(bynew_specification
) to cover the above cases:With this new definition, the following theorems can be proved unconditionally (i.e. without requiring
0 < a
fora powr b
):But the following theorems now have to have the antecedent
0 < a
fora powr b
, because the old definition ofrpow
as a rewriting rulea powr b = exp (b * ln a)
is no more available:The hardest part is to fix the proof of
DIFF_RPOW
by using some advanced results fromreal_topologyTheory
(which has some minor updates):P. S. opening
realLib
instead ofRealArith
inreal_topologyScript.sml
greatly reduced the building time ofreal_topologyTheory
by 100s, because the old, fasterREAL_ARITH
is tried first).--Chun