Metamath Proof Explorer


Theorem sqaddge0i

Description: The sum of two squares of real numbers is nonnegative. Proof prepared with AI assistance from OpenAI Codex. (Contributed by Owen Orger, 11-Nov-2026)

Ref Expression
Hypotheses sqaddge0i.1 ⊢ A ∈ ℝ
sqaddge0i.2 ⊢ B ∈ ℝ
Assertion sqaddge0i ⊢ 0 ≤ A 2 + B 2

Proof

Step Hyp Ref Expression
1 sqaddge0i.1 ⊢ A ∈ ℝ
2 sqaddge0i.2 ⊢ B ∈ ℝ
3 1 sqge0i ⊢ 0 ≤ A 2
4 2 sqge0i ⊢ 0 ≤ B 2
5 resqcl ⊢ A ∈ ℝ → A 2 ∈ ℝ
6 1 5 ax-mp ⊢ A 2 ∈ ℝ
7 resqcl ⊢ B ∈ ℝ → B 2 ∈ ℝ
8 2 7 ax-mp ⊢ B 2 ∈ ℝ
9 6 8 addge0i ⊢ 0 ≤ A 2 ∧ 0 ≤ B 2 → 0 ≤ A 2 + B 2
10 3 4 9 mp2an ⊢ 0 ≤ A 2 + B 2