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

Theorem sylow1lem1 19212
Description: Lemma for sylow1 19217. 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 16388 . . . . . . . 8 (𝑃 ∈ ℙ → 𝑃 ∈ ℕ)
42, 3syl 17 . . . . . . 7 (𝜑𝑃 ∈ ℕ)
5 sylow1.n . . . . . . 7 (𝜑𝑁 ∈ ℕ0)
64, 5nnexpcld 13969 . . . . . 6 (𝜑 → (𝑃𝑁) ∈ ℕ)
76nnzd 12434 . . . . 5 (𝜑 → (𝑃𝑁) ∈ ℤ)
8 hashbc 14174 . . . . 5 ((𝑋 ∈ Fin ∧ (𝑃𝑁) ∈ ℤ) → ((♯‘𝑋)C(𝑃𝑁)) = (♯‘{𝑠 ∈ 𝒫 𝑋 ∣ (♯‘𝑠) = (𝑃𝑁)}))
91, 7, 8syl2anc 584 . . . 4 (𝜑 → ((♯‘𝑋)C(𝑃𝑁)) = (♯‘{𝑠 ∈ 𝒫 𝑋 ∣ (♯‘𝑠) = (𝑃𝑁)}))
10 sylow1lem.s . . . . 5 𝑆 = {𝑠 ∈ 𝒫 𝑋 ∣ (♯‘𝑠) = (𝑃𝑁)}
1110fveq2i 6786 . . . 4 (♯‘𝑆) = (♯‘{𝑠 ∈ 𝒫 𝑋 ∣ (♯‘𝑠) = (𝑃𝑁)})
129, 11eqtr4di 2797 . . 3 (𝜑 → ((♯‘𝑋)C(𝑃𝑁)) = (♯‘𝑆))
13 sylow1.d . . . . . 6 (𝜑 → (𝑃𝑁) ∥ (♯‘𝑋))
14 sylow1.g . . . . . . . . . 10 (𝜑𝐺 ∈ Grp)
15 sylow1.x . . . . . . . . . . 11 𝑋 = (Base‘𝐺)
1615grpbn0 18617 . . . . . . . . . 10 (𝐺 ∈ Grp → 𝑋 ≠ ∅)
1714, 16syl 17 . . . . . . . . 9 (𝜑𝑋 ≠ ∅)
18 hasheq0 14087 . . . . . . . . . . 11 (𝑋 ∈ Fin → ((♯‘𝑋) = 0 ↔ 𝑋 = ∅))
191, 18syl 17 . . . . . . . . . 10 (𝜑 → ((♯‘𝑋) = 0 ↔ 𝑋 = ∅))
2019necon3bbid 2982 . . . . . . . . 9 (𝜑 → (¬ (♯‘𝑋) = 0 ↔ 𝑋 ≠ ∅))
2117, 20mpbird 256 . . . . . . . 8 (𝜑 → ¬ (♯‘𝑋) = 0)
22 hashcl 14080 . . . . . . . . . . 11 (𝑋 ∈ Fin → (♯‘𝑋) ∈ ℕ0)
231, 22syl 17 . . . . . . . . . 10 (𝜑 → (♯‘𝑋) ∈ ℕ0)
24 elnn0 12244 . . . . . . . . . 10 ((♯‘𝑋) ∈ ℕ0 ↔ ((♯‘𝑋) ∈ ℕ ∨ (♯‘𝑋) = 0))
2523, 24sylib 217 . . . . . . . . 9 (𝜑 → ((♯‘𝑋) ∈ ℕ ∨ (♯‘𝑋) = 0))
2625ord 861 . . . . . . . 8 (𝜑 → (¬ (♯‘𝑋) ∈ ℕ → (♯‘𝑋) = 0))
2721, 26mt3d 148 . . . . . . 7 (𝜑 → (♯‘𝑋) ∈ ℕ)
28 dvdsle 16028 . . . . . . 7 (((𝑃𝑁) ∈ ℤ ∧ (♯‘𝑋) ∈ ℕ) → ((𝑃𝑁) ∥ (♯‘𝑋) → (𝑃𝑁) ≤ (♯‘𝑋)))
297, 27, 28syl2anc 584 . . . . . 6 (𝜑 → ((𝑃𝑁) ∥ (♯‘𝑋) → (𝑃𝑁) ≤ (♯‘𝑋)))
3013, 29mpd 15 . . . . 5 (𝜑 → (𝑃𝑁) ≤ (♯‘𝑋))
316nnnn0d 12302 . . . . . . 7 (𝜑 → (𝑃𝑁) ∈ ℕ0)
32 nn0uz 12629 . . . . . . 7 0 = (ℤ‘0)
3331, 32eleqtrdi 2850 . . . . . 6 (𝜑 → (𝑃𝑁) ∈ (ℤ‘0))
3423nn0zd 12433 . . . . . 6 (𝜑 → (♯‘𝑋) ∈ ℤ)
35 elfz5 13257 . . . . . 6 (((𝑃𝑁) ∈ (ℤ‘0) ∧ (♯‘𝑋) ∈ ℤ) → ((𝑃𝑁) ∈ (0...(♯‘𝑋)) ↔ (𝑃𝑁) ≤ (♯‘𝑋)))
3633, 34, 35syl2anc 584 . . . . 5 (𝜑 → ((𝑃𝑁) ∈ (0...(♯‘𝑋)) ↔ (𝑃𝑁) ≤ (♯‘𝑋)))
3730, 36mpbird 256 . . . 4 (𝜑 → (𝑃𝑁) ∈ (0...(♯‘𝑋)))
38 bccl2 14046 . . . 4 ((𝑃𝑁) ∈ (0...(♯‘𝑋)) → ((♯‘𝑋)C(𝑃𝑁)) ∈ ℕ)
3937, 38syl 17 . . 3 (𝜑 → ((♯‘𝑋)C(𝑃𝑁)) ∈ ℕ)
4012, 39eqeltrrd 2841 . 2 (𝜑 → (♯‘𝑆) ∈ ℕ)
41 nnuz 12630 . . . . . . . . . . 11 ℕ = (ℤ‘1)
426, 41eleqtrdi 2850 . . . . . . . . . 10 (𝜑 → (𝑃𝑁) ∈ (ℤ‘1))
43 elfz5 13257 . . . . . . . . . 10 (((𝑃𝑁) ∈ (ℤ‘1) ∧ (♯‘𝑋) ∈ ℤ) → ((𝑃𝑁) ∈ (1...(♯‘𝑋)) ↔ (𝑃𝑁) ≤ (♯‘𝑋)))
4442, 34, 43syl2anc 584 . . . . . . . . 9 (𝜑 → ((𝑃𝑁) ∈ (1...(♯‘𝑋)) ↔ (𝑃𝑁) ≤ (♯‘𝑋)))
4530, 44mpbird 256 . . . . . . . 8 (𝜑 → (𝑃𝑁) ∈ (1...(♯‘𝑋)))
46 1zzd 12360 . . . . . . . . 9 (𝜑 → 1 ∈ ℤ)
47 fzsubel 13301 . . . . . . . . 9 (((1 ∈ ℤ ∧ (♯‘𝑋) ∈ ℤ) ∧ ((𝑃𝑁) ∈ ℤ ∧ 1 ∈ ℤ)) → ((𝑃𝑁) ∈ (1...(♯‘𝑋)) ↔ ((𝑃𝑁) − 1) ∈ ((1 − 1)...((♯‘𝑋) − 1))))
4846, 34, 7, 46, 47syl22anc 836 . . . . . . . 8 (𝜑 → ((𝑃𝑁) ∈ (1...(♯‘𝑋)) ↔ ((𝑃𝑁) − 1) ∈ ((1 − 1)...((♯‘𝑋) − 1))))
4945, 48mpbid 231 . . . . . . 7 (𝜑 → ((𝑃𝑁) − 1) ∈ ((1 − 1)...((♯‘𝑋) − 1)))
50 1m1e0 12054 . . . . . . . 8 (1 − 1) = 0
5150oveq1i 7294 . . . . . . 7 ((1 − 1)...((♯‘𝑋) − 1)) = (0...((♯‘𝑋) − 1))
5249, 51eleqtrdi 2850 . . . . . 6 (𝜑 → ((𝑃𝑁) − 1) ∈ (0...((♯‘𝑋) − 1)))
53 bcp1nk 14040 . . . . . 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 12304 . . . . . . 7 (𝜑 → (♯‘𝑋) ∈ ℂ)
56 ax-1cn 10938 . . . . . . 7 1 ∈ ℂ
57 npcan 11239 . . . . . . 7 (((♯‘𝑋) ∈ ℂ ∧ 1 ∈ ℂ) → (((♯‘𝑋) − 1) + 1) = (♯‘𝑋))
5855, 56, 57sylancl 586 . . . . . 6 (𝜑 → (((♯‘𝑋) − 1) + 1) = (♯‘𝑋))
596nncnd 11998 . . . . . . 7 (𝜑 → (𝑃𝑁) ∈ ℂ)
60 npcan 11239 . . . . . . 7 (((𝑃𝑁) ∈ ℂ ∧ 1 ∈ ℂ) → (((𝑃𝑁) − 1) + 1) = (𝑃𝑁))
6159, 56, 60sylancl 586 . . . . . 6 (𝜑 → (((𝑃𝑁) − 1) + 1) = (𝑃𝑁))
6258, 61oveq12d 7302 . . . . 5 (𝜑 → ((((♯‘𝑋) − 1) + 1)C(((𝑃𝑁) − 1) + 1)) = ((♯‘𝑋)C(𝑃𝑁)))
6358, 61oveq12d 7302 . . . . . 6 (𝜑 → ((((♯‘𝑋) − 1) + 1) / (((𝑃𝑁) − 1) + 1)) = ((♯‘𝑋) / (𝑃𝑁)))
6463oveq2d 7300 . . . . 5 (𝜑 → ((((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((((♯‘𝑋) − 1) + 1) / (((𝑃𝑁) − 1) + 1))) = ((((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((♯‘𝑋) / (𝑃𝑁))))
6554, 62, 643eqtr3d 2787 . . . 4 (𝜑 → ((♯‘𝑋)C(𝑃𝑁)) = ((((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((♯‘𝑋) / (𝑃𝑁))))
6665oveq2d 7300 . . 3 (𝜑 → (𝑃 pCnt ((♯‘𝑋)C(𝑃𝑁))) = (𝑃 pCnt ((((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((♯‘𝑋) / (𝑃𝑁)))))
6712oveq2d 7300 . . 3 (𝜑 → (𝑃 pCnt ((♯‘𝑋)C(𝑃𝑁))) = (𝑃 pCnt (♯‘𝑆)))
68 bccl2 14046 . . . . . . 7 (((𝑃𝑁) − 1) ∈ (0...((♯‘𝑋) − 1)) → (((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) ∈ ℕ)
6952, 68syl 17 . . . . . 6 (𝜑 → (((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) ∈ ℕ)
7069nnzd 12434 . . . . 5 (𝜑 → (((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) ∈ ℤ)
7169nnne0d 12032 . . . . 5 (𝜑 → (((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) ≠ 0)
726nnne0d 12032 . . . . . . 7 (𝜑 → (𝑃𝑁) ≠ 0)
73 dvdsval2 15975 . . . . . . 7 (((𝑃𝑁) ∈ ℤ ∧ (𝑃𝑁) ≠ 0 ∧ (♯‘𝑋) ∈ ℤ) → ((𝑃𝑁) ∥ (♯‘𝑋) ↔ ((♯‘𝑋) / (𝑃𝑁)) ∈ ℤ))
747, 72, 34, 73syl3anc 1370 . . . . . 6 (𝜑 → ((𝑃𝑁) ∥ (♯‘𝑋) ↔ ((♯‘𝑋) / (𝑃𝑁)) ∈ ℤ))
7513, 74mpbid 231 . . . . 5 (𝜑 → ((♯‘𝑋) / (𝑃𝑁)) ∈ ℤ)
7627nnne0d 12032 . . . . . 6 (𝜑 → (♯‘𝑋) ≠ 0)
7755, 59, 76, 72divne0d 11776 . . . . 5 (𝜑 → ((♯‘𝑋) / (𝑃𝑁)) ≠ 0)
78 pcmul 16561 . . . . 5 ((𝑃 ∈ ℙ ∧ ((((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) ∈ ℤ ∧ (((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) ≠ 0) ∧ (((♯‘𝑋) / (𝑃𝑁)) ∈ ℤ ∧ ((♯‘𝑋) / (𝑃𝑁)) ≠ 0)) → (𝑃 pCnt ((((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((♯‘𝑋) / (𝑃𝑁)))) = ((𝑃 pCnt (((♯‘𝑋) − 1)C((𝑃𝑁) − 1))) + (𝑃 pCnt ((♯‘𝑋) / (𝑃𝑁)))))
792, 70, 71, 75, 77, 78syl122anc 1378 . . . 4 (𝜑 → (𝑃 pCnt ((((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((♯‘𝑋) / (𝑃𝑁)))) = ((𝑃 pCnt (((♯‘𝑋) − 1)C((𝑃𝑁) − 1))) + (𝑃 pCnt ((♯‘𝑋) / (𝑃𝑁)))))
80 1cnd 10979 . . . . . . . . 9 (𝜑 → 1 ∈ ℂ)
8155, 59, 80npncand 11365 . . . . . . . 8 (𝜑 → (((♯‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1)) = ((♯‘𝑋) − 1))
8281oveq1d 7299 . . . . . . 7 (𝜑 → ((((♯‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1)) = (((♯‘𝑋) − 1)C((𝑃𝑁) − 1)))
8382oveq2d 7300 . . . . . 6 (𝜑 → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1))) = (𝑃 pCnt (((♯‘𝑋) − 1)C((𝑃𝑁) − 1))))
846nnred 11997 . . . . . . . 8 (𝜑 → (𝑃𝑁) ∈ ℝ)
8584ltm1d 11916 . . . . . . 7 (𝜑 → ((𝑃𝑁) − 1) < (𝑃𝑁))
86 nnm1nn0 12283 . . . . . . . . 9 ((𝑃𝑁) ∈ ℕ → ((𝑃𝑁) − 1) ∈ ℕ0)
876, 86syl 17 . . . . . . . 8 (𝜑 → ((𝑃𝑁) − 1) ∈ ℕ0)
88 breq1 5078 . . . . . . . . . . 11 (𝑥 = 0 → (𝑥 < (𝑃𝑁) ↔ 0 < (𝑃𝑁)))
89 bcxmaslem1 15555 . . . . . . . . . . . . 13 (𝑥 = 0 → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥) = ((((♯‘𝑋) − (𝑃𝑁)) + 0)C0))
9089oveq2d 7300 . . . . . . . . . . . 12 (𝑥 = 0 → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 0)C0)))
9190eqeq1d 2741 . . . . . . . . . . 11 (𝑥 = 0 → ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0 ↔ (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 0)C0)) = 0))
9288, 91imbi12d 345 . . . . . . . . . 10 (𝑥 = 0 → ((𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0) ↔ (0 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 0)C0)) = 0)))
9392imbi2d 341 . . . . . . . . 9 (𝑥 = 0 → ((𝜑 → (𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0)) ↔ (𝜑 → (0 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 0)C0)) = 0))))
94 breq1 5078 . . . . . . . . . . 11 (𝑥 = 𝑛 → (𝑥 < (𝑃𝑁) ↔ 𝑛 < (𝑃𝑁)))
95 bcxmaslem1 15555 . . . . . . . . . . . . 13 (𝑥 = 𝑛 → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥) = ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛))
9695oveq2d 7300 . . . . . . . . . . . 12 (𝑥 = 𝑛 → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)))
9796eqeq1d 2741 . . . . . . . . . . 11 (𝑥 = 𝑛 → ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0 ↔ (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0))
9894, 97imbi12d 345 . . . . . . . . . 10 (𝑥 = 𝑛 → ((𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0) ↔ (𝑛 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0)))
9998imbi2d 341 . . . . . . . . 9 (𝑥 = 𝑛 → ((𝜑 → (𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0)) ↔ (𝜑 → (𝑛 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0))))
100 breq1 5078 . . . . . . . . . . 11 (𝑥 = (𝑛 + 1) → (𝑥 < (𝑃𝑁) ↔ (𝑛 + 1) < (𝑃𝑁)))
101 bcxmaslem1 15555 . . . . . . . . . . . . 13 (𝑥 = (𝑛 + 1) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥) = ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1)))
102101oveq2d 7300 . . . . . . . . . . . 12 (𝑥 = (𝑛 + 1) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))))
103102eqeq1d 2741 . . . . . . . . . . 11 (𝑥 = (𝑛 + 1) → ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0 ↔ (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = 0))
104100, 103imbi12d 345 . . . . . . . . . 10 (𝑥 = (𝑛 + 1) → ((𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0) ↔ ((𝑛 + 1) < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = 0)))
105104imbi2d 341 . . . . . . . . 9 (𝑥 = (𝑛 + 1) → ((𝜑 → (𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0)) ↔ (𝜑 → ((𝑛 + 1) < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = 0))))
106 breq1 5078 . . . . . . . . . . 11 (𝑥 = ((𝑃𝑁) − 1) → (𝑥 < (𝑃𝑁) ↔ ((𝑃𝑁) − 1) < (𝑃𝑁)))
107 bcxmaslem1 15555 . . . . . . . . . . . . 13 (𝑥 = ((𝑃𝑁) − 1) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥) = ((((♯‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1)))
108107oveq2d 7300 . . . . . . . . . . . 12 (𝑥 = ((𝑃𝑁) − 1) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1))))
109108eqeq1d 2741 . . . . . . . . . . 11 (𝑥 = ((𝑃𝑁) − 1) → ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0 ↔ (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1))) = 0))
110106, 109imbi12d 345 . . . . . . . . . 10 (𝑥 = ((𝑃𝑁) − 1) → ((𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0) ↔ (((𝑃𝑁) − 1) < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1))) = 0)))
111110imbi2d 341 . . . . . . . . 9 (𝑥 = ((𝑃𝑁) − 1) → ((𝜑 → (𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0)) ↔ (𝜑 → (((𝑃𝑁) − 1) < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1))) = 0))))
112 znn0sub 12376 . . . . . . . . . . . . . . . 16 (((𝑃𝑁) ∈ ℤ ∧ (♯‘𝑋) ∈ ℤ) → ((𝑃𝑁) ≤ (♯‘𝑋) ↔ ((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ0))
1137, 34, 112syl2anc 584 . . . . . . . . . . . . . . 15 (𝜑 → ((𝑃𝑁) ≤ (♯‘𝑋) ↔ ((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ0))
11430, 113mpbid 231 . . . . . . . . . . . . . 14 (𝜑 → ((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ0)
115 0nn0 12257 . . . . . . . . . . . . . 14 0 ∈ ℕ0
116 nn0addcl 12277 . . . . . . . . . . . . . 14 ((((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ0 ∧ 0 ∈ ℕ0) → (((♯‘𝑋) − (𝑃𝑁)) + 0) ∈ ℕ0)
117114, 115, 116sylancl 586 . . . . . . . . . . . . 13 (𝜑 → (((♯‘𝑋) − (𝑃𝑁)) + 0) ∈ ℕ0)
118 bcn0 14033 . . . . . . . . . . . . 13 ((((♯‘𝑋) − (𝑃𝑁)) + 0) ∈ ℕ0 → ((((♯‘𝑋) − (𝑃𝑁)) + 0)C0) = 1)
119117, 118syl 17 . . . . . . . . . . . 12 (𝜑 → ((((♯‘𝑋) − (𝑃𝑁)) + 0)C0) = 1)
120119oveq2d 7300 . . . . . . . . . . 11 (𝜑 → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 0)C0)) = (𝑃 pCnt 1))
121 pc1 16565 . . . . . . . . . . . 12 (𝑃 ∈ ℙ → (𝑃 pCnt 1) = 0)
1222, 121syl 17 . . . . . . . . . . 11 (𝜑 → (𝑃 pCnt 1) = 0)
123120, 122eqtrd 2779 . . . . . . . . . 10 (𝜑 → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 0)C0)) = 0)
124123a1d 25 . . . . . . . . 9 (𝜑 → (0 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 0)C0)) = 0))
125 nn0re 12251 . . . . . . . . . . . . . 14 (𝑛 ∈ ℕ0𝑛 ∈ ℝ)
126125ad2antrl 725 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 ∈ ℝ)
127 nn0p1nn 12281 . . . . . . . . . . . . . . 15 (𝑛 ∈ ℕ0 → (𝑛 + 1) ∈ ℕ)
128127ad2antrl 725 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑛 + 1) ∈ ℕ)
129128nnred 11997 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑛 + 1) ∈ ℝ)
1306adantr 481 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃𝑁) ∈ ℕ)
131130nnred 11997 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃𝑁) ∈ ℝ)
132126ltp1d 11914 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 < (𝑛 + 1))
133 simprr 770 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑛 + 1) < (𝑃𝑁))
134126, 129, 131, 132, 133lttrd 11145 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 < (𝑃𝑁))
135134expr 457 . . . . . . . . . . 11 ((𝜑𝑛 ∈ ℕ0) → ((𝑛 + 1) < (𝑃𝑁) → 𝑛 < (𝑃𝑁)))
136135imim1d 82 . . . . . . . . . 10 ((𝜑𝑛 ∈ ℕ0) → ((𝑛 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0) → ((𝑛 + 1) < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0)))
137 oveq1 7291 . . . . . . . . . . 11 ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0 → ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) + (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))) = (0 + (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))))
138114adantr 481 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ0)
139138nn0cnd 12304 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((♯‘𝑋) − (𝑃𝑁)) ∈ ℂ)
140 nn0cn 12252 . . . . . . . . . . . . . . . . . 18 (𝑛 ∈ ℕ0𝑛 ∈ ℂ)
141140ad2antrl 725 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 ∈ ℂ)
142 1cnd 10979 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 1 ∈ ℂ)
143139, 141, 142addassd 11006 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) = (((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1)))
144143oveq1d 7299 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)C(𝑛 + 1)) = ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1)))
145 nn0addge2 12289 . . . . . . . . . . . . . . . . . 18 ((𝑛 ∈ ℝ ∧ ((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ0) → 𝑛 ≤ (((♯‘𝑋) − (𝑃𝑁)) + 𝑛))
146126, 138, 145syl2anc 584 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 ≤ (((♯‘𝑋) − (𝑃𝑁)) + 𝑛))
147 simprl 768 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 ∈ ℕ0)
148147, 32eleqtrdi 2850 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 ∈ (ℤ‘0))
149138, 147nn0addcld 12306 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((♯‘𝑋) − (𝑃𝑁)) + 𝑛) ∈ ℕ0)
150149nn0zd 12433 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((♯‘𝑋) − (𝑃𝑁)) + 𝑛) ∈ ℤ)
151 elfz5 13257 . . . . . . . . . . . . . . . . . 18 ((𝑛 ∈ (ℤ‘0) ∧ (((♯‘𝑋) − (𝑃𝑁)) + 𝑛) ∈ ℤ) → (𝑛 ∈ (0...(((♯‘𝑋) − (𝑃𝑁)) + 𝑛)) ↔ 𝑛 ≤ (((♯‘𝑋) − (𝑃𝑁)) + 𝑛)))
152148, 150, 151syl2anc 584 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑛 ∈ (0...(((♯‘𝑋) − (𝑃𝑁)) + 𝑛)) ↔ 𝑛 ≤ (((♯‘𝑋) − (𝑃𝑁)) + 𝑛)))
153146, 152mpbird 256 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 ∈ (0...(((♯‘𝑋) − (𝑃𝑁)) + 𝑛)))
154 bcp1nk 14040 . . . . . . . . . . . . . . . 16 (𝑛 ∈ (0...(((♯‘𝑋) − (𝑃𝑁)) + 𝑛)) → (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)C(𝑛 + 1)) = (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) · (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1))))
155153, 154syl 17 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)C(𝑛 + 1)) = (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) · (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1))))
156144, 155eqtr3d 2781 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1)) = (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) · (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1))))
157156oveq2d 7300 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) · (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))))
1582adantr 481 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑃 ∈ ℙ)
159 bccl2 14046 . . . . . . . . . . . . . . . 16 (𝑛 ∈ (0...(((♯‘𝑋) − (𝑃𝑁)) + 𝑛)) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ∈ ℕ)
160153, 159syl 17 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ∈ ℕ)
161 nnq 12711 . . . . . . . . . . . . . . 15 (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ∈ ℕ → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ∈ ℚ)
162160, 161syl 17 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ∈ ℚ)
163160nnne0d 12032 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ≠ 0)
164150peano2zd 12438 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℤ)
165 znq 12701 . . . . . . . . . . . . . . 15 ((((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℤ ∧ (𝑛 + 1) ∈ ℕ) → (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ∈ ℚ)
166164, 128, 165syl2anc 584 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ∈ ℚ)
167 nn0p1nn 12281 . . . . . . . . . . . . . . . . 17 ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) ∈ ℕ0 → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℕ)
168149, 167syl 17 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℕ)
169 nnrp 12750 . . . . . . . . . . . . . . . . 17 (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℕ → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℝ+)
170 nnrp 12750 . . . . . . . . . . . . . . . . 17 ((𝑛 + 1) ∈ ℕ → (𝑛 + 1) ∈ ℝ+)
171 rpdivcl 12764 . . . . . . . . . . . . . . . . 17 ((((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℝ+ ∧ (𝑛 + 1) ∈ ℝ+) → (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ∈ ℝ+)
172169, 170, 171syl2an 596 . . . . . . . . . . . . . . . 16 ((((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℕ ∧ (𝑛 + 1) ∈ ℕ) → (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ∈ ℝ+)
173168, 128, 172syl2anc 584 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ∈ ℝ+)
174173rpne0d 12786 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ≠ 0)
175 pcqmul 16563 . . . . . . . . . . . . . 14 ((𝑃 ∈ ℙ ∧ (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ∈ ℚ ∧ ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ≠ 0) ∧ ((((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ∈ ℚ ∧ (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ≠ 0)) → (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) · (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))) = ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) + (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))))
176158, 162, 163, 166, 174, 175syl122anc 1378 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) · (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))) = ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) + (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))))
177157, 176eqtrd 2779 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) + (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))))
178168nnne0d 12032 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ≠ 0)
179 pcdiv 16562 . . . . . . . . . . . . . . . 16 ((𝑃 ∈ ℙ ∧ (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℤ ∧ ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ≠ 0) ∧ (𝑛 + 1) ∈ ℕ) → (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1))) = ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)) − (𝑃 pCnt (𝑛 + 1))))
180158, 164, 178, 128, 179syl121anc 1374 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1))) = ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)) − (𝑃 pCnt (𝑛 + 1))))
181128nncnd 11998 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑛 + 1) ∈ ℂ)
182139, 181, 143comraddd 11198 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) = ((𝑛 + 1) + ((♯‘𝑋) − (𝑃𝑁))))
183182oveq2d 7300 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)) = (𝑃 pCnt ((𝑛 + 1) + ((♯‘𝑋) − (𝑃𝑁)))))
184 simpr 485 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) = 0) → ((♯‘𝑋) − (𝑃𝑁)) = 0)
185184oveq2d 7300 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) = 0) → ((𝑛 + 1) + ((♯‘𝑋) − (𝑃𝑁))) = ((𝑛 + 1) + 0))
186181addid1d 11184 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((𝑛 + 1) + 0) = (𝑛 + 1))
187186adantr 481 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) = 0) → ((𝑛 + 1) + 0) = (𝑛 + 1))
188185, 187eqtr2d 2780 . . . . . . . . . . . . . . . . . . . 20 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) = 0) → (𝑛 + 1) = ((𝑛 + 1) + ((♯‘𝑋) − (𝑃𝑁))))
189188oveq2d 7300 . . . . . . . . . . . . . . . . . . 19 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) = 0) → (𝑃 pCnt (𝑛 + 1)) = (𝑃 pCnt ((𝑛 + 1) + ((♯‘𝑋) − (𝑃𝑁)))))
1902ad2antrr 723 . . . . . . . . . . . . . . . . . . . 20 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → 𝑃 ∈ ℙ)
191 nnq 12711 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑛 + 1) ∈ ℕ → (𝑛 + 1) ∈ ℚ)
192128, 191syl 17 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑛 + 1) ∈ ℚ)
193192adantr 481 . . . . . . . . . . . . . . . . . . . 20 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑛 + 1) ∈ ℚ)
194138nn0zd 12433 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((♯‘𝑋) − (𝑃𝑁)) ∈ ℤ)
195 zq 12703 . . . . . . . . . . . . . . . . . . . . . 22 (((♯‘𝑋) − (𝑃𝑁)) ∈ ℤ → ((♯‘𝑋) − (𝑃𝑁)) ∈ ℚ)
196194, 195syl 17 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((♯‘𝑋) − (𝑃𝑁)) ∈ ℚ)
197196adantr 481 . . . . . . . . . . . . . . . . . . . 20 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → ((♯‘𝑋) − (𝑃𝑁)) ∈ ℚ)
198158, 128pccld 16560 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (𝑛 + 1)) ∈ ℕ0)
199198nn0red 12303 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (𝑛 + 1)) ∈ ℝ)
200199adantr 481 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑃 pCnt (𝑛 + 1)) ∈ ℝ)
2015adantr 481 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑁 ∈ ℕ0)
202201nn0red 12303 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑁 ∈ ℝ)
203202adantr 481 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → 𝑁 ∈ ℝ)
204 simpr 485 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → ((♯‘𝑋) − (𝑃𝑁)) ≠ 0)
205204neneqd 2949 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → ¬ ((♯‘𝑋) − (𝑃𝑁)) = 0)
206114ad2antrr 723 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → ((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ0)
207 elnn0 12244 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ0 ↔ (((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ ∨ ((♯‘𝑋) − (𝑃𝑁)) = 0))
208206, 207sylib 217 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ ∨ ((♯‘𝑋) − (𝑃𝑁)) = 0))
209208ord 861 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (¬ ((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ → ((♯‘𝑋) − (𝑃𝑁)) = 0))
210205, 209mt3d 148 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → ((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ)
211190, 210pccld 16560 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑃 pCnt ((♯‘𝑋) − (𝑃𝑁))) ∈ ℕ0)
212211nn0red 12303 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑃 pCnt ((♯‘𝑋) − (𝑃𝑁))) ∈ ℝ)
213128nnzd 12434 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑛 + 1) ∈ ℤ)
214 pcdvdsb 16579 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑃 ∈ ℙ ∧ (𝑛 + 1) ∈ ℤ ∧ 𝑁 ∈ ℕ0) → (𝑁 ≤ (𝑃 pCnt (𝑛 + 1)) ↔ (𝑃𝑁) ∥ (𝑛 + 1)))
215158, 213, 201, 214syl3anc 1370 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑁 ≤ (𝑃 pCnt (𝑛 + 1)) ↔ (𝑃𝑁) ∥ (𝑛 + 1)))
2167adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃𝑁) ∈ ℤ)
217 dvdsle 16028 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑃𝑁) ∈ ℤ ∧ (𝑛 + 1) ∈ ℕ) → ((𝑃𝑁) ∥ (𝑛 + 1) → (𝑃𝑁) ≤ (𝑛 + 1)))
218216, 128, 217syl2anc 584 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((𝑃𝑁) ∥ (𝑛 + 1) → (𝑃𝑁) ≤ (𝑛 + 1)))
219215, 218sylbid 239 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑁 ≤ (𝑃 pCnt (𝑛 + 1)) → (𝑃𝑁) ≤ (𝑛 + 1)))
220202, 199lenltd 11130 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑁 ≤ (𝑃 pCnt (𝑛 + 1)) ↔ ¬ (𝑃 pCnt (𝑛 + 1)) < 𝑁))
221131, 129lenltd 11130 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((𝑃𝑁) ≤ (𝑛 + 1) ↔ ¬ (𝑛 + 1) < (𝑃𝑁)))
222219, 220, 2213imtr3d 293 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (¬ (𝑃 pCnt (𝑛 + 1)) < 𝑁 → ¬ (𝑛 + 1) < (𝑃𝑁)))
223133, 222mt4d 117 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (𝑛 + 1)) < 𝑁)
224223adantr 481 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑃 pCnt (𝑛 + 1)) < 𝑁)
225 dvdssubr 16023 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑃𝑁) ∈ ℤ ∧ (♯‘𝑋) ∈ ℤ) → ((𝑃𝑁) ∥ (♯‘𝑋) ↔ (𝑃𝑁) ∥ ((♯‘𝑋) − (𝑃𝑁))))
2267, 34, 225syl2anc 584 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑 → ((𝑃𝑁) ∥ (♯‘𝑋) ↔ (𝑃𝑁) ∥ ((♯‘𝑋) − (𝑃𝑁))))
22713, 226mpbid 231 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑 → (𝑃𝑁) ∥ ((♯‘𝑋) − (𝑃𝑁)))
228227ad2antrr 723 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑃𝑁) ∥ ((♯‘𝑋) − (𝑃𝑁)))
229206nn0zd 12433 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → ((♯‘𝑋) − (𝑃𝑁)) ∈ ℤ)
2305ad2antrr 723 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → 𝑁 ∈ ℕ0)
231 pcdvdsb 16579 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑃 ∈ ℙ ∧ ((♯‘𝑋) − (𝑃𝑁)) ∈ ℤ ∧ 𝑁 ∈ ℕ0) → (𝑁 ≤ (𝑃 pCnt ((♯‘𝑋) − (𝑃𝑁))) ↔ (𝑃𝑁) ∥ ((♯‘𝑋) − (𝑃𝑁))))
232190, 229, 230, 231syl3anc 1370 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑁 ≤ (𝑃 pCnt ((♯‘𝑋) − (𝑃𝑁))) ↔ (𝑃𝑁) ∥ ((♯‘𝑋) − (𝑃𝑁))))
233228, 232mpbird 256 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → 𝑁 ≤ (𝑃 pCnt ((♯‘𝑋) − (𝑃𝑁))))
234200, 203, 212, 224, 233ltletrd 11144 . . . . . . . . . . . . . . . . . . . 20 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑃 pCnt (𝑛 + 1)) < (𝑃 pCnt ((♯‘𝑋) − (𝑃𝑁))))
235190, 193, 197, 234pcadd2 16600 . . . . . . . . . . . . . . . . . . 19 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑃 pCnt (𝑛 + 1)) = (𝑃 pCnt ((𝑛 + 1) + ((♯‘𝑋) − (𝑃𝑁)))))
236189, 235pm2.61dane 3033 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (𝑛 + 1)) = (𝑃 pCnt ((𝑛 + 1) + ((♯‘𝑋) − (𝑃𝑁)))))
237183, 236eqtr4d 2782 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)) = (𝑃 pCnt (𝑛 + 1)))
238198nn0cnd 12304 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (𝑛 + 1)) ∈ ℂ)
239237, 238eqeltrd 2840 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)) ∈ ℂ)
240239, 237subeq0bd 11410 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)) − (𝑃 pCnt (𝑛 + 1))) = 0)
241180, 240eqtrd 2779 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1))) = 0)
242241oveq2d 7300 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (0 + (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))) = (0 + 0))
243 00id 11159 . . . . . . . . . . . . 13 (0 + 0) = 0
244242, 243eqtr2di 2796 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 0 = (0 + (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))))
245177, 244eqeq12d 2755 . . . . . . . . . . 11 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = 0 ↔ ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) + (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))) = (0 + (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1))))))
246137, 245syl5ibr 245 . . . . . . . . . 10 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0 → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = 0))
247136, 246animpimp2impd 843 . . . . . . . . 9 (𝑛 ∈ ℕ0 → ((𝜑 → (𝑛 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0)) → (𝜑 → ((𝑛 + 1) < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = 0))))
24893, 99, 105, 111, 124, 247nn0ind 12424 . . . . . . . 8 (((𝑃𝑁) − 1) ∈ ℕ0 → (𝜑 → (((𝑃𝑁) − 1) < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1))) = 0)))
24987, 248mpcom 38 . . . . . . 7 (𝜑 → (((𝑃𝑁) − 1) < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1))) = 0))
25085, 249mpd 15 . . . . . 6 (𝜑 → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1))) = 0)
25183, 250eqtr3d 2781 . . . . 5 (𝜑 → (𝑃 pCnt (((♯‘𝑋) − 1)C((𝑃𝑁) − 1))) = 0)
252 pcdiv 16562 . . . . . . 7 ((𝑃 ∈ ℙ ∧ ((♯‘𝑋) ∈ ℤ ∧ (♯‘𝑋) ≠ 0) ∧ (𝑃𝑁) ∈ ℕ) → (𝑃 pCnt ((♯‘𝑋) / (𝑃𝑁))) = ((𝑃 pCnt (♯‘𝑋)) − (𝑃 pCnt (𝑃𝑁))))
2532, 34, 76, 6, 252syl121anc 1374 . . . . . 6 (𝜑 → (𝑃 pCnt ((♯‘𝑋) / (𝑃𝑁))) = ((𝑃 pCnt (♯‘𝑋)) − (𝑃 pCnt (𝑃𝑁))))
2545nn0zd 12433 . . . . . . . 8 (𝜑𝑁 ∈ ℤ)
255 pcid 16583 . . . . . . . 8 ((𝑃 ∈ ℙ ∧ 𝑁 ∈ ℤ) → (𝑃 pCnt (𝑃𝑁)) = 𝑁)
2562, 254, 255syl2anc 584 . . . . . . 7 (𝜑 → (𝑃 pCnt (𝑃𝑁)) = 𝑁)
257256oveq2d 7300 . . . . . 6 (𝜑 → ((𝑃 pCnt (♯‘𝑋)) − (𝑃 pCnt (𝑃𝑁))) = ((𝑃 pCnt (♯‘𝑋)) − 𝑁))
258253, 257eqtrd 2779 . . . . 5 (𝜑 → (𝑃 pCnt ((♯‘𝑋) / (𝑃𝑁))) = ((𝑃 pCnt (♯‘𝑋)) − 𝑁))
259251, 258oveq12d 7302 . . . 4 (𝜑 → ((𝑃 pCnt (((♯‘𝑋) − 1)C((𝑃𝑁) − 1))) + (𝑃 pCnt ((♯‘𝑋) / (𝑃𝑁)))) = (0 + ((𝑃 pCnt (♯‘𝑋)) − 𝑁)))
2602, 27pccld 16560 . . . . . . . 8 (𝜑 → (𝑃 pCnt (♯‘𝑋)) ∈ ℕ0)
261260nn0zd 12433 . . . . . . 7 (𝜑 → (𝑃 pCnt (♯‘𝑋)) ∈ ℤ)
262261, 254zsubcld 12440 . . . . . 6 (𝜑 → ((𝑃 pCnt (♯‘𝑋)) − 𝑁) ∈ ℤ)
263262zcnd 12436 . . . . 5 (𝜑 → ((𝑃 pCnt (♯‘𝑋)) − 𝑁) ∈ ℂ)
264263addid2d 11185 . . . 4 (𝜑 → (0 + ((𝑃 pCnt (♯‘𝑋)) − 𝑁)) = ((𝑃 pCnt (♯‘𝑋)) − 𝑁))
26579, 259, 2643eqtrd 2783 . . 3 (𝜑 → (𝑃 pCnt ((((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((♯‘𝑋) / (𝑃𝑁)))) = ((𝑃 pCnt (♯‘𝑋)) − 𝑁))
26666, 67, 2653eqtr3d 2787 . 2 (𝜑 → (𝑃 pCnt (♯‘𝑆)) = ((𝑃 pCnt (♯‘𝑋)) − 𝑁))
26740, 266jca 512 1 (𝜑 → ((♯‘𝑆) ∈ ℕ ∧ (𝑃 pCnt (♯‘𝑆)) = ((𝑃 pCnt (♯‘𝑋)) − 𝑁)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396  wo 844   = wceq 1539  wcel 2107  wne 2944  {crab 3069  c0 4257  𝒫 cpw 4534   class class class wbr 5075  cfv 6437  (class class class)co 7284  Fincfn 8742  cc 10878  cr 10879  0cc0 10880  1c1 10881   + caddc 10883   · cmul 10885   < clt 11018  cle 11019  cmin 11214   / cdiv 11641  cn 11982  0cn0 12242  cz 12328  cuz 12591  cq 12697  +crp 12739  ...cfz 13248  cexp 13791  Ccbc 14025  chash 14053  cdvds 15972  cprime 16385   pCnt cpc 16546  Basecbs 16921  +gcplusg 16971  Grpcgrp 18586
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2155  ax-12 2172  ax-ext 2710  ax-sep 5224  ax-nul 5231  ax-pow 5289  ax-pr 5353  ax-un 7597  ax-cnex 10936  ax-resscn 10937  ax-1cn 10938  ax-icn 10939  ax-addcl 10940  ax-addrcl 10941  ax-mulcl 10942  ax-mulrcl 10943  ax-mulcom 10944  ax-addass 10945  ax-mulass 10946  ax-distr 10947  ax-i2m1 10948  ax-1ne0 10949  ax-1rid 10950  ax-rnegex 10951  ax-rrecex 10952  ax-cnre 10953  ax-pre-lttri 10954  ax-pre-lttrn 10955  ax-pre-ltadd 10956  ax-pre-mulgt0 10957  ax-pre-sup 10958
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2069  df-mo 2541  df-eu 2570  df-clab 2717  df-cleq 2731  df-clel 2817  df-nfc 2890  df-ne 2945  df-nel 3051  df-ral 3070  df-rex 3071  df-rmo 3072  df-reu 3073  df-rab 3074  df-v 3435  df-sbc 3718  df-csb 3834  df-dif 3891  df-un 3893  df-in 3895  df-ss 3905  df-pss 3907  df-nul 4258  df-if 4461  df-pw 4536  df-sn 4563  df-pr 4565  df-op 4569  df-uni 4841  df-int 4881  df-iun 4927  df-br 5076  df-opab 5138  df-mpt 5159  df-tr 5193  df-id 5490  df-eprel 5496  df-po 5504  df-so 5505  df-fr 5545  df-we 5547  df-xp 5596  df-rel 5597  df-cnv 5598  df-co 5599  df-dm 5600  df-rn 5601  df-res 5602  df-ima 5603  df-pred 6206  df-ord 6273  df-on 6274  df-lim 6275  df-suc 6276  df-iota 6395  df-fun 6439  df-fn 6440  df-f 6441  df-f1 6442  df-fo 6443  df-f1o 6444  df-fv 6445  df-riota 7241  df-ov 7287  df-oprab 7288  df-mpo 7289  df-om 7722  df-1st 7840  df-2nd 7841  df-frecs 8106  df-wrecs 8137  df-recs 8211  df-rdg 8250  df-1o 8306  df-2o 8307  df-oadd 8310  df-er 8507  df-en 8743  df-dom 8744  df-sdom 8745  df-fin 8746  df-sup 9210  df-inf 9211  df-dju 9668  df-card 9706  df-pnf 11020  df-mnf 11021  df-xr 11022  df-ltxr 11023  df-le 11024  df-sub 11216  df-neg 11217  df-div 11642  df-nn 11983  df-2 12045  df-3 12046  df-n0 12243  df-z 12329  df-uz 12592  df-q 12698  df-rp 12740  df-fz 13249  df-fl 13521  df-mod 13599  df-seq 13731  df-exp 13792  df-fac 13997  df-bc 14026  df-hash 14054  df-cj 14819  df-re 14820  df-im 14821  df-sqrt 14955  df-abs 14956  df-dvds 15973  df-gcd 16211  df-prm 16386  df-pc 16547  df-0g 17161  df-mgm 18335  df-sgrp 18384  df-mnd 18395  df-grp 18589
This theorem is referenced by:  sylow1lem3  19214
  Copyright terms: Public domain W3C validator