Metamath Proof Explorer


Theorem msqgt0

Description: A nonzero square is positive. Theorem I.20 of Apostol p. 20. (Contributed by NM, 6-May-1999) (Proof shortened by Mario Carneiro, 27-May-2016)

Ref Expression
Assertion msqgt0 ⊢ A ∈ ℝ ∧ A ≠ 0 → 0 < A ⁢ A

Proof

Step Hyp Ref Expression
1 id ⊢ A ∈ ℝ → A ∈ ℝ
2 0red ⊢ A ∈ ℝ → 0 ∈ ℝ
3 1 2 lttri2d ⊢ A ∈ ℝ → A ≠ 0 ↔ A < 0 ∨ 0 < A
4 3 biimpa ⊢ A ∈ ℝ ∧ A ≠ 0 → A < 0 ∨ 0 < A
5 mullt0 ⊢ A ∈ ℝ ∧ A < 0 ∧ A ∈ ℝ ∧ A < 0 → 0 < A ⁢ A
6 5 anidms ⊢ A ∈ ℝ ∧ A < 0 → 0 < A ⁢ A
7 mulgt0 ⊢ A ∈ ℝ ∧ 0 < A ∧ A ∈ ℝ ∧ 0 < A → 0 < A ⁢ A
8 7 anidms ⊢ A ∈ ℝ ∧ 0 < A → 0 < A ⁢ A
9 6 8 jaodan ⊢ A ∈ ℝ ∧ A < 0 ∨ 0 < A → 0 < A ⁢ A
10 4 9 syldan ⊢ A ∈ ℝ ∧ A ≠ 0 → 0 < A ⁢ A