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

Theorem ballotth 32491
Description: Bertrand's ballot problem : the probability that A is ahead throughout the counting. The proof formalized here is a proof "by reflection", as opposed to other known proofs "by induction" or "by permutation". This is Metamath 100 proof #30. (Contributed by Thierry Arnoux, 7-Dec-2016.)
Hypotheses
Ref Expression
ballotth.m 𝑀 ∈ ℕ
ballotth.n 𝑁 ∈ ℕ
ballotth.o 𝑂 = {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀}
ballotth.p 𝑃 = (𝑥 ∈ 𝒫 𝑂 ↦ ((♯‘𝑥) / (♯‘𝑂)))
ballotth.f 𝐹 = (𝑐𝑂 ↦ (𝑖 ∈ ℤ ↦ ((♯‘((1...𝑖) ∩ 𝑐)) − (♯‘((1...𝑖) ∖ 𝑐)))))
ballotth.e 𝐸 = {𝑐𝑂 ∣ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝑐)‘𝑖)}
ballotth.mgtn 𝑁 < 𝑀
ballotth.i 𝐼 = (𝑐 ∈ (𝑂𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑐)‘𝑘) = 0}, ℝ, < ))
ballotth.s 𝑆 = (𝑐 ∈ (𝑂𝐸) ↦ (𝑖 ∈ (1...(𝑀 + 𝑁)) ↦ if(𝑖 ≤ (𝐼𝑐), (((𝐼𝑐) + 1) − 𝑖), 𝑖)))
ballotth.r 𝑅 = (𝑐 ∈ (𝑂𝐸) ↦ ((𝑆𝑐) “ 𝑐))
Assertion
Ref Expression
ballotth (𝑃𝐸) = ((𝑀𝑁) / (𝑀 + 𝑁))
Distinct variable groups:   𝑀,𝑐   𝑁,𝑐   𝑂,𝑐   𝑖,𝑀   𝑖,𝑁   𝑖,𝑂   𝑘,𝑀   𝑘,𝑁   𝑘,𝑂   𝑖,𝑐,𝐹,𝑘   𝑖,𝐸,𝑘   𝑘,𝐼,𝑐   𝐸,𝑐   𝑖,𝐼,𝑐   𝑆,𝑘,𝑖,𝑐   𝑅,𝑖,𝑘   𝑥,𝑐,𝐹   𝑥,𝑀   𝑥,𝑁,𝑘,𝑖   𝑥,𝐸   𝑥,𝑂
Allowed substitution hints:   𝑃(𝑥,𝑖,𝑘,𝑐)   𝑅(𝑥,𝑐)   𝑆(𝑥)   𝐼(𝑥)

Proof of Theorem ballotth
StepHypRef Expression
1 ballotth.e . . . . . 6 𝐸 = {𝑐𝑂 ∣ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝑐)‘𝑖)}
2 ssrab2 4014 . . . . . 6 {𝑐𝑂 ∣ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝑐)‘𝑖)} ⊆ 𝑂
31, 2eqsstri 3956 . . . . 5 𝐸𝑂
4 fzfi 13681 . . . . . . . . . . 11 (1...(𝑀 + 𝑁)) ∈ Fin
5 pwfi 8950 . . . . . . . . . . 11 ((1...(𝑀 + 𝑁)) ∈ Fin ↔ 𝒫 (1...(𝑀 + 𝑁)) ∈ Fin)
64, 5mpbi 229 . . . . . . . . . 10 𝒫 (1...(𝑀 + 𝑁)) ∈ Fin
7 ballotth.o . . . . . . . . . . 11 𝑂 = {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀}
8 ssrab2 4014 . . . . . . . . . . 11 {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀} ⊆ 𝒫 (1...(𝑀 + 𝑁))
97, 8eqsstri 3956 . . . . . . . . . 10 𝑂 ⊆ 𝒫 (1...(𝑀 + 𝑁))
10 ssfi 8945 . . . . . . . . . 10 ((𝒫 (1...(𝑀 + 𝑁)) ∈ Fin ∧ 𝑂 ⊆ 𝒫 (1...(𝑀 + 𝑁))) → 𝑂 ∈ Fin)
116, 9, 10mp2an 689 . . . . . . . . 9 𝑂 ∈ Fin
12 ssfi 8945 . . . . . . . . 9 ((𝑂 ∈ Fin ∧ 𝐸𝑂) → 𝐸 ∈ Fin)
1311, 3, 12mp2an 689 . . . . . . . 8 𝐸 ∈ Fin
1413elexi 3450 . . . . . . 7 𝐸 ∈ V
1514elpw 4539 . . . . . 6 (𝐸 ∈ 𝒫 𝑂𝐸𝑂)
16 fveq2 6768 . . . . . . . 8 (𝑥 = 𝐸 → (♯‘𝑥) = (♯‘𝐸))
1716oveq1d 7284 . . . . . . 7 (𝑥 = 𝐸 → ((♯‘𝑥) / (♯‘𝑂)) = ((♯‘𝐸) / (♯‘𝑂)))
18 ballotth.p . . . . . . 7 𝑃 = (𝑥 ∈ 𝒫 𝑂 ↦ ((♯‘𝑥) / (♯‘𝑂)))
19 ovex 7302 . . . . . . 7 ((♯‘𝐸) / (♯‘𝑂)) ∈ V
2017, 18, 19fvmpt 6869 . . . . . 6 (𝐸 ∈ 𝒫 𝑂 → (𝑃𝐸) = ((♯‘𝐸) / (♯‘𝑂)))
2115, 20sylbir 234 . . . . 5 (𝐸𝑂 → (𝑃𝐸) = ((♯‘𝐸) / (♯‘𝑂)))
223, 21ax-mp 5 . . . 4 (𝑃𝐸) = ((♯‘𝐸) / (♯‘𝑂))
23 hashssdif 14116 . . . . . . . 8 ((𝑂 ∈ Fin ∧ 𝐸𝑂) → (♯‘(𝑂𝐸)) = ((♯‘𝑂) − (♯‘𝐸)))
2411, 3, 23mp2an 689 . . . . . . 7 (♯‘(𝑂𝐸)) = ((♯‘𝑂) − (♯‘𝐸))
2524eqcomi 2747 . . . . . 6 ((♯‘𝑂) − (♯‘𝐸)) = (♯‘(𝑂𝐸))
26 hashcl 14060 . . . . . . . . 9 (𝑂 ∈ Fin → (♯‘𝑂) ∈ ℕ0)
2711, 26ax-mp 5 . . . . . . . 8 (♯‘𝑂) ∈ ℕ0
2827nn0cni 12234 . . . . . . 7 (♯‘𝑂) ∈ ℂ
29 hashcl 14060 . . . . . . . . 9 (𝐸 ∈ Fin → (♯‘𝐸) ∈ ℕ0)
3013, 29ax-mp 5 . . . . . . . 8 (♯‘𝐸) ∈ ℕ0
3130nn0cni 12234 . . . . . . 7 (♯‘𝐸) ∈ ℂ
32 difss 4067 . . . . . . . . . 10 (𝑂𝐸) ⊆ 𝑂
33 ssfi 8945 . . . . . . . . . 10 ((𝑂 ∈ Fin ∧ (𝑂𝐸) ⊆ 𝑂) → (𝑂𝐸) ∈ Fin)
3411, 32, 33mp2an 689 . . . . . . . . 9 (𝑂𝐸) ∈ Fin
35 hashcl 14060 . . . . . . . . 9 ((𝑂𝐸) ∈ Fin → (♯‘(𝑂𝐸)) ∈ ℕ0)
3634, 35ax-mp 5 . . . . . . . 8 (♯‘(𝑂𝐸)) ∈ ℕ0
3736nn0cni 12234 . . . . . . 7 (♯‘(𝑂𝐸)) ∈ ℂ
3828, 31, 37subsub23i 11300 . . . . . 6 (((♯‘𝑂) − (♯‘𝐸)) = (♯‘(𝑂𝐸)) ↔ ((♯‘𝑂) − (♯‘(𝑂𝐸))) = (♯‘𝐸))
3925, 38mpbi 229 . . . . 5 ((♯‘𝑂) − (♯‘(𝑂𝐸))) = (♯‘𝐸)
4039oveq1i 7279 . . . 4 (((♯‘𝑂) − (♯‘(𝑂𝐸))) / (♯‘𝑂)) = ((♯‘𝐸) / (♯‘𝑂))
4122, 40eqtr4i 2769 . . 3 (𝑃𝐸) = (((♯‘𝑂) − (♯‘(𝑂𝐸))) / (♯‘𝑂))
42 ballotth.m . . . . . . 7 𝑀 ∈ ℕ
43 ballotth.n . . . . . . 7 𝑁 ∈ ℕ
4442, 43, 7ballotlem1 32440 . . . . . 6 (♯‘𝑂) = ((𝑀 + 𝑁)C𝑀)
4542nnnn0i 12230 . . . . . . . . 9 𝑀 ∈ ℕ0
46 nnaddcl 11985 . . . . . . . . . . 11 ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝑀 + 𝑁) ∈ ℕ)
4742, 43, 46mp2an 689 . . . . . . . . . 10 (𝑀 + 𝑁) ∈ ℕ
4847nnnn0i 12230 . . . . . . . . 9 (𝑀 + 𝑁) ∈ ℕ0
4942nnrei 11971 . . . . . . . . . 10 𝑀 ∈ ℝ
5043nnnn0i 12230 . . . . . . . . . 10 𝑁 ∈ ℕ0
5149, 50nn0addge1i 12270 . . . . . . . . 9 𝑀 ≤ (𝑀 + 𝑁)
52 elfz2nn0 13336 . . . . . . . . 9 (𝑀 ∈ (0...(𝑀 + 𝑁)) ↔ (𝑀 ∈ ℕ0 ∧ (𝑀 + 𝑁) ∈ ℕ0𝑀 ≤ (𝑀 + 𝑁)))
5345, 48, 51, 52mpbir3an 1340 . . . . . . . 8 𝑀 ∈ (0...(𝑀 + 𝑁))
54 bccl2 14026 . . . . . . . 8 (𝑀 ∈ (0...(𝑀 + 𝑁)) → ((𝑀 + 𝑁)C𝑀) ∈ ℕ)
5553, 54ax-mp 5 . . . . . . 7 ((𝑀 + 𝑁)C𝑀) ∈ ℕ
5655nnne0i 12002 . . . . . 6 ((𝑀 + 𝑁)C𝑀) ≠ 0
5744, 56eqnetri 3014 . . . . 5 (♯‘𝑂) ≠ 0
5828, 57pm3.2i 471 . . . 4 ((♯‘𝑂) ∈ ℂ ∧ (♯‘𝑂) ≠ 0)
59 divsubdir 11658 . . . 4 (((♯‘𝑂) ∈ ℂ ∧ (♯‘(𝑂𝐸)) ∈ ℂ ∧ ((♯‘𝑂) ∈ ℂ ∧ (♯‘𝑂) ≠ 0)) → (((♯‘𝑂) − (♯‘(𝑂𝐸))) / (♯‘𝑂)) = (((♯‘𝑂) / (♯‘𝑂)) − ((♯‘(𝑂𝐸)) / (♯‘𝑂))))
6028, 37, 58, 59mp3an 1460 . . 3 (((♯‘𝑂) − (♯‘(𝑂𝐸))) / (♯‘𝑂)) = (((♯‘𝑂) / (♯‘𝑂)) − ((♯‘(𝑂𝐸)) / (♯‘𝑂)))
6128, 57dividi 11697 . . . 4 ((♯‘𝑂) / (♯‘𝑂)) = 1
6261oveq1i 7279 . . 3 (((♯‘𝑂) / (♯‘𝑂)) − ((♯‘(𝑂𝐸)) / (♯‘𝑂))) = (1 − ((♯‘(𝑂𝐸)) / (♯‘𝑂)))
6341, 60, 623eqtri 2770 . 2 (𝑃𝐸) = (1 − ((♯‘(𝑂𝐸)) / (♯‘𝑂)))
64 ballotth.f . . . . . . 7 𝐹 = (𝑐𝑂 ↦ (𝑖 ∈ ℤ ↦ ((♯‘((1...𝑖) ∩ 𝑐)) − (♯‘((1...𝑖) ∖ 𝑐)))))
65 ballotth.mgtn . . . . . . 7 𝑁 < 𝑀
66 ballotth.i . . . . . . 7 𝐼 = (𝑐 ∈ (𝑂𝐸) ↦ inf({𝑘 ∈ (1...(𝑀 + 𝑁)) ∣ ((𝐹𝑐)‘𝑘) = 0}, ℝ, < ))
67 ballotth.s . . . . . . 7 𝑆 = (𝑐 ∈ (𝑂𝐸) ↦ (𝑖 ∈ (1...(𝑀 + 𝑁)) ↦ if(𝑖 ≤ (𝐼𝑐), (((𝐼𝑐) + 1) − 𝑖), 𝑖)))
68 ballotth.r . . . . . . 7 𝑅 = (𝑐 ∈ (𝑂𝐸) ↦ ((𝑆𝑐) “ 𝑐))
6942, 43, 7, 18, 64, 1, 65, 66, 67, 68ballotlem8 32490 . . . . . 6 (♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) = (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})
7069oveq1i 7279 . . . . 5 ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
7170oveq1i 7279 . . . 4 (((♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂)) = (((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂))
72 rabxm 4322 . . . . . . 7 (𝑂𝐸) = ({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∪ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})
7372fveq2i 6771 . . . . . 6 (♯‘(𝑂𝐸)) = (♯‘({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∪ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
74 ssrab2 4014 . . . . . . . . . 10 {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ⊆ (𝑂𝐸)
7574, 32sstri 3931 . . . . . . . . 9 {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ⊆ 𝑂
7675, 9sstri 3931 . . . . . . . 8 {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ⊆ 𝒫 (1...(𝑀 + 𝑁))
77 ssfi 8945 . . . . . . . 8 ((𝒫 (1...(𝑀 + 𝑁)) ∈ Fin ∧ {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ⊆ 𝒫 (1...(𝑀 + 𝑁))) → {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∈ Fin)
786, 76, 77mp2an 689 . . . . . . 7 {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∈ Fin
79 ssrab2 4014 . . . . . . . . . 10 {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ (𝑂𝐸)
8079, 32sstri 3931 . . . . . . . . 9 {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ 𝑂
8180, 9sstri 3931 . . . . . . . 8 {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ 𝒫 (1...(𝑀 + 𝑁))
82 ssfi 8945 . . . . . . . 8 ((𝒫 (1...(𝑀 + 𝑁)) ∈ Fin ∧ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ 𝒫 (1...(𝑀 + 𝑁))) → {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ∈ Fin)
836, 81, 82mp2an 689 . . . . . . 7 {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ∈ Fin
84 rabnc 4323 . . . . . . 7 ({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∩ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) = ∅
85 hashun 14086 . . . . . . 7 (({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∈ Fin ∧ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ∈ Fin ∧ ({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∩ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) = ∅) → (♯‘({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∪ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})))
8678, 83, 84, 85mp3an 1460 . . . . . 6 (♯‘({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∪ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
8773, 86eqtri 2766 . . . . 5 (♯‘(𝑂𝐸)) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
8887oveq1i 7279 . . . 4 ((♯‘(𝑂𝐸)) / (♯‘𝑂)) = (((♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂))
89 ssrab2 4014 . . . . . . . . 9 {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ⊆ 𝑂
9011elexi 3450 . . . . . . . . . 10 𝑂 ∈ V
9190elpw2 5269 . . . . . . . . 9 ({𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ∈ 𝒫 𝑂 ↔ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ⊆ 𝑂)
9289, 91mpbir 230 . . . . . . . 8 {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ∈ 𝒫 𝑂
93 fveq2 6768 . . . . . . . . . 10 (𝑥 = {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → (♯‘𝑥) = (♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}))
9493oveq1d 7284 . . . . . . . . 9 (𝑥 = {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → ((♯‘𝑥) / (♯‘𝑂)) = ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)))
95 ovex 7302 . . . . . . . . 9 ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)) ∈ V
9694, 18, 95fvmpt 6869 . . . . . . . 8 ({𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ∈ 𝒫 𝑂 → (𝑃‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)))
9792, 96ax-mp 5 . . . . . . 7 (𝑃‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂))
9842, 43, 7, 18ballotlem2 32442 . . . . . . 7 (𝑃‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = (𝑁 / (𝑀 + 𝑁))
99 nfrab1 3316 . . . . . . . . . . . 12 𝑐{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}
100 nfrab1 3316 . . . . . . . . . . . 12 𝑐{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}
10199, 100dfss2f 3912 . . . . . . . . . . 11 ({𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ⊆ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ↔ ∀𝑐(𝑐 ∈ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → 𝑐 ∈ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
10242, 43, 7, 18, 64, 1ballotlem4 32452 . . . . . . . . . . . . . 14 (𝑐𝑂 → (¬ 1 ∈ 𝑐 → ¬ 𝑐𝐸))
103102imdistani 569 . . . . . . . . . . . . 13 ((𝑐𝑂 ∧ ¬ 1 ∈ 𝑐) → (𝑐𝑂 ∧ ¬ 𝑐𝐸))
104 rabid 3309 . . . . . . . . . . . . 13 (𝑐 ∈ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ↔ (𝑐𝑂 ∧ ¬ 1 ∈ 𝑐))
105 eldif 3898 . . . . . . . . . . . . 13 (𝑐 ∈ (𝑂𝐸) ↔ (𝑐𝑂 ∧ ¬ 𝑐𝐸))
106103, 104, 1053imtr4i 292 . . . . . . . . . . . 12 (𝑐 ∈ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → 𝑐 ∈ (𝑂𝐸))
107104simprbi 497 . . . . . . . . . . . 12 (𝑐 ∈ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → ¬ 1 ∈ 𝑐)
108 rabid 3309 . . . . . . . . . . . 12 (𝑐 ∈ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ↔ (𝑐 ∈ (𝑂𝐸) ∧ ¬ 1 ∈ 𝑐))
109106, 107, 108sylanbrc 583 . . . . . . . . . . 11 (𝑐 ∈ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → 𝑐 ∈ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})
110101, 109mpgbir 1802 . . . . . . . . . 10 {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ⊆ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}
111 rabss2 4012 . . . . . . . . . . 11 ((𝑂𝐸) ⊆ 𝑂 → {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐})
11232, 111ax-mp 5 . . . . . . . . . 10 {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}
113110, 112eqssi 3938 . . . . . . . . 9 {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} = {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}
114113fveq2i 6771 . . . . . . . 8 (♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})
115114oveq1i 7279 . . . . . . 7 ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂))
11697, 98, 1153eqtr3i 2774 . . . . . 6 (𝑁 / (𝑀 + 𝑁)) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂))
117116oveq2i 7280 . . . . 5 (2 · (𝑁 / (𝑀 + 𝑁))) = (2 · ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)))
118 2cn 12037 . . . . . 6 2 ∈ ℂ
119 hashcl 14060 . . . . . . . 8 ({𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ∈ Fin → (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) ∈ ℕ0)
12083, 119ax-mp 5 . . . . . . 7 (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) ∈ ℕ0
121120nn0cni 12234 . . . . . 6 (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) ∈ ℂ
122118, 121, 28, 57divassi 11720 . . . . 5 ((2 · (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂)) = (2 · ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)))
1231212timesi 12100 . . . . . 6 (2 · (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
124123oveq1i 7279 . . . . 5 ((2 · (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂)) = (((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂))
125117, 122, 1243eqtr2i 2772 . . . 4 (2 · (𝑁 / (𝑀 + 𝑁))) = (((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂))
12671, 88, 1253eqtr4ri 2777 . . 3 (2 · (𝑁 / (𝑀 + 𝑁))) = ((♯‘(𝑂𝐸)) / (♯‘𝑂))
127126oveq2i 7280 . 2 (1 − (2 · (𝑁 / (𝑀 + 𝑁)))) = (1 − ((♯‘(𝑂𝐸)) / (♯‘𝑂)))
12847nncni 11972 . . . 4 (𝑀 + 𝑁) ∈ ℂ
12943nncni 11972 . . . . 5 𝑁 ∈ ℂ
130118, 129mulcli 10971 . . . 4 (2 · 𝑁) ∈ ℂ
13147nnne0i 12002 . . . . 5 (𝑀 + 𝑁) ≠ 0
132128, 131pm3.2i 471 . . . 4 ((𝑀 + 𝑁) ∈ ℂ ∧ (𝑀 + 𝑁) ≠ 0)
133 divsubdir 11658 . . . 4 (((𝑀 + 𝑁) ∈ ℂ ∧ (2 · 𝑁) ∈ ℂ ∧ ((𝑀 + 𝑁) ∈ ℂ ∧ (𝑀 + 𝑁) ≠ 0)) → (((𝑀 + 𝑁) − (2 · 𝑁)) / (𝑀 + 𝑁)) = (((𝑀 + 𝑁) / (𝑀 + 𝑁)) − ((2 · 𝑁) / (𝑀 + 𝑁))))
134128, 130, 132, 133mp3an 1460 . . 3 (((𝑀 + 𝑁) − (2 · 𝑁)) / (𝑀 + 𝑁)) = (((𝑀 + 𝑁) / (𝑀 + 𝑁)) − ((2 · 𝑁) / (𝑀 + 𝑁)))
1351292timesi 12100 . . . . . 6 (2 · 𝑁) = (𝑁 + 𝑁)
136135oveq2i 7280 . . . . 5 ((𝑀 + 𝑁) − (2 · 𝑁)) = ((𝑀 + 𝑁) − (𝑁 + 𝑁))
13742nncni 11972 . . . . . . 7 𝑀 ∈ ℂ
138137, 129, 129, 129addsub4i 11306 . . . . . 6 ((𝑀 + 𝑁) − (𝑁 + 𝑁)) = ((𝑀𝑁) + (𝑁𝑁))
139129subidi 11281 . . . . . . 7 (𝑁𝑁) = 0
140139oveq2i 7280 . . . . . 6 ((𝑀𝑁) + (𝑁𝑁)) = ((𝑀𝑁) + 0)
141137, 129subcli 11286 . . . . . . 7 (𝑀𝑁) ∈ ℂ
142141addid1i 11151 . . . . . 6 ((𝑀𝑁) + 0) = (𝑀𝑁)
143138, 140, 1423eqtri 2770 . . . . 5 ((𝑀 + 𝑁) − (𝑁 + 𝑁)) = (𝑀𝑁)
144136, 143eqtri 2766 . . . 4 ((𝑀 + 𝑁) − (2 · 𝑁)) = (𝑀𝑁)
145144oveq1i 7279 . . 3 (((𝑀 + 𝑁) − (2 · 𝑁)) / (𝑀 + 𝑁)) = ((𝑀𝑁) / (𝑀 + 𝑁))
146128, 131dividi 11697 . . . 4 ((𝑀 + 𝑁) / (𝑀 + 𝑁)) = 1
147118, 129, 128, 131divassi 11720 . . . 4 ((2 · 𝑁) / (𝑀 + 𝑁)) = (2 · (𝑁 / (𝑀 + 𝑁)))
148146, 147oveq12i 7281 . . 3 (((𝑀 + 𝑁) / (𝑀 + 𝑁)) − ((2 · 𝑁) / (𝑀 + 𝑁))) = (1 − (2 · (𝑁 / (𝑀 + 𝑁))))
149134, 145, 1483eqtr3ri 2775 . 2 (1 − (2 · (𝑁 / (𝑀 + 𝑁)))) = ((𝑀𝑁) / (𝑀 + 𝑁))
15063, 127, 1493eqtr2i 2772 1 (𝑃𝐸) = ((𝑀𝑁) / (𝑀 + 𝑁))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 396   = wceq 1539  wcel 2106  wne 2943  wral 3064  {crab 3068  cdif 3885  cun 3886  cin 3887  wss 3888  c0 4258  ifcif 4461  𝒫 cpw 4535   class class class wbr 5075  cmpt 5158  cima 5589  cfv 6428  (class class class)co 7269  Fincfn 8722  infcinf 9189  cc 10858  cr 10859  0cc0 10860  1c1 10861   + caddc 10863   · cmul 10865   < clt 10998  cle 10999  cmin 11194   / cdiv 11621  cn 11962  2c2 12017  0cn0 12222  cz 12308  ...cfz 13228  Ccbc 14005  chash 14033
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 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-rep 5210  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7580  ax-cnex 10916  ax-resscn 10917  ax-1cn 10918  ax-icn 10919  ax-addcl 10920  ax-addrcl 10921  ax-mulcl 10922  ax-mulrcl 10923  ax-mulcom 10924  ax-addass 10925  ax-mulass 10926  ax-distr 10927  ax-i2m1 10928  ax-1ne0 10929  ax-1rid 10930  ax-rnegex 10931  ax-rrecex 10932  ax-cnre 10933  ax-pre-lttri 10934  ax-pre-lttrn 10935  ax-pre-ltadd 10936  ax-pre-mulgt0 10937
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 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-nel 3050  df-ral 3069  df-rex 3070  df-rmo 3071  df-reu 3072  df-rab 3073  df-v 3433  df-sbc 3718  df-csb 3834  df-dif 3891  df-un 3893  df-in 3895  df-ss 3905  df-pss 3907  df-nul 4259  df-if 4462  df-pw 4537  df-sn 4564  df-pr 4566  df-op 4570  df-uni 4842  df-int 4882  df-iun 4928  df-br 5076  df-opab 5138  df-mpt 5159  df-tr 5193  df-id 5486  df-eprel 5492  df-po 5500  df-so 5501  df-fr 5541  df-we 5543  df-xp 5592  df-rel 5593  df-cnv 5594  df-co 5595  df-dm 5596  df-rn 5597  df-res 5598  df-ima 5599  df-pred 6197  df-ord 6264  df-on 6265  df-lim 6266  df-suc 6267  df-iota 6386  df-fun 6430  df-fn 6431  df-f 6432  df-f1 6433  df-fo 6434  df-f1o 6435  df-fv 6436  df-riota 7226  df-ov 7272  df-oprab 7273  df-mpo 7274  df-om 7705  df-1st 7822  df-2nd 7823  df-frecs 8086  df-wrecs 8117  df-recs 8191  df-rdg 8230  df-1o 8286  df-oadd 8290  df-er 8487  df-en 8723  df-dom 8724  df-sdom 8725  df-fin 8726  df-sup 9190  df-inf 9191  df-dju 9648  df-card 9686  df-pnf 11000  df-mnf 11001  df-xr 11002  df-ltxr 11003  df-le 11004  df-sub 11196  df-neg 11197  df-div 11622  df-nn 11963  df-2 12025  df-n0 12223  df-z 12309  df-uz 12572  df-rp 12720  df-fz 13229  df-seq 13711  df-fac 13977  df-bc 14006  df-hash 14034
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator