Step | Hyp | Ref
| Expression |
1 | | simpl 483 |
. . . 4
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ 𝑁 ∈
ℕ0) |
2 | | nn0nnaddcl 12264 |
. . . . 5
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ (𝑁 + 𝑀) ∈
ℕ) |
3 | | nnm1nn0 12274 |
. . . . 5
⊢ ((𝑁 + 𝑀) ∈ ℕ → ((𝑁 + 𝑀) − 1) ∈
ℕ0) |
4 | 2, 3 | syl 17 |
. . . 4
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ ((𝑁 + 𝑀) − 1) ∈
ℕ0) |
5 | | 1red 10977 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ 1 ∈ ℝ) |
6 | | nnre 11980 |
. . . . . . 7
⊢ (𝑀 ∈ ℕ → 𝑀 ∈
ℝ) |
7 | 6 | adantl 482 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ 𝑀 ∈
ℝ) |
8 | | nn0re 12242 |
. . . . . . 7
⊢ (𝑁 ∈ ℕ0
→ 𝑁 ∈
ℝ) |
9 | 8 | adantr 481 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ 𝑁 ∈
ℝ) |
10 | | nnge1 12001 |
. . . . . . 7
⊢ (𝑀 ∈ ℕ → 1 ≤
𝑀) |
11 | 10 | adantl 482 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ 1 ≤ 𝑀) |
12 | 5, 7, 9, 11 | leadd2dd 11590 |
. . . . 5
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ (𝑁 + 1) ≤ (𝑁 + 𝑀)) |
13 | | readdcl 10955 |
. . . . . . 7
⊢ ((𝑁 ∈ ℝ ∧ 𝑀 ∈ ℝ) → (𝑁 + 𝑀) ∈ ℝ) |
14 | 8, 6, 13 | syl2an 596 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ (𝑁 + 𝑀) ∈
ℝ) |
15 | | leaddsub 11451 |
. . . . . 6
⊢ ((𝑁 ∈ ℝ ∧ 1 ∈
ℝ ∧ (𝑁 + 𝑀) ∈ ℝ) → ((𝑁 + 1) ≤ (𝑁 + 𝑀) ↔ 𝑁 ≤ ((𝑁 + 𝑀) − 1))) |
16 | 9, 5, 14, 15 | syl3anc 1370 |
. . . . 5
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ ((𝑁 + 1) ≤ (𝑁 + 𝑀) ↔ 𝑁 ≤ ((𝑁 + 𝑀) − 1))) |
17 | 12, 16 | mpbid 231 |
. . . 4
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ 𝑁 ≤ ((𝑁 + 𝑀) − 1)) |
18 | | elfz2nn0 13346 |
. . . 4
⊢ (𝑁 ∈ (0...((𝑁 + 𝑀) − 1)) ↔ (𝑁 ∈ ℕ0 ∧ ((𝑁 + 𝑀) − 1) ∈ ℕ0
∧ 𝑁 ≤ ((𝑁 + 𝑀) − 1))) |
19 | 1, 4, 17, 18 | syl3anbrc 1342 |
. . 3
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ 𝑁 ∈
(0...((𝑁 + 𝑀) − 1))) |
20 | | fzfid 13691 |
. . . 4
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ (0...((𝑁 + 𝑀) − 1)) ∈
Fin) |
21 | | fz0ssnn0 13350 |
. . . . 5
⊢
(0...((𝑁 + 𝑀) − 1)) ⊆
ℕ0 |
22 | 21 | a1i 11 |
. . . 4
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ (0...((𝑁 + 𝑀) − 1)) ⊆
ℕ0) |
23 | | 2nn0 12250 |
. . . . . . . . . 10
⊢ 2 ∈
ℕ0 |
24 | 23 | a1i 11 |
. . . . . . . . 9
⊢ (𝑛 ∈ ℕ0
→ 2 ∈ ℕ0) |
25 | | id 22 |
. . . . . . . . . 10
⊢ (𝑛 ∈ ℕ0
→ 𝑛 ∈
ℕ0) |
26 | 24, 25 | nn0expcld 13959 |
. . . . . . . . 9
⊢ (𝑛 ∈ ℕ0
→ (2↑𝑛) ∈
ℕ0) |
27 | 24, 26 | nn0expcld 13959 |
. . . . . . . 8
⊢ (𝑛 ∈ ℕ0
→ (2↑(2↑𝑛))
∈ ℕ0) |
28 | 27 | nn0zd 12423 |
. . . . . . 7
⊢ (𝑛 ∈ ℕ0
→ (2↑(2↑𝑛))
∈ ℤ) |
29 | 28 | peano2zd 12428 |
. . . . . 6
⊢ (𝑛 ∈ ℕ0
→ ((2↑(2↑𝑛))
+ 1) ∈ ℤ) |
30 | 29 | adantl 482 |
. . . . 5
⊢ (((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
∧ 𝑛 ∈
ℕ0) → ((2↑(2↑𝑛)) + 1) ∈ ℤ) |
31 | | df-fmtno 44949 |
. . . . 5
⊢ FermatNo
= (𝑛 ∈
ℕ0 ↦ ((2↑(2↑𝑛)) + 1)) |
32 | 30, 31 | fmptd 6985 |
. . . 4
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ FermatNo:ℕ0⟶ℤ) |
33 | 20, 22, 32 | fprodfvdvdsd 16041 |
. . 3
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ ∀𝑛 ∈
(0...((𝑁 + 𝑀) −
1))(FermatNo‘𝑛)
∥ ∏𝑘 ∈
(0...((𝑁 + 𝑀) −
1))(FermatNo‘𝑘)) |
34 | | fveq2 6771 |
. . . . 5
⊢ (𝑛 = 𝑁 → (FermatNo‘𝑛) = (FermatNo‘𝑁)) |
35 | 34 | breq1d 5089 |
. . . 4
⊢ (𝑛 = 𝑁 → ((FermatNo‘𝑛) ∥ ∏𝑘 ∈ (0...((𝑁 + 𝑀) − 1))(FermatNo‘𝑘) ↔ (FermatNo‘𝑁) ∥ ∏𝑘 ∈ (0...((𝑁 + 𝑀) − 1))(FermatNo‘𝑘))) |
36 | 35 | rspcv 3556 |
. . 3
⊢ (𝑁 ∈ (0...((𝑁 + 𝑀) − 1)) → (∀𝑛 ∈ (0...((𝑁 + 𝑀) − 1))(FermatNo‘𝑛) ∥ ∏𝑘 ∈ (0...((𝑁 + 𝑀) − 1))(FermatNo‘𝑘) → (FermatNo‘𝑁) ∥ ∏𝑘 ∈ (0...((𝑁 + 𝑀) − 1))(FermatNo‘𝑘))) |
37 | 19, 33, 36 | sylc 65 |
. 2
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ (FermatNo‘𝑁)
∥ ∏𝑘 ∈
(0...((𝑁 + 𝑀) −
1))(FermatNo‘𝑘)) |
38 | | elfznn0 13348 |
. . . . . . 7
⊢ (𝑘 ∈ (0...((𝑁 + 𝑀) − 1)) → 𝑘 ∈ ℕ0) |
39 | 38 | adantl 482 |
. . . . . 6
⊢ (((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
∧ 𝑘 ∈ (0...((𝑁 + 𝑀) − 1))) → 𝑘 ∈ ℕ0) |
40 | | fmtnonn 44952 |
. . . . . 6
⊢ (𝑘 ∈ ℕ0
→ (FermatNo‘𝑘)
∈ ℕ) |
41 | 39, 40 | syl 17 |
. . . . 5
⊢ (((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
∧ 𝑘 ∈ (0...((𝑁 + 𝑀) − 1))) → (FermatNo‘𝑘) ∈
ℕ) |
42 | 41 | nncnd 11989 |
. . . 4
⊢ (((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
∧ 𝑘 ∈ (0...((𝑁 + 𝑀) − 1))) → (FermatNo‘𝑘) ∈
ℂ) |
43 | 20, 42 | fprodcl 15660 |
. . 3
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ ∏𝑘 ∈
(0...((𝑁 + 𝑀) −
1))(FermatNo‘𝑘)
∈ ℂ) |
44 | | 2cnd 12051 |
. . 3
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ 2 ∈ ℂ) |
45 | | nn0cn 12243 |
. . . . . . . 8
⊢ (𝑁 ∈ ℕ0
→ 𝑁 ∈
ℂ) |
46 | | nncn 11981 |
. . . . . . . 8
⊢ (𝑀 ∈ ℕ → 𝑀 ∈
ℂ) |
47 | | addcl 10954 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℂ ∧ 𝑀 ∈ ℂ) → (𝑁 + 𝑀) ∈ ℂ) |
48 | 45, 46, 47 | syl2an 596 |
. . . . . . 7
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ (𝑁 + 𝑀) ∈
ℂ) |
49 | | npcan1 11400 |
. . . . . . 7
⊢ ((𝑁 + 𝑀) ∈ ℂ → (((𝑁 + 𝑀) − 1) + 1) = (𝑁 + 𝑀)) |
50 | 48, 49 | syl 17 |
. . . . . 6
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ (((𝑁 + 𝑀) − 1) + 1) = (𝑁 + 𝑀)) |
51 | 50 | eqcomd 2746 |
. . . . 5
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ (𝑁 + 𝑀) = (((𝑁 + 𝑀) − 1) + 1)) |
52 | 51 | fveq2d 6775 |
. . . 4
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ (FermatNo‘(𝑁 +
𝑀)) =
(FermatNo‘(((𝑁 +
𝑀) − 1) +
1))) |
53 | | fmtnorec2 44964 |
. . . . 5
⊢ (((𝑁 + 𝑀) − 1) ∈ ℕ0
→ (FermatNo‘(((𝑁
+ 𝑀) − 1) + 1)) =
(∏𝑘 ∈
(0...((𝑁 + 𝑀) −
1))(FermatNo‘𝑘) +
2)) |
54 | 4, 53 | syl 17 |
. . . 4
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ (FermatNo‘(((𝑁
+ 𝑀) − 1) + 1)) =
(∏𝑘 ∈
(0...((𝑁 + 𝑀) −
1))(FermatNo‘𝑘) +
2)) |
55 | 52, 54 | eqtrd 2780 |
. . 3
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ (FermatNo‘(𝑁 +
𝑀)) = (∏𝑘 ∈ (0...((𝑁 + 𝑀) − 1))(FermatNo‘𝑘) + 2)) |
56 | 43, 44, 55 | mvrraddd 11387 |
. 2
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ ((FermatNo‘(𝑁
+ 𝑀)) − 2) =
∏𝑘 ∈
(0...((𝑁 + 𝑀) −
1))(FermatNo‘𝑘)) |
57 | 37, 56 | breqtrrd 5107 |
1
⊢ ((𝑁 ∈ ℕ0
∧ 𝑀 ∈ ℕ)
→ (FermatNo‘𝑁)
∥ ((FermatNo‘(𝑁
+ 𝑀)) −
2)) |