Step | Hyp | Ref
| Expression |
1 | | 0z 12330 |
. . . . . . . 8
⊢ 0 ∈
ℤ |
2 | | 0le1 11498 |
. . . . . . . 8
⊢ 0 ≤
1 |
3 | | fveq2 6774 |
. . . . . . . . . . 11
⊢ (𝑥 = 0 → (abs‘𝑥) =
(abs‘0)) |
4 | | abs0 14997 |
. . . . . . . . . . 11
⊢
(abs‘0) = 0 |
5 | 3, 4 | eqtrdi 2794 |
. . . . . . . . . 10
⊢ (𝑥 = 0 → (abs‘𝑥) = 0) |
6 | 5 | breq1d 5084 |
. . . . . . . . 9
⊢ (𝑥 = 0 → ((abs‘𝑥) ≤ 1 ↔ 0 ≤
1)) |
7 | | lgsfcl2.z |
. . . . . . . . 9
⊢ 𝑍 = {𝑥 ∈ ℤ ∣ (abs‘𝑥) ≤ 1} |
8 | 6, 7 | elrab2 3627 |
. . . . . . . 8
⊢ (0 ∈
𝑍 ↔ (0 ∈ ℤ
∧ 0 ≤ 1)) |
9 | 1, 2, 8 | mpbir2an 708 |
. . . . . . 7
⊢ 0 ∈
𝑍 |
10 | | 1z 12350 |
. . . . . . . . 9
⊢ 1 ∈
ℤ |
11 | | 1le1 11603 |
. . . . . . . . 9
⊢ 1 ≤
1 |
12 | | fveq2 6774 |
. . . . . . . . . . . 12
⊢ (𝑥 = 1 → (abs‘𝑥) =
(abs‘1)) |
13 | | abs1 15009 |
. . . . . . . . . . . 12
⊢
(abs‘1) = 1 |
14 | 12, 13 | eqtrdi 2794 |
. . . . . . . . . . 11
⊢ (𝑥 = 1 → (abs‘𝑥) = 1) |
15 | 14 | breq1d 5084 |
. . . . . . . . . 10
⊢ (𝑥 = 1 → ((abs‘𝑥) ≤ 1 ↔ 1 ≤
1)) |
16 | 15, 7 | elrab2 3627 |
. . . . . . . . 9
⊢ (1 ∈
𝑍 ↔ (1 ∈ ℤ
∧ 1 ≤ 1)) |
17 | 10, 11, 16 | mpbir2an 708 |
. . . . . . . 8
⊢ 1 ∈
𝑍 |
18 | | neg1z 12356 |
. . . . . . . . 9
⊢ -1 ∈
ℤ |
19 | | fveq2 6774 |
. . . . . . . . . . . 12
⊢ (𝑥 = -1 → (abs‘𝑥) =
(abs‘-1)) |
20 | | ax-1cn 10929 |
. . . . . . . . . . . . . 14
⊢ 1 ∈
ℂ |
21 | 20 | absnegi 15112 |
. . . . . . . . . . . . 13
⊢
(abs‘-1) = (abs‘1) |
22 | 21, 13 | eqtri 2766 |
. . . . . . . . . . . 12
⊢
(abs‘-1) = 1 |
23 | 19, 22 | eqtrdi 2794 |
. . . . . . . . . . 11
⊢ (𝑥 = -1 → (abs‘𝑥) = 1) |
24 | 23 | breq1d 5084 |
. . . . . . . . . 10
⊢ (𝑥 = -1 → ((abs‘𝑥) ≤ 1 ↔ 1 ≤
1)) |
25 | 24, 7 | elrab2 3627 |
. . . . . . . . 9
⊢ (-1
∈ 𝑍 ↔ (-1 ∈
ℤ ∧ 1 ≤ 1)) |
26 | 18, 11, 25 | mpbir2an 708 |
. . . . . . . 8
⊢ -1 ∈
𝑍 |
27 | 17, 26 | ifcli 4506 |
. . . . . . 7
⊢ if((𝐴 mod 8) ∈ {1, 7}, 1, -1)
∈ 𝑍 |
28 | 9, 27 | ifcli 4506 |
. . . . . 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 1190 |
. . . . . . 7
⊢ (((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) ∧ 𝑛 ∈ ℕ) → 𝐴 ∈
ℤ) |
31 | 30 | ad2antrr 723 |
. . . . . 6
⊢
(((((𝐴 ∈
ℤ ∧ 𝑁 ∈
ℤ ∧ 𝑁 ≠ 0)
∧ 𝑛 ∈ ℕ)
∧ 𝑛 ∈ ℙ)
∧ ¬ 𝑛 = 2) →
𝐴 ∈
ℤ) |
32 | | simplr 766 |
. . . . . . 7
⊢
(((((𝐴 ∈
ℤ ∧ 𝑁 ∈
ℤ ∧ 𝑁 ≠ 0)
∧ 𝑛 ∈ ℕ)
∧ 𝑛 ∈ ℙ)
∧ ¬ 𝑛 = 2) →
𝑛 ∈
ℙ) |
33 | | simpr 485 |
. . . . . . . 8
⊢
(((((𝐴 ∈
ℤ ∧ 𝑁 ∈
ℤ ∧ 𝑁 ≠ 0)
∧ 𝑛 ∈ ℕ)
∧ 𝑛 ∈ ℙ)
∧ ¬ 𝑛 = 2) →
¬ 𝑛 =
2) |
34 | 33 | neqned 2950 |
. . . . . . 7
⊢
(((((𝐴 ∈
ℤ ∧ 𝑁 ∈
ℤ ∧ 𝑁 ≠ 0)
∧ 𝑛 ∈ ℕ)
∧ 𝑛 ∈ ℙ)
∧ ¬ 𝑛 = 2) →
𝑛 ≠ 2) |
35 | | eldifsn 4720 |
. . . . . . 7
⊢ (𝑛 ∈ (ℙ ∖ {2})
↔ (𝑛 ∈ ℙ
∧ 𝑛 ≠
2)) |
36 | 32, 34, 35 | sylanbrc 583 |
. . . . . 6
⊢
(((((𝐴 ∈
ℤ ∧ 𝑁 ∈
ℤ ∧ 𝑁 ≠ 0)
∧ 𝑛 ∈ ℕ)
∧ 𝑛 ∈ ℙ)
∧ ¬ 𝑛 = 2) →
𝑛 ∈ (ℙ ∖
{2})) |
37 | 7 | lgslem4 26448 |
. . . . . 6
⊢ ((𝐴 ∈ ℤ ∧ 𝑛 ∈ (ℙ ∖ {2}))
→ ((((𝐴↑((𝑛 − 1) / 2)) + 1) mod 𝑛) − 1) ∈ 𝑍) |
38 | 31, 36, 37 | syl2anc 584 |
. . . . 5
⊢
(((((𝐴 ∈
ℤ ∧ 𝑁 ∈
ℤ ∧ 𝑁 ≠ 0)
∧ 𝑛 ∈ ℕ)
∧ 𝑛 ∈ ℙ)
∧ ¬ 𝑛 = 2) →
((((𝐴↑((𝑛 − 1) / 2)) + 1) mod 𝑛) − 1) ∈ 𝑍) |
39 | 29, 38 | ifclda 4494 |
. . . 4
⊢ ((((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) ∧ 𝑛 ∈ ℕ) ∧ 𝑛 ∈ ℙ) → if(𝑛 = 2, if(2 ∥ 𝐴, 0, if((𝐴 mod 8) ∈ {1, 7}, 1, -1)), ((((𝐴↑((𝑛 − 1) / 2)) + 1) mod 𝑛) − 1)) ∈ 𝑍) |
40 | | simpr 485 |
. . . . 5
⊢ ((((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) ∧ 𝑛 ∈ ℕ) ∧ 𝑛 ∈ ℙ) → 𝑛 ∈
ℙ) |
41 | | simpll2 1212 |
. . . . 5
⊢ ((((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) ∧ 𝑛 ∈ ℕ) ∧ 𝑛 ∈ ℙ) → 𝑁 ∈
ℤ) |
42 | | simpll3 1213 |
. . . . 5
⊢ ((((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) ∧ 𝑛 ∈ ℕ) ∧ 𝑛 ∈ ℙ) → 𝑁 ≠ 0) |
43 | | pczcl 16549 |
. . . . 5
⊢ ((𝑛 ∈ ℙ ∧ (𝑁 ∈ ℤ ∧ 𝑁 ≠ 0)) → (𝑛 pCnt 𝑁) ∈
ℕ0) |
44 | 40, 41, 42, 43 | syl12anc 834 |
. . . 4
⊢ ((((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) ∧ 𝑛 ∈ ℕ) ∧ 𝑛 ∈ ℙ) → (𝑛 pCnt 𝑁) ∈
ℕ0) |
45 | 7 | ssrab3 4015 |
. . . . . 6
⊢ 𝑍 ⊆
ℤ |
46 | | zsscn 12327 |
. . . . . 6
⊢ ℤ
⊆ ℂ |
47 | 45, 46 | sstri 3930 |
. . . . 5
⊢ 𝑍 ⊆
ℂ |
48 | 7 | lgslem3 26447 |
. . . . 5
⊢ ((𝑎 ∈ 𝑍 ∧ 𝑏 ∈ 𝑍) → (𝑎 · 𝑏) ∈ 𝑍) |
49 | 47, 48, 17 | expcllem 13793 |
. . . 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 584 |
. . 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 4494 |
. 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 6988 |
1
⊢ ((𝐴 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑁 ≠ 0) → 𝐹:ℕ⟶𝑍) |