Metamath Proof Explorer


Theorem resum2sqgt0

Description: The sum of the square of a nonzero real number and the square of another real number is greater than zero. (Contributed by AV, 7-Feb-2023)

Ref Expression
Hypothesis resum2sqcl.q ⊢ Q = A 2 + B 2
Assertion resum2sqgt0 ⊢ A ∈ ℝ ∧ A ≠ 0 ∧ B ∈ ℝ → 0 < Q

Proof

Step Hyp Ref Expression
1 resum2sqcl.q ⊢ Q = A 2 + B 2
2 simpl ⊢ A ∈ ℝ ∧ A ≠ 0 → A ∈ ℝ
3 2 resqcld ⊢ A ∈ ℝ ∧ A ≠ 0 → A 2 ∈ ℝ
4 3 adantr ⊢ A ∈ ℝ ∧ A ≠ 0 ∧ B ∈ ℝ → A 2 ∈ ℝ
5 simpr ⊢ A ∈ ℝ ∧ A ≠ 0 ∧ B ∈ ℝ → B ∈ ℝ
6 5 resqcld ⊢ A ∈ ℝ ∧ A ≠ 0 ∧ B ∈ ℝ → B 2 ∈ ℝ
7 sqgt0 ⊢ A ∈ ℝ ∧ A ≠ 0 → 0 < A 2
8 7 adantr ⊢ A ∈ ℝ ∧ A ≠ 0 ∧ B ∈ ℝ → 0 < A 2
9 sqge0 ⊢ B ∈ ℝ → 0 ≤ B 2
10 9 adantl ⊢ A ∈ ℝ ∧ A ≠ 0 ∧ B ∈ ℝ → 0 ≤ B 2
11 4 6 8 10 addgtge0d ⊢ A ∈ ℝ ∧ A ≠ 0 ∧ B ∈ ℝ → 0 < A 2 + B 2
12 11 1 breqtrrdi ⊢ A ∈ ℝ ∧ A ≠ 0 ∧ B ∈ ℝ → 0 < Q