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 ⊢ 𝐴 ∈ ℝ
sqaddge0i.2 ⊢ 𝐵 ∈ ℝ
Assertion sqaddge0i 0 ≤ ( ( 𝐴 ↑ 2 ) + ( 𝐵 ↑ 2 ) )

Proof

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