Step | Hyp | Ref
| Expression |
1 | | breq2 3986 |
. . . . 5
⊢ (𝑗 = 0 → (𝑁 ≤ 𝑗 ↔ 𝑁 ≤ 0)) |
2 | | fveq2 5486 |
. . . . . . 7
⊢ (𝑗 = 0 → (!‘𝑗) =
(!‘0)) |
3 | 2 | oveq1d 5857 |
. . . . . 6
⊢ (𝑗 = 0 → ((!‘𝑗) / 𝑁) = ((!‘0) / 𝑁)) |
4 | 3 | eleq1d 2235 |
. . . . 5
⊢ (𝑗 = 0 → (((!‘𝑗) / 𝑁) ∈ ℕ ↔ ((!‘0) / 𝑁) ∈
ℕ)) |
5 | 1, 4 | imbi12d 233 |
. . . 4
⊢ (𝑗 = 0 → ((𝑁 ≤ 𝑗 → ((!‘𝑗) / 𝑁) ∈ ℕ) ↔ (𝑁 ≤ 0 → ((!‘0) / 𝑁) ∈
ℕ))) |
6 | 5 | imbi2d 229 |
. . 3
⊢ (𝑗 = 0 → ((𝑁 ∈ ℕ → (𝑁 ≤ 𝑗 → ((!‘𝑗) / 𝑁) ∈ ℕ)) ↔ (𝑁 ∈ ℕ → (𝑁 ≤ 0 → ((!‘0) / 𝑁) ∈
ℕ)))) |
7 | | breq2 3986 |
. . . . 5
⊢ (𝑗 = 𝑘 → (𝑁 ≤ 𝑗 ↔ 𝑁 ≤ 𝑘)) |
8 | | fveq2 5486 |
. . . . . . 7
⊢ (𝑗 = 𝑘 → (!‘𝑗) = (!‘𝑘)) |
9 | 8 | oveq1d 5857 |
. . . . . 6
⊢ (𝑗 = 𝑘 → ((!‘𝑗) / 𝑁) = ((!‘𝑘) / 𝑁)) |
10 | 9 | eleq1d 2235 |
. . . . 5
⊢ (𝑗 = 𝑘 → (((!‘𝑗) / 𝑁) ∈ ℕ ↔ ((!‘𝑘) / 𝑁) ∈ ℕ)) |
11 | 7, 10 | imbi12d 233 |
. . . 4
⊢ (𝑗 = 𝑘 → ((𝑁 ≤ 𝑗 → ((!‘𝑗) / 𝑁) ∈ ℕ) ↔ (𝑁 ≤ 𝑘 → ((!‘𝑘) / 𝑁) ∈ ℕ))) |
12 | 11 | imbi2d 229 |
. . 3
⊢ (𝑗 = 𝑘 → ((𝑁 ∈ ℕ → (𝑁 ≤ 𝑗 → ((!‘𝑗) / 𝑁) ∈ ℕ)) ↔ (𝑁 ∈ ℕ → (𝑁 ≤ 𝑘 → ((!‘𝑘) / 𝑁) ∈ ℕ)))) |
13 | | breq2 3986 |
. . . . 5
⊢ (𝑗 = (𝑘 + 1) → (𝑁 ≤ 𝑗 ↔ 𝑁 ≤ (𝑘 + 1))) |
14 | | fveq2 5486 |
. . . . . . 7
⊢ (𝑗 = (𝑘 + 1) → (!‘𝑗) = (!‘(𝑘 + 1))) |
15 | 14 | oveq1d 5857 |
. . . . . 6
⊢ (𝑗 = (𝑘 + 1) → ((!‘𝑗) / 𝑁) = ((!‘(𝑘 + 1)) / 𝑁)) |
16 | 15 | eleq1d 2235 |
. . . . 5
⊢ (𝑗 = (𝑘 + 1) → (((!‘𝑗) / 𝑁) ∈ ℕ ↔ ((!‘(𝑘 + 1)) / 𝑁) ∈ ℕ)) |
17 | 13, 16 | imbi12d 233 |
. . . 4
⊢ (𝑗 = (𝑘 + 1) → ((𝑁 ≤ 𝑗 → ((!‘𝑗) / 𝑁) ∈ ℕ) ↔ (𝑁 ≤ (𝑘 + 1) → ((!‘(𝑘 + 1)) / 𝑁) ∈ ℕ))) |
18 | 17 | imbi2d 229 |
. . 3
⊢ (𝑗 = (𝑘 + 1) → ((𝑁 ∈ ℕ → (𝑁 ≤ 𝑗 → ((!‘𝑗) / 𝑁) ∈ ℕ)) ↔ (𝑁 ∈ ℕ → (𝑁 ≤ (𝑘 + 1) → ((!‘(𝑘 + 1)) / 𝑁) ∈ ℕ)))) |
19 | | breq2 3986 |
. . . . 5
⊢ (𝑗 = 𝑀 → (𝑁 ≤ 𝑗 ↔ 𝑁 ≤ 𝑀)) |
20 | | fveq2 5486 |
. . . . . . 7
⊢ (𝑗 = 𝑀 → (!‘𝑗) = (!‘𝑀)) |
21 | 20 | oveq1d 5857 |
. . . . . 6
⊢ (𝑗 = 𝑀 → ((!‘𝑗) / 𝑁) = ((!‘𝑀) / 𝑁)) |
22 | 21 | eleq1d 2235 |
. . . . 5
⊢ (𝑗 = 𝑀 → (((!‘𝑗) / 𝑁) ∈ ℕ ↔ ((!‘𝑀) / 𝑁) ∈ ℕ)) |
23 | 19, 22 | imbi12d 233 |
. . . 4
⊢ (𝑗 = 𝑀 → ((𝑁 ≤ 𝑗 → ((!‘𝑗) / 𝑁) ∈ ℕ) ↔ (𝑁 ≤ 𝑀 → ((!‘𝑀) / 𝑁) ∈ ℕ))) |
24 | 23 | imbi2d 229 |
. . 3
⊢ (𝑗 = 𝑀 → ((𝑁 ∈ ℕ → (𝑁 ≤ 𝑗 → ((!‘𝑗) / 𝑁) ∈ ℕ)) ↔ (𝑁 ∈ ℕ → (𝑁 ≤ 𝑀 → ((!‘𝑀) / 𝑁) ∈ ℕ)))) |
25 | | nngt0 8882 |
. . . . 5
⊢ (𝑁 ∈ ℕ → 0 <
𝑁) |
26 | | 0z 9202 |
. . . . . 6
⊢ 0 ∈
ℤ |
27 | | nnz 9210 |
. . . . . 6
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℤ) |
28 | | zltnle 9237 |
. . . . . 6
⊢ ((0
∈ ℤ ∧ 𝑁
∈ ℤ) → (0 < 𝑁 ↔ ¬ 𝑁 ≤ 0)) |
29 | 26, 27, 28 | sylancr 411 |
. . . . 5
⊢ (𝑁 ∈ ℕ → (0 <
𝑁 ↔ ¬ 𝑁 ≤ 0)) |
30 | 25, 29 | mpbid 146 |
. . . 4
⊢ (𝑁 ∈ ℕ → ¬
𝑁 ≤ 0) |
31 | 30 | pm2.21d 609 |
. . 3
⊢ (𝑁 ∈ ℕ → (𝑁 ≤ 0 → ((!‘0) /
𝑁) ∈
ℕ)) |
32 | | peano2nn0 9154 |
. . . . . . . . . . . . 13
⊢ (𝑘 ∈ ℕ0
→ (𝑘 + 1) ∈
ℕ0) |
33 | 32 | nn0zd 9311 |
. . . . . . . . . . . 12
⊢ (𝑘 ∈ ℕ0
→ (𝑘 + 1) ∈
ℤ) |
34 | | zleloe 9238 |
. . . . . . . . . . . 12
⊢ ((𝑁 ∈ ℤ ∧ (𝑘 + 1) ∈ ℤ) →
(𝑁 ≤ (𝑘 + 1) ↔ (𝑁 < (𝑘 + 1) ∨ 𝑁 = (𝑘 + 1)))) |
35 | 27, 33, 34 | syl2an 287 |
. . . . . . . . . . 11
⊢ ((𝑁 ∈ ℕ ∧ 𝑘 ∈ ℕ0)
→ (𝑁 ≤ (𝑘 + 1) ↔ (𝑁 < (𝑘 + 1) ∨ 𝑁 = (𝑘 + 1)))) |
36 | | nnnn0 9121 |
. . . . . . . . . . . . . 14
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℕ0) |
37 | | nn0leltp1 9254 |
. . . . . . . . . . . . . 14
⊢ ((𝑁 ∈ ℕ0
∧ 𝑘 ∈
ℕ0) → (𝑁 ≤ 𝑘 ↔ 𝑁 < (𝑘 + 1))) |
38 | 36, 37 | sylan 281 |
. . . . . . . . . . . . 13
⊢ ((𝑁 ∈ ℕ ∧ 𝑘 ∈ ℕ0)
→ (𝑁 ≤ 𝑘 ↔ 𝑁 < (𝑘 + 1))) |
39 | | nn0p1nn 9153 |
. . . . . . . . . . . . . . . . . . 19
⊢ (𝑘 ∈ ℕ0
→ (𝑘 + 1) ∈
ℕ) |
40 | | nnmulcl 8878 |
. . . . . . . . . . . . . . . . . . 19
⊢
((((!‘𝑘) /
𝑁) ∈ ℕ ∧
(𝑘 + 1) ∈ ℕ)
→ (((!‘𝑘) /
𝑁) · (𝑘 + 1)) ∈
ℕ) |
41 | 39, 40 | sylan2 284 |
. . . . . . . . . . . . . . . . . 18
⊢
((((!‘𝑘) /
𝑁) ∈ ℕ ∧
𝑘 ∈
ℕ0) → (((!‘𝑘) / 𝑁) · (𝑘 + 1)) ∈ ℕ) |
42 | 41 | expcom 115 |
. . . . . . . . . . . . . . . . 17
⊢ (𝑘 ∈ ℕ0
→ (((!‘𝑘) /
𝑁) ∈ ℕ →
(((!‘𝑘) / 𝑁) · (𝑘 + 1)) ∈ ℕ)) |
43 | 42 | adantl 275 |
. . . . . . . . . . . . . . . 16
⊢ ((𝑁 ∈ ℕ ∧ 𝑘 ∈ ℕ0)
→ (((!‘𝑘) /
𝑁) ∈ ℕ →
(((!‘𝑘) / 𝑁) · (𝑘 + 1)) ∈ ℕ)) |
44 | | faccl 10648 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (𝑘 ∈ ℕ0
→ (!‘𝑘) ∈
ℕ) |
45 | 44 | nncnd 8871 |
. . . . . . . . . . . . . . . . . . 19
⊢ (𝑘 ∈ ℕ0
→ (!‘𝑘) ∈
ℂ) |
46 | 45 | adantl 275 |
. . . . . . . . . . . . . . . . . 18
⊢ ((𝑁 ∈ ℕ ∧ 𝑘 ∈ ℕ0)
→ (!‘𝑘) ∈
ℂ) |
47 | 32 | nn0cnd 9169 |
. . . . . . . . . . . . . . . . . . 19
⊢ (𝑘 ∈ ℕ0
→ (𝑘 + 1) ∈
ℂ) |
48 | 47 | adantl 275 |
. . . . . . . . . . . . . . . . . 18
⊢ ((𝑁 ∈ ℕ ∧ 𝑘 ∈ ℕ0)
→ (𝑘 + 1) ∈
ℂ) |
49 | | nncn 8865 |
. . . . . . . . . . . . . . . . . . 19
⊢ (𝑁 ∈ ℕ → 𝑁 ∈
ℂ) |
50 | 49 | adantr 274 |
. . . . . . . . . . . . . . . . . 18
⊢ ((𝑁 ∈ ℕ ∧ 𝑘 ∈ ℕ0)
→ 𝑁 ∈
ℂ) |
51 | | nnap0 8886 |
. . . . . . . . . . . . . . . . . . 19
⊢ (𝑁 ∈ ℕ → 𝑁 # 0) |
52 | 51 | adantr 274 |
. . . . . . . . . . . . . . . . . 18
⊢ ((𝑁 ∈ ℕ ∧ 𝑘 ∈ ℕ0)
→ 𝑁 #
0) |
53 | 46, 48, 50, 52 | div23apd 8724 |
. . . . . . . . . . . . . . . . 17
⊢ ((𝑁 ∈ ℕ ∧ 𝑘 ∈ ℕ0)
→ (((!‘𝑘)
· (𝑘 + 1)) / 𝑁) = (((!‘𝑘) / 𝑁) · (𝑘 + 1))) |
54 | 53 | eleq1d 2235 |
. . . . . . . . . . . . . . . 16
⊢ ((𝑁 ∈ ℕ ∧ 𝑘 ∈ ℕ0)
→ ((((!‘𝑘)
· (𝑘 + 1)) / 𝑁) ∈ ℕ ↔
(((!‘𝑘) / 𝑁) · (𝑘 + 1)) ∈ ℕ)) |
55 | 43, 54 | sylibrd 168 |
. . . . . . . . . . . . . . 15
⊢ ((𝑁 ∈ ℕ ∧ 𝑘 ∈ ℕ0)
→ (((!‘𝑘) /
𝑁) ∈ ℕ →
(((!‘𝑘) ·
(𝑘 + 1)) / 𝑁) ∈
ℕ)) |
56 | 55 | imim2d 54 |
. . . . . . . . . . . . . 14
⊢ ((𝑁 ∈ ℕ ∧ 𝑘 ∈ ℕ0)
→ ((𝑁 ≤ 𝑘 → ((!‘𝑘) / 𝑁) ∈ ℕ) → (𝑁 ≤ 𝑘 → (((!‘𝑘) · (𝑘 + 1)) / 𝑁) ∈ ℕ))) |
57 | 56 | com23 78 |
. . . . . . . . . . . . 13
⊢ ((𝑁 ∈ ℕ ∧ 𝑘 ∈ ℕ0)
→ (𝑁 ≤ 𝑘 → ((𝑁 ≤ 𝑘 → ((!‘𝑘) / 𝑁) ∈ ℕ) → (((!‘𝑘) · (𝑘 + 1)) / 𝑁) ∈ ℕ))) |
58 | 38, 57 | sylbird 169 |
. . . . . . . . . . . 12
⊢ ((𝑁 ∈ ℕ ∧ 𝑘 ∈ ℕ0)
→ (𝑁 < (𝑘 + 1) → ((𝑁 ≤ 𝑘 → ((!‘𝑘) / 𝑁) ∈ ℕ) → (((!‘𝑘) · (𝑘 + 1)) / 𝑁) ∈ ℕ))) |
59 | 46, 50, 52 | divcanap4d 8692 |
. . . . . . . . . . . . . . 15
⊢ ((𝑁 ∈ ℕ ∧ 𝑘 ∈ ℕ0)
→ (((!‘𝑘)
· 𝑁) / 𝑁) = (!‘𝑘)) |
60 | 44 | adantl 275 |
. . . . . . . . . . . . . . 15
⊢ ((𝑁 ∈ ℕ ∧ 𝑘 ∈ ℕ0)
→ (!‘𝑘) ∈
ℕ) |
61 | 59, 60 | eqeltrd 2243 |
. . . . . . . . . . . . . 14
⊢ ((𝑁 ∈ ℕ ∧ 𝑘 ∈ ℕ0)
→ (((!‘𝑘)
· 𝑁) / 𝑁) ∈
ℕ) |
62 | | oveq2 5850 |
. . . . . . . . . . . . . . . 16
⊢ (𝑁 = (𝑘 + 1) → ((!‘𝑘) · 𝑁) = ((!‘𝑘) · (𝑘 + 1))) |
63 | 62 | oveq1d 5857 |
. . . . . . . . . . . . . . 15
⊢ (𝑁 = (𝑘 + 1) → (((!‘𝑘) · 𝑁) / 𝑁) = (((!‘𝑘) · (𝑘 + 1)) / 𝑁)) |
64 | 63 | eleq1d 2235 |
. . . . . . . . . . . . . 14
⊢ (𝑁 = (𝑘 + 1) → ((((!‘𝑘) · 𝑁) / 𝑁) ∈ ℕ ↔ (((!‘𝑘) · (𝑘 + 1)) / 𝑁) ∈ ℕ)) |
65 | 61, 64 | syl5ibcom 154 |
. . . . . . . . . . . . 13
⊢ ((𝑁 ∈ ℕ ∧ 𝑘 ∈ ℕ0)
→ (𝑁 = (𝑘 + 1) → (((!‘𝑘) · (𝑘 + 1)) / 𝑁) ∈ ℕ)) |
66 | 65 | a1dd 48 |
. . . . . . . . . . . 12
⊢ ((𝑁 ∈ ℕ ∧ 𝑘 ∈ ℕ0)
→ (𝑁 = (𝑘 + 1) → ((𝑁 ≤ 𝑘 → ((!‘𝑘) / 𝑁) ∈ ℕ) → (((!‘𝑘) · (𝑘 + 1)) / 𝑁) ∈ ℕ))) |
67 | 58, 66 | jaod 707 |
. . . . . . . . . . 11
⊢ ((𝑁 ∈ ℕ ∧ 𝑘 ∈ ℕ0)
→ ((𝑁 < (𝑘 + 1) ∨ 𝑁 = (𝑘 + 1)) → ((𝑁 ≤ 𝑘 → ((!‘𝑘) / 𝑁) ∈ ℕ) → (((!‘𝑘) · (𝑘 + 1)) / 𝑁) ∈ ℕ))) |
68 | 35, 67 | sylbid 149 |
. . . . . . . . . 10
⊢ ((𝑁 ∈ ℕ ∧ 𝑘 ∈ ℕ0)
→ (𝑁 ≤ (𝑘 + 1) → ((𝑁 ≤ 𝑘 → ((!‘𝑘) / 𝑁) ∈ ℕ) → (((!‘𝑘) · (𝑘 + 1)) / 𝑁) ∈ ℕ))) |
69 | 68 | ex 114 |
. . . . . . . . 9
⊢ (𝑁 ∈ ℕ → (𝑘 ∈ ℕ0
→ (𝑁 ≤ (𝑘 + 1) → ((𝑁 ≤ 𝑘 → ((!‘𝑘) / 𝑁) ∈ ℕ) → (((!‘𝑘) · (𝑘 + 1)) / 𝑁) ∈ ℕ)))) |
70 | 69 | com34 83 |
. . . . . . . 8
⊢ (𝑁 ∈ ℕ → (𝑘 ∈ ℕ0
→ ((𝑁 ≤ 𝑘 → ((!‘𝑘) / 𝑁) ∈ ℕ) → (𝑁 ≤ (𝑘 + 1) → (((!‘𝑘) · (𝑘 + 1)) / 𝑁) ∈ ℕ)))) |
71 | 70 | com12 30 |
. . . . . . 7
⊢ (𝑘 ∈ ℕ0
→ (𝑁 ∈ ℕ
→ ((𝑁 ≤ 𝑘 → ((!‘𝑘) / 𝑁) ∈ ℕ) → (𝑁 ≤ (𝑘 + 1) → (((!‘𝑘) · (𝑘 + 1)) / 𝑁) ∈ ℕ)))) |
72 | 71 | imp4d 350 |
. . . . . 6
⊢ (𝑘 ∈ ℕ0
→ ((𝑁 ∈ ℕ
∧ ((𝑁 ≤ 𝑘 → ((!‘𝑘) / 𝑁) ∈ ℕ) ∧ 𝑁 ≤ (𝑘 + 1))) → (((!‘𝑘) · (𝑘 + 1)) / 𝑁) ∈ ℕ)) |
73 | | facp1 10643 |
. . . . . . . 8
⊢ (𝑘 ∈ ℕ0
→ (!‘(𝑘 + 1)) =
((!‘𝑘) ·
(𝑘 + 1))) |
74 | 73 | oveq1d 5857 |
. . . . . . 7
⊢ (𝑘 ∈ ℕ0
→ ((!‘(𝑘 + 1)) /
𝑁) = (((!‘𝑘) · (𝑘 + 1)) / 𝑁)) |
75 | 74 | eleq1d 2235 |
. . . . . 6
⊢ (𝑘 ∈ ℕ0
→ (((!‘(𝑘 + 1))
/ 𝑁) ∈ ℕ ↔
(((!‘𝑘) ·
(𝑘 + 1)) / 𝑁) ∈
ℕ)) |
76 | 72, 75 | sylibrd 168 |
. . . . 5
⊢ (𝑘 ∈ ℕ0
→ ((𝑁 ∈ ℕ
∧ ((𝑁 ≤ 𝑘 → ((!‘𝑘) / 𝑁) ∈ ℕ) ∧ 𝑁 ≤ (𝑘 + 1))) → ((!‘(𝑘 + 1)) / 𝑁) ∈ ℕ)) |
77 | 76 | exp4d 367 |
. . . 4
⊢ (𝑘 ∈ ℕ0
→ (𝑁 ∈ ℕ
→ ((𝑁 ≤ 𝑘 → ((!‘𝑘) / 𝑁) ∈ ℕ) → (𝑁 ≤ (𝑘 + 1) → ((!‘(𝑘 + 1)) / 𝑁) ∈ ℕ)))) |
78 | 77 | a2d 26 |
. . 3
⊢ (𝑘 ∈ ℕ0
→ ((𝑁 ∈ ℕ
→ (𝑁 ≤ 𝑘 → ((!‘𝑘) / 𝑁) ∈ ℕ)) → (𝑁 ∈ ℕ → (𝑁 ≤ (𝑘 + 1) → ((!‘(𝑘 + 1)) / 𝑁) ∈ ℕ)))) |
79 | 6, 12, 18, 24, 31, 78 | nn0ind 9305 |
. 2
⊢ (𝑀 ∈ ℕ0
→ (𝑁 ∈ ℕ
→ (𝑁 ≤ 𝑀 → ((!‘𝑀) / 𝑁) ∈ ℕ))) |
80 | 79 | 3imp 1183 |
1
⊢ ((𝑀 ∈ ℕ0
∧ 𝑁 ∈ ℕ
∧ 𝑁 ≤ 𝑀) → ((!‘𝑀) / 𝑁) ∈ ℕ) |