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

Theorem ballotlemrval 35150
Description: Value of 𝑅. (Contributed by Thierry Arnoux, 14-Apr-2017.)
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
ballotlemrval (𝐶 ∈ (𝑂 ∖ 𝐸) → (𝑅‘𝐶) = ((𝑆‘𝐶) “ 𝐶))
Distinct variable groups:   𝑀,𝑐   𝑁,𝑐   𝑂,𝑐   𝑖,𝑀   𝑖,𝑁   𝑖,𝑂   𝑘,𝑀   𝑘,𝑁   𝑘,𝑂   𝑖,𝑐,𝐹,𝑘   𝐶,𝑖,𝑘   𝑖,𝐸,𝑘   𝐶,𝑘   𝑘,𝐼,𝑐   𝐸,𝑐   𝑖,𝐼,𝑐   𝑆,𝑘,𝑖,𝑐
Allowed substitution hints:   𝐶(𝑥, 𝑐)   𝑃(𝑥, 𝑖, 𝑘, 𝑐)   𝑅(𝑥, 𝑖, 𝑘, 𝑐)   𝑆(𝑥)   𝐸(𝑥)   𝐹(𝑥)   𝐼(𝑥)   𝑀(𝑥)   𝑁(𝑥)   𝑂(𝑥)

Proof of Theorem ballotlemrval
Dummy variable 𝑑 is distinct from all other variables.
StepHypRef Expression
1 fveq2 6885 . . 3 (𝑑 = 𝐶 → (𝑆‘𝑑) = (𝑆‘𝐶))
2 id 23 . . 3 (𝑑 = 𝐶 → 𝑑 = 𝐶)
31, 2imaeq12d 6053 . 2 (𝑑 = 𝐶 → ((𝑆‘𝑑) “ 𝑑) = ((𝑆‘𝐶) “ 𝐶))
4 ballotth.r . . 3 𝑅 = (𝑐 ∈ (𝑂 ∖ 𝐸) ↦ ((𝑆‘𝑐) “ 𝑐))
5 fveq2 6885 . . . . 5 (𝑐 = 𝑑 → (𝑆‘𝑐) = (𝑆‘𝑑))
6 id 23 . . . . 5 (𝑐 = 𝑑 → 𝑐 = 𝑑)
75, 6imaeq12d 6053 . . . 4 (𝑐 = 𝑑 → ((𝑆‘𝑐) “ 𝑐) = ((𝑆‘𝑑) “ 𝑑))
87cbvmptv 5209 . . 3 (𝑐 ∈ (𝑂 ∖ 𝐸) ↦ ((𝑆‘𝑐) “ 𝑐)) = (𝑑 ∈ (𝑂 ∖ 𝐸) ↦ ((𝑆‘𝑑) “ 𝑑))
94, 8eqtri 2784 . 2 𝑅 = (𝑑 ∈ (𝑂 ∖ 𝐸) ↦ ((𝑆‘𝑑) “ 𝑑))
10 fvex 6898 . . 3 (𝑆‘𝐶) ∈ V
11 imaexg 7925 . . 3 ((𝑆‘𝐶) ∈ V → ((𝑆‘𝐶) “ 𝐶) ∈ V)
1210, 11ax-mp 5 . 2 ((𝑆‘𝐶) “ 𝐶) ∈ V
133, 9, 12fvmpt 6993 1 (𝐶 ∈ (𝑂 ∖ 𝐸) → (𝑅‘𝐶) = ((𝑆‘𝐶) “ 𝐶))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   = wceq 1570   ∈ wcel 2145  ∀wral 3077  {crab 3413  Vcvv 3451   ∖ cdif 3896   ∩ cin 3898  ifcif 4482  𝒫 cpw 4557   class class class wbr 5103   ↦ cmpt 5186   “ cima 5654  ‘cfv 6538  (class class class)co 7420  infcinf 9433  ℝcr 11199  0cc0 11200  1c1 11201   + caddc 11203   < clt 11343   ≤ cle 11344   − cmin 11541   / cdiv 11973  ℕcn 12335  ℤcz 12693  ...cfz 13639  ♯chash 14474
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-sep 5249  ax-nul 5260  ax-pr 5391  ax-un 7751
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-rab 3414  df-v 3453  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-iota 6494  df-fun 6540  df-fv 6546
This theorem is used by:  ballotlemscr  35151  ballotlemrv  35152  ballotlemro  35155  ballotlemrinv0  35165
  Copyright terms: Public domain W3C validator