Proof of Theorem perfectlem1
Step | Hyp | Ref
| Expression |
1 | | 2nn 12046 |
. . 3
⊢ 2 ∈
ℕ |
2 | | perfectlem.1 |
. . . . 5
⊢ (𝜑 → 𝐴 ∈ ℕ) |
3 | 2 | nnnn0d 12293 |
. . . 4
⊢ (𝜑 → 𝐴 ∈
ℕ0) |
4 | | peano2nn0 12273 |
. . . 4
⊢ (𝐴 ∈ ℕ0
→ (𝐴 + 1) ∈
ℕ0) |
5 | 3, 4 | syl 17 |
. . 3
⊢ (𝜑 → (𝐴 + 1) ∈
ℕ0) |
6 | | nnexpcl 13795 |
. . 3
⊢ ((2
∈ ℕ ∧ (𝐴 +
1) ∈ ℕ0) → (2↑(𝐴 + 1)) ∈ ℕ) |
7 | 1, 5, 6 | sylancr 587 |
. 2
⊢ (𝜑 → (2↑(𝐴 + 1)) ∈ ℕ) |
8 | | 2re 12047 |
. . . 4
⊢ 2 ∈
ℝ |
9 | 2 | peano2nnd 11990 |
. . . 4
⊢ (𝜑 → (𝐴 + 1) ∈ ℕ) |
10 | | 1lt2 12144 |
. . . . 5
⊢ 1 <
2 |
11 | 10 | a1i 11 |
. . . 4
⊢ (𝜑 → 1 < 2) |
12 | | expgt1 13821 |
. . . 4
⊢ ((2
∈ ℝ ∧ (𝐴 +
1) ∈ ℕ ∧ 1 < 2) → 1 < (2↑(𝐴 + 1))) |
13 | 8, 9, 11, 12 | mp3an2i 1465 |
. . 3
⊢ (𝜑 → 1 < (2↑(𝐴 + 1))) |
14 | | 1nn 11984 |
. . . 4
⊢ 1 ∈
ℕ |
15 | | nnsub 12017 |
. . . 4
⊢ ((1
∈ ℕ ∧ (2↑(𝐴 + 1)) ∈ ℕ) → (1 <
(2↑(𝐴 + 1)) ↔
((2↑(𝐴 + 1)) −
1) ∈ ℕ)) |
16 | 14, 7, 15 | sylancr 587 |
. . 3
⊢ (𝜑 → (1 < (2↑(𝐴 + 1)) ↔ ((2↑(𝐴 + 1)) − 1) ∈
ℕ)) |
17 | 13, 16 | mpbid 231 |
. 2
⊢ (𝜑 → ((2↑(𝐴 + 1)) − 1) ∈
ℕ) |
18 | 7 | nnzd 12425 |
. . . . . . 7
⊢ (𝜑 → (2↑(𝐴 + 1)) ∈ ℤ) |
19 | | peano2zm 12363 |
. . . . . . 7
⊢
((2↑(𝐴 + 1))
∈ ℤ → ((2↑(𝐴 + 1)) − 1) ∈
ℤ) |
20 | 18, 19 | syl 17 |
. . . . . 6
⊢ (𝜑 → ((2↑(𝐴 + 1)) − 1) ∈
ℤ) |
21 | | 1nn0 12249 |
. . . . . . . 8
⊢ 1 ∈
ℕ0 |
22 | | perfectlem.2 |
. . . . . . . 8
⊢ (𝜑 → 𝐵 ∈ ℕ) |
23 | | sgmnncl 26296 |
. . . . . . . 8
⊢ ((1
∈ ℕ0 ∧ 𝐵 ∈ ℕ) → (1 σ 𝐵) ∈
ℕ) |
24 | 21, 22, 23 | sylancr 587 |
. . . . . . 7
⊢ (𝜑 → (1 σ 𝐵) ∈
ℕ) |
25 | 24 | nnzd 12425 |
. . . . . 6
⊢ (𝜑 → (1 σ 𝐵) ∈
ℤ) |
26 | | dvdsmul1 15987 |
. . . . . 6
⊢
((((2↑(𝐴 + 1))
− 1) ∈ ℤ ∧ (1 σ 𝐵) ∈ ℤ) → ((2↑(𝐴 + 1)) − 1) ∥
(((2↑(𝐴 + 1)) −
1) · (1 σ 𝐵))) |
27 | 20, 25, 26 | syl2anc 584 |
. . . . 5
⊢ (𝜑 → ((2↑(𝐴 + 1)) − 1) ∥
(((2↑(𝐴 + 1)) −
1) · (1 σ 𝐵))) |
28 | | 2cn 12048 |
. . . . . . . . 9
⊢ 2 ∈
ℂ |
29 | | expp1 13789 |
. . . . . . . . 9
⊢ ((2
∈ ℂ ∧ 𝐴
∈ ℕ0) → (2↑(𝐴 + 1)) = ((2↑𝐴) · 2)) |
30 | 28, 3, 29 | sylancr 587 |
. . . . . . . 8
⊢ (𝜑 → (2↑(𝐴 + 1)) = ((2↑𝐴) · 2)) |
31 | | nnexpcl 13795 |
. . . . . . . . . . 11
⊢ ((2
∈ ℕ ∧ 𝐴
∈ ℕ0) → (2↑𝐴) ∈ ℕ) |
32 | 1, 3, 31 | sylancr 587 |
. . . . . . . . . 10
⊢ (𝜑 → (2↑𝐴) ∈ ℕ) |
33 | 32 | nncnd 11989 |
. . . . . . . . 9
⊢ (𝜑 → (2↑𝐴) ∈ ℂ) |
34 | | mulcom 10957 |
. . . . . . . . 9
⊢
(((2↑𝐴) ∈
ℂ ∧ 2 ∈ ℂ) → ((2↑𝐴) · 2) = (2 · (2↑𝐴))) |
35 | 33, 28, 34 | sylancl 586 |
. . . . . . . 8
⊢ (𝜑 → ((2↑𝐴) · 2) = (2 · (2↑𝐴))) |
36 | 30, 35 | eqtrd 2778 |
. . . . . . 7
⊢ (𝜑 → (2↑(𝐴 + 1)) = (2 · (2↑𝐴))) |
37 | 36 | oveq1d 7290 |
. . . . . 6
⊢ (𝜑 → ((2↑(𝐴 + 1)) · 𝐵) = ((2 · (2↑𝐴)) · 𝐵)) |
38 | 28 | a1i 11 |
. . . . . . 7
⊢ (𝜑 → 2 ∈
ℂ) |
39 | 22 | nncnd 11989 |
. . . . . . 7
⊢ (𝜑 → 𝐵 ∈ ℂ) |
40 | 38, 33, 39 | mulassd 10998 |
. . . . . 6
⊢ (𝜑 → ((2 · (2↑𝐴)) · 𝐵) = (2 · ((2↑𝐴) · 𝐵))) |
41 | | ax-1cn 10929 |
. . . . . . . . 9
⊢ 1 ∈
ℂ |
42 | 41 | a1i 11 |
. . . . . . . 8
⊢ (𝜑 → 1 ∈
ℂ) |
43 | | perfectlem.3 |
. . . . . . . . . 10
⊢ (𝜑 → ¬ 2 ∥ 𝐵) |
44 | | 2prm 16397 |
. . . . . . . . . . 11
⊢ 2 ∈
ℙ |
45 | 22 | nnzd 12425 |
. . . . . . . . . . 11
⊢ (𝜑 → 𝐵 ∈ ℤ) |
46 | | coprm 16416 |
. . . . . . . . . . 11
⊢ ((2
∈ ℙ ∧ 𝐵
∈ ℤ) → (¬ 2 ∥ 𝐵 ↔ (2 gcd 𝐵) = 1)) |
47 | 44, 45, 46 | sylancr 587 |
. . . . . . . . . 10
⊢ (𝜑 → (¬ 2 ∥ 𝐵 ↔ (2 gcd 𝐵) = 1)) |
48 | 43, 47 | mpbid 231 |
. . . . . . . . 9
⊢ (𝜑 → (2 gcd 𝐵) = 1) |
49 | | 2z 12352 |
. . . . . . . . . 10
⊢ 2 ∈
ℤ |
50 | | rpexp1i 16428 |
. . . . . . . . . 10
⊢ ((2
∈ ℤ ∧ 𝐵
∈ ℤ ∧ 𝐴
∈ ℕ0) → ((2 gcd 𝐵) = 1 → ((2↑𝐴) gcd 𝐵) = 1)) |
51 | 49, 45, 3, 50 | mp3an2i 1465 |
. . . . . . . . 9
⊢ (𝜑 → ((2 gcd 𝐵) = 1 → ((2↑𝐴) gcd 𝐵) = 1)) |
52 | 48, 51 | mpd 15 |
. . . . . . . 8
⊢ (𝜑 → ((2↑𝐴) gcd 𝐵) = 1) |
53 | | sgmmul 26349 |
. . . . . . . 8
⊢ ((1
∈ ℂ ∧ ((2↑𝐴) ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ ((2↑𝐴) gcd 𝐵) = 1)) → (1 σ ((2↑𝐴) · 𝐵)) = ((1 σ (2↑𝐴)) · (1 σ 𝐵))) |
54 | 42, 32, 22, 52, 53 | syl13anc 1371 |
. . . . . . 7
⊢ (𝜑 → (1 σ ((2↑𝐴) · 𝐵)) = ((1 σ (2↑𝐴)) · (1 σ 𝐵))) |
55 | | perfectlem.4 |
. . . . . . 7
⊢ (𝜑 → (1 σ ((2↑𝐴) · 𝐵)) = (2 · ((2↑𝐴) · 𝐵))) |
56 | 2 | nncnd 11989 |
. . . . . . . . . . . 12
⊢ (𝜑 → 𝐴 ∈ ℂ) |
57 | | pncan 11227 |
. . . . . . . . . . . 12
⊢ ((𝐴 ∈ ℂ ∧ 1 ∈
ℂ) → ((𝐴 + 1)
− 1) = 𝐴) |
58 | 56, 41, 57 | sylancl 586 |
. . . . . . . . . . 11
⊢ (𝜑 → ((𝐴 + 1) − 1) = 𝐴) |
59 | 58 | oveq2d 7291 |
. . . . . . . . . 10
⊢ (𝜑 → (2↑((𝐴 + 1) − 1)) =
(2↑𝐴)) |
60 | 59 | oveq2d 7291 |
. . . . . . . . 9
⊢ (𝜑 → (1 σ (2↑((𝐴 + 1) − 1))) = (1 σ
(2↑𝐴))) |
61 | | 1sgm2ppw 26348 |
. . . . . . . . . 10
⊢ ((𝐴 + 1) ∈ ℕ → (1
σ (2↑((𝐴 + 1)
− 1))) = ((2↑(𝐴
+ 1)) − 1)) |
62 | 9, 61 | syl 17 |
. . . . . . . . 9
⊢ (𝜑 → (1 σ (2↑((𝐴 + 1) − 1))) =
((2↑(𝐴 + 1)) −
1)) |
63 | 60, 62 | eqtr3d 2780 |
. . . . . . . 8
⊢ (𝜑 → (1 σ (2↑𝐴)) = ((2↑(𝐴 + 1)) − 1)) |
64 | 63 | oveq1d 7290 |
. . . . . . 7
⊢ (𝜑 → ((1 σ (2↑𝐴)) · (1 σ 𝐵)) = (((2↑(𝐴 + 1)) − 1) · (1
σ 𝐵))) |
65 | 54, 55, 64 | 3eqtr3d 2786 |
. . . . . 6
⊢ (𝜑 → (2 · ((2↑𝐴) · 𝐵)) = (((2↑(𝐴 + 1)) − 1) · (1 σ 𝐵))) |
66 | 37, 40, 65 | 3eqtrd 2782 |
. . . . 5
⊢ (𝜑 → ((2↑(𝐴 + 1)) · 𝐵) = (((2↑(𝐴 + 1)) − 1) · (1 σ 𝐵))) |
67 | 27, 66 | breqtrrd 5102 |
. . . 4
⊢ (𝜑 → ((2↑(𝐴 + 1)) − 1) ∥
((2↑(𝐴 + 1)) ·
𝐵)) |
68 | 20, 18 | gcdcomd 16221 |
. . . . 5
⊢ (𝜑 → (((2↑(𝐴 + 1)) − 1) gcd
(2↑(𝐴 + 1))) =
((2↑(𝐴 + 1)) gcd
((2↑(𝐴 + 1)) −
1))) |
69 | | iddvdsexp 15989 |
. . . . . . . . 9
⊢ ((2
∈ ℤ ∧ (𝐴 +
1) ∈ ℕ) → 2 ∥ (2↑(𝐴 + 1))) |
70 | 49, 9, 69 | sylancr 587 |
. . . . . . . 8
⊢ (𝜑 → 2 ∥ (2↑(𝐴 + 1))) |
71 | | n2dvds1 16077 |
. . . . . . . . . 10
⊢ ¬ 2
∥ 1 |
72 | 49 | a1i 11 |
. . . . . . . . . . . 12
⊢ (𝜑 → 2 ∈
ℤ) |
73 | | 1zzd 12351 |
. . . . . . . . . . . 12
⊢ (𝜑 → 1 ∈
ℤ) |
74 | 72, 18, 73 | 3jca 1127 |
. . . . . . . . . . 11
⊢ (𝜑 → (2 ∈ ℤ ∧
(2↑(𝐴 + 1)) ∈
ℤ ∧ 1 ∈ ℤ)) |
75 | | dvdssub2 16010 |
. . . . . . . . . . 11
⊢ (((2
∈ ℤ ∧ (2↑(𝐴 + 1)) ∈ ℤ ∧ 1 ∈
ℤ) ∧ 2 ∥ ((2↑(𝐴 + 1)) − 1)) → (2 ∥
(2↑(𝐴 + 1)) ↔ 2
∥ 1)) |
76 | 74, 75 | sylan 580 |
. . . . . . . . . 10
⊢ ((𝜑 ∧ 2 ∥ ((2↑(𝐴 + 1)) − 1)) → (2
∥ (2↑(𝐴 + 1))
↔ 2 ∥ 1)) |
77 | 71, 76 | mtbiri 327 |
. . . . . . . . 9
⊢ ((𝜑 ∧ 2 ∥ ((2↑(𝐴 + 1)) − 1)) → ¬
2 ∥ (2↑(𝐴 +
1))) |
78 | 77 | ex 413 |
. . . . . . . 8
⊢ (𝜑 → (2 ∥ ((2↑(𝐴 + 1)) − 1) → ¬ 2
∥ (2↑(𝐴 +
1)))) |
79 | 70, 78 | mt2d 136 |
. . . . . . 7
⊢ (𝜑 → ¬ 2 ∥
((2↑(𝐴 + 1)) −
1)) |
80 | | coprm 16416 |
. . . . . . . 8
⊢ ((2
∈ ℙ ∧ ((2↑(𝐴 + 1)) − 1) ∈ ℤ) →
(¬ 2 ∥ ((2↑(𝐴 + 1)) − 1) ↔ (2 gcd
((2↑(𝐴 + 1)) −
1)) = 1)) |
81 | 44, 20, 80 | sylancr 587 |
. . . . . . 7
⊢ (𝜑 → (¬ 2 ∥
((2↑(𝐴 + 1)) −
1) ↔ (2 gcd ((2↑(𝐴 + 1)) − 1)) = 1)) |
82 | 79, 81 | mpbid 231 |
. . . . . 6
⊢ (𝜑 → (2 gcd ((2↑(𝐴 + 1)) − 1)) =
1) |
83 | | rpexp1i 16428 |
. . . . . . 7
⊢ ((2
∈ ℤ ∧ ((2↑(𝐴 + 1)) − 1) ∈ ℤ ∧
(𝐴 + 1) ∈
ℕ0) → ((2 gcd ((2↑(𝐴 + 1)) − 1)) = 1 →
((2↑(𝐴 + 1)) gcd
((2↑(𝐴 + 1)) −
1)) = 1)) |
84 | 49, 20, 5, 83 | mp3an2i 1465 |
. . . . . 6
⊢ (𝜑 → ((2 gcd ((2↑(𝐴 + 1)) − 1)) = 1 →
((2↑(𝐴 + 1)) gcd
((2↑(𝐴 + 1)) −
1)) = 1)) |
85 | 82, 84 | mpd 15 |
. . . . 5
⊢ (𝜑 → ((2↑(𝐴 + 1)) gcd ((2↑(𝐴 + 1)) − 1)) =
1) |
86 | 68, 85 | eqtrd 2778 |
. . . 4
⊢ (𝜑 → (((2↑(𝐴 + 1)) − 1) gcd
(2↑(𝐴 + 1))) =
1) |
87 | | coprmdvds 16358 |
. . . . 5
⊢
((((2↑(𝐴 + 1))
− 1) ∈ ℤ ∧ (2↑(𝐴 + 1)) ∈ ℤ ∧ 𝐵 ∈ ℤ) →
((((2↑(𝐴 + 1)) −
1) ∥ ((2↑(𝐴 +
1)) · 𝐵) ∧
(((2↑(𝐴 + 1)) −
1) gcd (2↑(𝐴 + 1))) =
1) → ((2↑(𝐴 + 1))
− 1) ∥ 𝐵)) |
88 | 20, 18, 45, 87 | syl3anc 1370 |
. . . 4
⊢ (𝜑 → ((((2↑(𝐴 + 1)) − 1) ∥
((2↑(𝐴 + 1)) ·
𝐵) ∧ (((2↑(𝐴 + 1)) − 1) gcd
(2↑(𝐴 + 1))) = 1)
→ ((2↑(𝐴 + 1))
− 1) ∥ 𝐵)) |
89 | 67, 86, 88 | mp2and 696 |
. . 3
⊢ (𝜑 → ((2↑(𝐴 + 1)) − 1) ∥ 𝐵) |
90 | | nndivdvds 15972 |
. . . 4
⊢ ((𝐵 ∈ ℕ ∧
((2↑(𝐴 + 1)) −
1) ∈ ℕ) → (((2↑(𝐴 + 1)) − 1) ∥ 𝐵 ↔ (𝐵 / ((2↑(𝐴 + 1)) − 1)) ∈
ℕ)) |
91 | 22, 17, 90 | syl2anc 584 |
. . 3
⊢ (𝜑 → (((2↑(𝐴 + 1)) − 1) ∥ 𝐵 ↔ (𝐵 / ((2↑(𝐴 + 1)) − 1)) ∈
ℕ)) |
92 | 89, 91 | mpbid 231 |
. 2
⊢ (𝜑 → (𝐵 / ((2↑(𝐴 + 1)) − 1)) ∈
ℕ) |
93 | 7, 17, 92 | 3jca 1127 |
1
⊢ (𝜑 → ((2↑(𝐴 + 1)) ∈ ℕ ∧
((2↑(𝐴 + 1)) −
1) ∈ ℕ ∧ (𝐵
/ ((2↑(𝐴 + 1)) −
1)) ∈ ℕ)) |