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

Theorem sylow1lem1 19118
Description: Lemma for sylow1 19123. 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 16307 . . . . . . . 8 (𝑃 ∈ ℙ → 𝑃 ∈ ℕ)
42, 3syl 17 . . . . . . 7 (𝜑𝑃 ∈ ℕ)
5 sylow1.n . . . . . . 7 (𝜑𝑁 ∈ ℕ0)
64, 5nnexpcld 13888 . . . . . 6 (𝜑 → (𝑃𝑁) ∈ ℕ)
76nnzd 12354 . . . . 5 (𝜑 → (𝑃𝑁) ∈ ℤ)
8 hashbc 14093 . . . . 5 ((𝑋 ∈ Fin ∧ (𝑃𝑁) ∈ ℤ) → ((♯‘𝑋)C(𝑃𝑁)) = (♯‘{𝑠 ∈ 𝒫 𝑋 ∣ (♯‘𝑠) = (𝑃𝑁)}))
91, 7, 8syl2anc 583 . . . 4 (𝜑 → ((♯‘𝑋)C(𝑃𝑁)) = (♯‘{𝑠 ∈ 𝒫 𝑋 ∣ (♯‘𝑠) = (𝑃𝑁)}))
10 sylow1lem.s . . . . 5 𝑆 = {𝑠 ∈ 𝒫 𝑋 ∣ (♯‘𝑠) = (𝑃𝑁)}
1110fveq2i 6759 . . . 4 (♯‘𝑆) = (♯‘{𝑠 ∈ 𝒫 𝑋 ∣ (♯‘𝑠) = (𝑃𝑁)})
129, 11eqtr4di 2797 . . 3 (𝜑 → ((♯‘𝑋)C(𝑃𝑁)) = (♯‘𝑆))
13 sylow1.d . . . . . 6 (𝜑 → (𝑃𝑁) ∥ (♯‘𝑋))
14 sylow1.g . . . . . . . . . 10 (𝜑𝐺 ∈ Grp)
15 sylow1.x . . . . . . . . . . 11 𝑋 = (Base‘𝐺)
1615grpbn0 18523 . . . . . . . . . 10 (𝐺 ∈ Grp → 𝑋 ≠ ∅)
1714, 16syl 17 . . . . . . . . 9 (𝜑𝑋 ≠ ∅)
18 hasheq0 14006 . . . . . . . . . . 11 (𝑋 ∈ Fin → ((♯‘𝑋) = 0 ↔ 𝑋 = ∅))
191, 18syl 17 . . . . . . . . . 10 (𝜑 → ((♯‘𝑋) = 0 ↔ 𝑋 = ∅))
2019necon3bbid 2980 . . . . . . . . 9 (𝜑 → (¬ (♯‘𝑋) = 0 ↔ 𝑋 ≠ ∅))
2117, 20mpbird 256 . . . . . . . 8 (𝜑 → ¬ (♯‘𝑋) = 0)
22 hashcl 13999 . . . . . . . . . . 11 (𝑋 ∈ Fin → (♯‘𝑋) ∈ ℕ0)
231, 22syl 17 . . . . . . . . . 10 (𝜑 → (♯‘𝑋) ∈ ℕ0)
24 elnn0 12165 . . . . . . . . . 10 ((♯‘𝑋) ∈ ℕ0 ↔ ((♯‘𝑋) ∈ ℕ ∨ (♯‘𝑋) = 0))
2523, 24sylib 217 . . . . . . . . 9 (𝜑 → ((♯‘𝑋) ∈ ℕ ∨ (♯‘𝑋) = 0))
2625ord 860 . . . . . . . 8 (𝜑 → (¬ (♯‘𝑋) ∈ ℕ → (♯‘𝑋) = 0))
2721, 26mt3d 148 . . . . . . 7 (𝜑 → (♯‘𝑋) ∈ ℕ)
28 dvdsle 15947 . . . . . . 7 (((𝑃𝑁) ∈ ℤ ∧ (♯‘𝑋) ∈ ℕ) → ((𝑃𝑁) ∥ (♯‘𝑋) → (𝑃𝑁) ≤ (♯‘𝑋)))
297, 27, 28syl2anc 583 . . . . . 6 (𝜑 → ((𝑃𝑁) ∥ (♯‘𝑋) → (𝑃𝑁) ≤ (♯‘𝑋)))
3013, 29mpd 15 . . . . 5 (𝜑 → (𝑃𝑁) ≤ (♯‘𝑋))
316nnnn0d 12223 . . . . . . 7 (𝜑 → (𝑃𝑁) ∈ ℕ0)
32 nn0uz 12549 . . . . . . 7 0 = (ℤ‘0)
3331, 32eleqtrdi 2849 . . . . . 6 (𝜑 → (𝑃𝑁) ∈ (ℤ‘0))
3423nn0zd 12353 . . . . . 6 (𝜑 → (♯‘𝑋) ∈ ℤ)
35 elfz5 13177 . . . . . 6 (((𝑃𝑁) ∈ (ℤ‘0) ∧ (♯‘𝑋) ∈ ℤ) → ((𝑃𝑁) ∈ (0...(♯‘𝑋)) ↔ (𝑃𝑁) ≤ (♯‘𝑋)))
3633, 34, 35syl2anc 583 . . . . 5 (𝜑 → ((𝑃𝑁) ∈ (0...(♯‘𝑋)) ↔ (𝑃𝑁) ≤ (♯‘𝑋)))
3730, 36mpbird 256 . . . 4 (𝜑 → (𝑃𝑁) ∈ (0...(♯‘𝑋)))
38 bccl2 13965 . . . 4 ((𝑃𝑁) ∈ (0...(♯‘𝑋)) → ((♯‘𝑋)C(𝑃𝑁)) ∈ ℕ)
3937, 38syl 17 . . 3 (𝜑 → ((♯‘𝑋)C(𝑃𝑁)) ∈ ℕ)
4012, 39eqeltrrd 2840 . 2 (𝜑 → (♯‘𝑆) ∈ ℕ)
41 nnuz 12550 . . . . . . . . . . 11 ℕ = (ℤ‘1)
426, 41eleqtrdi 2849 . . . . . . . . . 10 (𝜑 → (𝑃𝑁) ∈ (ℤ‘1))
43 elfz5 13177 . . . . . . . . . 10 (((𝑃𝑁) ∈ (ℤ‘1) ∧ (♯‘𝑋) ∈ ℤ) → ((𝑃𝑁) ∈ (1...(♯‘𝑋)) ↔ (𝑃𝑁) ≤ (♯‘𝑋)))
4442, 34, 43syl2anc 583 . . . . . . . . 9 (𝜑 → ((𝑃𝑁) ∈ (1...(♯‘𝑋)) ↔ (𝑃𝑁) ≤ (♯‘𝑋)))
4530, 44mpbird 256 . . . . . . . 8 (𝜑 → (𝑃𝑁) ∈ (1...(♯‘𝑋)))
46 1zzd 12281 . . . . . . . . 9 (𝜑 → 1 ∈ ℤ)
47 fzsubel 13221 . . . . . . . . 9 (((1 ∈ ℤ ∧ (♯‘𝑋) ∈ ℤ) ∧ ((𝑃𝑁) ∈ ℤ ∧ 1 ∈ ℤ)) → ((𝑃𝑁) ∈ (1...(♯‘𝑋)) ↔ ((𝑃𝑁) − 1) ∈ ((1 − 1)...((♯‘𝑋) − 1))))
4846, 34, 7, 46, 47syl22anc 835 . . . . . . . 8 (𝜑 → ((𝑃𝑁) ∈ (1...(♯‘𝑋)) ↔ ((𝑃𝑁) − 1) ∈ ((1 − 1)...((♯‘𝑋) − 1))))
4945, 48mpbid 231 . . . . . . 7 (𝜑 → ((𝑃𝑁) − 1) ∈ ((1 − 1)...((♯‘𝑋) − 1)))
50 1m1e0 11975 . . . . . . . 8 (1 − 1) = 0
5150oveq1i 7265 . . . . . . 7 ((1 − 1)...((♯‘𝑋) − 1)) = (0...((♯‘𝑋) − 1))
5249, 51eleqtrdi 2849 . . . . . 6 (𝜑 → ((𝑃𝑁) − 1) ∈ (0...((♯‘𝑋) − 1)))
53 bcp1nk 13959 . . . . . 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 12225 . . . . . . 7 (𝜑 → (♯‘𝑋) ∈ ℂ)
56 ax-1cn 10860 . . . . . . 7 1 ∈ ℂ
57 npcan 11160 . . . . . . 7 (((♯‘𝑋) ∈ ℂ ∧ 1 ∈ ℂ) → (((♯‘𝑋) − 1) + 1) = (♯‘𝑋))
5855, 56, 57sylancl 585 . . . . . 6 (𝜑 → (((♯‘𝑋) − 1) + 1) = (♯‘𝑋))
596nncnd 11919 . . . . . . 7 (𝜑 → (𝑃𝑁) ∈ ℂ)
60 npcan 11160 . . . . . . 7 (((𝑃𝑁) ∈ ℂ ∧ 1 ∈ ℂ) → (((𝑃𝑁) − 1) + 1) = (𝑃𝑁))
6159, 56, 60sylancl 585 . . . . . 6 (𝜑 → (((𝑃𝑁) − 1) + 1) = (𝑃𝑁))
6258, 61oveq12d 7273 . . . . 5 (𝜑 → ((((♯‘𝑋) − 1) + 1)C(((𝑃𝑁) − 1) + 1)) = ((♯‘𝑋)C(𝑃𝑁)))
6358, 61oveq12d 7273 . . . . . 6 (𝜑 → ((((♯‘𝑋) − 1) + 1) / (((𝑃𝑁) − 1) + 1)) = ((♯‘𝑋) / (𝑃𝑁)))
6463oveq2d 7271 . . . . 5 (𝜑 → ((((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((((♯‘𝑋) − 1) + 1) / (((𝑃𝑁) − 1) + 1))) = ((((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((♯‘𝑋) / (𝑃𝑁))))
6554, 62, 643eqtr3d 2786 . . . 4 (𝜑 → ((♯‘𝑋)C(𝑃𝑁)) = ((((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((♯‘𝑋) / (𝑃𝑁))))
6665oveq2d 7271 . . 3 (𝜑 → (𝑃 pCnt ((♯‘𝑋)C(𝑃𝑁))) = (𝑃 pCnt ((((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((♯‘𝑋) / (𝑃𝑁)))))
6712oveq2d 7271 . . 3 (𝜑 → (𝑃 pCnt ((♯‘𝑋)C(𝑃𝑁))) = (𝑃 pCnt (♯‘𝑆)))
68 bccl2 13965 . . . . . . 7 (((𝑃𝑁) − 1) ∈ (0...((♯‘𝑋) − 1)) → (((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) ∈ ℕ)
6952, 68syl 17 . . . . . 6 (𝜑 → (((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) ∈ ℕ)
7069nnzd 12354 . . . . 5 (𝜑 → (((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) ∈ ℤ)
7169nnne0d 11953 . . . . 5 (𝜑 → (((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) ≠ 0)
726nnne0d 11953 . . . . . . 7 (𝜑 → (𝑃𝑁) ≠ 0)
73 dvdsval2 15894 . . . . . . 7 (((𝑃𝑁) ∈ ℤ ∧ (𝑃𝑁) ≠ 0 ∧ (♯‘𝑋) ∈ ℤ) → ((𝑃𝑁) ∥ (♯‘𝑋) ↔ ((♯‘𝑋) / (𝑃𝑁)) ∈ ℤ))
747, 72, 34, 73syl3anc 1369 . . . . . 6 (𝜑 → ((𝑃𝑁) ∥ (♯‘𝑋) ↔ ((♯‘𝑋) / (𝑃𝑁)) ∈ ℤ))
7513, 74mpbid 231 . . . . 5 (𝜑 → ((♯‘𝑋) / (𝑃𝑁)) ∈ ℤ)
7627nnne0d 11953 . . . . . 6 (𝜑 → (♯‘𝑋) ≠ 0)
7755, 59, 76, 72divne0d 11697 . . . . 5 (𝜑 → ((♯‘𝑋) / (𝑃𝑁)) ≠ 0)
78 pcmul 16480 . . . . 5 ((𝑃 ∈ ℙ ∧ ((((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) ∈ ℤ ∧ (((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) ≠ 0) ∧ (((♯‘𝑋) / (𝑃𝑁)) ∈ ℤ ∧ ((♯‘𝑋) / (𝑃𝑁)) ≠ 0)) → (𝑃 pCnt ((((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((♯‘𝑋) / (𝑃𝑁)))) = ((𝑃 pCnt (((♯‘𝑋) − 1)C((𝑃𝑁) − 1))) + (𝑃 pCnt ((♯‘𝑋) / (𝑃𝑁)))))
792, 70, 71, 75, 77, 78syl122anc 1377 . . . 4 (𝜑 → (𝑃 pCnt ((((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((♯‘𝑋) / (𝑃𝑁)))) = ((𝑃 pCnt (((♯‘𝑋) − 1)C((𝑃𝑁) − 1))) + (𝑃 pCnt ((♯‘𝑋) / (𝑃𝑁)))))
80 1cnd 10901 . . . . . . . . 9 (𝜑 → 1 ∈ ℂ)
8155, 59, 80npncand 11286 . . . . . . . 8 (𝜑 → (((♯‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1)) = ((♯‘𝑋) − 1))
8281oveq1d 7270 . . . . . . 7 (𝜑 → ((((♯‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1)) = (((♯‘𝑋) − 1)C((𝑃𝑁) − 1)))
8382oveq2d 7271 . . . . . 6 (𝜑 → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1))) = (𝑃 pCnt (((♯‘𝑋) − 1)C((𝑃𝑁) − 1))))
846nnred 11918 . . . . . . . 8 (𝜑 → (𝑃𝑁) ∈ ℝ)
8584ltm1d 11837 . . . . . . 7 (𝜑 → ((𝑃𝑁) − 1) < (𝑃𝑁))
86 nnm1nn0 12204 . . . . . . . . 9 ((𝑃𝑁) ∈ ℕ → ((𝑃𝑁) − 1) ∈ ℕ0)
876, 86syl 17 . . . . . . . 8 (𝜑 → ((𝑃𝑁) − 1) ∈ ℕ0)
88 breq1 5073 . . . . . . . . . . 11 (𝑥 = 0 → (𝑥 < (𝑃𝑁) ↔ 0 < (𝑃𝑁)))
89 bcxmaslem1 15474 . . . . . . . . . . . . 13 (𝑥 = 0 → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥) = ((((♯‘𝑋) − (𝑃𝑁)) + 0)C0))
9089oveq2d 7271 . . . . . . . . . . . 12 (𝑥 = 0 → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 0)C0)))
9190eqeq1d 2740 . . . . . . . . . . 11 (𝑥 = 0 → ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0 ↔ (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 0)C0)) = 0))
9288, 91imbi12d 344 . . . . . . . . . 10 (𝑥 = 0 → ((𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0) ↔ (0 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 0)C0)) = 0)))
9392imbi2d 340 . . . . . . . . 9 (𝑥 = 0 → ((𝜑 → (𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0)) ↔ (𝜑 → (0 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 0)C0)) = 0))))
94 breq1 5073 . . . . . . . . . . 11 (𝑥 = 𝑛 → (𝑥 < (𝑃𝑁) ↔ 𝑛 < (𝑃𝑁)))
95 bcxmaslem1 15474 . . . . . . . . . . . . 13 (𝑥 = 𝑛 → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥) = ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛))
9695oveq2d 7271 . . . . . . . . . . . 12 (𝑥 = 𝑛 → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)))
9796eqeq1d 2740 . . . . . . . . . . 11 (𝑥 = 𝑛 → ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0 ↔ (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0))
9894, 97imbi12d 344 . . . . . . . . . 10 (𝑥 = 𝑛 → ((𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0) ↔ (𝑛 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0)))
9998imbi2d 340 . . . . . . . . 9 (𝑥 = 𝑛 → ((𝜑 → (𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0)) ↔ (𝜑 → (𝑛 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0))))
100 breq1 5073 . . . . . . . . . . 11 (𝑥 = (𝑛 + 1) → (𝑥 < (𝑃𝑁) ↔ (𝑛 + 1) < (𝑃𝑁)))
101 bcxmaslem1 15474 . . . . . . . . . . . . 13 (𝑥 = (𝑛 + 1) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥) = ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1)))
102101oveq2d 7271 . . . . . . . . . . . 12 (𝑥 = (𝑛 + 1) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))))
103102eqeq1d 2740 . . . . . . . . . . 11 (𝑥 = (𝑛 + 1) → ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0 ↔ (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = 0))
104100, 103imbi12d 344 . . . . . . . . . 10 (𝑥 = (𝑛 + 1) → ((𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0) ↔ ((𝑛 + 1) < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = 0)))
105104imbi2d 340 . . . . . . . . 9 (𝑥 = (𝑛 + 1) → ((𝜑 → (𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0)) ↔ (𝜑 → ((𝑛 + 1) < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = 0))))
106 breq1 5073 . . . . . . . . . . 11 (𝑥 = ((𝑃𝑁) − 1) → (𝑥 < (𝑃𝑁) ↔ ((𝑃𝑁) − 1) < (𝑃𝑁)))
107 bcxmaslem1 15474 . . . . . . . . . . . . 13 (𝑥 = ((𝑃𝑁) − 1) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥) = ((((♯‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1)))
108107oveq2d 7271 . . . . . . . . . . . 12 (𝑥 = ((𝑃𝑁) − 1) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1))))
109108eqeq1d 2740 . . . . . . . . . . 11 (𝑥 = ((𝑃𝑁) − 1) → ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0 ↔ (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1))) = 0))
110106, 109imbi12d 344 . . . . . . . . . 10 (𝑥 = ((𝑃𝑁) − 1) → ((𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0) ↔ (((𝑃𝑁) − 1) < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1))) = 0)))
111110imbi2d 340 . . . . . . . . 9 (𝑥 = ((𝑃𝑁) − 1) → ((𝜑 → (𝑥 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑥)C𝑥)) = 0)) ↔ (𝜑 → (((𝑃𝑁) − 1) < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + ((𝑃𝑁) − 1))C((𝑃𝑁) − 1))) = 0))))
112 znn0sub 12297 . . . . . . . . . . . . . . . 16 (((𝑃𝑁) ∈ ℤ ∧ (♯‘𝑋) ∈ ℤ) → ((𝑃𝑁) ≤ (♯‘𝑋) ↔ ((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ0))
1137, 34, 112syl2anc 583 . . . . . . . . . . . . . . 15 (𝜑 → ((𝑃𝑁) ≤ (♯‘𝑋) ↔ ((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ0))
11430, 113mpbid 231 . . . . . . . . . . . . . 14 (𝜑 → ((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ0)
115 0nn0 12178 . . . . . . . . . . . . . 14 0 ∈ ℕ0
116 nn0addcl 12198 . . . . . . . . . . . . . 14 ((((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ0 ∧ 0 ∈ ℕ0) → (((♯‘𝑋) − (𝑃𝑁)) + 0) ∈ ℕ0)
117114, 115, 116sylancl 585 . . . . . . . . . . . . 13 (𝜑 → (((♯‘𝑋) − (𝑃𝑁)) + 0) ∈ ℕ0)
118 bcn0 13952 . . . . . . . . . . . . 13 ((((♯‘𝑋) − (𝑃𝑁)) + 0) ∈ ℕ0 → ((((♯‘𝑋) − (𝑃𝑁)) + 0)C0) = 1)
119117, 118syl 17 . . . . . . . . . . . 12 (𝜑 → ((((♯‘𝑋) − (𝑃𝑁)) + 0)C0) = 1)
120119oveq2d 7271 . . . . . . . . . . 11 (𝜑 → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 0)C0)) = (𝑃 pCnt 1))
121 pc1 16484 . . . . . . . . . . . 12 (𝑃 ∈ ℙ → (𝑃 pCnt 1) = 0)
1222, 121syl 17 . . . . . . . . . . 11 (𝜑 → (𝑃 pCnt 1) = 0)
123120, 122eqtrd 2778 . . . . . . . . . 10 (𝜑 → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 0)C0)) = 0)
124123a1d 25 . . . . . . . . 9 (𝜑 → (0 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 0)C0)) = 0))
125 nn0re 12172 . . . . . . . . . . . . . 14 (𝑛 ∈ ℕ0𝑛 ∈ ℝ)
126125ad2antrl 724 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 ∈ ℝ)
127 nn0p1nn 12202 . . . . . . . . . . . . . . 15 (𝑛 ∈ ℕ0 → (𝑛 + 1) ∈ ℕ)
128127ad2antrl 724 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑛 + 1) ∈ ℕ)
129128nnred 11918 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑛 + 1) ∈ ℝ)
1306adantr 480 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃𝑁) ∈ ℕ)
131130nnred 11918 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃𝑁) ∈ ℝ)
132126ltp1d 11835 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 < (𝑛 + 1))
133 simprr 769 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑛 + 1) < (𝑃𝑁))
134126, 129, 131, 132, 133lttrd 11066 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 < (𝑃𝑁))
135134expr 456 . . . . . . . . . . 11 ((𝜑𝑛 ∈ ℕ0) → ((𝑛 + 1) < (𝑃𝑁) → 𝑛 < (𝑃𝑁)))
136135imim1d 82 . . . . . . . . . 10 ((𝜑𝑛 ∈ ℕ0) → ((𝑛 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0) → ((𝑛 + 1) < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0)))
137 oveq1 7262 . . . . . . . . . . 11 ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0 → ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) + (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))) = (0 + (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))))
138114adantr 480 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ0)
139138nn0cnd 12225 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((♯‘𝑋) − (𝑃𝑁)) ∈ ℂ)
140 nn0cn 12173 . . . . . . . . . . . . . . . . . 18 (𝑛 ∈ ℕ0𝑛 ∈ ℂ)
141140ad2antrl 724 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 ∈ ℂ)
142 1cnd 10901 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 1 ∈ ℂ)
143139, 141, 142addassd 10928 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) = (((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1)))
144143oveq1d 7270 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)C(𝑛 + 1)) = ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1)))
145 nn0addge2 12210 . . . . . . . . . . . . . . . . . 18 ((𝑛 ∈ ℝ ∧ ((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ0) → 𝑛 ≤ (((♯‘𝑋) − (𝑃𝑁)) + 𝑛))
146126, 138, 145syl2anc 583 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 ≤ (((♯‘𝑋) − (𝑃𝑁)) + 𝑛))
147 simprl 767 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 ∈ ℕ0)
148147, 32eleqtrdi 2849 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 ∈ (ℤ‘0))
149138, 147nn0addcld 12227 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((♯‘𝑋) − (𝑃𝑁)) + 𝑛) ∈ ℕ0)
150149nn0zd 12353 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((♯‘𝑋) − (𝑃𝑁)) + 𝑛) ∈ ℤ)
151 elfz5 13177 . . . . . . . . . . . . . . . . . 18 ((𝑛 ∈ (ℤ‘0) ∧ (((♯‘𝑋) − (𝑃𝑁)) + 𝑛) ∈ ℤ) → (𝑛 ∈ (0...(((♯‘𝑋) − (𝑃𝑁)) + 𝑛)) ↔ 𝑛 ≤ (((♯‘𝑋) − (𝑃𝑁)) + 𝑛)))
152148, 150, 151syl2anc 583 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑛 ∈ (0...(((♯‘𝑋) − (𝑃𝑁)) + 𝑛)) ↔ 𝑛 ≤ (((♯‘𝑋) − (𝑃𝑁)) + 𝑛)))
153146, 152mpbird 256 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑛 ∈ (0...(((♯‘𝑋) − (𝑃𝑁)) + 𝑛)))
154 bcp1nk 13959 . . . . . . . . . . . . . . . 16 (𝑛 ∈ (0...(((♯‘𝑋) − (𝑃𝑁)) + 𝑛)) → (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)C(𝑛 + 1)) = (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) · (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1))))
155153, 154syl 17 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)C(𝑛 + 1)) = (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) · (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1))))
156144, 155eqtr3d 2780 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1)) = (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) · (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1))))
157156oveq2d 7271 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) · (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))))
1582adantr 480 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑃 ∈ ℙ)
159 bccl2 13965 . . . . . . . . . . . . . . . 16 (𝑛 ∈ (0...(((♯‘𝑋) − (𝑃𝑁)) + 𝑛)) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ∈ ℕ)
160153, 159syl 17 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ∈ ℕ)
161 nnq 12631 . . . . . . . . . . . . . . 15 (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ∈ ℕ → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ∈ ℚ)
162160, 161syl 17 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ∈ ℚ)
163160nnne0d 11953 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ≠ 0)
164150peano2zd 12358 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℤ)
165 znq 12621 . . . . . . . . . . . . . . 15 ((((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℤ ∧ (𝑛 + 1) ∈ ℕ) → (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ∈ ℚ)
166164, 128, 165syl2anc 583 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ∈ ℚ)
167 nn0p1nn 12202 . . . . . . . . . . . . . . . . 17 ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) ∈ ℕ0 → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℕ)
168149, 167syl 17 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℕ)
169 nnrp 12670 . . . . . . . . . . . . . . . . 17 (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℕ → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℝ+)
170 nnrp 12670 . . . . . . . . . . . . . . . . 17 ((𝑛 + 1) ∈ ℕ → (𝑛 + 1) ∈ ℝ+)
171 rpdivcl 12684 . . . . . . . . . . . . . . . . 17 ((((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℝ+ ∧ (𝑛 + 1) ∈ ℝ+) → (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ∈ ℝ+)
172169, 170, 171syl2an 595 . . . . . . . . . . . . . . . 16 ((((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℕ ∧ (𝑛 + 1) ∈ ℕ) → (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ∈ ℝ+)
173168, 128, 172syl2anc 583 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ∈ ℝ+)
174173rpne0d 12706 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ≠ 0)
175 pcqmul 16482 . . . . . . . . . . . . . 14 ((𝑃 ∈ ℙ ∧ (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ∈ ℚ ∧ ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) ≠ 0) ∧ ((((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ∈ ℚ ∧ (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)) ≠ 0)) → (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) · (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))) = ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) + (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))))
176158, 162, 163, 166, 174, 175syl122anc 1377 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛) · (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))) = ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) + (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))))
177157, 176eqtrd 2778 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) + (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))))
178168nnne0d 11953 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ≠ 0)
179 pcdiv 16481 . . . . . . . . . . . . . . . 16 ((𝑃 ∈ ℙ ∧ (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ∈ ℤ ∧ ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) ≠ 0) ∧ (𝑛 + 1) ∈ ℕ) → (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1))) = ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)) − (𝑃 pCnt (𝑛 + 1))))
180158, 164, 178, 128, 179syl121anc 1373 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1))) = ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)) − (𝑃 pCnt (𝑛 + 1))))
181128nncnd 11919 . . . . . . . . . . . . . . . . . . . 20 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑛 + 1) ∈ ℂ)
182139, 181, 143comraddd 11119 . . . . . . . . . . . . . . . . . . 19 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) = ((𝑛 + 1) + ((♯‘𝑋) − (𝑃𝑁))))
183182oveq2d 7271 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)) = (𝑃 pCnt ((𝑛 + 1) + ((♯‘𝑋) − (𝑃𝑁)))))
184 simpr 484 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) = 0) → ((♯‘𝑋) − (𝑃𝑁)) = 0)
185184oveq2d 7271 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) = 0) → ((𝑛 + 1) + ((♯‘𝑋) − (𝑃𝑁))) = ((𝑛 + 1) + 0))
186181addid1d 11105 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((𝑛 + 1) + 0) = (𝑛 + 1))
187186adantr 480 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) = 0) → ((𝑛 + 1) + 0) = (𝑛 + 1))
188185, 187eqtr2d 2779 . . . . . . . . . . . . . . . . . . . 20 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) = 0) → (𝑛 + 1) = ((𝑛 + 1) + ((♯‘𝑋) − (𝑃𝑁))))
189188oveq2d 7271 . . . . . . . . . . . . . . . . . . 19 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) = 0) → (𝑃 pCnt (𝑛 + 1)) = (𝑃 pCnt ((𝑛 + 1) + ((♯‘𝑋) − (𝑃𝑁)))))
1902ad2antrr 722 . . . . . . . . . . . . . . . . . . . 20 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → 𝑃 ∈ ℙ)
191 nnq 12631 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑛 + 1) ∈ ℕ → (𝑛 + 1) ∈ ℚ)
192128, 191syl 17 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑛 + 1) ∈ ℚ)
193192adantr 480 . . . . . . . . . . . . . . . . . . . 20 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑛 + 1) ∈ ℚ)
194138nn0zd 12353 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((♯‘𝑋) − (𝑃𝑁)) ∈ ℤ)
195 zq 12623 . . . . . . . . . . . . . . . . . . . . . 22 (((♯‘𝑋) − (𝑃𝑁)) ∈ ℤ → ((♯‘𝑋) − (𝑃𝑁)) ∈ ℚ)
196194, 195syl 17 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((♯‘𝑋) − (𝑃𝑁)) ∈ ℚ)
197196adantr 480 . . . . . . . . . . . . . . . . . . . 20 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → ((♯‘𝑋) − (𝑃𝑁)) ∈ ℚ)
198158, 128pccld 16479 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (𝑛 + 1)) ∈ ℕ0)
199198nn0red 12224 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (𝑛 + 1)) ∈ ℝ)
200199adantr 480 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑃 pCnt (𝑛 + 1)) ∈ ℝ)
2015adantr 480 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑁 ∈ ℕ0)
202201nn0red 12224 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 𝑁 ∈ ℝ)
203202adantr 480 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → 𝑁 ∈ ℝ)
204 simpr 484 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → ((♯‘𝑋) − (𝑃𝑁)) ≠ 0)
205204neneqd 2947 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → ¬ ((♯‘𝑋) − (𝑃𝑁)) = 0)
206114ad2antrr 722 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → ((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ0)
207 elnn0 12165 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ0 ↔ (((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ ∨ ((♯‘𝑋) − (𝑃𝑁)) = 0))
208206, 207sylib 217 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ ∨ ((♯‘𝑋) − (𝑃𝑁)) = 0))
209208ord 860 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (¬ ((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ → ((♯‘𝑋) − (𝑃𝑁)) = 0))
210205, 209mt3d 148 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → ((♯‘𝑋) − (𝑃𝑁)) ∈ ℕ)
211190, 210pccld 16479 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑃 pCnt ((♯‘𝑋) − (𝑃𝑁))) ∈ ℕ0)
212211nn0red 12224 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑃 pCnt ((♯‘𝑋) − (𝑃𝑁))) ∈ ℝ)
213128nnzd 12354 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑛 + 1) ∈ ℤ)
214 pcdvdsb 16498 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝑃 ∈ ℙ ∧ (𝑛 + 1) ∈ ℤ ∧ 𝑁 ∈ ℕ0) → (𝑁 ≤ (𝑃 pCnt (𝑛 + 1)) ↔ (𝑃𝑁) ∥ (𝑛 + 1)))
215158, 213, 201, 214syl3anc 1369 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑁 ≤ (𝑃 pCnt (𝑛 + 1)) ↔ (𝑃𝑁) ∥ (𝑛 + 1)))
2167adantr 480 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃𝑁) ∈ ℤ)
217 dvdsle 15947 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑃𝑁) ∈ ℤ ∧ (𝑛 + 1) ∈ ℕ) → ((𝑃𝑁) ∥ (𝑛 + 1) → (𝑃𝑁) ≤ (𝑛 + 1)))
218216, 128, 217syl2anc 583 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((𝑃𝑁) ∥ (𝑛 + 1) → (𝑃𝑁) ≤ (𝑛 + 1)))
219215, 218sylbid 239 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑁 ≤ (𝑃 pCnt (𝑛 + 1)) → (𝑃𝑁) ≤ (𝑛 + 1)))
220202, 199lenltd 11051 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑁 ≤ (𝑃 pCnt (𝑛 + 1)) ↔ ¬ (𝑃 pCnt (𝑛 + 1)) < 𝑁))
221131, 129lenltd 11051 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((𝑃𝑁) ≤ (𝑛 + 1) ↔ ¬ (𝑛 + 1) < (𝑃𝑁)))
222219, 220, 2213imtr3d 292 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (¬ (𝑃 pCnt (𝑛 + 1)) < 𝑁 → ¬ (𝑛 + 1) < (𝑃𝑁)))
223133, 222mt4d 117 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (𝑛 + 1)) < 𝑁)
224223adantr 480 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑃 pCnt (𝑛 + 1)) < 𝑁)
225 dvdssubr 15942 . . . . . . . . . . . . . . . . . . . . . . . . 25 (((𝑃𝑁) ∈ ℤ ∧ (♯‘𝑋) ∈ ℤ) → ((𝑃𝑁) ∥ (♯‘𝑋) ↔ (𝑃𝑁) ∥ ((♯‘𝑋) − (𝑃𝑁))))
2267, 34, 225syl2anc 583 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑 → ((𝑃𝑁) ∥ (♯‘𝑋) ↔ (𝑃𝑁) ∥ ((♯‘𝑋) − (𝑃𝑁))))
22713, 226mpbid 231 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑 → (𝑃𝑁) ∥ ((♯‘𝑋) − (𝑃𝑁)))
228227ad2antrr 722 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑃𝑁) ∥ ((♯‘𝑋) − (𝑃𝑁)))
229206nn0zd 12353 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → ((♯‘𝑋) − (𝑃𝑁)) ∈ ℤ)
2305ad2antrr 722 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → 𝑁 ∈ ℕ0)
231 pcdvdsb 16498 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑃 ∈ ℙ ∧ ((♯‘𝑋) − (𝑃𝑁)) ∈ ℤ ∧ 𝑁 ∈ ℕ0) → (𝑁 ≤ (𝑃 pCnt ((♯‘𝑋) − (𝑃𝑁))) ↔ (𝑃𝑁) ∥ ((♯‘𝑋) − (𝑃𝑁))))
232190, 229, 230, 231syl3anc 1369 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑁 ≤ (𝑃 pCnt ((♯‘𝑋) − (𝑃𝑁))) ↔ (𝑃𝑁) ∥ ((♯‘𝑋) − (𝑃𝑁))))
233228, 232mpbird 256 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → 𝑁 ≤ (𝑃 pCnt ((♯‘𝑋) − (𝑃𝑁))))
234200, 203, 212, 224, 233ltletrd 11065 . . . . . . . . . . . . . . . . . . . 20 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑃 pCnt (𝑛 + 1)) < (𝑃 pCnt ((♯‘𝑋) − (𝑃𝑁))))
235190, 193, 197, 234pcadd2 16519 . . . . . . . . . . . . . . . . . . 19 (((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) ∧ ((♯‘𝑋) − (𝑃𝑁)) ≠ 0) → (𝑃 pCnt (𝑛 + 1)) = (𝑃 pCnt ((𝑛 + 1) + ((♯‘𝑋) − (𝑃𝑁)))))
236189, 235pm2.61dane 3031 . . . . . . . . . . . . . . . . . 18 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (𝑛 + 1)) = (𝑃 pCnt ((𝑛 + 1) + ((♯‘𝑋) − (𝑃𝑁)))))
237183, 236eqtr4d 2781 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)) = (𝑃 pCnt (𝑛 + 1)))
238198nn0cnd 12225 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (𝑛 + 1)) ∈ ℂ)
239237, 238eqeltrd 2839 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)) ∈ ℂ)
240239, 237subeq0bd 11331 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → ((𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1)) − (𝑃 pCnt (𝑛 + 1))) = 0)
241180, 240eqtrd 2778 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1))) = 0)
242241oveq2d 7271 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → (0 + (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))) = (0 + 0))
243 00id 11080 . . . . . . . . . . . . 13 (0 + 0) = 0
244242, 243eqtr2di 2796 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑛 ∈ ℕ0 ∧ (𝑛 + 1) < (𝑃𝑁))) → 0 = (0 + (𝑃 pCnt (((((♯‘𝑋) − (𝑃𝑁)) + 𝑛) + 1) / (𝑛 + 1)))))
245177, 244eqeq12d 2754 . . . . . . . . . . 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 842 . . . . . . . . 9 (𝑛 ∈ ℕ0 → ((𝜑 → (𝑛 < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + 𝑛)C𝑛)) = 0)) → (𝜑 → ((𝑛 + 1) < (𝑃𝑁) → (𝑃 pCnt ((((♯‘𝑋) − (𝑃𝑁)) + (𝑛 + 1))C(𝑛 + 1))) = 0))))
24893, 99, 105, 111, 124, 247nn0ind 12345 . . . . . . . 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 2780 . . . . 5 (𝜑 → (𝑃 pCnt (((♯‘𝑋) − 1)C((𝑃𝑁) − 1))) = 0)
252 pcdiv 16481 . . . . . . 7 ((𝑃 ∈ ℙ ∧ ((♯‘𝑋) ∈ ℤ ∧ (♯‘𝑋) ≠ 0) ∧ (𝑃𝑁) ∈ ℕ) → (𝑃 pCnt ((♯‘𝑋) / (𝑃𝑁))) = ((𝑃 pCnt (♯‘𝑋)) − (𝑃 pCnt (𝑃𝑁))))
2532, 34, 76, 6, 252syl121anc 1373 . . . . . 6 (𝜑 → (𝑃 pCnt ((♯‘𝑋) / (𝑃𝑁))) = ((𝑃 pCnt (♯‘𝑋)) − (𝑃 pCnt (𝑃𝑁))))
2545nn0zd 12353 . . . . . . . 8 (𝜑𝑁 ∈ ℤ)
255 pcid 16502 . . . . . . . 8 ((𝑃 ∈ ℙ ∧ 𝑁 ∈ ℤ) → (𝑃 pCnt (𝑃𝑁)) = 𝑁)
2562, 254, 255syl2anc 583 . . . . . . 7 (𝜑 → (𝑃 pCnt (𝑃𝑁)) = 𝑁)
257256oveq2d 7271 . . . . . 6 (𝜑 → ((𝑃 pCnt (♯‘𝑋)) − (𝑃 pCnt (𝑃𝑁))) = ((𝑃 pCnt (♯‘𝑋)) − 𝑁))
258253, 257eqtrd 2778 . . . . 5 (𝜑 → (𝑃 pCnt ((♯‘𝑋) / (𝑃𝑁))) = ((𝑃 pCnt (♯‘𝑋)) − 𝑁))
259251, 258oveq12d 7273 . . . 4 (𝜑 → ((𝑃 pCnt (((♯‘𝑋) − 1)C((𝑃𝑁) − 1))) + (𝑃 pCnt ((♯‘𝑋) / (𝑃𝑁)))) = (0 + ((𝑃 pCnt (♯‘𝑋)) − 𝑁)))
2602, 27pccld 16479 . . . . . . . 8 (𝜑 → (𝑃 pCnt (♯‘𝑋)) ∈ ℕ0)
261260nn0zd 12353 . . . . . . 7 (𝜑 → (𝑃 pCnt (♯‘𝑋)) ∈ ℤ)
262261, 254zsubcld 12360 . . . . . 6 (𝜑 → ((𝑃 pCnt (♯‘𝑋)) − 𝑁) ∈ ℤ)
263262zcnd 12356 . . . . 5 (𝜑 → ((𝑃 pCnt (♯‘𝑋)) − 𝑁) ∈ ℂ)
264263addid2d 11106 . . . 4 (𝜑 → (0 + ((𝑃 pCnt (♯‘𝑋)) − 𝑁)) = ((𝑃 pCnt (♯‘𝑋)) − 𝑁))
26579, 259, 2643eqtrd 2782 . . 3 (𝜑 → (𝑃 pCnt ((((♯‘𝑋) − 1)C((𝑃𝑁) − 1)) · ((♯‘𝑋) / (𝑃𝑁)))) = ((𝑃 pCnt (♯‘𝑋)) − 𝑁))
26666, 67, 2653eqtr3d 2786 . 2 (𝜑 → (𝑃 pCnt (♯‘𝑆)) = ((𝑃 pCnt (♯‘𝑋)) − 𝑁))
26740, 266jca 511 1 (𝜑 → ((♯‘𝑆) ∈ ℕ ∧ (𝑃 pCnt (♯‘𝑆)) = ((𝑃 pCnt (♯‘𝑋)) − 𝑁)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 843   = wceq 1539  wcel 2108  wne 2942  {crab 3067  c0 4253  𝒫 cpw 4530   class class class wbr 5070  cfv 6418  (class class class)co 7255  Fincfn 8691  cc 10800  cr 10801  0cc0 10802  1c1 10803   + caddc 10805   · cmul 10807   < clt 10940  cle 10941  cmin 11135   / cdiv 11562  cn 11903  0cn0 12163  cz 12249  cuz 12511  cq 12617  +crp 12659  ...cfz 13168  cexp 13710  Ccbc 13944  chash 13972  cdvds 15891  cprime 16304   pCnt cpc 16465  Basecbs 16840  +gcplusg 16888  Grpcgrp 18492
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879  ax-pre-sup 10880
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-int 4877  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-2o 8268  df-oadd 8271  df-er 8456  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-sup 9131  df-inf 9132  df-dju 9590  df-card 9628  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-div 11563  df-nn 11904  df-2 11966  df-3 11967  df-n0 12164  df-z 12250  df-uz 12512  df-q 12618  df-rp 12660  df-fz 13169  df-fl 13440  df-mod 13518  df-seq 13650  df-exp 13711  df-fac 13916  df-bc 13945  df-hash 13973  df-cj 14738  df-re 14739  df-im 14740  df-sqrt 14874  df-abs 14875  df-dvds 15892  df-gcd 16130  df-prm 16305  df-pc 16466  df-0g 17069  df-mgm 18241  df-sgrp 18290  df-mnd 18301  df-grp 18495
This theorem is referenced by:  sylow1lem3  19120
  Copyright terms: Public domain W3C validator