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 ⊢ ( 𝜑 → 𝑁 ∈ ℝ )
oexpreposd.m ⊢ ( 𝜑 → 𝑀 ∈ ℕ )
oexpreposd.1 ⊢ ( 𝜑 → ¬ ( 𝑀 / 2 ) ∈ ℕ )
Assertion oexpreposd ( 𝜑 → ( 0 < 𝑁 ↔ 0 < ( 𝑁 ↑ 𝑀 ) ) )

Proof

Step Hyp Ref Expression
1 oexpreposd.n ⊢ ( 𝜑 → 𝑁 ∈ ℝ )
2 oexpreposd.m ⊢ ( 𝜑 → 𝑀 ∈ ℕ )
3 oexpreposd.1 ⊢ ( 𝜑 → ¬ ( 𝑀 / 2 ) ∈ ℕ )
4 2 nnzd ⊢ ( 𝜑 → 𝑀 ∈ ℤ )
5 evend2 ⊢ ( 𝑀 ∈ ℤ → ( 2 ∥ 𝑀 ↔ ( 𝑀 / 2 ) ∈ ℤ ) )
6 4 5 syl ⊢ ( 𝜑 → ( 2 ∥ 𝑀 ↔ ( 𝑀 / 2 ) ∈ ℤ ) )
7 2 nngt0d ⊢ ( 𝜑 → 0 < 𝑀 )
8 2 nnred ⊢ ( 𝜑 → 𝑀 ∈ ℝ )
9 2rp ⊢ 2 ∈ ℝ+
10 9 a1i ⊢ ( 𝜑 → 2 ∈ ℝ+ )
11 8 10 gt0divd ⊢ ( 𝜑 → ( 0 < 𝑀 ↔ 0 < ( 𝑀 / 2 ) ) )
12 7 11 mpbid ⊢ ( 𝜑 → 0 < ( 𝑀 / 2 ) )
13 12 anim1ci ⊢ ( ( 𝜑 ∧ ( 𝑀 / 2 ) ∈ ℤ ) → ( ( 𝑀 / 2 ) ∈ ℤ ∧ 0 < ( 𝑀 / 2 ) ) )
14 elnnz ⊢ ( ( 𝑀 / 2 ) ∈ ℕ ↔ ( ( 𝑀 / 2 ) ∈ ℤ ∧ 0 < ( 𝑀 / 2 ) ) )
15 13 14 sylibr ⊢ ( ( 𝜑 ∧ ( 𝑀 / 2 ) ∈ ℤ ) → ( 𝑀 / 2 ) ∈ ℕ )
16 15 ex ⊢ ( 𝜑 → ( ( 𝑀 / 2 ) ∈ ℤ → ( 𝑀 / 2 ) ∈ ℕ ) )
17 6 16 sylbid ⊢ ( 𝜑 → ( 2 ∥ 𝑀 → ( 𝑀 / 2 ) ∈ ℕ ) )
18 3 17 mtod ⊢ ( 𝜑 → ¬ 2 ∥ 𝑀 )
19 1 2 18 expgt0b ⊢ ( 𝜑 → ( 0 < 𝑁 ↔ 0 < ( 𝑁 ↑ 𝑀 ) ) )