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

Theorem ballotlemrval 24728
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 5687 . . 3  |-  ( d  =  C  ->  ( S `  d )  =  ( S `  C ) )
2 id 20 . . 3  |-  ( d  =  C  ->  d  =  C )
31, 2imaeq12d 5163 . 2  |-  ( d  =  C  ->  (
( S `  d
) " d )  =  ( ( S `
 C ) " C ) )
4 ballotth.r . . 3  |-  R  =  ( c  e.  ( O  \  E ) 
|->  ( ( S `  c ) " c
) )
5 fveq2 5687 . . . . 5  |-  ( c  =  d  ->  ( S `  c )  =  ( S `  d ) )
6 id 20 . . . . 5  |-  ( c  =  d  ->  c  =  d )
75, 6imaeq12d 5163 . . . 4  |-  ( c  =  d  ->  (
( S `  c
) " c )  =  ( ( S `
 d ) "
d ) )
87cbvmptv 4260 . . 3  |-  ( c  e.  ( O  \  E )  |->  ( ( S `  c )
" c ) )  =  ( d  e.  ( O  \  E
)  |->  ( ( S `
 d ) "
d ) )
94, 8eqtri 2424 . 2  |-  R  =  ( d  e.  ( O  \  E ) 
|->  ( ( S `  d ) " d
) )
10 fvex 5701 . . 3  |-  ( S `
 C )  e. 
_V
11 imaexg 5176 . . 3  |-  ( ( S `  C )  e.  _V  ->  (
( S `  C
) " C )  e.  _V )
1210, 11ax-mp 8 . 2  |-  ( ( S `  C )
" C )  e. 
_V
133, 9, 12fvmpt 5765 1  |-  ( C  e.  ( O  \  E )  ->  ( R `  C )  =  ( ( S `
 C ) " C ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    = wceq 1649    e. wcel 1721   A.wral 2666   {crab 2670   _Vcvv 2916    \ cdif 3277    i^i cin 3279   ifcif 3699   ~Pcpw 3759   class class class wbr 4172    e. cmpt 4226   `'ccnv 4836   "cima 4840   ` cfv 5413  (class class class)co 6040   supcsup 7403   RRcr 8945   0cc0 8946   1c1 8947    + caddc 8949    < clt 9076    <_ cle 9077    - cmin 9247    / cdiv 9633   NNcn 9956   ZZcz 10238   ...cfz 10999   #chash 11573
This theorem is referenced by:  ballotlemscr  24729  ballotlemrv  24730  ballotlemro  24733  ballotlemrinv0  24743
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1552  ax-5 1563  ax-17 1623  ax-9 1662  ax-8 1683  ax-13 1723  ax-14 1725  ax-6 1740  ax-7 1745  ax-11 1757  ax-12 1946  ax-ext 2385  ax-sep 4290  ax-nul 4298  ax-pr 4363  ax-un 4660
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3an 938  df-tru 1325  df-ex 1548  df-nf 1551  df-sb 1656  df-eu 2258  df-mo 2259  df-clab 2391  df-cleq 2397  df-clel 2400  df-nfc 2529  df-ne 2569  df-ral 2671  df-rex 2672  df-rab 2675  df-v 2918  df-sbc 3122  df-dif 3283  df-un 3285  df-in 3287  df-ss 3294  df-nul 3589  df-if 3700  df-sn 3780  df-pr 3781  df-op 3783  df-uni 3976  df-br 4173  df-opab 4227  df-mpt 4228  df-id 4458  df-xp 4843  df-rel 4844  df-cnv 4845  df-co 4846  df-dm 4847  df-rn 4848  df-res 4849  df-ima 4850  df-iota 5377  df-fun 5415  df-fv 5421
  Copyright terms: Public domain W3C validator