Step | Hyp | Ref
| Expression |
1 | | 2sq.1 |
. . . 4
⊢ 𝑆 = ran (𝑤 ∈ ℤ[i] ↦ ((abs‘𝑤)↑2)) |
2 | 1 | 2sqlem1 13829 |
. . 3
⊢ (𝐴 ∈ 𝑆 ↔ ∃𝑧 ∈ ℤ[i] 𝐴 = ((abs‘𝑧)↑2)) |
3 | | elgz 12327 |
. . . . . . 7
⊢ (𝑧 ∈ ℤ[i] ↔ (𝑧 ∈ ℂ ∧
(ℜ‘𝑧) ∈
ℤ ∧ (ℑ‘𝑧) ∈ ℤ)) |
4 | 3 | simp2bi 1009 |
. . . . . 6
⊢ (𝑧 ∈ ℤ[i] →
(ℜ‘𝑧) ∈
ℤ) |
5 | 3 | simp3bi 1010 |
. . . . . 6
⊢ (𝑧 ∈ ℤ[i] →
(ℑ‘𝑧) ∈
ℤ) |
6 | | gzcn 12328 |
. . . . . . 7
⊢ (𝑧 ∈ ℤ[i] → 𝑧 ∈
ℂ) |
7 | 6 | absvalsq2d 11151 |
. . . . . 6
⊢ (𝑧 ∈ ℤ[i] →
((abs‘𝑧)↑2) =
(((ℜ‘𝑧)↑2)
+ ((ℑ‘𝑧)↑2))) |
8 | | oveq1 5864 |
. . . . . . . . 9
⊢ (𝑥 = (ℜ‘𝑧) → (𝑥↑2) = ((ℜ‘𝑧)↑2)) |
9 | 8 | oveq1d 5872 |
. . . . . . . 8
⊢ (𝑥 = (ℜ‘𝑧) → ((𝑥↑2) + (𝑦↑2)) = (((ℜ‘𝑧)↑2) + (𝑦↑2))) |
10 | 9 | eqeq2d 2183 |
. . . . . . 7
⊢ (𝑥 = (ℜ‘𝑧) → (((abs‘𝑧)↑2) = ((𝑥↑2) + (𝑦↑2)) ↔ ((abs‘𝑧)↑2) =
(((ℜ‘𝑧)↑2)
+ (𝑦↑2)))) |
11 | | oveq1 5864 |
. . . . . . . . 9
⊢ (𝑦 = (ℑ‘𝑧) → (𝑦↑2) = ((ℑ‘𝑧)↑2)) |
12 | 11 | oveq2d 5873 |
. . . . . . . 8
⊢ (𝑦 = (ℑ‘𝑧) → (((ℜ‘𝑧)↑2) + (𝑦↑2)) = (((ℜ‘𝑧)↑2) +
((ℑ‘𝑧)↑2))) |
13 | 12 | eqeq2d 2183 |
. . . . . . 7
⊢ (𝑦 = (ℑ‘𝑧) → (((abs‘𝑧)↑2) =
(((ℜ‘𝑧)↑2)
+ (𝑦↑2)) ↔
((abs‘𝑧)↑2) =
(((ℜ‘𝑧)↑2)
+ ((ℑ‘𝑧)↑2)))) |
14 | 10, 13 | rspc2ev 2850 |
. . . . . 6
⊢
(((ℜ‘𝑧)
∈ ℤ ∧ (ℑ‘𝑧) ∈ ℤ ∧ ((abs‘𝑧)↑2) =
(((ℜ‘𝑧)↑2)
+ ((ℑ‘𝑧)↑2))) → ∃𝑥 ∈ ℤ ∃𝑦 ∈ ℤ ((abs‘𝑧)↑2) = ((𝑥↑2) + (𝑦↑2))) |
15 | 4, 5, 7, 14 | syl3anc 1234 |
. . . . 5
⊢ (𝑧 ∈ ℤ[i] →
∃𝑥 ∈ ℤ
∃𝑦 ∈ ℤ
((abs‘𝑧)↑2) =
((𝑥↑2) + (𝑦↑2))) |
16 | | eqeq1 2178 |
. . . . . 6
⊢ (𝐴 = ((abs‘𝑧)↑2) → (𝐴 = ((𝑥↑2) + (𝑦↑2)) ↔ ((abs‘𝑧)↑2) = ((𝑥↑2) + (𝑦↑2)))) |
17 | 16 | 2rexbidv 2496 |
. . . . 5
⊢ (𝐴 = ((abs‘𝑧)↑2) → (∃𝑥 ∈ ℤ ∃𝑦 ∈ ℤ 𝐴 = ((𝑥↑2) + (𝑦↑2)) ↔ ∃𝑥 ∈ ℤ ∃𝑦 ∈ ℤ ((abs‘𝑧)↑2) = ((𝑥↑2) + (𝑦↑2)))) |
18 | 15, 17 | syl5ibrcom 156 |
. . . 4
⊢ (𝑧 ∈ ℤ[i] → (𝐴 = ((abs‘𝑧)↑2) → ∃𝑥 ∈ ℤ ∃𝑦 ∈ ℤ 𝐴 = ((𝑥↑2) + (𝑦↑2)))) |
19 | 18 | rexlimiv 2582 |
. . 3
⊢
(∃𝑧 ∈
ℤ[i] 𝐴 =
((abs‘𝑧)↑2)
→ ∃𝑥 ∈
ℤ ∃𝑦 ∈
ℤ 𝐴 = ((𝑥↑2) + (𝑦↑2))) |
20 | 2, 19 | sylbi 120 |
. 2
⊢ (𝐴 ∈ 𝑆 → ∃𝑥 ∈ ℤ ∃𝑦 ∈ ℤ 𝐴 = ((𝑥↑2) + (𝑦↑2))) |
21 | | gzreim 12335 |
. . . . . 6
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → (𝑥 + (i · 𝑦)) ∈
ℤ[i]) |
22 | | zcn 9221 |
. . . . . . . . 9
⊢ (𝑥 ∈ ℤ → 𝑥 ∈
ℂ) |
23 | | ax-icn 7873 |
. . . . . . . . . 10
⊢ i ∈
ℂ |
24 | | zcn 9221 |
. . . . . . . . . 10
⊢ (𝑦 ∈ ℤ → 𝑦 ∈
ℂ) |
25 | | mulcl 7905 |
. . . . . . . . . 10
⊢ ((i
∈ ℂ ∧ 𝑦
∈ ℂ) → (i · 𝑦) ∈ ℂ) |
26 | 23, 24, 25 | sylancr 412 |
. . . . . . . . 9
⊢ (𝑦 ∈ ℤ → (i
· 𝑦) ∈
ℂ) |
27 | | addcl 7903 |
. . . . . . . . 9
⊢ ((𝑥 ∈ ℂ ∧ (i
· 𝑦) ∈ ℂ)
→ (𝑥 + (i ·
𝑦)) ∈
ℂ) |
28 | 22, 26, 27 | syl2an 287 |
. . . . . . . 8
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → (𝑥 + (i · 𝑦)) ∈
ℂ) |
29 | 28 | absvalsq2d 11151 |
. . . . . . 7
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) →
((abs‘(𝑥 + (i
· 𝑦)))↑2) =
(((ℜ‘(𝑥 + (i
· 𝑦)))↑2) +
((ℑ‘(𝑥 + (i
· 𝑦)))↑2))) |
30 | | zre 9220 |
. . . . . . . . . 10
⊢ (𝑥 ∈ ℤ → 𝑥 ∈
ℝ) |
31 | | zre 9220 |
. . . . . . . . . 10
⊢ (𝑦 ∈ ℤ → 𝑦 ∈
ℝ) |
32 | | crre 10825 |
. . . . . . . . . 10
⊢ ((𝑥 ∈ ℝ ∧ 𝑦 ∈ ℝ) →
(ℜ‘(𝑥 + (i
· 𝑦))) = 𝑥) |
33 | 30, 31, 32 | syl2an 287 |
. . . . . . . . 9
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) →
(ℜ‘(𝑥 + (i
· 𝑦))) = 𝑥) |
34 | 33 | oveq1d 5872 |
. . . . . . . 8
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) →
((ℜ‘(𝑥 + (i
· 𝑦)))↑2) =
(𝑥↑2)) |
35 | | crim 10826 |
. . . . . . . . . 10
⊢ ((𝑥 ∈ ℝ ∧ 𝑦 ∈ ℝ) →
(ℑ‘(𝑥 + (i
· 𝑦))) = 𝑦) |
36 | 30, 31, 35 | syl2an 287 |
. . . . . . . . 9
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) →
(ℑ‘(𝑥 + (i
· 𝑦))) = 𝑦) |
37 | 36 | oveq1d 5872 |
. . . . . . . 8
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) →
((ℑ‘(𝑥 + (i
· 𝑦)))↑2) =
(𝑦↑2)) |
38 | 34, 37 | oveq12d 5875 |
. . . . . . 7
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) →
(((ℜ‘(𝑥 + (i
· 𝑦)))↑2) +
((ℑ‘(𝑥 + (i
· 𝑦)))↑2)) =
((𝑥↑2) + (𝑦↑2))) |
39 | 29, 38 | eqtr2d 2205 |
. . . . . 6
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → ((𝑥↑2) + (𝑦↑2)) = ((abs‘(𝑥 + (i · 𝑦)))↑2)) |
40 | | fveq2 5499 |
. . . . . . . 8
⊢ (𝑧 = (𝑥 + (i · 𝑦)) → (abs‘𝑧) = (abs‘(𝑥 + (i · 𝑦)))) |
41 | 40 | oveq1d 5872 |
. . . . . . 7
⊢ (𝑧 = (𝑥 + (i · 𝑦)) → ((abs‘𝑧)↑2) = ((abs‘(𝑥 + (i · 𝑦)))↑2)) |
42 | 41 | rspceeqv 2853 |
. . . . . 6
⊢ (((𝑥 + (i · 𝑦)) ∈ ℤ[i] ∧
((𝑥↑2) + (𝑦↑2)) = ((abs‘(𝑥 + (i · 𝑦)))↑2)) → ∃𝑧 ∈ ℤ[i] ((𝑥↑2) + (𝑦↑2)) = ((abs‘𝑧)↑2)) |
43 | 21, 39, 42 | syl2anc 409 |
. . . . 5
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) →
∃𝑧 ∈ ℤ[i]
((𝑥↑2) + (𝑦↑2)) = ((abs‘𝑧)↑2)) |
44 | 1 | 2sqlem1 13829 |
. . . . 5
⊢ (((𝑥↑2) + (𝑦↑2)) ∈ 𝑆 ↔ ∃𝑧 ∈ ℤ[i] ((𝑥↑2) + (𝑦↑2)) = ((abs‘𝑧)↑2)) |
45 | 43, 44 | sylibr 133 |
. . . 4
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → ((𝑥↑2) + (𝑦↑2)) ∈ 𝑆) |
46 | | eleq1 2234 |
. . . 4
⊢ (𝐴 = ((𝑥↑2) + (𝑦↑2)) → (𝐴 ∈ 𝑆 ↔ ((𝑥↑2) + (𝑦↑2)) ∈ 𝑆)) |
47 | 45, 46 | syl5ibrcom 156 |
. . 3
⊢ ((𝑥 ∈ ℤ ∧ 𝑦 ∈ ℤ) → (𝐴 = ((𝑥↑2) + (𝑦↑2)) → 𝐴 ∈ 𝑆)) |
48 | 47 | rexlimivv 2594 |
. 2
⊢
(∃𝑥 ∈
ℤ ∃𝑦 ∈
ℤ 𝐴 = ((𝑥↑2) + (𝑦↑2)) → 𝐴 ∈ 𝑆) |
49 | 20, 48 | impbii 125 |
1
⊢ (𝐴 ∈ 𝑆 ↔ ∃𝑥 ∈ ℤ ∃𝑦 ∈ ℤ 𝐴 = ((𝑥↑2) + (𝑦↑2))) |