Step | Hyp | Ref
| Expression |
1 | | 0z 12260 |
. . . . . . . 8
⊢ 0 ∈
ℤ |
2 | | 0le1 11428 |
. . . . . . . 8
⊢ 0 ≤
1 |
3 | | fveq2 6756 |
. . . . . . . . . . 11
⊢ (𝑥 = 0 → (abs‘𝑥) =
(abs‘0)) |
4 | | abs0 14925 |
. . . . . . . . . . 11
⊢
(abs‘0) = 0 |
5 | 3, 4 | eqtrdi 2795 |
. . . . . . . . . 10
⊢ (𝑥 = 0 → (abs‘𝑥) = 0) |
6 | 5 | breq1d 5080 |
. . . . . . . . 9
⊢ (𝑥 = 0 → ((abs‘𝑥) ≤ 1 ↔ 0 ≤
1)) |
7 | | lgsfcl2.z |
. . . . . . . . 9
⊢ 𝑍 = {𝑥 ∈ ℤ ∣ (abs‘𝑥) ≤ 1} |
8 | 6, 7 | elrab2 3620 |
. . . . . . . 8
⊢ (0 ∈
𝑍 ↔ (0 ∈ ℤ
∧ 0 ≤ 1)) |
9 | 1, 2, 8 | mpbir2an 707 |
. . . . . . 7
⊢ 0 ∈
𝑍 |
10 | | 1z 12280 |
. . . . . . . . 9
⊢ 1 ∈
ℤ |
11 | | 1le1 11533 |
. . . . . . . . 9
⊢ 1 ≤
1 |
12 | | fveq2 6756 |
. . . . . . . . . . . 12
⊢ (𝑥 = 1 → (abs‘𝑥) =
(abs‘1)) |
13 | | abs1 14937 |
. . . . . . . . . . . 12
⊢
(abs‘1) = 1 |
14 | 12, 13 | eqtrdi 2795 |
. . . . . . . . . . 11
⊢ (𝑥 = 1 → (abs‘𝑥) = 1) |
15 | 14 | breq1d 5080 |
. . . . . . . . . 10
⊢ (𝑥 = 1 → ((abs‘𝑥) ≤ 1 ↔ 1 ≤
1)) |
16 | 15, 7 | elrab2 3620 |
. . . . . . . . 9
⊢ (1 ∈
𝑍 ↔ (1 ∈ ℤ
∧ 1 ≤ 1)) |
17 | 10, 11, 16 | mpbir2an 707 |
. . . . . . . 8
⊢ 1 ∈
𝑍 |
18 | | neg1z 12286 |
. . . . . . . . 9
⊢ -1 ∈
ℤ |
19 | | fveq2 6756 |
. . . . . . . . . . . 12
⊢ (𝑥 = -1 → (abs‘𝑥) =
(abs‘-1)) |
20 | | ax-1cn 10860 |
. . . . . . . . . . . . . 14
⊢ 1 ∈
ℂ |
21 | 20 | absnegi 15040 |
. . . . . . . . . . . . 13
⊢
(abs‘-1) = (abs‘1) |
22 | 21, 13 | eqtri 2766 |
. . . . . . . . . . . 12
⊢
(abs‘-1) = 1 |
23 | 19, 22 | eqtrdi 2795 |
. . . . . . . . . . 11
⊢ (𝑥 = -1 → (abs‘𝑥) = 1) |
24 | 23 | breq1d 5080 |
. . . . . . . . . 10
⊢ (𝑥 = -1 → ((abs‘𝑥) ≤ 1 ↔ 1 ≤
1)) |
25 | 24, 7 | elrab2 3620 |
. . . . . . . . 9
⊢ (-1
∈ 𝑍 ↔ (-1 ∈
ℤ ∧ 1 ≤ 1)) |
26 | 18, 11, 25 | mpbir2an 707 |
. . . . . . . 8
⊢ -1 ∈
𝑍 |
27 | 17, 26 | ifcli 4503 |
. . . . . . 7
⊢ if((𝐴 mod 8) ∈ {1, 7}, 1, -1)
∈ 𝑍 |
28 | 9, 27 | ifcli 4503 |
. . . . . 6
⊢ if(2
∥ 𝐴, 0, if((𝐴 mod 8) ∈ {1, 7}, 1, -1))
∈ 𝑍 |
29 | 28 | a1i 11 |
. . . . 5
⊢
(((((𝐴 ∈
ℤ ∧ 𝑁 ∈
ℤ ∧ 𝑁 ≠ 0)
∧ 𝑛 ∈ ℕ)
∧ 𝑛 ∈ ℙ)
∧ 𝑛 = 2) → if(2
∥ 𝐴, 0, if((𝐴 mod 8) ∈ {1, 7}, 1, -1))
∈ 𝑍) |
30 | | simpl1 1189 |
. . . . . . 7
⊢ (((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) ∧ 𝑛 ∈ ℕ) → 𝐴 ∈
ℤ) |
31 | 30 | ad2antrr 722 |
. . . . . 6
⊢
(((((𝐴 ∈
ℤ ∧ 𝑁 ∈
ℤ ∧ 𝑁 ≠ 0)
∧ 𝑛 ∈ ℕ)
∧ 𝑛 ∈ ℙ)
∧ ¬ 𝑛 = 2) →
𝐴 ∈
ℤ) |
32 | | simplr 765 |
. . . . . . 7
⊢
(((((𝐴 ∈
ℤ ∧ 𝑁 ∈
ℤ ∧ 𝑁 ≠ 0)
∧ 𝑛 ∈ ℕ)
∧ 𝑛 ∈ ℙ)
∧ ¬ 𝑛 = 2) →
𝑛 ∈
ℙ) |
33 | | simpr 484 |
. . . . . . . 8
⊢
(((((𝐴 ∈
ℤ ∧ 𝑁 ∈
ℤ ∧ 𝑁 ≠ 0)
∧ 𝑛 ∈ ℕ)
∧ 𝑛 ∈ ℙ)
∧ ¬ 𝑛 = 2) →
¬ 𝑛 =
2) |
34 | 33 | neqned 2949 |
. . . . . . 7
⊢
(((((𝐴 ∈
ℤ ∧ 𝑁 ∈
ℤ ∧ 𝑁 ≠ 0)
∧ 𝑛 ∈ ℕ)
∧ 𝑛 ∈ ℙ)
∧ ¬ 𝑛 = 2) →
𝑛 ≠ 2) |
35 | | eldifsn 4717 |
. . . . . . 7
⊢ (𝑛 ∈ (ℙ ∖ {2})
↔ (𝑛 ∈ ℙ
∧ 𝑛 ≠
2)) |
36 | 32, 34, 35 | sylanbrc 582 |
. . . . . 6
⊢
(((((𝐴 ∈
ℤ ∧ 𝑁 ∈
ℤ ∧ 𝑁 ≠ 0)
∧ 𝑛 ∈ ℕ)
∧ 𝑛 ∈ ℙ)
∧ ¬ 𝑛 = 2) →
𝑛 ∈ (ℙ ∖
{2})) |
37 | 7 | lgslem4 26353 |
. . . . . 6
⊢ ((𝐴 ∈ ℤ ∧ 𝑛 ∈ (ℙ ∖ {2}))
→ ((((𝐴↑((𝑛 − 1) / 2)) + 1) mod 𝑛) − 1) ∈ 𝑍) |
38 | 31, 36, 37 | syl2anc 583 |
. . . . 5
⊢
(((((𝐴 ∈
ℤ ∧ 𝑁 ∈
ℤ ∧ 𝑁 ≠ 0)
∧ 𝑛 ∈ ℕ)
∧ 𝑛 ∈ ℙ)
∧ ¬ 𝑛 = 2) →
((((𝐴↑((𝑛 − 1) / 2)) + 1) mod 𝑛) − 1) ∈ 𝑍) |
39 | 29, 38 | ifclda 4491 |
. . . 4
⊢ ((((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) ∧ 𝑛 ∈ ℕ) ∧ 𝑛 ∈ ℙ) → if(𝑛 = 2, if(2 ∥ 𝐴, 0, if((𝐴 mod 8) ∈ {1, 7}, 1, -1)), ((((𝐴↑((𝑛 − 1) / 2)) + 1) mod 𝑛) − 1)) ∈ 𝑍) |
40 | | simpr 484 |
. . . . 5
⊢ ((((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) ∧ 𝑛 ∈ ℕ) ∧ 𝑛 ∈ ℙ) → 𝑛 ∈
ℙ) |
41 | | simpll2 1211 |
. . . . 5
⊢ ((((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) ∧ 𝑛 ∈ ℕ) ∧ 𝑛 ∈ ℙ) → 𝑁 ∈
ℤ) |
42 | | simpll3 1212 |
. . . . 5
⊢ ((((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) ∧ 𝑛 ∈ ℕ) ∧ 𝑛 ∈ ℙ) → 𝑁 ≠ 0) |
43 | | pczcl 16477 |
. . . . 5
⊢ ((𝑛 ∈ ℙ ∧ (𝑁 ∈ ℤ ∧ 𝑁 ≠ 0)) → (𝑛 pCnt 𝑁) ∈
ℕ0) |
44 | 40, 41, 42, 43 | syl12anc 833 |
. . . 4
⊢ ((((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) ∧ 𝑛 ∈ ℕ) ∧ 𝑛 ∈ ℙ) → (𝑛 pCnt 𝑁) ∈
ℕ0) |
45 | 7 | ssrab3 4011 |
. . . . . 6
⊢ 𝑍 ⊆
ℤ |
46 | | zsscn 12257 |
. . . . . 6
⊢ ℤ
⊆ ℂ |
47 | 45, 46 | sstri 3926 |
. . . . 5
⊢ 𝑍 ⊆
ℂ |
48 | 7 | lgslem3 26352 |
. . . . 5
⊢ ((𝑎 ∈ 𝑍 ∧ 𝑏 ∈ 𝑍) → (𝑎 · 𝑏) ∈ 𝑍) |
49 | 47, 48, 17 | expcllem 13721 |
. . . 4
⊢
((if(𝑛 = 2, if(2
∥ 𝐴, 0, if((𝐴 mod 8) ∈ {1, 7}, 1, -1)),
((((𝐴↑((𝑛 − 1) / 2)) + 1) mod 𝑛) − 1)) ∈ 𝑍 ∧ (𝑛 pCnt 𝑁) ∈ ℕ0) →
(if(𝑛 = 2, if(2 ∥
𝐴, 0, if((𝐴 mod 8) ∈ {1, 7}, 1, -1)), ((((𝐴↑((𝑛 − 1) / 2)) + 1) mod 𝑛) − 1))↑(𝑛 pCnt 𝑁)) ∈ 𝑍) |
50 | 39, 44, 49 | syl2anc 583 |
. . 3
⊢ ((((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) ∧ 𝑛 ∈ ℕ) ∧ 𝑛 ∈ ℙ) →
(if(𝑛 = 2, if(2 ∥
𝐴, 0, if((𝐴 mod 8) ∈ {1, 7}, 1, -1)), ((((𝐴↑((𝑛 − 1) / 2)) + 1) mod 𝑛) − 1))↑(𝑛 pCnt 𝑁)) ∈ 𝑍) |
51 | 17 | a1i 11 |
. . 3
⊢ ((((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) ∧ 𝑛 ∈ ℕ) ∧ ¬
𝑛 ∈ ℙ) → 1
∈ 𝑍) |
52 | 50, 51 | ifclda 4491 |
. 2
⊢ (((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) ∧ 𝑛 ∈ ℕ) → if(𝑛 ∈ ℙ, (if(𝑛 = 2, if(2 ∥ 𝐴, 0, if((𝐴 mod 8) ∈ {1, 7}, 1, -1)), ((((𝐴↑((𝑛 − 1) / 2)) + 1) mod 𝑛) − 1))↑(𝑛 pCnt 𝑁)), 1) ∈ 𝑍) |
53 | | lgsval.1 |
. 2
⊢ 𝐹 = (𝑛 ∈ ℕ ↦ if(𝑛 ∈ ℙ, (if(𝑛 = 2, if(2 ∥ 𝐴, 0, if((𝐴 mod 8) ∈ {1, 7}, 1, -1)), ((((𝐴↑((𝑛 − 1) / 2)) + 1) mod 𝑛) − 1))↑(𝑛 pCnt 𝑁)), 1)) |
54 | 52, 53 | fmptd 6970 |
1
⊢ ((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) → 𝐹:ℕ⟶𝑍) |