Metamath Proof Explorer


Theorem oexpreposd

Description: The exponential of a real number with an odd exponent is positive iff the real number itself is positive. For a different representation of the odd exponent see expgt0b . (Contributed by SN, 4-Mar-2023) (Proof shortened by AV, 19-Nov-2026)

Ref Expression
Hypotheses oexpreposd.n
|- ( ph -> N e. RR )
oexpreposd.m
|- ( ph -> M e. NN )
oexpreposd.1
|- ( ph -> -. ( M / 2 ) e. NN )
Assertion oexpreposd
|- ( ph -> ( 0 < N <-> 0 < ( N ^ M ) ) )

Proof

Step Hyp Ref Expression
1 oexpreposd.n
 |-  ( ph -> N e. RR )
2 oexpreposd.m
 |-  ( ph -> M e. NN )
3 oexpreposd.1
 |-  ( ph -> -. ( M / 2 ) e. NN )
4 2 nnzd
 |-  ( ph -> M e. ZZ )
5 evend2
 |-  ( M e. ZZ -> ( 2 || M <-> ( M / 2 ) e. ZZ ) )
6 4 5 syl
 |-  ( ph -> ( 2 || M <-> ( M / 2 ) e. ZZ ) )
7 2 nngt0d
 |-  ( ph -> 0 < M )
8 2 nnred
 |-  ( ph -> M e. RR )
9 2rp
 |-  2 e. RR+
10 9 a1i
 |-  ( ph -> 2 e. RR+ )
11 8 10 gt0divd
 |-  ( ph -> ( 0 < M <-> 0 < ( M / 2 ) ) )
12 7 11 mpbid
 |-  ( ph -> 0 < ( M / 2 ) )
13 12 anim1ci
 |-  ( ( ph /\ ( M / 2 ) e. ZZ ) -> ( ( M / 2 ) e. ZZ /\ 0 < ( M / 2 ) ) )
14 elnnz
 |-  ( ( M / 2 ) e. NN <-> ( ( M / 2 ) e. ZZ /\ 0 < ( M / 2 ) ) )
15 13 14 sylibr
 |-  ( ( ph /\ ( M / 2 ) e. ZZ ) -> ( M / 2 ) e. NN )
16 15 ex
 |-  ( ph -> ( ( M / 2 ) e. ZZ -> ( M / 2 ) e. NN ) )
17 6 16 sylbid
 |-  ( ph -> ( 2 || M -> ( M / 2 ) e. NN ) )
18 3 17 mtod
 |-  ( ph -> -. 2 || M )
19 1 2 18 expgt0b
 |-  ( ph -> ( 0 < N <-> 0 < ( N ^ M ) ) )