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 35261
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 6916 . . 3 (𝑑 = 𝐶 → (𝑆‘𝑑) = (𝑆‘𝐶))
2 id 23 . . 3 (𝑑 = 𝐶 → 𝑑 = 𝐶)
31, 2imaeq12d 6071 . 2 (𝑑 = 𝐶 → ((𝑆‘𝑑) “ 𝑑) = ((𝑆‘𝐶) “ 𝐶))
4 ballotth.r . . 3 𝑅 = (𝑐 ∈ (𝑂 ∖ 𝐸) ↦ ((𝑆‘𝑐) “ 𝑐))
5 fveq2 6916 . . . . 5 (𝑐 = 𝑑 → (𝑆‘𝑐) = (𝑆‘𝑑))
6 id 23 . . . . 5 (𝑐 = 𝑑 → 𝑐 = 𝑑)
75, 6imaeq12d 6071 . . . 4 (𝑐 = 𝑑 → ((𝑆‘𝑐) “ 𝑐) = ((𝑆‘𝑑) “ 𝑑))
87cbvmptv 5215 . . 3 (𝑐 ∈ (𝑂 ∖ 𝐸) ↦ ((𝑆‘𝑐) “ 𝑐)) = (𝑑 ∈ (𝑂 ∖ 𝐸) ↦ ((𝑆‘𝑑) “ 𝑑))
94, 8eqtri 2786 . 2 𝑅 = (𝑑 ∈ (𝑂 ∖ 𝐸) ↦ ((𝑆‘𝑑) “ 𝑑))
10 fvex 6929 . . 3 (𝑆‘𝐶) ∈ V
11 imaexg 7959 . . 3 ((𝑆‘𝐶) ∈ V → ((𝑆‘𝐶) “ 𝐶) ∈ V)
1210, 11ax-mp 5 . 2 ((𝑆‘𝐶) “ 𝐶) ∈ V
133, 9, 12fvmpt 7024 1 (𝐶 ∈ (𝑂 ∖ 𝐸) → (𝑅‘𝐶) = ((𝑆‘𝐶) “ 𝐶))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   = wceq 1570   ∈ wcel 2147  ∀wral 3080  {crab 3416  Vcvv 3454   ∖ cdif 4048   ∩ cin 4092  ifcif 4485  𝒫 cpw 4560   class class class wbr 5108   ↦ cmpt 5192   “ cima 5661  ‘cfv 6566  (class class class)co 7451  infcinf 9470  ℝcr 11238  0cc0 11239  1c1 11240   + caddc 11242   < clt 11382   ≤ cle 11383   − cmin 11580   / cdiv 12013  ℕcn 12375  ℤcz 12733  ...cfz 13679  ♯chash 14515
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5255  ax-nul 5266  ax-pr 5398  ax-un 7783
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 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-rab 3417  df-v 3456  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-sn 4589  df-pr 4591  df-op 4841  df-uni 4873  df-br 5109  df-opab 5174  df-mpt 5193  df-id 5553  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-res 5670  df-ima 5671  df-iota 6520  df-fun 6568  df-fv 6574
This theorem is used by:  ballotlemscr  35262  ballotlemrv  35263  ballotlemro  35266  ballotlemrinv0  35276
  Copyright terms: Public domain W3C validator