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

Theorem ballotlemrval 24556
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 5670 . . 3  |-  ( d  =  C  ->  ( S `  d )  =  ( S `  C ) )
2 id 20 . . 3  |-  ( d  =  C  ->  d  =  C )
31, 2imaeq12d 5146 . 2  |-  ( d  =  C  ->  (
( S `  d
) " d )  =  ( ( S `
 C ) " C ) )
4 ballotth.r . . 3  |-  R  =  ( c  e.  ( O  \  E ) 
|->  ( ( S `  c ) " c
) )
5 fveq2 5670 . . . . 5  |-  ( c  =  d  ->  ( S `  c )  =  ( S `  d ) )
6 id 20 . . . . 5  |-  ( c  =  d  ->  c  =  d )
75, 6imaeq12d 5146 . . . 4  |-  ( c  =  d  ->  (
( S `  c
) " c )  =  ( ( S `
 d ) "
d ) )
87cbvmptv 4243 . . 3  |-  ( c  e.  ( O  \  E )  |->  ( ( S `  c )
" c ) )  =  ( d  e.  ( O  \  E
)  |->  ( ( S `
 d ) "
d ) )
94, 8eqtri 2409 . 2  |-  R  =  ( d  e.  ( O  \  E ) 
|->  ( ( S `  d ) " d
) )
10 fvex 5684 . . 3  |-  ( S `
 C )  e. 
_V
11 imaexg 5159 . . 3  |-  ( ( S `  C )  e.  _V  ->  (
( S `  C
) " C )  e.  _V )
1210, 11ax-mp 8 . 2  |-  ( ( S `  C )
" C )  e. 
_V
133, 9, 12fvmpt 5747 1  |-  ( C  e.  ( O  \  E )  ->  ( R `  C )  =  ( ( S `
 C ) " C ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    = wceq 1649    e. wcel 1717   A.wral 2651   {crab 2655   _Vcvv 2901    \ cdif 3262    i^i cin 3264   ifcif 3684   ~Pcpw 3744   class class class wbr 4155    e. cmpt 4209   `'ccnv 4819   "cima 4823   ` cfv 5396  (class class class)co 6022   supcsup 7382   RRcr 8924   0cc0 8925   1c1 8926    + caddc 8928    < clt 9055    <_ cle 9056    - cmin 9225    / cdiv 9611   NNcn 9934   ZZcz 10216   ...cfz 10977   #chash 11547
This theorem is referenced by:  ballotlemscr  24557  ballotlemrv  24558  ballotlemro  24561  ballotlemrinv0  24571
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 1661  ax-8 1682  ax-13 1719  ax-14 1721  ax-6 1736  ax-7 1741  ax-11 1753  ax-12 1939  ax-ext 2370  ax-sep 4273  ax-nul 4281  ax-pr 4346  ax-un 4643
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 2244  df-mo 2245  df-clab 2376  df-cleq 2382  df-clel 2385  df-nfc 2514  df-ne 2554  df-ral 2656  df-rex 2657  df-rab 2660  df-v 2903  df-sbc 3107  df-dif 3268  df-un 3270  df-in 3272  df-ss 3279  df-nul 3574  df-if 3685  df-sn 3765  df-pr 3766  df-op 3768  df-uni 3960  df-br 4156  df-opab 4210  df-mpt 4211  df-id 4441  df-xp 4826  df-rel 4827  df-cnv 4828  df-co 4829  df-dm 4830  df-rn 4831  df-res 4832  df-ima 4833  df-iota 5360  df-fun 5398  df-fv 5404
  Copyright terms: Public domain W3C validator