Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  ballotlem2 Structured version   Visualization version   GIF version

Theorem ballotlem2 32355
Description: The probability that the first vote picked in a count is a B. (Contributed by Thierry Arnoux, 23-Nov-2016.)
Hypotheses
Ref Expression
ballotth.m 𝑀 ∈ ℕ
ballotth.n 𝑁 ∈ ℕ
ballotth.o 𝑂 = {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀}
ballotth.p 𝑃 = (𝑥 ∈ 𝒫 𝑂 ↦ ((♯‘𝑥) / (♯‘𝑂)))
Assertion
Ref Expression
ballotlem2 (𝑃‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = (𝑁 / (𝑀 + 𝑁))
Distinct variable groups:   𝑀,𝑐   𝑁,𝑐   𝑂,𝑐,𝑥
Allowed substitution hints:   𝑃(𝑥,𝑐)   𝑀(𝑥)   𝑁(𝑥)

Proof of Theorem ballotlem2
Dummy variable 𝑖 is distinct from all other variables.
StepHypRef Expression
1 ballotth.m . . . . . 6 𝑀 ∈ ℕ
2 ballotth.n . . . . . 6 𝑁 ∈ ℕ
3 ballotth.o . . . . . 6 𝑂 = {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀}
41, 2, 3ballotlemoex 32352 . . . . 5 𝑂 ∈ V
5 ssrab2 4009 . . . . 5 {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ⊆ 𝑂
64, 5elpwi2 5265 . . . 4 {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ∈ 𝒫 𝑂
7 fveq2 6756 . . . . . 6 (𝑥 = {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → (♯‘𝑥) = (♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}))
87oveq1d 7270 . . . . 5 (𝑥 = {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → ((♯‘𝑥) / (♯‘𝑂)) = ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)))
9 ballotth.p . . . . 5 𝑃 = (𝑥 ∈ 𝒫 𝑂 ↦ ((♯‘𝑥) / (♯‘𝑂)))
10 ovex 7288 . . . . 5 ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)) ∈ V
118, 9, 10fvmpt 6857 . . . 4 ({𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ∈ 𝒫 𝑂 → (𝑃‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)))
126, 11ax-mp 5 . . 3 (𝑃‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂))
13 an32 642 . . . . . . . 8 (((𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∧ ¬ 1 ∈ 𝑐) ∧ (♯‘𝑐) = 𝑀) ↔ ((𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∧ (♯‘𝑐) = 𝑀) ∧ ¬ 1 ∈ 𝑐))
14 2eluzge1 12563 . . . . . . . . . . . . . 14 2 ∈ (ℤ‘1)
15 fzss1 13224 . . . . . . . . . . . . . 14 (2 ∈ (ℤ‘1) → (2...(𝑀 + 𝑁)) ⊆ (1...(𝑀 + 𝑁)))
1614, 15ax-mp 5 . . . . . . . . . . . . 13 (2...(𝑀 + 𝑁)) ⊆ (1...(𝑀 + 𝑁))
1716sspwi 4544 . . . . . . . . . . . 12 𝒫 (2...(𝑀 + 𝑁)) ⊆ 𝒫 (1...(𝑀 + 𝑁))
1817sseli 3913 . . . . . . . . . . 11 (𝑐 ∈ 𝒫 (2...(𝑀 + 𝑁)) → 𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)))
19 1lt2 12074 . . . . . . . . . . . . . . . 16 1 < 2
20 1re 10906 . . . . . . . . . . . . . . . . 17 1 ∈ ℝ
21 2re 11977 . . . . . . . . . . . . . . . . 17 2 ∈ ℝ
2220, 21ltnlei 11026 . . . . . . . . . . . . . . . 16 (1 < 2 ↔ ¬ 2 ≤ 1)
2319, 22mpbi 229 . . . . . . . . . . . . . . 15 ¬ 2 ≤ 1
24 elfzle1 13188 . . . . . . . . . . . . . . 15 (1 ∈ (2...(𝑀 + 𝑁)) → 2 ≤ 1)
2523, 24mto 196 . . . . . . . . . . . . . 14 ¬ 1 ∈ (2...(𝑀 + 𝑁))
26 elelpwi 4542 . . . . . . . . . . . . . 14 ((1 ∈ 𝑐𝑐 ∈ 𝒫 (2...(𝑀 + 𝑁))) → 1 ∈ (2...(𝑀 + 𝑁)))
2725, 26mto 196 . . . . . . . . . . . . 13 ¬ (1 ∈ 𝑐𝑐 ∈ 𝒫 (2...(𝑀 + 𝑁)))
28 ancom 460 . . . . . . . . . . . . 13 ((1 ∈ 𝑐𝑐 ∈ 𝒫 (2...(𝑀 + 𝑁))) ↔ (𝑐 ∈ 𝒫 (2...(𝑀 + 𝑁)) ∧ 1 ∈ 𝑐))
2927, 28mtbi 321 . . . . . . . . . . . 12 ¬ (𝑐 ∈ 𝒫 (2...(𝑀 + 𝑁)) ∧ 1 ∈ 𝑐)
3029imnani 400 . . . . . . . . . . 11 (𝑐 ∈ 𝒫 (2...(𝑀 + 𝑁)) → ¬ 1 ∈ 𝑐)
3118, 30jca 511 . . . . . . . . . 10 (𝑐 ∈ 𝒫 (2...(𝑀 + 𝑁)) → (𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∧ ¬ 1 ∈ 𝑐))
32 ssin 4161 . . . . . . . . . . . 12 ((𝑐 ⊆ (1...(𝑀 + 𝑁)) ∧ 𝑐 ⊆ {𝑖 ∣ ¬ 𝑖 = 1}) ↔ 𝑐 ⊆ ((1...(𝑀 + 𝑁)) ∩ {𝑖 ∣ ¬ 𝑖 = 1}))
33 1le2 12112 . . . . . . . . . . . . . . . . . . . . 21 1 ≤ 2
34 1p1e2 12028 . . . . . . . . . . . . . . . . . . . . . 22 (1 + 1) = 2
35 nnge1 11931 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑀 ∈ ℕ → 1 ≤ 𝑀)
361, 35ax-mp 5 . . . . . . . . . . . . . . . . . . . . . . 23 1 ≤ 𝑀
37 nnge1 11931 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑁 ∈ ℕ → 1 ≤ 𝑁)
382, 37ax-mp 5 . . . . . . . . . . . . . . . . . . . . . . 23 1 ≤ 𝑁
391nnrei 11912 . . . . . . . . . . . . . . . . . . . . . . . 24 𝑀 ∈ ℝ
402nnrei 11912 . . . . . . . . . . . . . . . . . . . . . . . 24 𝑁 ∈ ℝ
4120, 20, 39, 40le2addi 11468 . . . . . . . . . . . . . . . . . . . . . . 23 ((1 ≤ 𝑀 ∧ 1 ≤ 𝑁) → (1 + 1) ≤ (𝑀 + 𝑁))
4236, 38, 41mp2an 688 . . . . . . . . . . . . . . . . . . . . . 22 (1 + 1) ≤ (𝑀 + 𝑁)
4334, 42eqbrtrri 5093 . . . . . . . . . . . . . . . . . . . . 21 2 ≤ (𝑀 + 𝑁)
4439, 40readdcli 10921 . . . . . . . . . . . . . . . . . . . . . 22 (𝑀 + 𝑁) ∈ ℝ
4520, 21, 44letri 11034 . . . . . . . . . . . . . . . . . . . . 21 ((1 ≤ 2 ∧ 2 ≤ (𝑀 + 𝑁)) → 1 ≤ (𝑀 + 𝑁))
4633, 43, 45mp2an 688 . . . . . . . . . . . . . . . . . . . 20 1 ≤ (𝑀 + 𝑁)
47 1z 12280 . . . . . . . . . . . . . . . . . . . . 21 1 ∈ ℤ
48 nnaddcl 11926 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝑀 + 𝑁) ∈ ℕ)
491, 2, 48mp2an 688 . . . . . . . . . . . . . . . . . . . . . 22 (𝑀 + 𝑁) ∈ ℕ
5049nnzi 12274 . . . . . . . . . . . . . . . . . . . . 21 (𝑀 + 𝑁) ∈ ℤ
51 eluz 12525 . . . . . . . . . . . . . . . . . . . . 21 ((1 ∈ ℤ ∧ (𝑀 + 𝑁) ∈ ℤ) → ((𝑀 + 𝑁) ∈ (ℤ‘1) ↔ 1 ≤ (𝑀 + 𝑁)))
5247, 50, 51mp2an 688 . . . . . . . . . . . . . . . . . . . 20 ((𝑀 + 𝑁) ∈ (ℤ‘1) ↔ 1 ≤ (𝑀 + 𝑁))
5346, 52mpbir 230 . . . . . . . . . . . . . . . . . . 19 (𝑀 + 𝑁) ∈ (ℤ‘1)
54 elfzp12 13264 . . . . . . . . . . . . . . . . . . 19 ((𝑀 + 𝑁) ∈ (ℤ‘1) → (𝑖 ∈ (1...(𝑀 + 𝑁)) ↔ (𝑖 = 1 ∨ 𝑖 ∈ ((1 + 1)...(𝑀 + 𝑁)))))
5553, 54ax-mp 5 . . . . . . . . . . . . . . . . . 18 (𝑖 ∈ (1...(𝑀 + 𝑁)) ↔ (𝑖 = 1 ∨ 𝑖 ∈ ((1 + 1)...(𝑀 + 𝑁))))
5655biimpi 215 . . . . . . . . . . . . . . . . 17 (𝑖 ∈ (1...(𝑀 + 𝑁)) → (𝑖 = 1 ∨ 𝑖 ∈ ((1 + 1)...(𝑀 + 𝑁))))
5756orcanai 999 . . . . . . . . . . . . . . . 16 ((𝑖 ∈ (1...(𝑀 + 𝑁)) ∧ ¬ 𝑖 = 1) → 𝑖 ∈ ((1 + 1)...(𝑀 + 𝑁)))
5834oveq1i 7265 . . . . . . . . . . . . . . . 16 ((1 + 1)...(𝑀 + 𝑁)) = (2...(𝑀 + 𝑁))
5957, 58eleqtrdi 2849 . . . . . . . . . . . . . . 15 ((𝑖 ∈ (1...(𝑀 + 𝑁)) ∧ ¬ 𝑖 = 1) → 𝑖 ∈ (2...(𝑀 + 𝑁)))
6059ss2abi 3996 . . . . . . . . . . . . . 14 {𝑖 ∣ (𝑖 ∈ (1...(𝑀 + 𝑁)) ∧ ¬ 𝑖 = 1)} ⊆ {𝑖𝑖 ∈ (2...(𝑀 + 𝑁))}
61 inab 4230 . . . . . . . . . . . . . . 15 ({𝑖𝑖 ∈ (1...(𝑀 + 𝑁))} ∩ {𝑖 ∣ ¬ 𝑖 = 1}) = {𝑖 ∣ (𝑖 ∈ (1...(𝑀 + 𝑁)) ∧ ¬ 𝑖 = 1)}
62 abid2 2881 . . . . . . . . . . . . . . . 16 {𝑖𝑖 ∈ (1...(𝑀 + 𝑁))} = (1...(𝑀 + 𝑁))
6362ineq1i 4139 . . . . . . . . . . . . . . 15 ({𝑖𝑖 ∈ (1...(𝑀 + 𝑁))} ∩ {𝑖 ∣ ¬ 𝑖 = 1}) = ((1...(𝑀 + 𝑁)) ∩ {𝑖 ∣ ¬ 𝑖 = 1})
6461, 63eqtr3i 2768 . . . . . . . . . . . . . 14 {𝑖 ∣ (𝑖 ∈ (1...(𝑀 + 𝑁)) ∧ ¬ 𝑖 = 1)} = ((1...(𝑀 + 𝑁)) ∩ {𝑖 ∣ ¬ 𝑖 = 1})
65 abid2 2881 . . . . . . . . . . . . . 14 {𝑖𝑖 ∈ (2...(𝑀 + 𝑁))} = (2...(𝑀 + 𝑁))
6660, 64, 653sstr3i 3959 . . . . . . . . . . . . 13 ((1...(𝑀 + 𝑁)) ∩ {𝑖 ∣ ¬ 𝑖 = 1}) ⊆ (2...(𝑀 + 𝑁))
67 sstr 3925 . . . . . . . . . . . . 13 ((𝑐 ⊆ ((1...(𝑀 + 𝑁)) ∩ {𝑖 ∣ ¬ 𝑖 = 1}) ∧ ((1...(𝑀 + 𝑁)) ∩ {𝑖 ∣ ¬ 𝑖 = 1}) ⊆ (2...(𝑀 + 𝑁))) → 𝑐 ⊆ (2...(𝑀 + 𝑁)))
6866, 67mpan2 687 . . . . . . . . . . . 12 (𝑐 ⊆ ((1...(𝑀 + 𝑁)) ∩ {𝑖 ∣ ¬ 𝑖 = 1}) → 𝑐 ⊆ (2...(𝑀 + 𝑁)))
6932, 68sylbi 216 . . . . . . . . . . 11 ((𝑐 ⊆ (1...(𝑀 + 𝑁)) ∧ 𝑐 ⊆ {𝑖 ∣ ¬ 𝑖 = 1}) → 𝑐 ⊆ (2...(𝑀 + 𝑁)))
70 velpw 4535 . . . . . . . . . . . 12 (𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ↔ 𝑐 ⊆ (1...(𝑀 + 𝑁)))
71 ssab 3991 . . . . . . . . . . . . 13 (𝑐 ⊆ {𝑖 ∣ ¬ 𝑖 = 1} ↔ ∀𝑖(𝑖𝑐 → ¬ 𝑖 = 1))
72 df-ex 1784 . . . . . . . . . . . . . . . 16 (∃𝑖(𝑖 = 1 ∧ 𝑖𝑐) ↔ ¬ ∀𝑖 ¬ (𝑖 = 1 ∧ 𝑖𝑐))
7372bicomi 223 . . . . . . . . . . . . . . 15 (¬ ∀𝑖 ¬ (𝑖 = 1 ∧ 𝑖𝑐) ↔ ∃𝑖(𝑖 = 1 ∧ 𝑖𝑐))
7473con1bii 356 . . . . . . . . . . . . . 14 (¬ ∃𝑖(𝑖 = 1 ∧ 𝑖𝑐) ↔ ∀𝑖 ¬ (𝑖 = 1 ∧ 𝑖𝑐))
75 dfclel 2818 . . . . . . . . . . . . . . 15 (1 ∈ 𝑐 ↔ ∃𝑖(𝑖 = 1 ∧ 𝑖𝑐))
7675notbii 319 . . . . . . . . . . . . . 14 (¬ 1 ∈ 𝑐 ↔ ¬ ∃𝑖(𝑖 = 1 ∧ 𝑖𝑐))
77 imnang 1845 . . . . . . . . . . . . . . 15 (∀𝑖(𝑖𝑐 → ¬ 𝑖 = 1) ↔ ∀𝑖 ¬ (𝑖𝑐𝑖 = 1))
78 ancom 460 . . . . . . . . . . . . . . . . 17 ((𝑖 = 1 ∧ 𝑖𝑐) ↔ (𝑖𝑐𝑖 = 1))
7978notbii 319 . . . . . . . . . . . . . . . 16 (¬ (𝑖 = 1 ∧ 𝑖𝑐) ↔ ¬ (𝑖𝑐𝑖 = 1))
8079albii 1823 . . . . . . . . . . . . . . 15 (∀𝑖 ¬ (𝑖 = 1 ∧ 𝑖𝑐) ↔ ∀𝑖 ¬ (𝑖𝑐𝑖 = 1))
8177, 80bitr4i 277 . . . . . . . . . . . . . 14 (∀𝑖(𝑖𝑐 → ¬ 𝑖 = 1) ↔ ∀𝑖 ¬ (𝑖 = 1 ∧ 𝑖𝑐))
8274, 76, 813bitr4ri 303 . . . . . . . . . . . . 13 (∀𝑖(𝑖𝑐 → ¬ 𝑖 = 1) ↔ ¬ 1 ∈ 𝑐)
8371, 82bitr2i 275 . . . . . . . . . . . 12 (¬ 1 ∈ 𝑐𝑐 ⊆ {𝑖 ∣ ¬ 𝑖 = 1})
8470, 83anbi12i 626 . . . . . . . . . . 11 ((𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∧ ¬ 1 ∈ 𝑐) ↔ (𝑐 ⊆ (1...(𝑀 + 𝑁)) ∧ 𝑐 ⊆ {𝑖 ∣ ¬ 𝑖 = 1}))
85 velpw 4535 . . . . . . . . . . 11 (𝑐 ∈ 𝒫 (2...(𝑀 + 𝑁)) ↔ 𝑐 ⊆ (2...(𝑀 + 𝑁)))
8669, 84, 853imtr4i 291 . . . . . . . . . 10 ((𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∧ ¬ 1 ∈ 𝑐) → 𝑐 ∈ 𝒫 (2...(𝑀 + 𝑁)))
8731, 86impbii 208 . . . . . . . . 9 (𝑐 ∈ 𝒫 (2...(𝑀 + 𝑁)) ↔ (𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∧ ¬ 1 ∈ 𝑐))
8887anbi1i 623 . . . . . . . 8 ((𝑐 ∈ 𝒫 (2...(𝑀 + 𝑁)) ∧ (♯‘𝑐) = 𝑀) ↔ ((𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∧ ¬ 1 ∈ 𝑐) ∧ (♯‘𝑐) = 𝑀))
893rabeq2i 3412 . . . . . . . . 9 (𝑐𝑂 ↔ (𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∧ (♯‘𝑐) = 𝑀))
9089anbi1i 623 . . . . . . . 8 ((𝑐𝑂 ∧ ¬ 1 ∈ 𝑐) ↔ ((𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∧ (♯‘𝑐) = 𝑀) ∧ ¬ 1 ∈ 𝑐))
9113, 88, 903bitr4i 302 . . . . . . 7 ((𝑐 ∈ 𝒫 (2...(𝑀 + 𝑁)) ∧ (♯‘𝑐) = 𝑀) ↔ (𝑐𝑂 ∧ ¬ 1 ∈ 𝑐))
9291rabbia2 3401 . . . . . 6 {𝑐 ∈ 𝒫 (2...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀} = {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}
9392fveq2i 6759 . . . . 5 (♯‘{𝑐 ∈ 𝒫 (2...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀}) = (♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐})
94 fzfi 13620 . . . . . . 7 (2...(𝑀 + 𝑁)) ∈ Fin
951nnzi 12274 . . . . . . 7 𝑀 ∈ ℤ
96 hashbc 14093 . . . . . . 7 (((2...(𝑀 + 𝑁)) ∈ Fin ∧ 𝑀 ∈ ℤ) → ((♯‘(2...(𝑀 + 𝑁)))C𝑀) = (♯‘{𝑐 ∈ 𝒫 (2...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀}))
9794, 95, 96mp2an 688 . . . . . 6 ((♯‘(2...(𝑀 + 𝑁)))C𝑀) = (♯‘{𝑐 ∈ 𝒫 (2...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀})
98 2z 12282 . . . . . . . . . . . 12 2 ∈ ℤ
9998eluz1i 12519 . . . . . . . . . . 11 ((𝑀 + 𝑁) ∈ (ℤ‘2) ↔ ((𝑀 + 𝑁) ∈ ℤ ∧ 2 ≤ (𝑀 + 𝑁)))
10050, 43, 99mpbir2an 707 . . . . . . . . . 10 (𝑀 + 𝑁) ∈ (ℤ‘2)
101 hashfz 14070 . . . . . . . . . 10 ((𝑀 + 𝑁) ∈ (ℤ‘2) → (♯‘(2...(𝑀 + 𝑁))) = (((𝑀 + 𝑁) − 2) + 1))
102100, 101ax-mp 5 . . . . . . . . 9 (♯‘(2...(𝑀 + 𝑁))) = (((𝑀 + 𝑁) − 2) + 1)
1031nncni 11913 . . . . . . . . . . 11 𝑀 ∈ ℂ
1042nncni 11913 . . . . . . . . . . 11 𝑁 ∈ ℂ
105103, 104addcli 10912 . . . . . . . . . 10 (𝑀 + 𝑁) ∈ ℂ
106 2cn 11978 . . . . . . . . . 10 2 ∈ ℂ
107 ax-1cn 10860 . . . . . . . . . 10 1 ∈ ℂ
108 subadd23 11163 . . . . . . . . . 10 (((𝑀 + 𝑁) ∈ ℂ ∧ 2 ∈ ℂ ∧ 1 ∈ ℂ) → (((𝑀 + 𝑁) − 2) + 1) = ((𝑀 + 𝑁) + (1 − 2)))
109105, 106, 107, 108mp3an 1459 . . . . . . . . 9 (((𝑀 + 𝑁) − 2) + 1) = ((𝑀 + 𝑁) + (1 − 2))
110106, 107negsubdi2i 11237 . . . . . . . . . . 11 -(2 − 1) = (1 − 2)
111 2m1e1 12029 . . . . . . . . . . . 12 (2 − 1) = 1
112111negeqi 11144 . . . . . . . . . . 11 -(2 − 1) = -1
113110, 112eqtr3i 2768 . . . . . . . . . 10 (1 − 2) = -1
114113oveq2i 7266 . . . . . . . . 9 ((𝑀 + 𝑁) + (1 − 2)) = ((𝑀 + 𝑁) + -1)
115102, 109, 1143eqtri 2770 . . . . . . . 8 (♯‘(2...(𝑀 + 𝑁))) = ((𝑀 + 𝑁) + -1)
116105, 107negsubi 11229 . . . . . . . 8 ((𝑀 + 𝑁) + -1) = ((𝑀 + 𝑁) − 1)
117115, 116eqtri 2766 . . . . . . 7 (♯‘(2...(𝑀 + 𝑁))) = ((𝑀 + 𝑁) − 1)
118117oveq1i 7265 . . . . . 6 ((♯‘(2...(𝑀 + 𝑁)))C𝑀) = (((𝑀 + 𝑁) − 1)C𝑀)
11997, 118eqtr3i 2768 . . . . 5 (♯‘{𝑐 ∈ 𝒫 (2...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀}) = (((𝑀 + 𝑁) − 1)C𝑀)
12093, 119eqtr3i 2768 . . . 4 (♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = (((𝑀 + 𝑁) − 1)C𝑀)
1211, 2, 3ballotlem1 32353 . . . 4 (♯‘𝑂) = ((𝑀 + 𝑁)C𝑀)
122120, 121oveq12i 7267 . . 3 ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)) = ((((𝑀 + 𝑁) − 1)C𝑀) / ((𝑀 + 𝑁)C𝑀))
12312, 122eqtri 2766 . 2 (𝑃‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = ((((𝑀 + 𝑁) − 1)C𝑀) / ((𝑀 + 𝑁)C𝑀))
124 0le1 11428 . . . . 5 0 ≤ 1
125 0re 10908 . . . . . 6 0 ∈ ℝ
126125, 20, 39letri 11034 . . . . 5 ((0 ≤ 1 ∧ 1 ≤ 𝑀) → 0 ≤ 𝑀)
127124, 36, 126mp2an 688 . . . 4 0 ≤ 𝑀
1282nngt0i 11942 . . . . . 6 0 < 𝑁
12940, 128elrpii 12662 . . . . 5 𝑁 ∈ ℝ+
130 ltaddrp 12696 . . . . 5 ((𝑀 ∈ ℝ ∧ 𝑁 ∈ ℝ+) → 𝑀 < (𝑀 + 𝑁))
13139, 129, 130mp2an 688 . . . 4 𝑀 < (𝑀 + 𝑁)
132 0z 12260 . . . . 5 0 ∈ ℤ
133 elfzm11 13256 . . . . 5 ((0 ∈ ℤ ∧ (𝑀 + 𝑁) ∈ ℤ) → (𝑀 ∈ (0...((𝑀 + 𝑁) − 1)) ↔ (𝑀 ∈ ℤ ∧ 0 ≤ 𝑀𝑀 < (𝑀 + 𝑁))))
134132, 50, 133mp2an 688 . . . 4 (𝑀 ∈ (0...((𝑀 + 𝑁) − 1)) ↔ (𝑀 ∈ ℤ ∧ 0 ≤ 𝑀𝑀 < (𝑀 + 𝑁)))
13595, 127, 131, 134mpbir3an 1339 . . 3 𝑀 ∈ (0...((𝑀 + 𝑁) − 1))
136 bcm1n 31018 . . 3 ((𝑀 ∈ (0...((𝑀 + 𝑁) − 1)) ∧ (𝑀 + 𝑁) ∈ ℕ) → ((((𝑀 + 𝑁) − 1)C𝑀) / ((𝑀 + 𝑁)C𝑀)) = (((𝑀 + 𝑁) − 𝑀) / (𝑀 + 𝑁)))
137135, 49, 136mp2an 688 . 2 ((((𝑀 + 𝑁) − 1)C𝑀) / ((𝑀 + 𝑁)C𝑀)) = (((𝑀 + 𝑁) − 𝑀) / (𝑀 + 𝑁))
138 pncan2 11158 . . . 4 ((𝑀 ∈ ℂ ∧ 𝑁 ∈ ℂ) → ((𝑀 + 𝑁) − 𝑀) = 𝑁)
139103, 104, 138mp2an 688 . . 3 ((𝑀 + 𝑁) − 𝑀) = 𝑁
140139oveq1i 7265 . 2 (((𝑀 + 𝑁) − 𝑀) / (𝑀 + 𝑁)) = (𝑁 / (𝑀 + 𝑁))
141123, 137, 1403eqtri 2770 1 (𝑃‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = (𝑁 / (𝑀 + 𝑁))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 843  w3a 1085  wal 1537   = wceq 1539  wex 1783  wcel 2108  {cab 2715  {crab 3067  Vcvv 3422  cin 3882  wss 3883  𝒫 cpw 4530   class class class wbr 5070  cmpt 5153  cfv 6418  (class class class)co 7255  Fincfn 8691  cc 10800  cr 10801  0cc0 10802  1c1 10803   + caddc 10805   < clt 10940  cle 10941  cmin 11135  -cneg 11136   / cdiv 11562  cn 11903  2c2 11958  cz 12249  cuz 12511  +crp 12659  ...cfz 13168  Ccbc 13944  chash 13972
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
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-oadd 8271  df-er 8456  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  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-n0 12164  df-z 12250  df-uz 12512  df-rp 12660  df-fz 13169  df-seq 13650  df-fac 13916  df-bc 13945  df-hash 13973
This theorem is referenced by:  ballotth  32404
  Copyright terms: Public domain W3C validator