Step | Hyp | Ref
| Expression |
1 | | elnn0 12235 |
. . . 4
⊢ (𝑘 ∈ ℕ0
↔ (𝑘 ∈ ℕ
∨ 𝑘 =
0)) |
2 | | eleq1 2826 |
. . . . . 6
⊢ (𝑗 = 1 → (𝑗 ∈ 𝑆 ↔ 1 ∈ 𝑆)) |
3 | | eleq1 2826 |
. . . . . 6
⊢ (𝑗 = 𝑚 → (𝑗 ∈ 𝑆 ↔ 𝑚 ∈ 𝑆)) |
4 | | eleq1 2826 |
. . . . . 6
⊢ (𝑗 = 𝑖 → (𝑗 ∈ 𝑆 ↔ 𝑖 ∈ 𝑆)) |
5 | | eleq1 2826 |
. . . . . 6
⊢ (𝑗 = (𝑚 · 𝑖) → (𝑗 ∈ 𝑆 ↔ (𝑚 · 𝑖) ∈ 𝑆)) |
6 | | eleq1 2826 |
. . . . . 6
⊢ (𝑗 = 𝑘 → (𝑗 ∈ 𝑆 ↔ 𝑘 ∈ 𝑆)) |
7 | | abs1 15009 |
. . . . . . . . . . 11
⊢
(abs‘1) = 1 |
8 | 7 | oveq1i 7285 |
. . . . . . . . . 10
⊢
((abs‘1)↑2) = (1↑2) |
9 | | sq1 13912 |
. . . . . . . . . 10
⊢
(1↑2) = 1 |
10 | 8, 9 | eqtri 2766 |
. . . . . . . . 9
⊢
((abs‘1)↑2) = 1 |
11 | | abs0 14997 |
. . . . . . . . . . 11
⊢
(abs‘0) = 0 |
12 | 11 | oveq1i 7285 |
. . . . . . . . . 10
⊢
((abs‘0)↑2) = (0↑2) |
13 | | sq0 13909 |
. . . . . . . . . 10
⊢
(0↑2) = 0 |
14 | 12, 13 | eqtri 2766 |
. . . . . . . . 9
⊢
((abs‘0)↑2) = 0 |
15 | 10, 14 | oveq12i 7287 |
. . . . . . . 8
⊢
(((abs‘1)↑2) + ((abs‘0)↑2)) = (1 +
0) |
16 | | 1p0e1 12097 |
. . . . . . . 8
⊢ (1 + 0) =
1 |
17 | 15, 16 | eqtri 2766 |
. . . . . . 7
⊢
(((abs‘1)↑2) + ((abs‘0)↑2)) = 1 |
18 | | 1z 12350 |
. . . . . . . . 9
⊢ 1 ∈
ℤ |
19 | | zgz 16634 |
. . . . . . . . 9
⊢ (1 ∈
ℤ → 1 ∈ ℤ[i]) |
20 | 18, 19 | ax-mp 5 |
. . . . . . . 8
⊢ 1 ∈
ℤ[i] |
21 | | 0z 12330 |
. . . . . . . . 9
⊢ 0 ∈
ℤ |
22 | | zgz 16634 |
. . . . . . . . 9
⊢ (0 ∈
ℤ → 0 ∈ ℤ[i]) |
23 | 21, 22 | ax-mp 5 |
. . . . . . . 8
⊢ 0 ∈
ℤ[i] |
24 | | 4sq.1 |
. . . . . . . . 9
⊢ 𝑆 = {𝑛 ∣ ∃𝑥 ∈ ℤ ∃𝑦 ∈ ℤ ∃𝑧 ∈ ℤ ∃𝑤 ∈ ℤ 𝑛 = (((𝑥↑2) + (𝑦↑2)) + ((𝑧↑2) + (𝑤↑2)))} |
25 | 24 | 4sqlem4a 16652 |
. . . . . . . 8
⊢ ((1
∈ ℤ[i] ∧ 0 ∈ ℤ[i]) → (((abs‘1)↑2) +
((abs‘0)↑2)) ∈ 𝑆) |
26 | 20, 23, 25 | mp2an 689 |
. . . . . . 7
⊢
(((abs‘1)↑2) + ((abs‘0)↑2)) ∈ 𝑆 |
27 | 17, 26 | eqeltrri 2836 |
. . . . . 6
⊢ 1 ∈
𝑆 |
28 | | eleq1 2826 |
. . . . . . 7
⊢ (𝑗 = 2 → (𝑗 ∈ 𝑆 ↔ 2 ∈ 𝑆)) |
29 | | eldifsn 4720 |
. . . . . . . . 9
⊢ (𝑗 ∈ (ℙ ∖ {2})
↔ (𝑗 ∈ ℙ
∧ 𝑗 ≠
2)) |
30 | | oddprm 16511 |
. . . . . . . . . . 11
⊢ (𝑗 ∈ (ℙ ∖ {2})
→ ((𝑗 − 1) / 2)
∈ ℕ) |
31 | 30 | adantr 481 |
. . . . . . . . . 10
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → ((𝑗 − 1) / 2) ∈
ℕ) |
32 | | eldifi 4061 |
. . . . . . . . . . . . . . . 16
⊢ (𝑗 ∈ (ℙ ∖ {2})
→ 𝑗 ∈
ℙ) |
33 | 32 | adantr 481 |
. . . . . . . . . . . . . . 15
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → 𝑗 ∈ ℙ) |
34 | | prmnn 16379 |
. . . . . . . . . . . . . . 15
⊢ (𝑗 ∈ ℙ → 𝑗 ∈
ℕ) |
35 | | nncn 11981 |
. . . . . . . . . . . . . . 15
⊢ (𝑗 ∈ ℕ → 𝑗 ∈
ℂ) |
36 | 33, 34, 35 | 3syl 18 |
. . . . . . . . . . . . . 14
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → 𝑗 ∈ ℂ) |
37 | | ax-1cn 10929 |
. . . . . . . . . . . . . 14
⊢ 1 ∈
ℂ |
38 | | subcl 11220 |
. . . . . . . . . . . . . 14
⊢ ((𝑗 ∈ ℂ ∧ 1 ∈
ℂ) → (𝑗 −
1) ∈ ℂ) |
39 | 36, 37, 38 | sylancl 586 |
. . . . . . . . . . . . 13
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → (𝑗 − 1) ∈ ℂ) |
40 | | 2cnd 12051 |
. . . . . . . . . . . . 13
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → 2 ∈ ℂ) |
41 | | 2ne0 12077 |
. . . . . . . . . . . . . 14
⊢ 2 ≠
0 |
42 | 41 | a1i 11 |
. . . . . . . . . . . . 13
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → 2 ≠ 0) |
43 | 39, 40, 42 | divcan2d 11753 |
. . . . . . . . . . . 12
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → (2 · ((𝑗 − 1) / 2)) = (𝑗 − 1)) |
44 | 43 | oveq1d 7290 |
. . . . . . . . . . 11
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → ((2 · ((𝑗 − 1) / 2)) + 1) = ((𝑗 − 1) + 1)) |
45 | | npcan 11230 |
. . . . . . . . . . . 12
⊢ ((𝑗 ∈ ℂ ∧ 1 ∈
ℂ) → ((𝑗 −
1) + 1) = 𝑗) |
46 | 36, 37, 45 | sylancl 586 |
. . . . . . . . . . 11
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → ((𝑗 − 1) + 1) = 𝑗) |
47 | 44, 46 | eqtr2d 2779 |
. . . . . . . . . 10
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → 𝑗 = ((2 · ((𝑗 − 1) / 2)) + 1)) |
48 | 43 | oveq2d 7291 |
. . . . . . . . . . . 12
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → (0...(2 · ((𝑗 − 1) / 2))) = (0...(𝑗 − 1))) |
49 | | nnm1nn0 12274 |
. . . . . . . . . . . . . . 15
⊢ (𝑗 ∈ ℕ → (𝑗 − 1) ∈
ℕ0) |
50 | 33, 34, 49 | 3syl 18 |
. . . . . . . . . . . . . 14
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → (𝑗 − 1) ∈
ℕ0) |
51 | | elnn0uz 12623 |
. . . . . . . . . . . . . 14
⊢ ((𝑗 − 1) ∈
ℕ0 ↔ (𝑗 − 1) ∈
(ℤ≥‘0)) |
52 | 50, 51 | sylib 217 |
. . . . . . . . . . . . 13
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → (𝑗 − 1) ∈
(ℤ≥‘0)) |
53 | | eluzfz1 13263 |
. . . . . . . . . . . . 13
⊢ ((𝑗 − 1) ∈
(ℤ≥‘0) → 0 ∈ (0...(𝑗 − 1))) |
54 | | fzsplit 13282 |
. . . . . . . . . . . . 13
⊢ (0 ∈
(0...(𝑗 − 1)) →
(0...(𝑗 − 1)) =
((0...0) ∪ ((0 + 1)...(𝑗 − 1)))) |
55 | 52, 53, 54 | 3syl 18 |
. . . . . . . . . . . 12
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → (0...(𝑗 − 1)) = ((0...0) ∪ ((0 +
1)...(𝑗 −
1)))) |
56 | 48, 55 | eqtrd 2778 |
. . . . . . . . . . 11
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → (0...(2 · ((𝑗 − 1) / 2))) = ((0...0)
∪ ((0 + 1)...(𝑗 −
1)))) |
57 | | fz0sn 13356 |
. . . . . . . . . . . . . 14
⊢ (0...0) =
{0} |
58 | 14, 14 | oveq12i 7287 |
. . . . . . . . . . . . . . . . 17
⊢
(((abs‘0)↑2) + ((abs‘0)↑2)) = (0 +
0) |
59 | | 00id 11150 |
. . . . . . . . . . . . . . . . 17
⊢ (0 + 0) =
0 |
60 | 58, 59 | eqtri 2766 |
. . . . . . . . . . . . . . . 16
⊢
(((abs‘0)↑2) + ((abs‘0)↑2)) = 0 |
61 | 24 | 4sqlem4a 16652 |
. . . . . . . . . . . . . . . . 17
⊢ ((0
∈ ℤ[i] ∧ 0 ∈ ℤ[i]) → (((abs‘0)↑2) +
((abs‘0)↑2)) ∈ 𝑆) |
62 | 23, 23, 61 | mp2an 689 |
. . . . . . . . . . . . . . . 16
⊢
(((abs‘0)↑2) + ((abs‘0)↑2)) ∈ 𝑆 |
63 | 60, 62 | eqeltrri 2836 |
. . . . . . . . . . . . . . 15
⊢ 0 ∈
𝑆 |
64 | | snssi 4741 |
. . . . . . . . . . . . . . 15
⊢ (0 ∈
𝑆 → {0} ⊆ 𝑆) |
65 | 63, 64 | ax-mp 5 |
. . . . . . . . . . . . . 14
⊢ {0}
⊆ 𝑆 |
66 | 57, 65 | eqsstri 3955 |
. . . . . . . . . . . . 13
⊢ (0...0)
⊆ 𝑆 |
67 | 66 | a1i 11 |
. . . . . . . . . . . 12
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → (0...0) ⊆ 𝑆) |
68 | | 0p1e1 12095 |
. . . . . . . . . . . . . 14
⊢ (0 + 1) =
1 |
69 | 68 | oveq1i 7285 |
. . . . . . . . . . . . 13
⊢ ((0 +
1)...(𝑗 − 1)) =
(1...(𝑗 −
1)) |
70 | | simpr 485 |
. . . . . . . . . . . . . 14
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → ∀𝑚 ∈ (1...(𝑗 − 1))𝑚 ∈ 𝑆) |
71 | | dfss3 3909 |
. . . . . . . . . . . . . 14
⊢
((1...(𝑗 − 1))
⊆ 𝑆 ↔
∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) |
72 | 70, 71 | sylibr 233 |
. . . . . . . . . . . . 13
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → (1...(𝑗 − 1)) ⊆ 𝑆) |
73 | 69, 72 | eqsstrid 3969 |
. . . . . . . . . . . 12
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → ((0 + 1)...(𝑗 − 1)) ⊆ 𝑆) |
74 | 67, 73 | unssd 4120 |
. . . . . . . . . . 11
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → ((0...0) ∪ ((0 + 1)...(𝑗 − 1))) ⊆ 𝑆) |
75 | 56, 74 | eqsstrd 3959 |
. . . . . . . . . 10
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → (0...(2 · ((𝑗 − 1) / 2))) ⊆ 𝑆) |
76 | | oveq1 7282 |
. . . . . . . . . . . 12
⊢ (𝑘 = 𝑖 → (𝑘 · 𝑗) = (𝑖 · 𝑗)) |
77 | 76 | eleq1d 2823 |
. . . . . . . . . . 11
⊢ (𝑘 = 𝑖 → ((𝑘 · 𝑗) ∈ 𝑆 ↔ (𝑖 · 𝑗) ∈ 𝑆)) |
78 | 77 | cbvrabv 3426 |
. . . . . . . . . 10
⊢ {𝑘 ∈ ℕ ∣ (𝑘 · 𝑗) ∈ 𝑆} = {𝑖 ∈ ℕ ∣ (𝑖 · 𝑗) ∈ 𝑆} |
79 | | eqid 2738 |
. . . . . . . . . 10
⊢
inf({𝑘 ∈
ℕ ∣ (𝑘 ·
𝑗) ∈ 𝑆}, ℝ, < ) = inf({𝑘 ∈ ℕ ∣ (𝑘 · 𝑗) ∈ 𝑆}, ℝ, < ) |
80 | 24, 31, 47, 33, 75, 78, 79 | 4sqlem18 16663 |
. . . . . . . . 9
⊢ ((𝑗 ∈ (ℙ ∖ {2})
∧ ∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → 𝑗 ∈ 𝑆) |
81 | 29, 80 | sylanbr 582 |
. . . . . . . 8
⊢ (((𝑗 ∈ ℙ ∧ 𝑗 ≠ 2) ∧ ∀𝑚 ∈ (1...(𝑗 − 1))𝑚 ∈ 𝑆) → 𝑗 ∈ 𝑆) |
82 | 81 | an32s 649 |
. . . . . . 7
⊢ (((𝑗 ∈ ℙ ∧
∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) ∧ 𝑗 ≠ 2) → 𝑗 ∈ 𝑆) |
83 | 10, 10 | oveq12i 7287 |
. . . . . . . . . 10
⊢
(((abs‘1)↑2) + ((abs‘1)↑2)) = (1 +
1) |
84 | | df-2 12036 |
. . . . . . . . . 10
⊢ 2 = (1 +
1) |
85 | 83, 84 | eqtr4i 2769 |
. . . . . . . . 9
⊢
(((abs‘1)↑2) + ((abs‘1)↑2)) = 2 |
86 | 24 | 4sqlem4a 16652 |
. . . . . . . . . 10
⊢ ((1
∈ ℤ[i] ∧ 1 ∈ ℤ[i]) → (((abs‘1)↑2) +
((abs‘1)↑2)) ∈ 𝑆) |
87 | 20, 20, 86 | mp2an 689 |
. . . . . . . . 9
⊢
(((abs‘1)↑2) + ((abs‘1)↑2)) ∈ 𝑆 |
88 | 85, 87 | eqeltrri 2836 |
. . . . . . . 8
⊢ 2 ∈
𝑆 |
89 | 88 | a1i 11 |
. . . . . . 7
⊢ ((𝑗 ∈ ℙ ∧
∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → 2 ∈ 𝑆) |
90 | 28, 82, 89 | pm2.61ne 3030 |
. . . . . 6
⊢ ((𝑗 ∈ ℙ ∧
∀𝑚 ∈
(1...(𝑗 − 1))𝑚 ∈ 𝑆) → 𝑗 ∈ 𝑆) |
91 | 24 | mul4sq 16655 |
. . . . . . 7
⊢ ((𝑚 ∈ 𝑆 ∧ 𝑖 ∈ 𝑆) → (𝑚 · 𝑖) ∈ 𝑆) |
92 | 91 | a1i 11 |
. . . . . 6
⊢ ((𝑚 ∈
(ℤ≥‘2) ∧ 𝑖 ∈ (ℤ≥‘2))
→ ((𝑚 ∈ 𝑆 ∧ 𝑖 ∈ 𝑆) → (𝑚 · 𝑖) ∈ 𝑆)) |
93 | 2, 3, 4, 5, 6, 27,
90, 92 | prmind2 16390 |
. . . . 5
⊢ (𝑘 ∈ ℕ → 𝑘 ∈ 𝑆) |
94 | | id 22 |
. . . . . 6
⊢ (𝑘 = 0 → 𝑘 = 0) |
95 | 94, 63 | eqeltrdi 2847 |
. . . . 5
⊢ (𝑘 = 0 → 𝑘 ∈ 𝑆) |
96 | 93, 95 | jaoi 854 |
. . . 4
⊢ ((𝑘 ∈ ℕ ∨ 𝑘 = 0) → 𝑘 ∈ 𝑆) |
97 | 1, 96 | sylbi 216 |
. . 3
⊢ (𝑘 ∈ ℕ0
→ 𝑘 ∈ 𝑆) |
98 | 97 | ssriv 3925 |
. 2
⊢
ℕ0 ⊆ 𝑆 |
99 | 24 | 4sqlem1 16649 |
. 2
⊢ 𝑆 ⊆
ℕ0 |
100 | 98, 99 | eqssi 3937 |
1
⊢
ℕ0 = 𝑆 |