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 31855
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 4042 . . . . . 6 {𝑐𝑂 ∣ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝑐)‘𝑖)} ⊆ 𝑂
31, 2eqsstri 3987 . . . . 5 𝐸𝑂
4 fzfi 13344 . . . . . . . . . . 11 (1...(𝑀 + 𝑁)) ∈ Fin
5 pwfi 8816 . . . . . . . . . . 11 ((1...(𝑀 + 𝑁)) ∈ Fin ↔ 𝒫 (1...(𝑀 + 𝑁)) ∈ Fin)
64, 5mpbi 233 . . . . . . . . . 10 𝒫 (1...(𝑀 + 𝑁)) ∈ Fin
7 ballotth.o . . . . . . . . . . 11 𝑂 = {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀}
8 ssrab2 4042 . . . . . . . . . . 11 {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀} ⊆ 𝒫 (1...(𝑀 + 𝑁))
97, 8eqsstri 3987 . . . . . . . . . 10 𝑂 ⊆ 𝒫 (1...(𝑀 + 𝑁))
10 ssfi 8735 . . . . . . . . . 10 ((𝒫 (1...(𝑀 + 𝑁)) ∈ Fin ∧ 𝑂 ⊆ 𝒫 (1...(𝑀 + 𝑁))) → 𝑂 ∈ Fin)
116, 9, 10mp2an 691 . . . . . . . . 9 𝑂 ∈ Fin
12 ssfi 8735 . . . . . . . . 9 ((𝑂 ∈ Fin ∧ 𝐸𝑂) → 𝐸 ∈ Fin)
1311, 3, 12mp2an 691 . . . . . . . 8 𝐸 ∈ Fin
1413elexi 3499 . . . . . . 7 𝐸 ∈ V
1514elpw 4526 . . . . . 6 (𝐸 ∈ 𝒫 𝑂𝐸𝑂)
16 fveq2 6661 . . . . . . . 8 (𝑥 = 𝐸 → (♯‘𝑥) = (♯‘𝐸))
1716oveq1d 7164 . . . . . . 7 (𝑥 = 𝐸 → ((♯‘𝑥) / (♯‘𝑂)) = ((♯‘𝐸) / (♯‘𝑂)))
18 ballotth.p . . . . . . 7 𝑃 = (𝑥 ∈ 𝒫 𝑂 ↦ ((♯‘𝑥) / (♯‘𝑂)))
19 ovex 7182 . . . . . . 7 ((♯‘𝐸) / (♯‘𝑂)) ∈ V
2017, 18, 19fvmpt 6759 . . . . . 6 (𝐸 ∈ 𝒫 𝑂 → (𝑃𝐸) = ((♯‘𝐸) / (♯‘𝑂)))
2115, 20sylbir 238 . . . . 5 (𝐸𝑂 → (𝑃𝐸) = ((♯‘𝐸) / (♯‘𝑂)))
223, 21ax-mp 5 . . . 4 (𝑃𝐸) = ((♯‘𝐸) / (♯‘𝑂))
23 hashssdif 13778 . . . . . . . 8 ((𝑂 ∈ Fin ∧ 𝐸𝑂) → (♯‘(𝑂𝐸)) = ((♯‘𝑂) − (♯‘𝐸)))
2411, 3, 23mp2an 691 . . . . . . 7 (♯‘(𝑂𝐸)) = ((♯‘𝑂) − (♯‘𝐸))
2524eqcomi 2833 . . . . . 6 ((♯‘𝑂) − (♯‘𝐸)) = (♯‘(𝑂𝐸))
26 hashcl 13722 . . . . . . . . 9 (𝑂 ∈ Fin → (♯‘𝑂) ∈ ℕ0)
2711, 26ax-mp 5 . . . . . . . 8 (♯‘𝑂) ∈ ℕ0
2827nn0cni 11906 . . . . . . 7 (♯‘𝑂) ∈ ℂ
29 hashcl 13722 . . . . . . . . 9 (𝐸 ∈ Fin → (♯‘𝐸) ∈ ℕ0)
3013, 29ax-mp 5 . . . . . . . 8 (♯‘𝐸) ∈ ℕ0
3130nn0cni 11906 . . . . . . 7 (♯‘𝐸) ∈ ℂ
32 difss 4094 . . . . . . . . . 10 (𝑂𝐸) ⊆ 𝑂
33 ssfi 8735 . . . . . . . . . 10 ((𝑂 ∈ Fin ∧ (𝑂𝐸) ⊆ 𝑂) → (𝑂𝐸) ∈ Fin)
3411, 32, 33mp2an 691 . . . . . . . . 9 (𝑂𝐸) ∈ Fin
35 hashcl 13722 . . . . . . . . 9 ((𝑂𝐸) ∈ Fin → (♯‘(𝑂𝐸)) ∈ ℕ0)
3634, 35ax-mp 5 . . . . . . . 8 (♯‘(𝑂𝐸)) ∈ ℕ0
3736nn0cni 11906 . . . . . . 7 (♯‘(𝑂𝐸)) ∈ ℂ
3828, 31, 37subsub23i 10974 . . . . . 6 (((♯‘𝑂) − (♯‘𝐸)) = (♯‘(𝑂𝐸)) ↔ ((♯‘𝑂) − (♯‘(𝑂𝐸))) = (♯‘𝐸))
3925, 38mpbi 233 . . . . 5 ((♯‘𝑂) − (♯‘(𝑂𝐸))) = (♯‘𝐸)
4039oveq1i 7159 . . . 4 (((♯‘𝑂) − (♯‘(𝑂𝐸))) / (♯‘𝑂)) = ((♯‘𝐸) / (♯‘𝑂))
4122, 40eqtr4i 2850 . . 3 (𝑃𝐸) = (((♯‘𝑂) − (♯‘(𝑂𝐸))) / (♯‘𝑂))
42 ballotth.m . . . . . . 7 𝑀 ∈ ℕ
43 ballotth.n . . . . . . 7 𝑁 ∈ ℕ
4442, 43, 7ballotlem1 31804 . . . . . 6 (♯‘𝑂) = ((𝑀 + 𝑁)C𝑀)
4542nnnn0i 11902 . . . . . . . . 9 𝑀 ∈ ℕ0
46 nnaddcl 11657 . . . . . . . . . . 11 ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝑀 + 𝑁) ∈ ℕ)
4742, 43, 46mp2an 691 . . . . . . . . . 10 (𝑀 + 𝑁) ∈ ℕ
4847nnnn0i 11902 . . . . . . . . 9 (𝑀 + 𝑁) ∈ ℕ0
4942nnrei 11643 . . . . . . . . . 10 𝑀 ∈ ℝ
5043nnnn0i 11902 . . . . . . . . . 10 𝑁 ∈ ℕ0
5149, 50nn0addge1i 11942 . . . . . . . . 9 𝑀 ≤ (𝑀 + 𝑁)
52 elfz2nn0 13002 . . . . . . . . 9 (𝑀 ∈ (0...(𝑀 + 𝑁)) ↔ (𝑀 ∈ ℕ0 ∧ (𝑀 + 𝑁) ∈ ℕ0𝑀 ≤ (𝑀 + 𝑁)))
5345, 48, 51, 52mpbir3an 1338 . . . . . . . 8 𝑀 ∈ (0...(𝑀 + 𝑁))
54 bccl2 13688 . . . . . . . 8 (𝑀 ∈ (0...(𝑀 + 𝑁)) → ((𝑀 + 𝑁)C𝑀) ∈ ℕ)
5553, 54ax-mp 5 . . . . . . 7 ((𝑀 + 𝑁)C𝑀) ∈ ℕ
5655nnne0i 11674 . . . . . 6 ((𝑀 + 𝑁)C𝑀) ≠ 0
5744, 56eqnetri 3084 . . . . 5 (♯‘𝑂) ≠ 0
5828, 57pm3.2i 474 . . . 4 ((♯‘𝑂) ∈ ℂ ∧ (♯‘𝑂) ≠ 0)
59 divsubdir 11332 . . . 4 (((♯‘𝑂) ∈ ℂ ∧ (♯‘(𝑂𝐸)) ∈ ℂ ∧ ((♯‘𝑂) ∈ ℂ ∧ (♯‘𝑂) ≠ 0)) → (((♯‘𝑂) − (♯‘(𝑂𝐸))) / (♯‘𝑂)) = (((♯‘𝑂) / (♯‘𝑂)) − ((♯‘(𝑂𝐸)) / (♯‘𝑂))))
6028, 37, 58, 59mp3an 1458 . . 3 (((♯‘𝑂) − (♯‘(𝑂𝐸))) / (♯‘𝑂)) = (((♯‘𝑂) / (♯‘𝑂)) − ((♯‘(𝑂𝐸)) / (♯‘𝑂)))
6128, 57dividi 11371 . . . 4 ((♯‘𝑂) / (♯‘𝑂)) = 1
6261oveq1i 7159 . . 3 (((♯‘𝑂) / (♯‘𝑂)) − ((♯‘(𝑂𝐸)) / (♯‘𝑂))) = (1 − ((♯‘(𝑂𝐸)) / (♯‘𝑂)))
6341, 60, 623eqtri 2851 . 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 31854 . . . . . 6 (♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) = (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})
7069oveq1i 7159 . . . . 5 ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
7170oveq1i 7159 . . . 4 (((♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂)) = (((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂))
72 rabxm 4323 . . . . . . 7 (𝑂𝐸) = ({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∪ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})
7372fveq2i 6664 . . . . . 6 (♯‘(𝑂𝐸)) = (♯‘({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∪ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
74 ssrab2 4042 . . . . . . . . . 10 {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ⊆ (𝑂𝐸)
7574, 32sstri 3962 . . . . . . . . 9 {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ⊆ 𝑂
7675, 9sstri 3962 . . . . . . . 8 {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ⊆ 𝒫 (1...(𝑀 + 𝑁))
77 ssfi 8735 . . . . . . . 8 ((𝒫 (1...(𝑀 + 𝑁)) ∈ Fin ∧ {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ⊆ 𝒫 (1...(𝑀 + 𝑁))) → {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∈ Fin)
786, 76, 77mp2an 691 . . . . . . 7 {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∈ Fin
79 ssrab2 4042 . . . . . . . . . 10 {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ (𝑂𝐸)
8079, 32sstri 3962 . . . . . . . . 9 {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ 𝑂
8180, 9sstri 3962 . . . . . . . 8 {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ 𝒫 (1...(𝑀 + 𝑁))
82 ssfi 8735 . . . . . . . 8 ((𝒫 (1...(𝑀 + 𝑁)) ∈ Fin ∧ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ 𝒫 (1...(𝑀 + 𝑁))) → {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ∈ Fin)
836, 81, 82mp2an 691 . . . . . . 7 {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ∈ Fin
84 rabnc 4324 . . . . . . 7 ({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∩ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) = ∅
85 hashun 13748 . . . . . . 7 (({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∈ Fin ∧ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ∈ Fin ∧ ({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∩ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) = ∅) → (♯‘({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∪ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})))
8678, 83, 84, 85mp3an 1458 . . . . . 6 (♯‘({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∪ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
8773, 86eqtri 2847 . . . . 5 (♯‘(𝑂𝐸)) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
8887oveq1i 7159 . . . 4 ((♯‘(𝑂𝐸)) / (♯‘𝑂)) = (((♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂))
89 ssrab2 4042 . . . . . . . . 9 {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ⊆ 𝑂
9011elexi 3499 . . . . . . . . . 10 𝑂 ∈ V
9190elpw2 5234 . . . . . . . . 9 ({𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ∈ 𝒫 𝑂 ↔ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ⊆ 𝑂)
9289, 91mpbir 234 . . . . . . . 8 {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ∈ 𝒫 𝑂
93 fveq2 6661 . . . . . . . . . 10 (𝑥 = {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → (♯‘𝑥) = (♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}))
9493oveq1d 7164 . . . . . . . . 9 (𝑥 = {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → ((♯‘𝑥) / (♯‘𝑂)) = ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)))
95 ovex 7182 . . . . . . . . 9 ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)) ∈ V
9694, 18, 95fvmpt 6759 . . . . . . . 8 ({𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ∈ 𝒫 𝑂 → (𝑃‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)))
9792, 96ax-mp 5 . . . . . . 7 (𝑃‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂))
9842, 43, 7, 18ballotlem2 31806 . . . . . . 7 (𝑃‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = (𝑁 / (𝑀 + 𝑁))
99 nfrab1 3375 . . . . . . . . . . . 12 𝑐{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}
100 nfrab1 3375 . . . . . . . . . . . 12 𝑐{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}
10199, 100dfss2f 3943 . . . . . . . . . . 11 ({𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ⊆ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ↔ ∀𝑐(𝑐 ∈ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → 𝑐 ∈ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
10242, 43, 7, 18, 64, 1ballotlem4 31816 . . . . . . . . . . . . . 14 (𝑐𝑂 → (¬ 1 ∈ 𝑐 → ¬ 𝑐𝐸))
103102imdistani 572 . . . . . . . . . . . . 13 ((𝑐𝑂 ∧ ¬ 1 ∈ 𝑐) → (𝑐𝑂 ∧ ¬ 𝑐𝐸))
104 rabid 3369 . . . . . . . . . . . . 13 (𝑐 ∈ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ↔ (𝑐𝑂 ∧ ¬ 1 ∈ 𝑐))
105 eldif 3929 . . . . . . . . . . . . 13 (𝑐 ∈ (𝑂𝐸) ↔ (𝑐𝑂 ∧ ¬ 𝑐𝐸))
106103, 104, 1053imtr4i 295 . . . . . . . . . . . 12 (𝑐 ∈ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → 𝑐 ∈ (𝑂𝐸))
107104simprbi 500 . . . . . . . . . . . 12 (𝑐 ∈ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → ¬ 1 ∈ 𝑐)
108 rabid 3369 . . . . . . . . . . . 12 (𝑐 ∈ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ↔ (𝑐 ∈ (𝑂𝐸) ∧ ¬ 1 ∈ 𝑐))
109106, 107, 108sylanbrc 586 . . . . . . . . . . 11 (𝑐 ∈ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → 𝑐 ∈ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})
110101, 109mpgbir 1801 . . . . . . . . . 10 {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ⊆ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}
111 rabss2 4040 . . . . . . . . . . 11 ((𝑂𝐸) ⊆ 𝑂 → {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐})
11232, 111ax-mp 5 . . . . . . . . . 10 {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}
113110, 112eqssi 3969 . . . . . . . . 9 {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} = {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}
114113fveq2i 6664 . . . . . . . 8 (♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})
115114oveq1i 7159 . . . . . . 7 ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂))
11697, 98, 1153eqtr3i 2855 . . . . . 6 (𝑁 / (𝑀 + 𝑁)) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂))
117116oveq2i 7160 . . . . 5 (2 · (𝑁 / (𝑀 + 𝑁))) = (2 · ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)))
118 2cn 11709 . . . . . 6 2 ∈ ℂ
119 hashcl 13722 . . . . . . . 8 ({𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ∈ Fin → (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) ∈ ℕ0)
12083, 119ax-mp 5 . . . . . . 7 (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) ∈ ℕ0
121120nn0cni 11906 . . . . . 6 (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) ∈ ℂ
122118, 121, 28, 57divassi 11394 . . . . 5 ((2 · (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂)) = (2 · ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)))
1231212timesi 11772 . . . . . 6 (2 · (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
124123oveq1i 7159 . . . . 5 ((2 · (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂)) = (((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂))
125117, 122, 1243eqtr2i 2853 . . . 4 (2 · (𝑁 / (𝑀 + 𝑁))) = (((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂))
12671, 88, 1253eqtr4ri 2858 . . 3 (2 · (𝑁 / (𝑀 + 𝑁))) = ((♯‘(𝑂𝐸)) / (♯‘𝑂))
127126oveq2i 7160 . 2 (1 − (2 · (𝑁 / (𝑀 + 𝑁)))) = (1 − ((♯‘(𝑂𝐸)) / (♯‘𝑂)))
12847nncni 11644 . . . 4 (𝑀 + 𝑁) ∈ ℂ
12943nncni 11644 . . . . 5 𝑁 ∈ ℂ
130118, 129mulcli 10646 . . . 4 (2 · 𝑁) ∈ ℂ
13147nnne0i 11674 . . . . 5 (𝑀 + 𝑁) ≠ 0
132128, 131pm3.2i 474 . . . 4 ((𝑀 + 𝑁) ∈ ℂ ∧ (𝑀 + 𝑁) ≠ 0)
133 divsubdir 11332 . . . 4 (((𝑀 + 𝑁) ∈ ℂ ∧ (2 · 𝑁) ∈ ℂ ∧ ((𝑀 + 𝑁) ∈ ℂ ∧ (𝑀 + 𝑁) ≠ 0)) → (((𝑀 + 𝑁) − (2 · 𝑁)) / (𝑀 + 𝑁)) = (((𝑀 + 𝑁) / (𝑀 + 𝑁)) − ((2 · 𝑁) / (𝑀 + 𝑁))))
134128, 130, 132, 133mp3an 1458 . . 3 (((𝑀 + 𝑁) − (2 · 𝑁)) / (𝑀 + 𝑁)) = (((𝑀 + 𝑁) / (𝑀 + 𝑁)) − ((2 · 𝑁) / (𝑀 + 𝑁)))
1351292timesi 11772 . . . . . 6 (2 · 𝑁) = (𝑁 + 𝑁)
136135oveq2i 7160 . . . . 5 ((𝑀 + 𝑁) − (2 · 𝑁)) = ((𝑀 + 𝑁) − (𝑁 + 𝑁))
13742nncni 11644 . . . . . . 7 𝑀 ∈ ℂ
138137, 129, 129, 129addsub4i 10980 . . . . . 6 ((𝑀 + 𝑁) − (𝑁 + 𝑁)) = ((𝑀𝑁) + (𝑁𝑁))
139129subidi 10955 . . . . . . 7 (𝑁𝑁) = 0
140139oveq2i 7160 . . . . . 6 ((𝑀𝑁) + (𝑁𝑁)) = ((𝑀𝑁) + 0)
141137, 129subcli 10960 . . . . . . 7 (𝑀𝑁) ∈ ℂ
142141addid1i 10825 . . . . . 6 ((𝑀𝑁) + 0) = (𝑀𝑁)
143138, 140, 1423eqtri 2851 . . . . 5 ((𝑀 + 𝑁) − (𝑁 + 𝑁)) = (𝑀𝑁)
144136, 143eqtri 2847 . . . 4 ((𝑀 + 𝑁) − (2 · 𝑁)) = (𝑀𝑁)
145144oveq1i 7159 . . 3 (((𝑀 + 𝑁) − (2 · 𝑁)) / (𝑀 + 𝑁)) = ((𝑀𝑁) / (𝑀 + 𝑁))
146128, 131dividi 11371 . . . 4 ((𝑀 + 𝑁) / (𝑀 + 𝑁)) = 1
147118, 129, 128, 131divassi 11394 . . . 4 ((2 · 𝑁) / (𝑀 + 𝑁)) = (2 · (𝑁 / (𝑀 + 𝑁)))
148146, 147oveq12i 7161 . . 3 (((𝑀 + 𝑁) / (𝑀 + 𝑁)) − ((2 · 𝑁) / (𝑀 + 𝑁))) = (1 − (2 · (𝑁 / (𝑀 + 𝑁))))
149134, 145, 1483eqtr3ri 2856 . 2 (1 − (2 · (𝑁 / (𝑀 + 𝑁)))) = ((𝑀𝑁) / (𝑀 + 𝑁))
15063, 127, 1493eqtr2i 2853 1 (𝑃𝐸) = ((𝑀𝑁) / (𝑀 + 𝑁))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 399   = wceq 1538  wcel 2115  wne 3014  wral 3133  {crab 3137  cdif 3916  cun 3917  cin 3918  wss 3919  c0 4276  ifcif 4450  𝒫 cpw 4522   class class class wbr 5052  cmpt 5132  cima 5545  cfv 6343  (class class class)co 7149  Fincfn 8505  infcinf 8902  cc 10533  cr 10534  0cc0 10535  1c1 10536   + caddc 10538   · cmul 10540   < clt 10673  cle 10674  cmin 10868   / cdiv 11295  cn 11634  2c2 11689  0cn0 11894  cz 11978  ...cfz 12894  Ccbc 13667  chash 13695
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1912  ax-6 1971  ax-7 2016  ax-8 2117  ax-9 2125  ax-10 2146  ax-11 2162  ax-12 2179  ax-ext 2796  ax-rep 5176  ax-sep 5189  ax-nul 5196  ax-pow 5253  ax-pr 5317  ax-un 7455  ax-cnex 10591  ax-resscn 10592  ax-1cn 10593  ax-icn 10594  ax-addcl 10595  ax-addrcl 10596  ax-mulcl 10597  ax-mulrcl 10598  ax-mulcom 10599  ax-addass 10600  ax-mulass 10601  ax-distr 10602  ax-i2m1 10603  ax-1ne0 10604  ax-1rid 10605  ax-rnegex 10606  ax-rrecex 10607  ax-cnre 10608  ax-pre-lttri 10609  ax-pre-lttrn 10610  ax-pre-ltadd 10611  ax-pre-mulgt0 10612
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2071  df-mo 2624  df-eu 2655  df-clab 2803  df-cleq 2817  df-clel 2896  df-nfc 2964  df-ne 3015  df-nel 3119  df-ral 3138  df-rex 3139  df-reu 3140  df-rmo 3141  df-rab 3142  df-v 3482  df-sbc 3759  df-csb 3867  df-dif 3922  df-un 3924  df-in 3926  df-ss 3936  df-pss 3938  df-nul 4277  df-if 4451  df-pw 4524  df-sn 4551  df-pr 4553  df-tp 4555  df-op 4557  df-uni 4825  df-int 4863  df-iun 4907  df-br 5053  df-opab 5115  df-mpt 5133  df-tr 5159  df-id 5447  df-eprel 5452  df-po 5461  df-so 5462  df-fr 5501  df-we 5503  df-xp 5548  df-rel 5549  df-cnv 5550  df-co 5551  df-dm 5552  df-rn 5553  df-res 5554  df-ima 5555  df-pred 6135  df-ord 6181  df-on 6182  df-lim 6183  df-suc 6184  df-iota 6302  df-fun 6345  df-fn 6346  df-f 6347  df-f1 6348  df-fo 6349  df-f1o 6350  df-fv 6351  df-riota 7107  df-ov 7152  df-oprab 7153  df-mpo 7154  df-om 7575  df-1st 7684  df-2nd 7685  df-wrecs 7943  df-recs 8004  df-rdg 8042  df-1o 8098  df-2o 8099  df-oadd 8102  df-er 8285  df-map 8404  df-en 8506  df-dom 8507  df-sdom 8508  df-fin 8509  df-sup 8903  df-inf 8904  df-dju 9327  df-card 9365  df-pnf 10675  df-mnf 10676  df-xr 10677  df-ltxr 10678  df-le 10679  df-sub 10870  df-neg 10871  df-div 11296  df-nn 11635  df-2 11697  df-n0 11895  df-z 11979  df-uz 12241  df-rp 12387  df-fz 12895  df-seq 13374  df-fac 13639  df-bc 13668  df-hash 13696
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator