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 32404
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 4009 . . . . . 6 {𝑐𝑂 ∣ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝑐)‘𝑖)} ⊆ 𝑂
31, 2eqsstri 3951 . . . . 5 𝐸𝑂
4 fzfi 13620 . . . . . . . . . . 11 (1...(𝑀 + 𝑁)) ∈ Fin
5 pwfi 8923 . . . . . . . . . . 11 ((1...(𝑀 + 𝑁)) ∈ Fin ↔ 𝒫 (1...(𝑀 + 𝑁)) ∈ Fin)
64, 5mpbi 229 . . . . . . . . . 10 𝒫 (1...(𝑀 + 𝑁)) ∈ Fin
7 ballotth.o . . . . . . . . . . 11 𝑂 = {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀}
8 ssrab2 4009 . . . . . . . . . . 11 {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀} ⊆ 𝒫 (1...(𝑀 + 𝑁))
97, 8eqsstri 3951 . . . . . . . . . 10 𝑂 ⊆ 𝒫 (1...(𝑀 + 𝑁))
10 ssfi 8918 . . . . . . . . . 10 ((𝒫 (1...(𝑀 + 𝑁)) ∈ Fin ∧ 𝑂 ⊆ 𝒫 (1...(𝑀 + 𝑁))) → 𝑂 ∈ Fin)
116, 9, 10mp2an 688 . . . . . . . . 9 𝑂 ∈ Fin
12 ssfi 8918 . . . . . . . . 9 ((𝑂 ∈ Fin ∧ 𝐸𝑂) → 𝐸 ∈ Fin)
1311, 3, 12mp2an 688 . . . . . . . 8 𝐸 ∈ Fin
1413elexi 3441 . . . . . . 7 𝐸 ∈ V
1514elpw 4534 . . . . . 6 (𝐸 ∈ 𝒫 𝑂𝐸𝑂)
16 fveq2 6756 . . . . . . . 8 (𝑥 = 𝐸 → (♯‘𝑥) = (♯‘𝐸))
1716oveq1d 7270 . . . . . . 7 (𝑥 = 𝐸 → ((♯‘𝑥) / (♯‘𝑂)) = ((♯‘𝐸) / (♯‘𝑂)))
18 ballotth.p . . . . . . 7 𝑃 = (𝑥 ∈ 𝒫 𝑂 ↦ ((♯‘𝑥) / (♯‘𝑂)))
19 ovex 7288 . . . . . . 7 ((♯‘𝐸) / (♯‘𝑂)) ∈ V
2017, 18, 19fvmpt 6857 . . . . . 6 (𝐸 ∈ 𝒫 𝑂 → (𝑃𝐸) = ((♯‘𝐸) / (♯‘𝑂)))
2115, 20sylbir 234 . . . . 5 (𝐸𝑂 → (𝑃𝐸) = ((♯‘𝐸) / (♯‘𝑂)))
223, 21ax-mp 5 . . . 4 (𝑃𝐸) = ((♯‘𝐸) / (♯‘𝑂))
23 hashssdif 14055 . . . . . . . 8 ((𝑂 ∈ Fin ∧ 𝐸𝑂) → (♯‘(𝑂𝐸)) = ((♯‘𝑂) − (♯‘𝐸)))
2411, 3, 23mp2an 688 . . . . . . 7 (♯‘(𝑂𝐸)) = ((♯‘𝑂) − (♯‘𝐸))
2524eqcomi 2747 . . . . . 6 ((♯‘𝑂) − (♯‘𝐸)) = (♯‘(𝑂𝐸))
26 hashcl 13999 . . . . . . . . 9 (𝑂 ∈ Fin → (♯‘𝑂) ∈ ℕ0)
2711, 26ax-mp 5 . . . . . . . 8 (♯‘𝑂) ∈ ℕ0
2827nn0cni 12175 . . . . . . 7 (♯‘𝑂) ∈ ℂ
29 hashcl 13999 . . . . . . . . 9 (𝐸 ∈ Fin → (♯‘𝐸) ∈ ℕ0)
3013, 29ax-mp 5 . . . . . . . 8 (♯‘𝐸) ∈ ℕ0
3130nn0cni 12175 . . . . . . 7 (♯‘𝐸) ∈ ℂ
32 difss 4062 . . . . . . . . . 10 (𝑂𝐸) ⊆ 𝑂
33 ssfi 8918 . . . . . . . . . 10 ((𝑂 ∈ Fin ∧ (𝑂𝐸) ⊆ 𝑂) → (𝑂𝐸) ∈ Fin)
3411, 32, 33mp2an 688 . . . . . . . . 9 (𝑂𝐸) ∈ Fin
35 hashcl 13999 . . . . . . . . 9 ((𝑂𝐸) ∈ Fin → (♯‘(𝑂𝐸)) ∈ ℕ0)
3634, 35ax-mp 5 . . . . . . . 8 (♯‘(𝑂𝐸)) ∈ ℕ0
3736nn0cni 12175 . . . . . . 7 (♯‘(𝑂𝐸)) ∈ ℂ
3828, 31, 37subsub23i 11241 . . . . . 6 (((♯‘𝑂) − (♯‘𝐸)) = (♯‘(𝑂𝐸)) ↔ ((♯‘𝑂) − (♯‘(𝑂𝐸))) = (♯‘𝐸))
3925, 38mpbi 229 . . . . 5 ((♯‘𝑂) − (♯‘(𝑂𝐸))) = (♯‘𝐸)
4039oveq1i 7265 . . . 4 (((♯‘𝑂) − (♯‘(𝑂𝐸))) / (♯‘𝑂)) = ((♯‘𝐸) / (♯‘𝑂))
4122, 40eqtr4i 2769 . . 3 (𝑃𝐸) = (((♯‘𝑂) − (♯‘(𝑂𝐸))) / (♯‘𝑂))
42 ballotth.m . . . . . . 7 𝑀 ∈ ℕ
43 ballotth.n . . . . . . 7 𝑁 ∈ ℕ
4442, 43, 7ballotlem1 32353 . . . . . 6 (♯‘𝑂) = ((𝑀 + 𝑁)C𝑀)
4542nnnn0i 12171 . . . . . . . . 9 𝑀 ∈ ℕ0
46 nnaddcl 11926 . . . . . . . . . . 11 ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝑀 + 𝑁) ∈ ℕ)
4742, 43, 46mp2an 688 . . . . . . . . . 10 (𝑀 + 𝑁) ∈ ℕ
4847nnnn0i 12171 . . . . . . . . 9 (𝑀 + 𝑁) ∈ ℕ0
4942nnrei 11912 . . . . . . . . . 10 𝑀 ∈ ℝ
5043nnnn0i 12171 . . . . . . . . . 10 𝑁 ∈ ℕ0
5149, 50nn0addge1i 12211 . . . . . . . . 9 𝑀 ≤ (𝑀 + 𝑁)
52 elfz2nn0 13276 . . . . . . . . 9 (𝑀 ∈ (0...(𝑀 + 𝑁)) ↔ (𝑀 ∈ ℕ0 ∧ (𝑀 + 𝑁) ∈ ℕ0𝑀 ≤ (𝑀 + 𝑁)))
5345, 48, 51, 52mpbir3an 1339 . . . . . . . 8 𝑀 ∈ (0...(𝑀 + 𝑁))
54 bccl2 13965 . . . . . . . 8 (𝑀 ∈ (0...(𝑀 + 𝑁)) → ((𝑀 + 𝑁)C𝑀) ∈ ℕ)
5553, 54ax-mp 5 . . . . . . 7 ((𝑀 + 𝑁)C𝑀) ∈ ℕ
5655nnne0i 11943 . . . . . 6 ((𝑀 + 𝑁)C𝑀) ≠ 0
5744, 56eqnetri 3013 . . . . 5 (♯‘𝑂) ≠ 0
5828, 57pm3.2i 470 . . . 4 ((♯‘𝑂) ∈ ℂ ∧ (♯‘𝑂) ≠ 0)
59 divsubdir 11599 . . . 4 (((♯‘𝑂) ∈ ℂ ∧ (♯‘(𝑂𝐸)) ∈ ℂ ∧ ((♯‘𝑂) ∈ ℂ ∧ (♯‘𝑂) ≠ 0)) → (((♯‘𝑂) − (♯‘(𝑂𝐸))) / (♯‘𝑂)) = (((♯‘𝑂) / (♯‘𝑂)) − ((♯‘(𝑂𝐸)) / (♯‘𝑂))))
6028, 37, 58, 59mp3an 1459 . . 3 (((♯‘𝑂) − (♯‘(𝑂𝐸))) / (♯‘𝑂)) = (((♯‘𝑂) / (♯‘𝑂)) − ((♯‘(𝑂𝐸)) / (♯‘𝑂)))
6128, 57dividi 11638 . . . 4 ((♯‘𝑂) / (♯‘𝑂)) = 1
6261oveq1i 7265 . . 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 32403 . . . . . 6 (♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) = (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})
7069oveq1i 7265 . . . . 5 ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
7170oveq1i 7265 . . . 4 (((♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂)) = (((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂))
72 rabxm 4317 . . . . . . 7 (𝑂𝐸) = ({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∪ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})
7372fveq2i 6759 . . . . . 6 (♯‘(𝑂𝐸)) = (♯‘({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∪ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
74 ssrab2 4009 . . . . . . . . . 10 {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ⊆ (𝑂𝐸)
7574, 32sstri 3926 . . . . . . . . 9 {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ⊆ 𝑂
7675, 9sstri 3926 . . . . . . . 8 {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ⊆ 𝒫 (1...(𝑀 + 𝑁))
77 ssfi 8918 . . . . . . . 8 ((𝒫 (1...(𝑀 + 𝑁)) ∈ Fin ∧ {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ⊆ 𝒫 (1...(𝑀 + 𝑁))) → {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∈ Fin)
786, 76, 77mp2an 688 . . . . . . 7 {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∈ Fin
79 ssrab2 4009 . . . . . . . . . 10 {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ (𝑂𝐸)
8079, 32sstri 3926 . . . . . . . . 9 {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ 𝑂
8180, 9sstri 3926 . . . . . . . 8 {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ 𝒫 (1...(𝑀 + 𝑁))
82 ssfi 8918 . . . . . . . 8 ((𝒫 (1...(𝑀 + 𝑁)) ∈ Fin ∧ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ 𝒫 (1...(𝑀 + 𝑁))) → {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ∈ Fin)
836, 81, 82mp2an 688 . . . . . . 7 {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ∈ Fin
84 rabnc 4318 . . . . . . 7 ({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∩ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) = ∅
85 hashun 14025 . . . . . . 7 (({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∈ Fin ∧ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ∈ Fin ∧ ({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∩ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) = ∅) → (♯‘({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∪ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})))
8678, 83, 84, 85mp3an 1459 . . . . . 6 (♯‘({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∪ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
8773, 86eqtri 2766 . . . . 5 (♯‘(𝑂𝐸)) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
8887oveq1i 7265 . . . 4 ((♯‘(𝑂𝐸)) / (♯‘𝑂)) = (((♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂))
89 ssrab2 4009 . . . . . . . . 9 {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ⊆ 𝑂
9011elexi 3441 . . . . . . . . . 10 𝑂 ∈ V
9190elpw2 5264 . . . . . . . . 9 ({𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ∈ 𝒫 𝑂 ↔ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ⊆ 𝑂)
9289, 91mpbir 230 . . . . . . . 8 {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ∈ 𝒫 𝑂
93 fveq2 6756 . . . . . . . . . 10 (𝑥 = {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → (♯‘𝑥) = (♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}))
9493oveq1d 7270 . . . . . . . . 9 (𝑥 = {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → ((♯‘𝑥) / (♯‘𝑂)) = ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)))
95 ovex 7288 . . . . . . . . 9 ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)) ∈ V
9694, 18, 95fvmpt 6857 . . . . . . . 8 ({𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ∈ 𝒫 𝑂 → (𝑃‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)))
9792, 96ax-mp 5 . . . . . . 7 (𝑃‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂))
9842, 43, 7, 18ballotlem2 32355 . . . . . . 7 (𝑃‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = (𝑁 / (𝑀 + 𝑁))
99 nfrab1 3310 . . . . . . . . . . . 12 𝑐{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}
100 nfrab1 3310 . . . . . . . . . . . 12 𝑐{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}
10199, 100dfss2f 3907 . . . . . . . . . . 11 ({𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ⊆ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ↔ ∀𝑐(𝑐 ∈ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → 𝑐 ∈ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
10242, 43, 7, 18, 64, 1ballotlem4 32365 . . . . . . . . . . . . . 14 (𝑐𝑂 → (¬ 1 ∈ 𝑐 → ¬ 𝑐𝐸))
103102imdistani 568 . . . . . . . . . . . . 13 ((𝑐𝑂 ∧ ¬ 1 ∈ 𝑐) → (𝑐𝑂 ∧ ¬ 𝑐𝐸))
104 rabid 3304 . . . . . . . . . . . . 13 (𝑐 ∈ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ↔ (𝑐𝑂 ∧ ¬ 1 ∈ 𝑐))
105 eldif 3893 . . . . . . . . . . . . 13 (𝑐 ∈ (𝑂𝐸) ↔ (𝑐𝑂 ∧ ¬ 𝑐𝐸))
106103, 104, 1053imtr4i 291 . . . . . . . . . . . 12 (𝑐 ∈ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → 𝑐 ∈ (𝑂𝐸))
107104simprbi 496 . . . . . . . . . . . 12 (𝑐 ∈ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → ¬ 1 ∈ 𝑐)
108 rabid 3304 . . . . . . . . . . . 12 (𝑐 ∈ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ↔ (𝑐 ∈ (𝑂𝐸) ∧ ¬ 1 ∈ 𝑐))
109106, 107, 108sylanbrc 582 . . . . . . . . . . 11 (𝑐 ∈ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → 𝑐 ∈ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})
110101, 109mpgbir 1803 . . . . . . . . . 10 {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ⊆ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}
111 rabss2 4007 . . . . . . . . . . 11 ((𝑂𝐸) ⊆ 𝑂 → {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐})
11232, 111ax-mp 5 . . . . . . . . . 10 {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}
113110, 112eqssi 3933 . . . . . . . . 9 {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} = {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}
114113fveq2i 6759 . . . . . . . 8 (♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})
115114oveq1i 7265 . . . . . . 7 ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂))
11697, 98, 1153eqtr3i 2774 . . . . . 6 (𝑁 / (𝑀 + 𝑁)) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂))
117116oveq2i 7266 . . . . 5 (2 · (𝑁 / (𝑀 + 𝑁))) = (2 · ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)))
118 2cn 11978 . . . . . 6 2 ∈ ℂ
119 hashcl 13999 . . . . . . . 8 ({𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ∈ Fin → (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) ∈ ℕ0)
12083, 119ax-mp 5 . . . . . . 7 (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) ∈ ℕ0
121120nn0cni 12175 . . . . . 6 (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) ∈ ℂ
122118, 121, 28, 57divassi 11661 . . . . 5 ((2 · (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂)) = (2 · ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)))
1231212timesi 12041 . . . . . 6 (2 · (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
124123oveq1i 7265 . . . . 5 ((2 · (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂)) = (((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂))
125117, 122, 1243eqtr2i 2772 . . . 4 (2 · (𝑁 / (𝑀 + 𝑁))) = (((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂))
12671, 88, 1253eqtr4ri 2777 . . 3 (2 · (𝑁 / (𝑀 + 𝑁))) = ((♯‘(𝑂𝐸)) / (♯‘𝑂))
127126oveq2i 7266 . 2 (1 − (2 · (𝑁 / (𝑀 + 𝑁)))) = (1 − ((♯‘(𝑂𝐸)) / (♯‘𝑂)))
12847nncni 11913 . . . 4 (𝑀 + 𝑁) ∈ ℂ
12943nncni 11913 . . . . 5 𝑁 ∈ ℂ
130118, 129mulcli 10913 . . . 4 (2 · 𝑁) ∈ ℂ
13147nnne0i 11943 . . . . 5 (𝑀 + 𝑁) ≠ 0
132128, 131pm3.2i 470 . . . 4 ((𝑀 + 𝑁) ∈ ℂ ∧ (𝑀 + 𝑁) ≠ 0)
133 divsubdir 11599 . . . 4 (((𝑀 + 𝑁) ∈ ℂ ∧ (2 · 𝑁) ∈ ℂ ∧ ((𝑀 + 𝑁) ∈ ℂ ∧ (𝑀 + 𝑁) ≠ 0)) → (((𝑀 + 𝑁) − (2 · 𝑁)) / (𝑀 + 𝑁)) = (((𝑀 + 𝑁) / (𝑀 + 𝑁)) − ((2 · 𝑁) / (𝑀 + 𝑁))))
134128, 130, 132, 133mp3an 1459 . . 3 (((𝑀 + 𝑁) − (2 · 𝑁)) / (𝑀 + 𝑁)) = (((𝑀 + 𝑁) / (𝑀 + 𝑁)) − ((2 · 𝑁) / (𝑀 + 𝑁)))
1351292timesi 12041 . . . . . 6 (2 · 𝑁) = (𝑁 + 𝑁)
136135oveq2i 7266 . . . . 5 ((𝑀 + 𝑁) − (2 · 𝑁)) = ((𝑀 + 𝑁) − (𝑁 + 𝑁))
13742nncni 11913 . . . . . . 7 𝑀 ∈ ℂ
138137, 129, 129, 129addsub4i 11247 . . . . . 6 ((𝑀 + 𝑁) − (𝑁 + 𝑁)) = ((𝑀𝑁) + (𝑁𝑁))
139129subidi 11222 . . . . . . 7 (𝑁𝑁) = 0
140139oveq2i 7266 . . . . . 6 ((𝑀𝑁) + (𝑁𝑁)) = ((𝑀𝑁) + 0)
141137, 129subcli 11227 . . . . . . 7 (𝑀𝑁) ∈ ℂ
142141addid1i 11092 . . . . . 6 ((𝑀𝑁) + 0) = (𝑀𝑁)
143138, 140, 1423eqtri 2770 . . . . 5 ((𝑀 + 𝑁) − (𝑁 + 𝑁)) = (𝑀𝑁)
144136, 143eqtri 2766 . . . 4 ((𝑀 + 𝑁) − (2 · 𝑁)) = (𝑀𝑁)
145144oveq1i 7265 . . 3 (((𝑀 + 𝑁) − (2 · 𝑁)) / (𝑀 + 𝑁)) = ((𝑀𝑁) / (𝑀 + 𝑁))
146128, 131dividi 11638 . . . 4 ((𝑀 + 𝑁) / (𝑀 + 𝑁)) = 1
147118, 129, 128, 131divassi 11661 . . . 4 ((2 · 𝑁) / (𝑀 + 𝑁)) = (2 · (𝑁 / (𝑀 + 𝑁)))
148146, 147oveq12i 7267 . . 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 395   = wceq 1539  wcel 2108  wne 2942  wral 3063  {crab 3067  cdif 3880  cun 3881  cin 3882  wss 3883  c0 4253  ifcif 4456  𝒫 cpw 4530   class class class wbr 5070  cmpt 5153  cima 5583  cfv 6418  (class class class)co 7255  Fincfn 8691  infcinf 9130  cc 10800  cr 10801  0cc0 10802  1c1 10803   + caddc 10805   · cmul 10807   < clt 10940  cle 10941  cmin 11135   / cdiv 11562  cn 11903  2c2 11958  0cn0 12163  cz 12249  ...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-rep 5205  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-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-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: (None)
  Copyright terms: Public domain W3C validator