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

Theorem ballotlemrval 29176
Description: Value of  R. (Contributed by Thierry Arnoux, 14-Apr-2017.)
Hypotheses
Ref Expression
ballotth.m  |-  M  e.  NN
ballotth.n  |-  N  e.  NN
ballotth.o  |-  O  =  { c  e.  ~P ( 1 ... ( M  +  N )
)  |  ( # `  c )  =  M }
ballotth.p  |-  P  =  ( x  e.  ~P O  |->  ( ( # `  x )  /  ( # `
 O ) ) )
ballotth.f  |-  F  =  ( c  e.  O  |->  ( i  e.  ZZ  |->  ( ( # `  (
( 1 ... i
)  i^i  c )
)  -  ( # `  ( ( 1 ... i )  \  c
) ) ) ) )
ballotth.e  |-  E  =  { c  e.  O  |  A. i  e.  ( 1 ... ( M  +  N ) ) 0  <  ( ( F `  c ) `
 i ) }
ballotth.mgtn  |-  N  < 
M
ballotth.i  |-  I  =  ( c  e.  ( O  \  E ) 
|->  sup ( { k  e.  ( 1 ... ( M  +  N
) )  |  ( ( F `  c
) `  k )  =  0 } ,  RR ,  `'  <  ) )
ballotth.s  |-  S  =  ( c  e.  ( O  \  E ) 
|->  ( i  e.  ( 1 ... ( M  +  N ) ) 
|->  if ( i  <_ 
( I `  c
) ,  ( ( ( I `  c
)  +  1 )  -  i ) ,  i ) ) )
ballotth.r  |-  R  =  ( c  e.  ( O  \  E ) 
|->  ( ( S `  c ) " c
) )
Assertion
Ref Expression
ballotlemrval  |-  ( C  e.  ( O  \  E )  ->  ( R `  C )  =  ( ( S `
 C ) " C ) )
Distinct variable groups:    M, c    N, c    O, c    i, M   
i, N    i, O    k, M    k, N    k, O    i, c, F, k    C, i, k    i, E, k    C, k    k, I, c    E, c    i, I, c    S, k, i, c
Allowed substitution hints:    C( x, c)    P( x, i, k, c)    R( x, i, k, c)    S( x)    E( x)    F( x)    I( x)    M( x)    N( x)    O( x)

Proof of Theorem ballotlemrval
Dummy variable  d is distinct from all other variables.
StepHypRef Expression
1 fveq2 5881 . . 3  |-  ( d  =  C  ->  ( S `  d )  =  ( S `  C ) )
2 id 23 . . 3  |-  ( d  =  C  ->  d  =  C )
31, 2imaeq12d 5189 . 2  |-  ( d  =  C  ->  (
( S `  d
) " d )  =  ( ( S `
 C ) " C ) )
4 ballotth.r . . 3  |-  R  =  ( c  e.  ( O  \  E ) 
|->  ( ( S `  c ) " c
) )
5 fveq2 5881 . . . . 5  |-  ( c  =  d  ->  ( S `  c )  =  ( S `  d ) )
6 id 23 . . . . 5  |-  ( c  =  d  ->  c  =  d )
75, 6imaeq12d 5189 . . . 4  |-  ( c  =  d  ->  (
( S `  c
) " c )  =  ( ( S `
 d ) "
d ) )
87cbvmptv 4518 . . 3  |-  ( c  e.  ( O  \  E )  |->  ( ( S `  c )
" c ) )  =  ( d  e.  ( O  \  E
)  |->  ( ( S `
 d ) "
d ) )
94, 8eqtri 2458 . 2  |-  R  =  ( d  e.  ( O  \  E ) 
|->  ( ( S `  d ) " d
) )
10 fvex 5891 . . 3  |-  ( S `
 C )  e. 
_V
11 imaexg 6744 . . 3  |-  ( ( S `  C )  e.  _V  ->  (
( S `  C
) " C )  e.  _V )
1210, 11ax-mp 5 . 2  |-  ( ( S `  C )
" C )  e. 
_V
133, 9, 12fvmpt 5964 1  |-  ( C  e.  ( O  \  E )  ->  ( R `  C )  =  ( ( S `
 C ) " C ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    = wceq 1437    e. wcel 1870   A.wral 2782   {crab 2786   _Vcvv 3087    \ cdif 3439    i^i cin 3441   ifcif 3915   ~Pcpw 3985   class class class wbr 4426    |-> cmpt 4484   `'ccnv 4853   "cima 4857   ` cfv 5601  (class class class)co 6305   supcsup 7960   RRcr 9537   0cc0 9538   1c1 9539    + caddc 9541    < clt 9674    <_ cle 9675    - cmin 9859    / cdiv 10268   NNcn 10609   ZZcz 10937   ...cfz 11782   #chash 12512
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1665  ax-4 1678  ax-5 1751  ax-6 1797  ax-7 1841  ax-8 1872  ax-9 1874  ax-10 1889  ax-11 1894  ax-12 1907  ax-13 2055  ax-ext 2407  ax-sep 4548  ax-nul 4556  ax-pr 4661  ax-un 6597
This theorem depends on definitions:  df-bi 188  df-or 371  df-an 372  df-3an 984  df-tru 1440  df-ex 1660  df-nf 1664  df-sb 1790  df-eu 2270  df-mo 2271  df-clab 2415  df-cleq 2421  df-clel 2424  df-nfc 2579  df-ne 2627  df-ral 2787  df-rex 2788  df-rab 2791  df-v 3089  df-sbc 3306  df-dif 3445  df-un 3447  df-in 3449  df-ss 3456  df-nul 3768  df-if 3916  df-sn 4003  df-pr 4005  df-op 4009  df-uni 4223  df-br 4427  df-opab 4485  df-mpt 4486  df-id 4769  df-xp 4860  df-rel 4861  df-cnv 4862  df-co 4863  df-dm 4864  df-rn 4865  df-res 4866  df-ima 4867  df-iota 5565  df-fun 5603  df-fv 5609
This theorem is referenced by:  ballotlemscr  29177  ballotlemrv  29178  ballotlemro  29181  ballotlemrinv0  29191
  Copyright terms: Public domain W3C validator