Proof of Theorem fpprwppr
Step | Hyp | Ref
| Expression |
1 | | fpprbasnn 45181 |
. 2
⊢ (𝑋 ∈ ( FPPr ‘𝑁) → 𝑁 ∈ ℕ) |
2 | | fpprel 45180 |
. . 3
⊢ (𝑁 ∈ ℕ → (𝑋 ∈ ( FPPr ‘𝑁) ↔ (𝑋 ∈ (ℤ≥‘4)
∧ 𝑋 ∉ ℙ
∧ ((𝑁↑(𝑋 − 1)) mod 𝑋) = 1))) |
3 | | nnz 12342 |
. . . . . . . . . . . 12
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℤ) |
4 | | eluz4nn 12626 |
. . . . . . . . . . . . 13
⊢ (𝑋 ∈
(ℤ≥‘4) → 𝑋 ∈ ℕ) |
5 | | nnm1nn0 12274 |
. . . . . . . . . . . . 13
⊢ (𝑋 ∈ ℕ → (𝑋 − 1) ∈
ℕ0) |
6 | 4, 5 | syl 17 |
. . . . . . . . . . . 12
⊢ (𝑋 ∈
(ℤ≥‘4) → (𝑋 − 1) ∈
ℕ0) |
7 | | zexpcl 13797 |
. . . . . . . . . . . 12
⊢ ((𝑁 ∈ ℤ ∧ (𝑋 − 1) ∈
ℕ0) → (𝑁↑(𝑋 − 1)) ∈
ℤ) |
8 | 3, 6, 7 | syl2an 596 |
. . . . . . . . . . 11
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → (𝑁↑(𝑋 − 1)) ∈
ℤ) |
9 | 8 | zred 12426 |
. . . . . . . . . 10
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → (𝑁↑(𝑋 − 1)) ∈
ℝ) |
10 | 4 | nnrpd 12770 |
. . . . . . . . . . 11
⊢ (𝑋 ∈
(ℤ≥‘4) → 𝑋 ∈
ℝ+) |
11 | 10 | adantl 482 |
. . . . . . . . . 10
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → 𝑋 ∈
ℝ+) |
12 | 9, 11 | modcld 13595 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → ((𝑁↑(𝑋 − 1)) mod 𝑋) ∈ ℝ) |
13 | 12 | recnd 11003 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → ((𝑁↑(𝑋 − 1)) mod 𝑋) ∈ ℂ) |
14 | | 1cnd 10970 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → 1 ∈ ℂ) |
15 | | nncn 11981 |
. . . . . . . . 9
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℂ) |
16 | 15 | adantr 481 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → 𝑁 ∈ ℂ) |
17 | | nnne0 12007 |
. . . . . . . . 9
⊢ (𝑁 ∈ ℕ → 𝑁 ≠ 0) |
18 | 17 | adantr 481 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → 𝑁 ≠ 0) |
19 | 13, 14, 16, 18 | mulcand 11608 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → ((𝑁 · ((𝑁↑(𝑋 − 1)) mod 𝑋)) = (𝑁 · 1) ↔ ((𝑁↑(𝑋 − 1)) mod 𝑋) = 1)) |
20 | | oveq1 7282 |
. . . . . . . 8
⊢ ((𝑁 · ((𝑁↑(𝑋 − 1)) mod 𝑋)) = (𝑁 · 1) → ((𝑁 · ((𝑁↑(𝑋 − 1)) mod 𝑋)) mod 𝑋) = ((𝑁 · 1) mod 𝑋)) |
21 | 3 | adantr 481 |
. . . . . . . . . . 11
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → 𝑁 ∈ ℤ) |
22 | | modmulmodr 13657 |
. . . . . . . . . . 11
⊢ ((𝑁 ∈ ℤ ∧ (𝑁↑(𝑋 − 1)) ∈ ℝ ∧ 𝑋 ∈ ℝ+)
→ ((𝑁 · ((𝑁↑(𝑋 − 1)) mod 𝑋)) mod 𝑋) = ((𝑁 · (𝑁↑(𝑋 − 1))) mod 𝑋)) |
23 | 21, 9, 11, 22 | syl3anc 1370 |
. . . . . . . . . 10
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → ((𝑁 · ((𝑁↑(𝑋 − 1)) mod 𝑋)) mod 𝑋) = ((𝑁 · (𝑁↑(𝑋 − 1))) mod 𝑋)) |
24 | 23 | eqeq1d 2740 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → (((𝑁 · ((𝑁↑(𝑋 − 1)) mod 𝑋)) mod 𝑋) = ((𝑁 · 1) mod 𝑋) ↔ ((𝑁 · (𝑁↑(𝑋 − 1))) mod 𝑋) = ((𝑁 · 1) mod 𝑋))) |
25 | 8 | zcnd 12427 |
. . . . . . . . . . . . . 14
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → (𝑁↑(𝑋 − 1)) ∈
ℂ) |
26 | 16, 25 | mulcomd 10996 |
. . . . . . . . . . . . 13
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → (𝑁 · (𝑁↑(𝑋 − 1))) = ((𝑁↑(𝑋 − 1)) · 𝑁)) |
27 | | expm1t 13811 |
. . . . . . . . . . . . . . 15
⊢ ((𝑁 ∈ ℂ ∧ 𝑋 ∈ ℕ) → (𝑁↑𝑋) = ((𝑁↑(𝑋 − 1)) · 𝑁)) |
28 | 27 | eqcomd 2744 |
. . . . . . . . . . . . . 14
⊢ ((𝑁 ∈ ℂ ∧ 𝑋 ∈ ℕ) → ((𝑁↑(𝑋 − 1)) · 𝑁) = (𝑁↑𝑋)) |
29 | 15, 4, 28 | syl2an 596 |
. . . . . . . . . . . . 13
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → ((𝑁↑(𝑋 − 1)) · 𝑁) = (𝑁↑𝑋)) |
30 | 26, 29 | eqtrd 2778 |
. . . . . . . . . . . 12
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → (𝑁 · (𝑁↑(𝑋 − 1))) = (𝑁↑𝑋)) |
31 | 30 | oveq1d 7290 |
. . . . . . . . . . 11
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → ((𝑁 · (𝑁↑(𝑋 − 1))) mod 𝑋) = ((𝑁↑𝑋) mod 𝑋)) |
32 | 15 | mulid1d 10992 |
. . . . . . . . . . . . 13
⊢ (𝑁 ∈ ℕ → (𝑁 · 1) = 𝑁) |
33 | 32 | adantr 481 |
. . . . . . . . . . . 12
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → (𝑁 · 1) = 𝑁) |
34 | 33 | oveq1d 7290 |
. . . . . . . . . . 11
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → ((𝑁 · 1) mod 𝑋) = (𝑁 mod 𝑋)) |
35 | 31, 34 | eqeq12d 2754 |
. . . . . . . . . 10
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → (((𝑁 · (𝑁↑(𝑋 − 1))) mod 𝑋) = ((𝑁 · 1) mod 𝑋) ↔ ((𝑁↑𝑋) mod 𝑋) = (𝑁 mod 𝑋))) |
36 | 35 | biimpd 228 |
. . . . . . . . 9
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → (((𝑁 · (𝑁↑(𝑋 − 1))) mod 𝑋) = ((𝑁 · 1) mod 𝑋) → ((𝑁↑𝑋) mod 𝑋) = (𝑁 mod 𝑋))) |
37 | 24, 36 | sylbid 239 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → (((𝑁 · ((𝑁↑(𝑋 − 1)) mod 𝑋)) mod 𝑋) = ((𝑁 · 1) mod 𝑋) → ((𝑁↑𝑋) mod 𝑋) = (𝑁 mod 𝑋))) |
38 | 20, 37 | syl5 34 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → ((𝑁 · ((𝑁↑(𝑋 − 1)) mod 𝑋)) = (𝑁 · 1) → ((𝑁↑𝑋) mod 𝑋) = (𝑁 mod 𝑋))) |
39 | 19, 38 | sylbird 259 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → (((𝑁↑(𝑋 − 1)) mod 𝑋) = 1 → ((𝑁↑𝑋) mod 𝑋) = (𝑁 mod 𝑋))) |
40 | 39 | a1d 25 |
. . . . 5
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈
(ℤ≥‘4)) → (𝑋 ∉ ℙ → (((𝑁↑(𝑋 − 1)) mod 𝑋) = 1 → ((𝑁↑𝑋) mod 𝑋) = (𝑁 mod 𝑋)))) |
41 | 40 | ex 413 |
. . . 4
⊢ (𝑁 ∈ ℕ → (𝑋 ∈
(ℤ≥‘4) → (𝑋 ∉ ℙ → (((𝑁↑(𝑋 − 1)) mod 𝑋) = 1 → ((𝑁↑𝑋) mod 𝑋) = (𝑁 mod 𝑋))))) |
42 | 41 | 3impd 1347 |
. . 3
⊢ (𝑁 ∈ ℕ → ((𝑋 ∈
(ℤ≥‘4) ∧ 𝑋 ∉ ℙ ∧ ((𝑁↑(𝑋 − 1)) mod 𝑋) = 1) → ((𝑁↑𝑋) mod 𝑋) = (𝑁 mod 𝑋))) |
43 | 2, 42 | sylbid 239 |
. 2
⊢ (𝑁 ∈ ℕ → (𝑋 ∈ ( FPPr ‘𝑁) → ((𝑁↑𝑋) mod 𝑋) = (𝑁 mod 𝑋))) |
44 | 1, 43 | mpcom 38 |
1
⊢ (𝑋 ∈ ( FPPr ‘𝑁) → ((𝑁↑𝑋) mod 𝑋) = (𝑁 mod 𝑋)) |