MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  sylow1lem1 Structured version   Visualization version   GIF version

Theorem sylow1lem1 17934
Description: Lemma for sylow1 17939. The p-adic valuation of the size of 𝑆 is equal to the number of excess powers of 𝑃 in (#‘𝑋) / (𝑃𝑁). (Contributed by Mario Carneiro, 15-Jan-2015.)
Hypotheses
Ref Expression
sylow1.x 𝑋 = (Base‘𝐺)
sylow1.g (𝜑𝐺 ∈ Grp)
sylow1.f (𝜑𝑋 ∈ Fin)
sylow1.p (𝜑𝑃 ∈ ℙ)
sylow1.n (𝜑𝑁 ∈ ℕ0)
sylow1.d (𝜑 → (𝑃𝑁) ∥ (#‘𝑋))
sylow1lem.a + = (+g𝐺)
sylow1lem.s 𝑆 = {𝑠 ∈ 𝒫 𝑋 ∣ (#‘𝑠) = (𝑃𝑁)}
Assertion
Ref Expression
sylow1lem1 (𝜑 → ((#‘𝑆) ∈ ℕ ∧ (𝑃 pCnt (#‘𝑆)) = ((𝑃 pCnt (#‘𝑋)) − 𝑁)))
Distinct variable groups:   𝑁,𝑠   𝑋,𝑠   + ,𝑠   𝐺,𝑠   𝑃,𝑠
Allowed substitution hints:   𝜑(𝑠)   𝑆(𝑠)

Proof of Theorem sylow1lem1
Dummy variables 𝑥 𝑛 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 sylow1.f . . . . 5 (𝜑𝑋 ∈ Fin)
2 sylow1.p . . . . . . . 8 (𝜑𝑃 ∈ ℙ)
3 prmnn 15312 . . . . . . . 8 (𝑃 ∈ ℙ → 𝑃 ∈ ℕ)
42, 3syl 17 . . . . . . 7 (𝜑𝑃 ∈ ℕ)
5 sylow1.n . . . . . . 7 (𝜑𝑁 ∈ ℕ0)
64, 5nnexpcld 12970 . . . . . 6 (𝜑 → (𝑃𝑁) ∈ ℕ)
76nnzd 11425 . . . . 5 (𝜑 → (𝑃𝑁) ∈ ℤ)
8 hashbc 13175 . . . . 5 ((𝑋 ∈ Fin ∧ (𝑃𝑁) ∈ ℤ) → ((#‘𝑋)C(𝑃𝑁)) = (#‘{𝑠 ∈ 𝒫 𝑋 ∣ (#‘𝑠) = (𝑃𝑁)}))
91, 7, 8syl2anc 692 . . . 4 (𝜑 → ((#‘𝑋)C(𝑃𝑁)) = (#‘{𝑠 ∈ 𝒫 𝑋 ∣ (#‘𝑠) = (𝑃𝑁)}))
10 sylow1lem.s . . . . 5 𝑆 = {𝑠 ∈ 𝒫 𝑋 ∣ (#‘𝑠) = (𝑃𝑁)}
1110fveq2i 6151 . . . 4 (#‘𝑆) = (#‘{𝑠 ∈ 𝒫 𝑋 ∣ (#‘𝑠) = (𝑃𝑁)})
129, 11syl6eqr 2673 . . 3 (𝜑 → ((#‘𝑋)C(𝑃𝑁)) = (#‘𝑆))
13 sylow1.d . . . . . 6 (𝜑 → (𝑃𝑁) ∥ (#‘𝑋))
14 sylow1.g . . . . . . . . . 10 (𝜑𝐺 ∈ Grp)
15 sylow1.x . . . . . . . . . . 11 𝑋 = (Base‘𝐺)
1615grpbn0 17372 . . . . . . . . . 10 (𝐺 ∈ Grp → 𝑋 ≠ ∅)
1714, 16syl 17 . . . . . . . . 9 (𝜑𝑋 ≠ ∅)
18 hasheq0 13094 . . . . . . . . . . 11 (𝑋 ∈ Fin → ((#‘𝑋) = 0 ↔ 𝑋 = ∅))
191, 18syl 17 . . . . . . . . . 10 (𝜑 → ((#‘𝑋) = 0 ↔ 𝑋 = ∅))
2019necon3bbid 2827 . . . . . . . . 9 (𝜑 → (¬ (#‘𝑋) = 0 ↔ 𝑋 ≠ ∅))
2117, 20mpbird 247 . . . . . . . 8 (𝜑 → ¬ (#‘𝑋) = 0)
22 hashcl 13087 . . . . . . . . . . 11 (𝑋 ∈ Fin → (#‘𝑋) ∈ ℕ0)
231, 22syl 17 . . . . . . . . . 10 (𝜑 → (#‘𝑋) ∈ ℕ0)
24 elnn0 11238 . . . . . . . . . 10 ((#‘𝑋) ∈ ℕ0 ↔ ((#‘𝑋) ∈ ℕ ∨ (#‘𝑋) = 0))
2523, 24sylib 208 . . . . . . . . 9 (𝜑 → ((#‘𝑋) ∈ ℕ ∨ (#‘𝑋) = 0))
2625ord 392 . . . . . . . 8 (𝜑 → (¬ (#‘𝑋) ∈ ℕ → (#‘𝑋) = 0))
2721, 26mt3d 140 . . . . . . 7 (𝜑 → (#‘𝑋) ∈ ℕ)
28 dvdsle 14956 . . . . . . 7 (((𝑃𝑁) ∈ ℤ ∧ (#‘𝑋) ∈ ℕ) → ((𝑃𝑁) ∥ (#‘𝑋) → (𝑃𝑁) ≤ (#‘𝑋)))
297, 27, 28syl2anc 692 . . . . . 6 (𝜑 → ((𝑃𝑁) ∥ (#‘𝑋) → (𝑃𝑁) ≤ (#‘𝑋)))
3013, 29mpd 15 . . . . 5 (𝜑 → (𝑃𝑁) ≤ (#‘𝑋))
316nnnn0d 11295 . . . . . . 7 (𝜑 → (𝑃𝑁) ∈ ℕ0)
32 nn0uz 11666 . . . . . . 7 0 = (ℤ‘0)
3331, 32syl6eleq 2708 . . . . . 6 (𝜑 → (𝑃𝑁) ∈ (ℤ‘0))
3423nn0zd 11424 . . . . . 6 (𝜑 → (#‘𝑋) ∈ ℤ)
35 elfz5 12276 . . . . . 6 (((𝑃𝑁) ∈ (ℤ‘0) ∧ (#‘𝑋) ∈ ℤ) → ((𝑃𝑁) ∈ (0...(#‘𝑋)) ↔ (𝑃𝑁) ≤ (#‘𝑋)))
3633, 34, 35syl2anc 692 . . . . 5 (𝜑 → ((𝑃𝑁) ∈ (0...(#‘𝑋)) ↔ (𝑃𝑁) ≤ (#‘𝑋)))
3730, 36mpbird 247 . . . 4 (𝜑 → (𝑃𝑁) ∈ (0...(#‘𝑋)))
38 bccl2 13050 . . . 4 ((𝑃𝑁) ∈ (0...(#‘𝑋)) → ((#‘𝑋)C(𝑃𝑁)) ∈ ℕ)
3937, 38syl 17 . . 3 (𝜑 → ((#‘𝑋)C(𝑃𝑁)) ∈ ℕ)
4012, 39eqeltrrd 2699 . 2 (𝜑 → (#‘𝑆) ∈ ℕ)
41 nnuz 11667 . . . . . . . . . . 11 ℕ = (ℤ‘1)
426, 41syl6eleq 2708 . . . . . . . . . 10 (𝜑 → (𝑃𝑁) ∈ (ℤ‘1))
43 elfz5 12276 . . . . . . . . . 10 (((𝑃𝑁) ∈ (ℤ‘1) ∧ (#‘𝑋) ∈ ℤ) → ((𝑃𝑁) ∈ (1...(#‘𝑋)) ↔ (𝑃𝑁) ≤ (#‘𝑋)))
4442, 34, 43syl2anc 692 . . . . . . . . 9 (𝜑 → ((𝑃𝑁) ∈ (1...(#‘𝑋)) ↔ (𝑃𝑁) ≤ (#‘𝑋)))
4530, 44mpbird 247 . . . . . . . 8 (𝜑 → (𝑃𝑁) ∈ (1...(#‘𝑋)))
46 1zzd 11352 . . . . . . . . 9 (𝜑 → 1 ∈ ℤ)
47 fzsubel 12319 . . . . . . . . 9 (((1 ∈ ℤ ∧ (#‘𝑋) ∈ ℤ) ∧ ((𝑃𝑁) ∈ ℤ ∧ 1 ∈ ℤ)) → ((𝑃𝑁) ∈ (1...(#‘𝑋)) ↔ ((𝑃𝑁) − 1) ∈ ((1 − 1)...((#‘𝑋) − 1))))
4846, 34, 7, 46, 47syl22anc 1324 . . . . . . . 8 (𝜑 → ((𝑃𝑁) ∈ (1...(#‘𝑋)) ↔ ((𝑃𝑁) − 1) ∈ ((1 − 1)...((#‘𝑋) − 1))))
4945, 48mpbid 222 . . . . . . 7 (𝜑 → ((𝑃𝑁) − 1) ∈ ((1 − 1)...((#‘𝑋) − 1)))
50 1m1e0 11033 . . . . . . . 8 (1 − 1) = 0
5150oveq1i 6614 . . . . . . 7 ((1 − 1)...((#‘𝑋) − 1)) = (0...((#‘𝑋) − 1))
5249, 51syl6eleq 2708 . . . . . 6 (𝜑 → ((𝑃𝑁) − 1) ∈ (0...((#‘𝑋) − 1)))
53 bcp1nk 13044 . . . . . 6 (((𝑃𝑁) − 1) ∈ (0...((#‘𝑋) − 1)) → ((((#‘𝑋) − 1) + 1)C(((𝑃𝑁) − 1) + 1)) = ((((#‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((((#‘𝑋) − 1) + 1) / (((𝑃𝑁) − 1) + 1))))
5452, 53syl 17 . . . . 5 (𝜑 → ((((#‘𝑋) − 1) + 1)C(((𝑃𝑁) − 1) + 1)) = ((((#‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((((#‘𝑋) − 1) + 1) / (((𝑃𝑁) − 1) + 1))))
5523nn0cnd 11297 . . . . . . 7 (𝜑 → (#‘𝑋) ∈ ℂ)
56 ax-1cn 9938 . . . . . . 7 1 ∈ ℂ
57 npcan 10234 . . . . . . 7 (((#‘𝑋) ∈ ℂ ∧ 1 ∈ ℂ) → (((#‘𝑋) − 1) + 1) = (#‘𝑋))
5855, 56, 57sylancl 693 . . . . . 6 (𝜑 → (((#‘𝑋) − 1) + 1) = (#‘𝑋))
596nncnd 10980 . . . . . . 7 (𝜑 → (𝑃𝑁) ∈ ℂ)
60 npcan 10234 . . . . . . 7 (((𝑃𝑁) ∈ ℂ ∧ 1 ∈ ℂ) → (((𝑃𝑁) − 1) + 1) = (𝑃𝑁))
6159, 56, 60sylancl 693 . . . . . 6 (𝜑 → (((𝑃𝑁) − 1) + 1) = (𝑃𝑁))
6258, 61oveq12d 6622 . . . . 5 (𝜑 → ((((#‘𝑋) − 1) + 1)C(((𝑃𝑁) − 1) + 1)) = ((#‘𝑋)C(𝑃𝑁)))
6358, 61oveq12d 6622 . . . . . 6 (𝜑 → ((((#‘𝑋) − 1) + 1) / (((𝑃𝑁) − 1) + 1)) = ((#‘𝑋) / (𝑃𝑁)))
6463oveq2d 6620 . . . . 5 (𝜑 → ((((#‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((((#‘𝑋) − 1) + 1) / (((𝑃𝑁) − 1) + 1))) = ((((#‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((#‘𝑋) / (𝑃𝑁))))
6554, 62, 643eqtr3d 2663 . . . 4 (𝜑 → ((#‘𝑋)C(𝑃𝑁)) = ((((#‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((#‘𝑋) / (𝑃𝑁))))
6665oveq2d 6620 . . 3 (𝜑 → (𝑃 pCnt ((#‘𝑋)C(𝑃𝑁))) = (𝑃 pCnt ((((#‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((#‘𝑋) / (𝑃𝑁)))))
6712oveq2d 6620 . . 3 (𝜑 → (𝑃 pCnt ((#‘𝑋)C(𝑃𝑁))) = (𝑃 pCnt (#‘𝑆)))
68 bccl2 13050 . . . . . . 7 (((𝑃𝑁) − 1) ∈ (0...((#‘𝑋) − 1)) → (((#‘𝑋) − 1)C((𝑃𝑁) − 1)) ∈ ℕ)
6952, 68syl 17 . . . . . 6 (𝜑 → (((#‘𝑋) − 1)C((𝑃𝑁) − 1)) ∈ ℕ)
7069nnzd 11425 . . . . 5 (𝜑 → (((#‘𝑋) − 1)C((𝑃𝑁) − 1)) ∈ ℤ)
7169nnne0d 11009 . . . . 5 (𝜑 → (((#‘𝑋) − 1)C((𝑃𝑁) − 1)) ≠ 0)
726nnne0d 11009 . . . . . . 7 (𝜑 → (𝑃𝑁) ≠ 0)
73 dvdsval2 14910 . . . . . . 7 (((𝑃𝑁) ∈ ℤ ∧ (𝑃𝑁) ≠ 0 ∧ (#‘𝑋) ∈ ℤ) → ((𝑃𝑁) ∥ (#‘𝑋) ↔ ((#‘𝑋) / (𝑃𝑁)) ∈ ℤ))
747, 72, 34, 73syl3anc 1323 . . . . . 6 (𝜑 → ((𝑃𝑁) ∥ (#‘𝑋) ↔ ((#‘𝑋) / (𝑃𝑁)) ∈ ℤ))
7513, 74mpbid 222 . . . . 5 (𝜑 → ((#‘𝑋) / (𝑃𝑁)) ∈ ℤ)
7627nnne0d 11009 . . . . . 6 (𝜑 → (#‘𝑋) ≠ 0)
7755, 59, 76, 72divne0d 10761 . . . . 5 (𝜑 → ((#‘𝑋) / (𝑃𝑁)) ≠ 0)
78 pcmul 15480 . . . . 5 ((𝑃 ∈ ℙ ∧ ((((#‘𝑋) − 1)C((𝑃𝑁) − 1)) ∈ ℤ ∧ (((#‘𝑋) − 1)C((𝑃𝑁) − 1)) ≠ 0) ∧ (((#‘𝑋) / (𝑃𝑁)) ∈ ℤ ∧ ((#‘𝑋) / (𝑃𝑁)) ≠ 0)) → (𝑃 pCnt ((((#‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((#‘𝑋) / (𝑃𝑁)))) = ((𝑃 pCnt (((#‘𝑋) − 1)C((𝑃𝑁) − 1))) + (𝑃 pCnt ((#‘𝑋) / (𝑃𝑁)))))
792, 70, 71, 75, 77, 78syl122anc 1332 . . . 4 (𝜑 → (𝑃 pCnt ((((#‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((#‘𝑋) / (𝑃𝑁)))) = ((𝑃 pCnt (((#‘𝑋) − 1)C((𝑃𝑁) − 1))) + (𝑃 pCnt ((#‘𝑋) / (𝑃𝑁)))))
80 1cnd 10000 . . . . . . . . 9 (𝜑 → 1 ∈ ℂ)
8155, 59, 80npncand 10360 . . . . . . . 8 (𝜑 → (((#‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1)) = ((#‘𝑋) − 1))
8281oveq1d 6619 . . . . . . 7 (𝜑 → ((((#‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1)) = (((#‘𝑋) − 1)C((𝑃𝑁) − 1)))
8382oveq2d 6620 . . . . . 6 (𝜑 → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1))) = (𝑃 pCnt (((#‘𝑋) − 1)C((𝑃𝑁) − 1))))
846nnred 10979 . . . . . . . 8 (𝜑 → (𝑃𝑁) ∈ ℝ)
8584ltm1d 10900 . . . . . . 7 (𝜑 → ((𝑃𝑁) − 1) < (𝑃𝑁))
86 nnm1nn0 11278 . . . . . . . . 9 ((𝑃𝑁) ∈ ℕ → ((𝑃𝑁) − 1) ∈ ℕ0)
876, 86syl 17 . . . . . . . 8 (𝜑 → ((𝑃𝑁) − 1) ∈ ℕ0)
88 breq1 4616 . . . . . . . . . . 11 (𝑥 = 0 → (𝑥 < (𝑃𝑁) ↔ 0 < (𝑃𝑁)))
89 bcxmaslem1 14491 . . . . . . . . . . . . 13 (𝑥 = 0 → ((((#‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥) = ((((#‘𝑋) − (𝑃𝑁)) + 0)C0))
9089oveq2d 6620 . . . . . . . . . . . 12 (𝑥 = 0 → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 0)C0)))
9190eqeq1d 2623 . . . . . . . . . . 11 (𝑥 = 0 → ((𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0 ↔ (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 0)C0)) = 0))
9288, 91imbi12d 334 . . . . . . . . . 10 (𝑥 = 0 → ((𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0) ↔ (0 < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 0)C0)) = 0)))
9392imbi2d 330 . . . . . . . . 9 (𝑥 = 0 → ((𝜑 → (𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0)) ↔ (𝜑 → (0 < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 0)C0)) = 0))))
94 breq1 4616 . . . . . . . . . . 11 (𝑥 = 𝑛 → (𝑥 < (𝑃𝑁) ↔ 𝑛 < (𝑃𝑁)))
95 bcxmaslem1 14491 . . . . . . . . . . . . 13 (𝑥 = 𝑛 → ((((#‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥) = ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛))
9695oveq2d 6620 . . . . . . . . . . . 12 (𝑥 = 𝑛 → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)))
9796eqeq1d 2623 . . . . . . . . . . 11 (𝑥 = 𝑛 → ((𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0 ↔ (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0))
9894, 97imbi12d 334 . . . . . . . . . 10 (𝑥 = 𝑛 → ((𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0) ↔ (𝑛 < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0)))
9998imbi2d 330 . . . . . . . . 9 (𝑥 = 𝑛 → ((𝜑 → (𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0)) ↔ (𝜑 → (𝑛 < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0))))
100 breq1 4616 . . . . . . . . . . 11 (𝑥 = (𝑛 + 1) → (𝑥 < (𝑃𝑁) ↔ (𝑛 + 1) < (𝑃𝑁)))
101 bcxmaslem1 14491 . . . . . . . . . . . . 13 (𝑥 = (𝑛 + 1) → ((((#‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥) = ((((#‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1)))
102101oveq2d 6620 . . . . . . . . . . . 12 (𝑥 = (𝑛 + 1) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))))
103102eqeq1d 2623 . . . . . . . . . . 11 (𝑥 = (𝑛 + 1) → ((𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0 ↔ (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = 0))
104100, 103imbi12d 334 . . . . . . . . . 10 (𝑥 = (𝑛 + 1) → ((𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0) ↔ ((𝑛 + 1) < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = 0)))
105104imbi2d 330 . . . . . . . . 9 (𝑥 = (𝑛 + 1) → ((𝜑 → (𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0)) ↔ (𝜑 → ((𝑛 + 1) < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = 0))))
106 breq1 4616 . . . . . . . . . . 11 (𝑥 = ((𝑃𝑁) − 1) → (𝑥 < (𝑃𝑁) ↔ ((𝑃𝑁) − 1) < (𝑃𝑁)))
107 bcxmaslem1 14491 . . . . . . . . . . . . 13 (𝑥 = ((𝑃𝑁) − 1) → ((((#‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥) = ((((#‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1)))
108107oveq2d 6620 . . . . . . . . . . . 12 (𝑥 = ((𝑃𝑁) − 1) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1))))
109108eqeq1d 2623 . . . . . . . . . . 11 (𝑥 = ((𝑃𝑁) − 1) → ((𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0 ↔ (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1))) = 0))
110106, 109imbi12d 334 . . . . . . . . . 10 (𝑥 = ((𝑃𝑁) − 1) → ((𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0) ↔ (((𝑃𝑁) − 1) < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1))) = 0)))
111110imbi2d 330 . . . . . . . . 9 (𝑥 = ((𝑃𝑁) − 1) → ((𝜑 → (𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0)) ↔ (𝜑 → (((𝑃𝑁) − 1) < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1))) = 0))))
112 znn0sub 11368 . . . . . . . . . . . . . . . 16 (((𝑃𝑁) ∈ ℤ ∧ (#‘𝑋) ∈ ℤ) → ((𝑃𝑁) ≤ (#‘𝑋) ↔ ((#‘𝑋) − (𝑃𝑁)) ∈ ℕ0))
1137, 34, 112syl2anc 692 . . . . . . . . . . . . . . 15 (𝜑 → ((𝑃𝑁) ≤ (#‘𝑋) ↔ ((#‘𝑋) − (𝑃𝑁)) ∈ ℕ0))
11430, 113mpbid 222 . . . . . . . . . . . . . 14 (𝜑 → ((#‘𝑋) − (𝑃𝑁)) ∈ ℕ0)
115 0nn0 11251 . . . . . . . . . . . . . 14 0 ∈ ℕ0
116 nn0addcl 11272 . . . . . . . . . . . . . 14 ((((#‘𝑋) − (𝑃𝑁)) ∈ ℕ0 ∧ 0 ∈ ℕ0) → (((#‘𝑋) − (𝑃𝑁)) + 0) ∈ ℕ0)
117114, 115, 116sylancl 693 . . . . . . . . . . . . 13 (𝜑 → (((#‘𝑋) − (𝑃𝑁)) + 0) ∈ ℕ0)
118 bcn0 13037 . . . . . . . . . . . . 13 ((((#‘𝑋) − (𝑃𝑁)) + 0) ∈ ℕ0 → ((((#‘𝑋) − (𝑃𝑁)) + 0)C0) = 1)
119117, 118syl 17 . . . . . . . . . . . 12 (𝜑 → ((((#‘𝑋) − (𝑃𝑁)) + 0)C0) = 1)
120119oveq2d 6620 . . . . . . . . . . 11 (𝜑 → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 0)C0)) = (𝑃 pCnt 1))
121 pc1 15484 . . . . . . . . . . . 12 (𝑃 ∈ ℙ → (𝑃 pCnt 1) = 0)
1222, 121syl 17 . . . . . . . . . . 11 (𝜑 → (𝑃 pCnt 1) = 0)
123120, 122eqtrd 2655 . . . . . . . . . 10 (𝜑 → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 0)C0)) = 0)
124123a1d 25 . . . . . . . . 9 (𝜑 → (0 < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 0)C0)) = 0))
125 nn0re 11245 . . . . . . . . . . . . . . . 16 (𝑛 ∈ ℕ0𝑛 ∈ ℝ)
126125ad2antrl 763 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 ∈ ℝ)
127 nn0p1nn 11276 . . . . . . . . . . . . . . . . 17 (𝑛 ∈ ℕ0 → (𝑛 + 1) ∈ ℕ)
128127ad2antrl 763 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑛 + 1) ∈ ℕ)
129128nnred 10979 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑛 + 1) ∈ ℝ)
1306adantr 481 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃𝑁) ∈ ℕ)
131130nnred 10979 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃𝑁) ∈ ℝ)
132126ltp1d 10898 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 < (𝑛 + 1))
133 simprr 795 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑛 + 1) < (𝑃𝑁))
134126, 129, 131, 132, 133lttrd 10142 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 < (𝑃𝑁))
135134expr 642 . . . . . . . . . . . . 13 ((𝜑𝑛 ∈ ℕ0) → ((𝑛 + 1) < (𝑃𝑁) → 𝑛 < (𝑃𝑁)))
136135imim1d 82 . . . . . . . . . . . 12 ((𝜑𝑛 ∈ ℕ0) → ((𝑛 < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0) → ((𝑛 + 1) < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0)))
137 oveq1 6611 . . . . . . . . . . . . . . 15 ((𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0 → ((𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) + (𝑃 pCnt (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))) = (0 + (𝑃 pCnt (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))))
138114adantr 481 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((#‘𝑋) − (𝑃𝑁)) ∈ ℕ0)
139138nn0cnd 11297 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((#‘𝑋) − (𝑃𝑁)) ∈ ℂ)
140 nn0cn 11246 . . . . . . . . . . . . . . . . . . . . . 22 (𝑛 ∈ ℕ0𝑛 ∈ ℂ)
141140ad2antrl 763 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 ∈ ℂ)
142 1cnd 10000 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 1 ∈ ℂ)
143139, 141, 142addassd 10006 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) = (((#‘𝑋) − (𝑃𝑁)) + (𝑛 + 1)))
144143oveq1d 6619 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)C(𝑛 + 1)) = ((((#‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1)))
145 nn0addge2 11284 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑛 ∈ ℝ ∧ ((#‘𝑋) − (𝑃𝑁)) ∈ ℕ0) → 𝑛 ≤ (((#‘𝑋) − (𝑃𝑁)) + 𝑛))
146126, 138, 145syl2anc 692 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 ≤ (((#‘𝑋) − (𝑃𝑁)) + 𝑛))
147 simprl 793 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 ∈ ℕ0)
148147, 32syl6eleq 2708 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 ∈ (ℤ‘0))
149138, 147nn0addcld 11299 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((#‘𝑋) − (𝑃𝑁)) + 𝑛) ∈ ℕ0)
150149nn0zd 11424 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((#‘𝑋) − (𝑃𝑁)) + 𝑛) ∈ ℤ)
151 elfz5 12276 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑛 ∈ (ℤ‘0) ∧ (((#‘𝑋) − (𝑃𝑁)) + 𝑛) ∈ ℤ) → (𝑛 ∈ (0...(((#‘𝑋) − (𝑃𝑁)) + 𝑛)) ↔ 𝑛 ≤ (((#‘𝑋) − (𝑃𝑁)) + 𝑛)))
152148, 150, 151syl2anc 692 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑛 ∈ (0...(((#‘𝑋) − (𝑃𝑁)) + 𝑛)) ↔ 𝑛 ≤ (((#‘𝑋) − (𝑃𝑁)) + 𝑛)))
153146, 152mpbird 247 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 ∈ (0...(((#‘𝑋) − (𝑃𝑁)) + 𝑛)))
154 bcp1nk 13044 . . . . . . . . . . . . . . . . . . . 20 (𝑛 ∈ (0...(((#‘𝑋) − (𝑃𝑁)) + 𝑛)) → (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)C(𝑛 + 1)) = (((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) · (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1))))
155153, 154syl 17 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)C(𝑛 + 1)) = (((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) · (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1))))
156144, 155eqtr3d 2657 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((#‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1)) = (((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) · (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1))))
157156oveq2d 6620 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = (𝑃 pCnt (((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) · (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))))
1582adantr 481 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑃 ∈ ℙ)
159 bccl2 13050 . . . . . . . . . . . . . . . . . . . 20 (𝑛 ∈ (0...(((#‘𝑋) − (𝑃𝑁)) + 𝑛)) → ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ∈ ℕ)
160153, 159syl 17 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ∈ ℕ)
161 nnq 11745 . . . . . . . . . . . . . . . . . . 19 (((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ∈ ℕ → ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ∈ ℚ)
162160, 161syl 17 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ∈ ℚ)
163160nnne0d 11009 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ≠ 0)
164150peano2zd 11429 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℤ)
165 znq 11736 . . . . . . . . . . . . . . . . . . 19 ((((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℤ ∧ (𝑛 + 1) ∈ ℕ) → (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ∈ ℚ)
166164, 128, 165syl2anc 692 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ∈ ℚ)
167 nn0p1nn 11276 . . . . . . . . . . . . . . . . . . . . 21 ((((#‘𝑋) − (𝑃𝑁)) + 𝑛) ∈ ℕ0 → ((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℕ)
168149, 167syl 17 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℕ)
169 nnrp 11786 . . . . . . . . . . . . . . . . . . . . 21 (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℕ → ((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℝ+)
170 nnrp 11786 . . . . . . . . . . . . . . . . . . . . 21 ((𝑛 + 1) ∈ ℕ → (𝑛 + 1) ∈ ℝ+)
171 rpdivcl 11800 . . . . . . . . . . . . . . . . . . . . 21 ((((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℝ+ ∧ (𝑛 + 1) ∈ ℝ+) → (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ∈ ℝ+)
172169, 170, 171syl2an 494 . . . . . . . . . . . . . . . . . . . 20 ((((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℕ ∧ (𝑛 + 1) ∈ ℕ) → (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ∈ ℝ+)
173168, 128, 172syl2anc 692 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ∈ ℝ+)
174173rpne0d 11821 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ≠ 0)
175 pcqmul 15482 . . . . . . . . . . . . . . . . . 18 ((𝑃 ∈ ℙ ∧ (((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ∈ ℚ ∧ ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ≠ 0) ∧ ((((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ∈ ℚ ∧ (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ≠ 0)) → (𝑃 pCnt (((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) · (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))) = ((𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) + (𝑃 pCnt (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))))
176158, 162, 163, 166, 174, 175syl122anc 1332 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) · (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))) = ((𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) + (𝑃 pCnt (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))))
177157, 176eqtrd 2655 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = ((𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) + (𝑃 pCnt (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))))
178168nnne0d 11009 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ≠ 0)
179 pcdiv 15481 . . . . . . . . . . . . . . . . . . . 20 ((𝑃 ∈ ℙ ∧ (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℤ ∧ ((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ≠ 0) ∧ (𝑛 + 1) ∈ ℕ) → (𝑃 pCnt (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1))) = ((𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)) − (𝑃 pCnt (𝑛 + 1))))
180158, 164, 178, 128, 179syl121anc 1328 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1))) = ((𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)) − (𝑃 pCnt (𝑛 + 1))))
181128nncnd 10980 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑛 + 1) ∈ ℂ)
182139, 181addcomd 10182 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((#‘𝑋) − (𝑃𝑁)) + (𝑛 + 1)) = ((𝑛 + 1) + ((#‘𝑋) − (𝑃𝑁))))
183143, 182eqtrd 2655 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) = ((𝑛 + 1) + ((#‘𝑋) − (𝑃𝑁))))
184183oveq2d 6620 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)) = (𝑃 pCnt ((𝑛 + 1) + ((#‘𝑋) − (𝑃𝑁)))))
185 simpr 477 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) = 0) → ((#‘𝑋) − (𝑃𝑁)) = 0)
186185oveq2d 6620 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) = 0) → ((𝑛 + 1) + ((#‘𝑋) − (𝑃𝑁))) = ((𝑛 + 1) + 0))
187181addid1d 10180 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((𝑛 + 1) + 0) = (𝑛 + 1))
188187adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) = 0) → ((𝑛 + 1) + 0) = (𝑛 + 1))
189186, 188eqtr2d 2656 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) = 0) → (𝑛 + 1) = ((𝑛 + 1) + ((#‘𝑋) − (𝑃𝑁))))
190189oveq2d 6620 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) = 0) → (𝑃 pCnt (𝑛 + 1)) = (𝑃 pCnt ((𝑛 + 1) + ((#‘𝑋) − (𝑃𝑁)))))
1912ad2antrr 761 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) ≠ 0) → 𝑃 ∈ ℙ)
192 nnq 11745 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑛 + 1) ∈ ℕ → (𝑛 + 1) ∈ ℚ)
193128, 192syl 17 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑛 + 1) ∈ ℚ)
194193adantr 481 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑛 + 1) ∈ ℚ)
195138nn0zd 11424 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((#‘𝑋) − (𝑃𝑁)) ∈ ℤ)
196 zq 11738 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((#‘𝑋) − (𝑃𝑁)) ∈ ℤ → ((#‘𝑋) − (𝑃𝑁)) ∈ ℚ)
197195, 196syl 17 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((#‘𝑋) − (𝑃𝑁)) ∈ ℚ)
198197adantr 481 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) ≠ 0) → ((#‘𝑋) − (𝑃𝑁)) ∈ ℚ)
199158, 128pccld 15479 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (𝑛 + 1)) ∈ ℕ0)
200199nn0red 11296 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (𝑛 + 1)) ∈ ℝ)
201200adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑃 pCnt (𝑛 + 1)) ∈ ℝ)
2025adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑁 ∈ ℕ0)
203202nn0red 11296 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑁 ∈ ℝ)
204203adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) ≠ 0) → 𝑁 ∈ ℝ)
205 simpr 477 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) ≠ 0) → ((#‘𝑋) − (𝑃𝑁)) ≠ 0)
206205neneqd 2795 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) ≠ 0) → ¬ ((#‘𝑋) − (𝑃𝑁)) = 0)
207114ad2antrr 761 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) ≠ 0) → ((#‘𝑋) − (𝑃𝑁)) ∈ ℕ0)
208 elnn0 11238 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((#‘𝑋) − (𝑃𝑁)) ∈ ℕ0 ↔ (((#‘𝑋) − (𝑃𝑁)) ∈ ℕ ∨ ((#‘𝑋) − (𝑃𝑁)) = 0))
209207, 208sylib 208 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) ≠ 0) → (((#‘𝑋) − (𝑃𝑁)) ∈ ℕ ∨ ((#‘𝑋) − (𝑃𝑁)) = 0))
210209ord 392 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) ≠ 0) → (¬ ((#‘𝑋) − (𝑃𝑁)) ∈ ℕ → ((#‘𝑋) − (𝑃𝑁)) = 0))
211206, 210mt3d 140 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) ≠ 0) → ((#‘𝑋) − (𝑃𝑁)) ∈ ℕ)
212191, 211pccld 15479 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑃 pCnt ((#‘𝑋) − (𝑃𝑁))) ∈ ℕ0)
213212nn0red 11296 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑃 pCnt ((#‘𝑋) − (𝑃𝑁))) ∈ ℝ)
214128nnzd 11425 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑛 + 1) ∈ ℤ)
215 pcdvdsb 15497 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝑃 ∈ ℙ ∧ (𝑛 + 1) ∈ ℤ ∧ 𝑁 ∈ ℕ0) → (𝑁 ≤ (𝑃 pCnt (𝑛 + 1)) ↔ (𝑃𝑁) ∥ (𝑛 + 1)))
216158, 214, 202, 215syl3anc 1323 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑁 ≤ (𝑃 pCnt (𝑛 + 1)) ↔ (𝑃𝑁) ∥ (𝑛 + 1)))
2177adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃𝑁) ∈ ℤ)
218 dvdsle 14956 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝑃𝑁) ∈ ℤ ∧ (𝑛 + 1) ∈ ℕ) → ((𝑃𝑁) ∥ (𝑛 + 1) → (𝑃𝑁) ≤ (𝑛 + 1)))
219217, 128, 218syl2anc 692 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((𝑃𝑁) ∥ (𝑛 + 1) → (𝑃𝑁) ≤ (𝑛 + 1)))
220216, 219sylbid 230 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑁 ≤ (𝑃 pCnt (𝑛 + 1)) → (𝑃𝑁) ≤ (𝑛 + 1)))
221203, 200lenltd 10127 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑁 ≤ (𝑃 pCnt (𝑛 + 1)) ↔ ¬ (𝑃 pCnt (𝑛 + 1)) < 𝑁))
222131, 129lenltd 10127 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((𝑃𝑁) ≤ (𝑛 + 1) ↔ ¬ (𝑛 + 1) < (𝑃𝑁)))
223220, 221, 2223imtr3d 282 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (¬ (𝑃 pCnt (𝑛 + 1)) < 𝑁 → ¬ (𝑛 + 1) < (𝑃𝑁)))
224133, 223mt4d 152 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (𝑛 + 1)) < 𝑁)
225224adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑃 pCnt (𝑛 + 1)) < 𝑁)
226 dvdssubr 14951 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 (((𝑃𝑁) ∈ ℤ ∧ (#‘𝑋) ∈ ℤ) → ((𝑃𝑁) ∥ (#‘𝑋) ↔ (𝑃𝑁) ∥ ((#‘𝑋) − (𝑃𝑁))))
2277, 34, 226syl2anc 692 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 (𝜑 → ((𝑃𝑁) ∥ (#‘𝑋) ↔ (𝑃𝑁) ∥ ((#‘𝑋) − (𝑃𝑁))))
22813, 227mpbid 222 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝜑 → (𝑃𝑁) ∥ ((#‘𝑋) − (𝑃𝑁)))
229228ad2antrr 761 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑃𝑁) ∥ ((#‘𝑋) − (𝑃𝑁)))
230207nn0zd 11424 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) ≠ 0) → ((#‘𝑋) − (𝑃𝑁)) ∈ ℤ)
2315ad2antrr 761 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) ≠ 0) → 𝑁 ∈ ℕ0)
232 pcdvdsb 15497 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝑃 ∈ ℙ ∧ ((#‘𝑋) − (𝑃𝑁)) ∈ ℤ ∧ 𝑁 ∈ ℕ0) → (𝑁 ≤ (𝑃 pCnt ((#‘𝑋) − (𝑃𝑁))) ↔ (𝑃𝑁) ∥ ((#‘𝑋) − (𝑃𝑁))))
233191, 230, 231, 232syl3anc 1323 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑁 ≤ (𝑃 pCnt ((#‘𝑋) − (𝑃𝑁))) ↔ (𝑃𝑁) ∥ ((#‘𝑋) − (𝑃𝑁))))
234229, 233mpbird 247 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) ≠ 0) → 𝑁 ≤ (𝑃 pCnt ((#‘𝑋) − (𝑃𝑁))))
235201, 204, 213, 225, 234ltletrd 10141 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑃 pCnt (𝑛 + 1)) < (𝑃 pCnt ((#‘𝑋) − (𝑃𝑁))))
236191, 194, 198, 235pcadd2 15518 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((#‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑃 pCnt (𝑛 + 1)) = (𝑃 pCnt ((𝑛 + 1) + ((#‘𝑋) − (𝑃𝑁)))))
237190, 236pm2.61dane 2877 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (𝑛 + 1)) = (𝑃 pCnt ((𝑛 + 1) + ((#‘𝑋) − (𝑃𝑁)))))
238184, 237eqtr4d 2658 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)) = (𝑃 pCnt (𝑛 + 1)))
239199nn0cnd 11297 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (𝑛 + 1)) ∈ ℂ)
240238, 239eqeltrd 2698 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)) ∈ ℂ)
241240, 238subeq0bd 10400 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)) − (𝑃 pCnt (𝑛 + 1))) = 0)
242180, 241eqtrd 2655 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1))) = 0)
243242oveq2d 6620 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (0 + (𝑃 pCnt (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))) = (0 + 0))
244 00id 10155 . . . . . . . . . . . . . . . . 17 (0 + 0) = 0
245243, 244syl6req 2672 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 0 = (0 + (𝑃 pCnt (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))))
246177, 245eqeq12d 2636 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = 0 ↔ ((𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) + (𝑃 pCnt (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))) = (0 + (𝑃 pCnt (((((#‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1))))))
247137, 246syl5ibr 236 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0 → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = 0))
248247expr 642 . . . . . . . . . . . . 13 ((𝜑𝑛 ∈ ℕ0) → ((𝑛 + 1) < (𝑃𝑁) → ((𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0 → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = 0)))
249248a2d 29 . . . . . . . . . . . 12 ((𝜑𝑛 ∈ ℕ0) → (((𝑛 + 1) < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0) → ((𝑛 + 1) < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = 0)))
250136, 249syld 47 . . . . . . . . . . 11 ((𝜑𝑛 ∈ ℕ0) → ((𝑛 < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0) → ((𝑛 + 1) < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = 0)))
251250expcom 451 . . . . . . . . . 10 (𝑛 ∈ ℕ0 → (𝜑 → ((𝑛 < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0) → ((𝑛 + 1) < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = 0))))
252251a2d 29 . . . . . . . . 9 (𝑛 ∈ ℕ0 → ((𝜑 → (𝑛 < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0)) → (𝜑 → ((𝑛 + 1) < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = 0))))
25393, 99, 105, 111, 124, 252nn0ind 11416 . . . . . . . 8 (((𝑃𝑁) − 1) ∈ ℕ0 → (𝜑 → (((𝑃𝑁) − 1) < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1))) = 0)))
25487, 253mpcom 38 . . . . . . 7 (𝜑 → (((𝑃𝑁) − 1) < (𝑃𝑁) → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1))) = 0))
25585, 254mpd 15 . . . . . 6 (𝜑 → (𝑃 pCnt ((((#‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1))) = 0)
25683, 255eqtr3d 2657 . . . . 5 (𝜑 → (𝑃 pCnt (((#‘𝑋) − 1)C((𝑃𝑁) − 1))) = 0)
257 pcdiv 15481 . . . . . . 7 ((𝑃 ∈ ℙ ∧ ((#‘𝑋) ∈ ℤ ∧ (#‘𝑋) ≠ 0) ∧ (𝑃𝑁) ∈ ℕ) → (𝑃 pCnt ((#‘𝑋) / (𝑃𝑁))) = ((𝑃 pCnt (#‘𝑋)) − (𝑃 pCnt (𝑃𝑁))))
2582, 34, 76, 6, 257syl121anc 1328 . . . . . 6 (𝜑 → (𝑃 pCnt ((#‘𝑋) / (𝑃𝑁))) = ((𝑃 pCnt (#‘𝑋)) − (𝑃 pCnt (𝑃𝑁))))
2595nn0zd 11424 . . . . . . . 8 (𝜑𝑁 ∈ ℤ)
260 pcid 15501 . . . . . . . 8 ((𝑃 ∈ ℙ ∧ 𝑁 ∈ ℤ) → (𝑃 pCnt (𝑃𝑁)) = 𝑁)
2612, 259, 260syl2anc 692 . . . . . . 7 (𝜑 → (𝑃 pCnt (𝑃𝑁)) = 𝑁)
262261oveq2d 6620 . . . . . 6 (𝜑 → ((𝑃 pCnt (#‘𝑋)) − (𝑃 pCnt (𝑃𝑁))) = ((𝑃 pCnt (#‘𝑋)) − 𝑁))
263258, 262eqtrd 2655 . . . . 5 (𝜑 → (𝑃 pCnt ((#‘𝑋) / (𝑃𝑁))) = ((𝑃 pCnt (#‘𝑋)) − 𝑁))
264256, 263oveq12d 6622 . . . 4 (𝜑 → ((𝑃 pCnt (((#‘𝑋) − 1)C((𝑃𝑁) − 1))) + (𝑃 pCnt ((#‘𝑋) / (𝑃𝑁)))) = (0 + ((𝑃 pCnt (#‘𝑋)) − 𝑁)))
2652, 27pccld 15479 . . . . . . . 8 (𝜑 → (𝑃 pCnt (#‘𝑋)) ∈ ℕ0)
266265nn0zd 11424 . . . . . . 7 (𝜑 → (𝑃 pCnt (#‘𝑋)) ∈ ℤ)
267266, 259zsubcld 11431 . . . . . 6 (𝜑 → ((𝑃 pCnt (#‘𝑋)) − 𝑁) ∈ ℤ)
268267zcnd 11427 . . . . 5 (𝜑 → ((𝑃 pCnt (#‘𝑋)) − 𝑁) ∈ ℂ)
269268addid2d 10181 . . . 4 (𝜑 → (0 + ((𝑃 pCnt (#‘𝑋)) − 𝑁)) = ((𝑃 pCnt (#‘𝑋)) − 𝑁))
27079, 264, 2693eqtrd 2659 . . 3 (𝜑 → (𝑃 pCnt ((((#‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((#‘𝑋) / (𝑃𝑁)))) = ((𝑃 pCnt (#‘𝑋)) − 𝑁))
27166, 67, 2703eqtr3d 2663 . 2 (𝜑 → (𝑃 pCnt (#‘𝑆)) = ((𝑃 pCnt (#‘𝑋)) − 𝑁))
27240, 271jca 554 1 (𝜑 → ((#‘𝑆) ∈ ℕ ∧ (𝑃 pCnt (#‘𝑆)) = ((𝑃 pCnt (#‘𝑋)) − 𝑁)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 196  wo 383  wa 384   = wceq 1480  wcel 1987  wne 2790  {crab 2911  c0 3891  𝒫 cpw 4130   class class class wbr 4613  cfv 5847  (class class class)co 6604  Fincfn 7899  cc 9878  cr 9879  0cc0 9880  1c1 9881   + caddc 9883   · cmul 9885   < clt 10018  cle 10019  cmin 10210   / cdiv 10628  cn 10964  0cn0 11236  cz 11321  cuz 11631  cq 11732  +crp 11776  ...cfz 12268  cexp 12800  Ccbc 13029  #chash 13057  cdvds 14907  cprime 15309   pCnt cpc 15465  Basecbs 15781  +gcplusg 15862  Grpcgrp 17343
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-rep 4731  ax-sep 4741  ax-nul 4749  ax-pow 4803  ax-pr 4867  ax-un 6902  ax-cnex 9936  ax-resscn 9937  ax-1cn 9938  ax-icn 9939  ax-addcl 9940  ax-addrcl 9941  ax-mulcl 9942  ax-mulrcl 9943  ax-mulcom 9944  ax-addass 9945  ax-mulass 9946  ax-distr 9947  ax-i2m1 9948  ax-1ne0 9949  ax-1rid 9950  ax-rnegex 9951  ax-rrecex 9952  ax-cnre 9953  ax-pre-lttri 9954  ax-pre-lttrn 9955  ax-pre-ltadd 9956  ax-pre-mulgt0 9957  ax-pre-sup 9958
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-nel 2894  df-ral 2912  df-rex 2913  df-reu 2914  df-rmo 2915  df-rab 2916  df-v 3188  df-sbc 3418  df-csb 3515  df-dif 3558  df-un 3560  df-in 3562  df-ss 3569  df-pss 3571  df-nul 3892  df-if 4059  df-pw 4132  df-sn 4149  df-pr 4151  df-tp 4153  df-op 4155  df-uni 4403  df-int 4441  df-iun 4487  df-br 4614  df-opab 4674  df-mpt 4675  df-tr 4713  df-eprel 4985  df-id 4989  df-po 4995  df-so 4996  df-fr 5033  df-we 5035  df-xp 5080  df-rel 5081  df-cnv 5082  df-co 5083  df-dm 5084  df-rn 5085  df-res 5086  df-ima 5087  df-pred 5639  df-ord 5685  df-on 5686  df-lim 5687  df-suc 5688  df-iota 5810  df-fun 5849  df-fn 5850  df-f 5851  df-f1 5852  df-fo 5853  df-f1o 5854  df-fv 5855  df-riota 6565  df-ov 6607  df-oprab 6608  df-mpt2 6609  df-om 7013  df-1st 7113  df-2nd 7114  df-wrecs 7352  df-recs 7413  df-rdg 7451  df-1o 7505  df-2o 7506  df-oadd 7509  df-er 7687  df-map 7804  df-en 7900  df-dom 7901  df-sdom 7902  df-fin 7903  df-sup 8292  df-inf 8293  df-card 8709  df-cda 8934  df-pnf 10020  df-mnf 10021  df-xr 10022  df-ltxr 10023  df-le 10024  df-sub 10212  df-neg 10213  df-div 10629  df-nn 10965  df-2 11023  df-3 11024  df-n0 11237  df-z 11322  df-uz 11632  df-q 11733  df-rp 11777  df-fz 12269  df-fl 12533  df-mod 12609  df-seq 12742  df-exp 12801  df-fac 13001  df-bc 13030  df-hash 13058  df-cj 13773  df-re 13774  df-im 13775  df-sqrt 13909  df-abs 13910  df-dvds 14908  df-gcd 15141  df-prm 15310  df-pc 15466  df-0g 16023  df-mgm 17163  df-sgrp 17205  df-mnd 17216  df-grp 17346
This theorem is referenced by:  sylow1lem3  17936
  Copyright terms: Public domain W3C validator