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 32504
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 4013 . . . . . 6 {𝑐𝑂 ∣ ∀𝑖 ∈ (1...(𝑀 + 𝑁))0 < ((𝐹𝑐)‘𝑖)} ⊆ 𝑂
31, 2eqsstri 3955 . . . . 5 𝐸𝑂
4 fzfi 13692 . . . . . . . . . . 11 (1...(𝑀 + 𝑁)) ∈ Fin
5 pwfi 8961 . . . . . . . . . . 11 ((1...(𝑀 + 𝑁)) ∈ Fin ↔ 𝒫 (1...(𝑀 + 𝑁)) ∈ Fin)
64, 5mpbi 229 . . . . . . . . . 10 𝒫 (1...(𝑀 + 𝑁)) ∈ Fin
7 ballotth.o . . . . . . . . . . 11 𝑂 = {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀}
8 ssrab2 4013 . . . . . . . . . . 11 {𝑐 ∈ 𝒫 (1...(𝑀 + 𝑁)) ∣ (♯‘𝑐) = 𝑀} ⊆ 𝒫 (1...(𝑀 + 𝑁))
97, 8eqsstri 3955 . . . . . . . . . 10 𝑂 ⊆ 𝒫 (1...(𝑀 + 𝑁))
10 ssfi 8956 . . . . . . . . . 10 ((𝒫 (1...(𝑀 + 𝑁)) ∈ Fin ∧ 𝑂 ⊆ 𝒫 (1...(𝑀 + 𝑁))) → 𝑂 ∈ Fin)
116, 9, 10mp2an 689 . . . . . . . . 9 𝑂 ∈ Fin
12 ssfi 8956 . . . . . . . . 9 ((𝑂 ∈ Fin ∧ 𝐸𝑂) → 𝐸 ∈ Fin)
1311, 3, 12mp2an 689 . . . . . . . 8 𝐸 ∈ Fin
1413elexi 3451 . . . . . . 7 𝐸 ∈ V
1514elpw 4537 . . . . . 6 (𝐸 ∈ 𝒫 𝑂𝐸𝑂)
16 fveq2 6774 . . . . . . . 8 (𝑥 = 𝐸 → (♯‘𝑥) = (♯‘𝐸))
1716oveq1d 7290 . . . . . . 7 (𝑥 = 𝐸 → ((♯‘𝑥) / (♯‘𝑂)) = ((♯‘𝐸) / (♯‘𝑂)))
18 ballotth.p . . . . . . 7 𝑃 = (𝑥 ∈ 𝒫 𝑂 ↦ ((♯‘𝑥) / (♯‘𝑂)))
19 ovex 7308 . . . . . . 7 ((♯‘𝐸) / (♯‘𝑂)) ∈ V
2017, 18, 19fvmpt 6875 . . . . . 6 (𝐸 ∈ 𝒫 𝑂 → (𝑃𝐸) = ((♯‘𝐸) / (♯‘𝑂)))
2115, 20sylbir 234 . . . . 5 (𝐸𝑂 → (𝑃𝐸) = ((♯‘𝐸) / (♯‘𝑂)))
223, 21ax-mp 5 . . . 4 (𝑃𝐸) = ((♯‘𝐸) / (♯‘𝑂))
23 hashssdif 14127 . . . . . . . 8 ((𝑂 ∈ Fin ∧ 𝐸𝑂) → (♯‘(𝑂𝐸)) = ((♯‘𝑂) − (♯‘𝐸)))
2411, 3, 23mp2an 689 . . . . . . 7 (♯‘(𝑂𝐸)) = ((♯‘𝑂) − (♯‘𝐸))
2524eqcomi 2747 . . . . . 6 ((♯‘𝑂) − (♯‘𝐸)) = (♯‘(𝑂𝐸))
26 hashcl 14071 . . . . . . . . 9 (𝑂 ∈ Fin → (♯‘𝑂) ∈ ℕ0)
2711, 26ax-mp 5 . . . . . . . 8 (♯‘𝑂) ∈ ℕ0
2827nn0cni 12245 . . . . . . 7 (♯‘𝑂) ∈ ℂ
29 hashcl 14071 . . . . . . . . 9 (𝐸 ∈ Fin → (♯‘𝐸) ∈ ℕ0)
3013, 29ax-mp 5 . . . . . . . 8 (♯‘𝐸) ∈ ℕ0
3130nn0cni 12245 . . . . . . 7 (♯‘𝐸) ∈ ℂ
32 difss 4066 . . . . . . . . . 10 (𝑂𝐸) ⊆ 𝑂
33 ssfi 8956 . . . . . . . . . 10 ((𝑂 ∈ Fin ∧ (𝑂𝐸) ⊆ 𝑂) → (𝑂𝐸) ∈ Fin)
3411, 32, 33mp2an 689 . . . . . . . . 9 (𝑂𝐸) ∈ Fin
35 hashcl 14071 . . . . . . . . 9 ((𝑂𝐸) ∈ Fin → (♯‘(𝑂𝐸)) ∈ ℕ0)
3634, 35ax-mp 5 . . . . . . . 8 (♯‘(𝑂𝐸)) ∈ ℕ0
3736nn0cni 12245 . . . . . . 7 (♯‘(𝑂𝐸)) ∈ ℂ
3828, 31, 37subsub23i 11311 . . . . . 6 (((♯‘𝑂) − (♯‘𝐸)) = (♯‘(𝑂𝐸)) ↔ ((♯‘𝑂) − (♯‘(𝑂𝐸))) = (♯‘𝐸))
3925, 38mpbi 229 . . . . 5 ((♯‘𝑂) − (♯‘(𝑂𝐸))) = (♯‘𝐸)
4039oveq1i 7285 . . . 4 (((♯‘𝑂) − (♯‘(𝑂𝐸))) / (♯‘𝑂)) = ((♯‘𝐸) / (♯‘𝑂))
4122, 40eqtr4i 2769 . . 3 (𝑃𝐸) = (((♯‘𝑂) − (♯‘(𝑂𝐸))) / (♯‘𝑂))
42 ballotth.m . . . . . . 7 𝑀 ∈ ℕ
43 ballotth.n . . . . . . 7 𝑁 ∈ ℕ
4442, 43, 7ballotlem1 32453 . . . . . 6 (♯‘𝑂) = ((𝑀 + 𝑁)C𝑀)
4542nnnn0i 12241 . . . . . . . . 9 𝑀 ∈ ℕ0
46 nnaddcl 11996 . . . . . . . . . . 11 ((𝑀 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝑀 + 𝑁) ∈ ℕ)
4742, 43, 46mp2an 689 . . . . . . . . . 10 (𝑀 + 𝑁) ∈ ℕ
4847nnnn0i 12241 . . . . . . . . 9 (𝑀 + 𝑁) ∈ ℕ0
4942nnrei 11982 . . . . . . . . . 10 𝑀 ∈ ℝ
5043nnnn0i 12241 . . . . . . . . . 10 𝑁 ∈ ℕ0
5149, 50nn0addge1i 12281 . . . . . . . . 9 𝑀 ≤ (𝑀 + 𝑁)
52 elfz2nn0 13347 . . . . . . . . 9 (𝑀 ∈ (0...(𝑀 + 𝑁)) ↔ (𝑀 ∈ ℕ0 ∧ (𝑀 + 𝑁) ∈ ℕ0𝑀 ≤ (𝑀 + 𝑁)))
5345, 48, 51, 52mpbir3an 1340 . . . . . . . 8 𝑀 ∈ (0...(𝑀 + 𝑁))
54 bccl2 14037 . . . . . . . 8 (𝑀 ∈ (0...(𝑀 + 𝑁)) → ((𝑀 + 𝑁)C𝑀) ∈ ℕ)
5553, 54ax-mp 5 . . . . . . 7 ((𝑀 + 𝑁)C𝑀) ∈ ℕ
5655nnne0i 12013 . . . . . 6 ((𝑀 + 𝑁)C𝑀) ≠ 0
5744, 56eqnetri 3014 . . . . 5 (♯‘𝑂) ≠ 0
5828, 57pm3.2i 471 . . . 4 ((♯‘𝑂) ∈ ℂ ∧ (♯‘𝑂) ≠ 0)
59 divsubdir 11669 . . . 4 (((♯‘𝑂) ∈ ℂ ∧ (♯‘(𝑂𝐸)) ∈ ℂ ∧ ((♯‘𝑂) ∈ ℂ ∧ (♯‘𝑂) ≠ 0)) → (((♯‘𝑂) − (♯‘(𝑂𝐸))) / (♯‘𝑂)) = (((♯‘𝑂) / (♯‘𝑂)) − ((♯‘(𝑂𝐸)) / (♯‘𝑂))))
6028, 37, 58, 59mp3an 1460 . . 3 (((♯‘𝑂) − (♯‘(𝑂𝐸))) / (♯‘𝑂)) = (((♯‘𝑂) / (♯‘𝑂)) − ((♯‘(𝑂𝐸)) / (♯‘𝑂)))
6128, 57dividi 11708 . . . 4 ((♯‘𝑂) / (♯‘𝑂)) = 1
6261oveq1i 7285 . . 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 32503 . . . . . 6 (♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) = (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})
7069oveq1i 7285 . . . . 5 ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
7170oveq1i 7285 . . . 4 (((♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂)) = (((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂))
72 rabxm 4320 . . . . . . 7 (𝑂𝐸) = ({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∪ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})
7372fveq2i 6777 . . . . . 6 (♯‘(𝑂𝐸)) = (♯‘({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∪ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
74 ssrab2 4013 . . . . . . . . . 10 {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ⊆ (𝑂𝐸)
7574, 32sstri 3930 . . . . . . . . 9 {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ⊆ 𝑂
7675, 9sstri 3930 . . . . . . . 8 {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ⊆ 𝒫 (1...(𝑀 + 𝑁))
77 ssfi 8956 . . . . . . . 8 ((𝒫 (1...(𝑀 + 𝑁)) ∈ Fin ∧ {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ⊆ 𝒫 (1...(𝑀 + 𝑁))) → {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∈ Fin)
786, 76, 77mp2an 689 . . . . . . 7 {𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∈ Fin
79 ssrab2 4013 . . . . . . . . . 10 {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ (𝑂𝐸)
8079, 32sstri 3930 . . . . . . . . 9 {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ 𝑂
8180, 9sstri 3930 . . . . . . . 8 {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ 𝒫 (1...(𝑀 + 𝑁))
82 ssfi 8956 . . . . . . . 8 ((𝒫 (1...(𝑀 + 𝑁)) ∈ Fin ∧ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ 𝒫 (1...(𝑀 + 𝑁))) → {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ∈ Fin)
836, 81, 82mp2an 689 . . . . . . 7 {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ∈ Fin
84 rabnc 4321 . . . . . . 7 ({𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐} ∩ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) = ∅
85 hashun 14097 . . . . . . 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 7285 . . . 4 ((♯‘(𝑂𝐸)) / (♯‘𝑂)) = (((♯‘{𝑐 ∈ (𝑂𝐸) ∣ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂))
89 ssrab2 4013 . . . . . . . . 9 {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ⊆ 𝑂
9011elexi 3451 . . . . . . . . . 10 𝑂 ∈ V
9190elpw2 5269 . . . . . . . . 9 ({𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ∈ 𝒫 𝑂 ↔ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ⊆ 𝑂)
9289, 91mpbir 230 . . . . . . . 8 {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ∈ 𝒫 𝑂
93 fveq2 6774 . . . . . . . . . 10 (𝑥 = {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → (♯‘𝑥) = (♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}))
9493oveq1d 7290 . . . . . . . . 9 (𝑥 = {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → ((♯‘𝑥) / (♯‘𝑂)) = ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)))
95 ovex 7308 . . . . . . . . 9 ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)) ∈ V
9694, 18, 95fvmpt 6875 . . . . . . . 8 ({𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ∈ 𝒫 𝑂 → (𝑃‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)))
9792, 96ax-mp 5 . . . . . . 7 (𝑃‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂))
9842, 43, 7, 18ballotlem2 32455 . . . . . . 7 (𝑃‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = (𝑁 / (𝑀 + 𝑁))
99 nfrab1 3317 . . . . . . . . . . . 12 𝑐{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}
100 nfrab1 3317 . . . . . . . . . . . 12 𝑐{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}
10199, 100dfss2f 3911 . . . . . . . . . . 11 ({𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ⊆ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ↔ ∀𝑐(𝑐 ∈ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → 𝑐 ∈ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
10242, 43, 7, 18, 64, 1ballotlem4 32465 . . . . . . . . . . . . . 14 (𝑐𝑂 → (¬ 1 ∈ 𝑐 → ¬ 𝑐𝐸))
103102imdistani 569 . . . . . . . . . . . . 13 ((𝑐𝑂 ∧ ¬ 1 ∈ 𝑐) → (𝑐𝑂 ∧ ¬ 𝑐𝐸))
104 rabid 3310 . . . . . . . . . . . . 13 (𝑐 ∈ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ↔ (𝑐𝑂 ∧ ¬ 1 ∈ 𝑐))
105 eldif 3897 . . . . . . . . . . . . 13 (𝑐 ∈ (𝑂𝐸) ↔ (𝑐𝑂 ∧ ¬ 𝑐𝐸))
106103, 104, 1053imtr4i 292 . . . . . . . . . . . 12 (𝑐 ∈ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → 𝑐 ∈ (𝑂𝐸))
107104simprbi 497 . . . . . . . . . . . 12 (𝑐 ∈ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → ¬ 1 ∈ 𝑐)
108 rabid 3310 . . . . . . . . . . . 12 (𝑐 ∈ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ↔ (𝑐 ∈ (𝑂𝐸) ∧ ¬ 1 ∈ 𝑐))
109106, 107, 108sylanbrc 583 . . . . . . . . . . 11 (𝑐 ∈ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} → 𝑐 ∈ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})
110101, 109mpgbir 1802 . . . . . . . . . 10 {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} ⊆ {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}
111 rabss2 4011 . . . . . . . . . . 11 ((𝑂𝐸) ⊆ 𝑂 → {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐})
11232, 111ax-mp 5 . . . . . . . . . 10 {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ⊆ {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}
113110, 112eqssi 3937 . . . . . . . . 9 {𝑐𝑂 ∣ ¬ 1 ∈ 𝑐} = {𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}
114113fveq2i 6777 . . . . . . . 8 (♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) = (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})
115114oveq1i 7285 . . . . . . 7 ((♯‘{𝑐𝑂 ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂))
11697, 98, 1153eqtr3i 2774 . . . . . 6 (𝑁 / (𝑀 + 𝑁)) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂))
117116oveq2i 7286 . . . . 5 (2 · (𝑁 / (𝑀 + 𝑁))) = (2 · ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)))
118 2cn 12048 . . . . . 6 2 ∈ ℂ
119 hashcl 14071 . . . . . . . 8 ({𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐} ∈ Fin → (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) ∈ ℕ0)
12083, 119ax-mp 5 . . . . . . 7 (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) ∈ ℕ0
121120nn0cni 12245 . . . . . 6 (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) ∈ ℂ
122118, 121, 28, 57divassi 11731 . . . . 5 ((2 · (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂)) = (2 · ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) / (♯‘𝑂)))
1231212timesi 12111 . . . . . 6 (2 · (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) = ((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}))
124123oveq1i 7285 . . . . 5 ((2 · (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂)) = (((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂))
125117, 122, 1243eqtr2i 2772 . . . 4 (2 · (𝑁 / (𝑀 + 𝑁))) = (((♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐}) + (♯‘{𝑐 ∈ (𝑂𝐸) ∣ ¬ 1 ∈ 𝑐})) / (♯‘𝑂))
12671, 88, 1253eqtr4ri 2777 . . 3 (2 · (𝑁 / (𝑀 + 𝑁))) = ((♯‘(𝑂𝐸)) / (♯‘𝑂))
127126oveq2i 7286 . 2 (1 − (2 · (𝑁 / (𝑀 + 𝑁)))) = (1 − ((♯‘(𝑂𝐸)) / (♯‘𝑂)))
12847nncni 11983 . . . 4 (𝑀 + 𝑁) ∈ ℂ
12943nncni 11983 . . . . 5 𝑁 ∈ ℂ
130118, 129mulcli 10982 . . . 4 (2 · 𝑁) ∈ ℂ
13147nnne0i 12013 . . . . 5 (𝑀 + 𝑁) ≠ 0
132128, 131pm3.2i 471 . . . 4 ((𝑀 + 𝑁) ∈ ℂ ∧ (𝑀 + 𝑁) ≠ 0)
133 divsubdir 11669 . . . 4 (((𝑀 + 𝑁) ∈ ℂ ∧ (2 · 𝑁) ∈ ℂ ∧ ((𝑀 + 𝑁) ∈ ℂ ∧ (𝑀 + 𝑁) ≠ 0)) → (((𝑀 + 𝑁) − (2 · 𝑁)) / (𝑀 + 𝑁)) = (((𝑀 + 𝑁) / (𝑀 + 𝑁)) − ((2 · 𝑁) / (𝑀 + 𝑁))))
134128, 130, 132, 133mp3an 1460 . . 3 (((𝑀 + 𝑁) − (2 · 𝑁)) / (𝑀 + 𝑁)) = (((𝑀 + 𝑁) / (𝑀 + 𝑁)) − ((2 · 𝑁) / (𝑀 + 𝑁)))
1351292timesi 12111 . . . . . 6 (2 · 𝑁) = (𝑁 + 𝑁)
136135oveq2i 7286 . . . . 5 ((𝑀 + 𝑁) − (2 · 𝑁)) = ((𝑀 + 𝑁) − (𝑁 + 𝑁))
13742nncni 11983 . . . . . . 7 𝑀 ∈ ℂ
138137, 129, 129, 129addsub4i 11317 . . . . . 6 ((𝑀 + 𝑁) − (𝑁 + 𝑁)) = ((𝑀𝑁) + (𝑁𝑁))
139129subidi 11292 . . . . . . 7 (𝑁𝑁) = 0
140139oveq2i 7286 . . . . . 6 ((𝑀𝑁) + (𝑁𝑁)) = ((𝑀𝑁) + 0)
141137, 129subcli 11297 . . . . . . 7 (𝑀𝑁) ∈ ℂ
142141addid1i 11162 . . . . . 6 ((𝑀𝑁) + 0) = (𝑀𝑁)
143138, 140, 1423eqtri 2770 . . . . 5 ((𝑀 + 𝑁) − (𝑁 + 𝑁)) = (𝑀𝑁)
144136, 143eqtri 2766 . . . 4 ((𝑀 + 𝑁) − (2 · 𝑁)) = (𝑀𝑁)
145144oveq1i 7285 . . 3 (((𝑀 + 𝑁) − (2 · 𝑁)) / (𝑀 + 𝑁)) = ((𝑀𝑁) / (𝑀 + 𝑁))
146128, 131dividi 11708 . . . 4 ((𝑀 + 𝑁) / (𝑀 + 𝑁)) = 1
147118, 129, 128, 131divassi 11731 . . . 4 ((2 · 𝑁) / (𝑀 + 𝑁)) = (2 · (𝑁 / (𝑀 + 𝑁)))
148146, 147oveq12i 7287 . . 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 3884  cun 3885  cin 3886  wss 3887  c0 4256  ifcif 4459  𝒫 cpw 4533   class class class wbr 5074  cmpt 5157  cima 5592  cfv 6433  (class class class)co 7275  Fincfn 8733  infcinf 9200  cc 10869  cr 10870  0cc0 10871  1c1 10872   + caddc 10874   · cmul 10876   < clt 11009  cle 11010  cmin 11205   / cdiv 11632  cn 11973  2c2 12028  0cn0 12233  cz 12319  ...cfz 13239  Ccbc 14016  chash 14044
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 5209  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588  ax-cnex 10927  ax-resscn 10928  ax-1cn 10929  ax-icn 10930  ax-addcl 10931  ax-addrcl 10932  ax-mulcl 10933  ax-mulrcl 10934  ax-mulcom 10935  ax-addass 10936  ax-mulass 10937  ax-distr 10938  ax-i2m1 10939  ax-1ne0 10940  ax-1rid 10941  ax-rnegex 10942  ax-rrecex 10943  ax-cnre 10944  ax-pre-lttri 10945  ax-pre-lttrn 10946  ax-pre-ltadd 10947  ax-pre-mulgt0 10948
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 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-int 4880  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-pred 6202  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-riota 7232  df-ov 7278  df-oprab 7279  df-mpo 7280  df-om 7713  df-1st 7831  df-2nd 7832  df-frecs 8097  df-wrecs 8128  df-recs 8202  df-rdg 8241  df-1o 8297  df-oadd 8301  df-er 8498  df-en 8734  df-dom 8735  df-sdom 8736  df-fin 8737  df-sup 9201  df-inf 9202  df-dju 9659  df-card 9697  df-pnf 11011  df-mnf 11012  df-xr 11013  df-ltxr 11014  df-le 11015  df-sub 11207  df-neg 11208  df-div 11633  df-nn 11974  df-2 12036  df-n0 12234  df-z 12320  df-uz 12583  df-rp 12731  df-fz 13240  df-seq 13722  df-fac 13988  df-bc 14017  df-hash 14045
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator