Step | Hyp | Ref
| Expression |
1 | | 4sq.1 |
. . 3
⊢ 𝑆 = {𝑛 ∣ ∃𝑥 ∈ ℤ ∃𝑦 ∈ ℤ ∃𝑧 ∈ ℤ ∃𝑤 ∈ ℤ 𝑛 = (((𝑥↑2) + (𝑦↑2)) + ((𝑧↑2) + (𝑤↑2)))} |
2 | 1 | 4sqlem4 16634 |
. 2
⊢ (𝐴 ∈ 𝑆 ↔ ∃𝑎 ∈ ℤ[i] ∃𝑏 ∈ ℤ[i] 𝐴 = (((abs‘𝑎)↑2) + ((abs‘𝑏)↑2))) |
3 | 1 | 4sqlem4 16634 |
. 2
⊢ (𝐵 ∈ 𝑆 ↔ ∃𝑐 ∈ ℤ[i] ∃𝑑 ∈ ℤ[i] 𝐵 = (((abs‘𝑐)↑2) + ((abs‘𝑑)↑2))) |
4 | | reeanv 3294 |
. . 3
⊢
(∃𝑎 ∈
ℤ[i] ∃𝑐 ∈
ℤ[i] (∃𝑏 ∈
ℤ[i] 𝐴 =
(((abs‘𝑎)↑2) +
((abs‘𝑏)↑2))
∧ ∃𝑑 ∈
ℤ[i] 𝐵 =
(((abs‘𝑐)↑2) +
((abs‘𝑑)↑2)))
↔ (∃𝑎 ∈
ℤ[i] ∃𝑏 ∈
ℤ[i] 𝐴 =
(((abs‘𝑎)↑2) +
((abs‘𝑏)↑2))
∧ ∃𝑐 ∈
ℤ[i] ∃𝑑 ∈
ℤ[i] 𝐵 =
(((abs‘𝑐)↑2) +
((abs‘𝑑)↑2)))) |
5 | | reeanv 3294 |
. . . . 5
⊢
(∃𝑏 ∈
ℤ[i] ∃𝑑 ∈
ℤ[i] (𝐴 =
(((abs‘𝑎)↑2) +
((abs‘𝑏)↑2))
∧ 𝐵 =
(((abs‘𝑐)↑2) +
((abs‘𝑑)↑2)))
↔ (∃𝑏 ∈
ℤ[i] 𝐴 =
(((abs‘𝑎)↑2) +
((abs‘𝑏)↑2))
∧ ∃𝑑 ∈
ℤ[i] 𝐵 =
(((abs‘𝑐)↑2) +
((abs‘𝑑)↑2)))) |
6 | | simpll 763 |
. . . . . . . . . . . . 13
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
𝑎 ∈
ℤ[i]) |
7 | | gzabssqcl 16623 |
. . . . . . . . . . . . 13
⊢ (𝑎 ∈ ℤ[i] →
((abs‘𝑎)↑2)
∈ ℕ0) |
8 | 6, 7 | syl 17 |
. . . . . . . . . . . 12
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
((abs‘𝑎)↑2)
∈ ℕ0) |
9 | | simprl 767 |
. . . . . . . . . . . . 13
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
𝑏 ∈
ℤ[i]) |
10 | | gzabssqcl 16623 |
. . . . . . . . . . . . 13
⊢ (𝑏 ∈ ℤ[i] →
((abs‘𝑏)↑2)
∈ ℕ0) |
11 | 9, 10 | syl 17 |
. . . . . . . . . . . 12
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
((abs‘𝑏)↑2)
∈ ℕ0) |
12 | 8, 11 | nn0addcld 12280 |
. . . . . . . . . . 11
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
(((abs‘𝑎)↑2) +
((abs‘𝑏)↑2))
∈ ℕ0) |
13 | 12 | nn0cnd 12278 |
. . . . . . . . . 10
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
(((abs‘𝑎)↑2) +
((abs‘𝑏)↑2))
∈ ℂ) |
14 | 13 | div1d 11726 |
. . . . . . . . 9
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
((((abs‘𝑎)↑2) +
((abs‘𝑏)↑2)) /
1) = (((abs‘𝑎)↑2) + ((abs‘𝑏)↑2))) |
15 | | simplr 765 |
. . . . . . . . . . . . 13
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
𝑐 ∈
ℤ[i]) |
16 | | gzabssqcl 16623 |
. . . . . . . . . . . . 13
⊢ (𝑐 ∈ ℤ[i] →
((abs‘𝑐)↑2)
∈ ℕ0) |
17 | 15, 16 | syl 17 |
. . . . . . . . . . . 12
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
((abs‘𝑐)↑2)
∈ ℕ0) |
18 | | simprr 769 |
. . . . . . . . . . . . 13
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
𝑑 ∈
ℤ[i]) |
19 | | gzabssqcl 16623 |
. . . . . . . . . . . . 13
⊢ (𝑑 ∈ ℤ[i] →
((abs‘𝑑)↑2)
∈ ℕ0) |
20 | 18, 19 | syl 17 |
. . . . . . . . . . . 12
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
((abs‘𝑑)↑2)
∈ ℕ0) |
21 | 17, 20 | nn0addcld 12280 |
. . . . . . . . . . 11
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
(((abs‘𝑐)↑2) +
((abs‘𝑑)↑2))
∈ ℕ0) |
22 | 21 | nn0cnd 12278 |
. . . . . . . . . 10
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
(((abs‘𝑐)↑2) +
((abs‘𝑑)↑2))
∈ ℂ) |
23 | 22 | div1d 11726 |
. . . . . . . . 9
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
((((abs‘𝑐)↑2) +
((abs‘𝑑)↑2)) /
1) = (((abs‘𝑐)↑2) + ((abs‘𝑑)↑2))) |
24 | 14, 23 | oveq12d 7286 |
. . . . . . . 8
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
(((((abs‘𝑎)↑2) +
((abs‘𝑏)↑2)) /
1) · ((((abs‘𝑐)↑2) + ((abs‘𝑑)↑2)) / 1)) = ((((abs‘𝑎)↑2) + ((abs‘𝑏)↑2)) ·
(((abs‘𝑐)↑2) +
((abs‘𝑑)↑2)))) |
25 | | eqid 2739 |
. . . . . . . . 9
⊢
(((abs‘𝑎)↑2) + ((abs‘𝑏)↑2)) = (((abs‘𝑎)↑2) + ((abs‘𝑏)↑2)) |
26 | | eqid 2739 |
. . . . . . . . 9
⊢
(((abs‘𝑐)↑2) + ((abs‘𝑑)↑2)) = (((abs‘𝑐)↑2) + ((abs‘𝑑)↑2)) |
27 | | 1nn 11967 |
. . . . . . . . . 10
⊢ 1 ∈
ℕ |
28 | 27 | a1i 11 |
. . . . . . . . 9
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) → 1
∈ ℕ) |
29 | | gzsubcl 16622 |
. . . . . . . . . . . . 13
⊢ ((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) →
(𝑎 − 𝑐) ∈
ℤ[i]) |
30 | 29 | adantr 480 |
. . . . . . . . . . . 12
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
(𝑎 − 𝑐) ∈
ℤ[i]) |
31 | | gzcn 16614 |
. . . . . . . . . . . 12
⊢ ((𝑎 − 𝑐) ∈ ℤ[i] → (𝑎 − 𝑐) ∈ ℂ) |
32 | 30, 31 | syl 17 |
. . . . . . . . . . 11
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
(𝑎 − 𝑐) ∈
ℂ) |
33 | 32 | div1d 11726 |
. . . . . . . . . 10
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
((𝑎 − 𝑐) / 1) = (𝑎 − 𝑐)) |
34 | 33, 30 | eqeltrd 2840 |
. . . . . . . . 9
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
((𝑎 − 𝑐) / 1) ∈
ℤ[i]) |
35 | | gzsubcl 16622 |
. . . . . . . . . . . . 13
⊢ ((𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i]) →
(𝑏 − 𝑑) ∈
ℤ[i]) |
36 | 35 | adantl 481 |
. . . . . . . . . . . 12
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
(𝑏 − 𝑑) ∈
ℤ[i]) |
37 | | gzcn 16614 |
. . . . . . . . . . . 12
⊢ ((𝑏 − 𝑑) ∈ ℤ[i] → (𝑏 − 𝑑) ∈ ℂ) |
38 | 36, 37 | syl 17 |
. . . . . . . . . . 11
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
(𝑏 − 𝑑) ∈
ℂ) |
39 | 38 | div1d 11726 |
. . . . . . . . . 10
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
((𝑏 − 𝑑) / 1) = (𝑏 − 𝑑)) |
40 | 39, 36 | eqeltrd 2840 |
. . . . . . . . 9
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
((𝑏 − 𝑑) / 1) ∈
ℤ[i]) |
41 | 14, 12 | eqeltrd 2840 |
. . . . . . . . 9
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
((((abs‘𝑎)↑2) +
((abs‘𝑏)↑2)) /
1) ∈ ℕ0) |
42 | 1, 6, 9, 15, 18, 25, 26, 28, 34, 40, 41 | mul4sqlem 16635 |
. . . . . . . 8
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
(((((abs‘𝑎)↑2) +
((abs‘𝑏)↑2)) /
1) · ((((abs‘𝑐)↑2) + ((abs‘𝑑)↑2)) / 1)) ∈ 𝑆) |
43 | 24, 42 | eqeltrrd 2841 |
. . . . . . 7
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
((((abs‘𝑎)↑2) +
((abs‘𝑏)↑2))
· (((abs‘𝑐)↑2) + ((abs‘𝑑)↑2))) ∈ 𝑆) |
44 | | oveq12 7277 |
. . . . . . . 8
⊢ ((𝐴 = (((abs‘𝑎)↑2) + ((abs‘𝑏)↑2)) ∧ 𝐵 = (((abs‘𝑐)↑2) + ((abs‘𝑑)↑2))) → (𝐴 · 𝐵) = ((((abs‘𝑎)↑2) + ((abs‘𝑏)↑2)) · (((abs‘𝑐)↑2) + ((abs‘𝑑)↑2)))) |
45 | 44 | eleq1d 2824 |
. . . . . . 7
⊢ ((𝐴 = (((abs‘𝑎)↑2) + ((abs‘𝑏)↑2)) ∧ 𝐵 = (((abs‘𝑐)↑2) + ((abs‘𝑑)↑2))) → ((𝐴 · 𝐵) ∈ 𝑆 ↔ ((((abs‘𝑎)↑2) + ((abs‘𝑏)↑2)) · (((abs‘𝑐)↑2) + ((abs‘𝑑)↑2))) ∈ 𝑆)) |
46 | 43, 45 | syl5ibrcom 246 |
. . . . . 6
⊢ (((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) ∧ (𝑏 ∈ ℤ[i] ∧ 𝑑 ∈ ℤ[i])) →
((𝐴 = (((abs‘𝑎)↑2) + ((abs‘𝑏)↑2)) ∧ 𝐵 = (((abs‘𝑐)↑2) + ((abs‘𝑑)↑2))) → (𝐴 · 𝐵) ∈ 𝑆)) |
47 | 46 | rexlimdvva 3224 |
. . . . 5
⊢ ((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) →
(∃𝑏 ∈ ℤ[i]
∃𝑑 ∈ ℤ[i]
(𝐴 = (((abs‘𝑎)↑2) + ((abs‘𝑏)↑2)) ∧ 𝐵 = (((abs‘𝑐)↑2) + ((abs‘𝑑)↑2))) → (𝐴 · 𝐵) ∈ 𝑆)) |
48 | 5, 47 | syl5bir 242 |
. . . 4
⊢ ((𝑎 ∈ ℤ[i] ∧ 𝑐 ∈ ℤ[i]) →
((∃𝑏 ∈
ℤ[i] 𝐴 =
(((abs‘𝑎)↑2) +
((abs‘𝑏)↑2))
∧ ∃𝑑 ∈
ℤ[i] 𝐵 =
(((abs‘𝑐)↑2) +
((abs‘𝑑)↑2)))
→ (𝐴 · 𝐵) ∈ 𝑆)) |
49 | 48 | rexlimivv 3222 |
. . 3
⊢
(∃𝑎 ∈
ℤ[i] ∃𝑐 ∈
ℤ[i] (∃𝑏 ∈
ℤ[i] 𝐴 =
(((abs‘𝑎)↑2) +
((abs‘𝑏)↑2))
∧ ∃𝑑 ∈
ℤ[i] 𝐵 =
(((abs‘𝑐)↑2) +
((abs‘𝑑)↑2)))
→ (𝐴 · 𝐵) ∈ 𝑆) |
50 | 4, 49 | sylbir 234 |
. 2
⊢
((∃𝑎 ∈
ℤ[i] ∃𝑏 ∈
ℤ[i] 𝐴 =
(((abs‘𝑎)↑2) +
((abs‘𝑏)↑2))
∧ ∃𝑐 ∈
ℤ[i] ∃𝑑 ∈
ℤ[i] 𝐵 =
(((abs‘𝑐)↑2) +
((abs‘𝑑)↑2)))
→ (𝐴 · 𝐵) ∈ 𝑆) |
51 | 2, 3, 50 | syl2anb 597 |
1
⊢ ((𝐴 ∈ 𝑆 ∧ 𝐵 ∈ 𝑆) → (𝐴 · 𝐵) ∈ 𝑆) |