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

Theorem ballotlemrc 24567
Description: Range of  R. (Contributed by Thierry Arnoux, 19-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
ballotlemrc  |-  ( C  e.  ( O  \  E )  ->  ( R `  C )  e.  ( O  \  E
) )
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    R, i
Allowed substitution hints:    C( x, c)    P( x, i, k, c)    R( x, k, c)    S( x)    E( x)    F( x)    I( x)    M( x)    N( x)    O( x)

Proof of Theorem ballotlemrc
Dummy variables  v  u are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ballotth.m . . 3  |-  M  e.  NN
2 ballotth.n . . 3  |-  N  e.  NN
3 ballotth.o . . 3  |-  O  =  { c  e.  ~P ( 1 ... ( M  +  N )
)  |  ( # `  c )  =  M }
4 ballotth.p . . 3  |-  P  =  ( x  e.  ~P O  |->  ( ( # `  x )  /  ( # `
 O ) ) )
5 ballotth.f . . 3  |-  F  =  ( c  e.  O  |->  ( i  e.  ZZ  |->  ( ( # `  (
( 1 ... i
)  i^i  c )
)  -  ( # `  ( ( 1 ... i )  \  c
) ) ) ) )
6 ballotth.e . . 3  |-  E  =  { c  e.  O  |  A. i  e.  ( 1 ... ( M  +  N ) ) 0  <  ( ( F `  c ) `
 i ) }
7 ballotth.mgtn . . 3  |-  N  < 
M
8 ballotth.i . . 3  |-  I  =  ( c  e.  ( O  \  E ) 
|->  sup ( { k  e.  ( 1 ... ( M  +  N
) )  |  ( ( F `  c
) `  k )  =  0 } ,  RR ,  `'  <  ) )
9 ballotth.s . . 3  |-  S  =  ( c  e.  ( O  \  E ) 
|->  ( i  e.  ( 1 ... ( M  +  N ) ) 
|->  if ( i  <_ 
( I `  c
) ,  ( ( ( I `  c
)  +  1 )  -  i ) ,  i ) ) )
10 ballotth.r . . 3  |-  R  =  ( c  e.  ( O  \  E ) 
|->  ( ( S `  c ) " c
) )
111, 2, 3, 4, 5, 6, 7, 8, 9, 10ballotlemro 24559 . 2  |-  ( C  e.  ( O  \  E )  ->  ( R `  C )  e.  O )
121, 2, 3, 4, 5, 6, 7, 8ballotlemiex 24538 . . . 4  |-  ( C  e.  ( O  \  E )  ->  (
( I `  C
)  e.  ( 1 ... ( M  +  N ) )  /\  ( ( F `  C ) `  (
I `  C )
)  =  0 ) )
1312simpld 446 . . 3  |-  ( C  e.  ( O  \  E )  ->  (
I `  C )  e.  ( 1 ... ( M  +  N )
) )
14 eqid 2387 . . . . 5  |-  ( u  e.  Fin ,  v  e.  Fin  |->  ( (
# `  ( v  i^i  u ) )  -  ( # `  ( v 
\  u ) ) ) )  =  ( u  e.  Fin , 
v  e.  Fin  |->  ( ( # `  (
v  i^i  u )
)  -  ( # `  ( v  \  u
) ) ) )
151, 2, 3, 4, 5, 6, 7, 8, 9, 10, 14ballotlemfrci 24564 . . . 4  |-  ( C  e.  ( O  \  E )  ->  (
( F `  ( R `  C )
) `  ( I `  C ) )  =  0 )
16 0le0 10013 . . . 4  |-  0  <_  0
1715, 16syl6eqbr 4190 . . 3  |-  ( C  e.  ( O  \  E )  ->  (
( F `  ( R `  C )
) `  ( I `  C ) )  <_ 
0 )
18 fveq2 5668 . . . . 5  |-  ( i  =  ( I `  C )  ->  (
( F `  ( R `  C )
) `  i )  =  ( ( F `
 ( R `  C ) ) `  ( I `  C
) ) )
1918breq1d 4163 . . . 4  |-  ( i  =  ( I `  C )  ->  (
( ( F `  ( R `  C ) ) `  i )  <_  0  <->  ( ( F `  ( R `  C ) ) `  ( I `  C
) )  <_  0
) )
2019rspcev 2995 . . 3  |-  ( ( ( I `  C
)  e.  ( 1 ... ( M  +  N ) )  /\  ( ( F `  ( R `  C ) ) `  ( I `
 C ) )  <_  0 )  ->  E. i  e.  (
1 ... ( M  +  N ) ) ( ( F `  ( R `  C )
) `  i )  <_  0 )
2113, 17, 20syl2anc 643 . 2  |-  ( C  e.  ( O  \  E )  ->  E. i  e.  ( 1 ... ( M  +  N )
) ( ( F `
 ( R `  C ) ) `  i )  <_  0
)
221, 2, 3, 4, 5, 6ballotlemodife 24534 . 2  |-  ( ( R `  C )  e.  ( O  \  E )  <->  ( ( R `  C )  e.  O  /\  E. i  e.  ( 1 ... ( M  +  N )
) ( ( F `
 ( R `  C ) ) `  i )  <_  0
) )
2311, 21, 22sylanbrc 646 1  |-  ( C  e.  ( O  \  E )  ->  ( R `  C )  e.  ( O  \  E
) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    = wceq 1649    e. wcel 1717   A.wral 2649   E.wrex 2650   {crab 2653    \ cdif 3260    i^i cin 3262   ifcif 3682   ~Pcpw 3742   class class class wbr 4153    e. cmpt 4207   `'ccnv 4817   "cima 4821   ` cfv 5394  (class class class)co 6020    e. cmpt2 6022   Fincfn 7045   supcsup 7380   RRcr 8922   0cc0 8923   1c1 8924    + caddc 8926    < clt 9053    <_ cle 9054    - cmin 9223    / cdiv 9609   NNcn 9932   ZZcz 10214   ...cfz 10975   #chash 11545
This theorem is referenced by:  ballotlemirc  24568  ballotlemrinv0  24569  ballotlem7  24572
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 2368  ax-rep 4261  ax-sep 4271  ax-nul 4279  ax-pow 4318  ax-pr 4344  ax-un 4641  ax-cnex 8979  ax-resscn 8980  ax-1cn 8981  ax-icn 8982  ax-addcl 8983  ax-addrcl 8984  ax-mulcl 8985  ax-mulrcl 8986  ax-mulcom 8987  ax-addass 8988  ax-mulass 8989  ax-distr 8990  ax-i2m1 8991  ax-1ne0 8992  ax-1rid 8993  ax-rnegex 8994  ax-rrecex 8995  ax-cnre 8996  ax-pre-lttri 8997  ax-pre-lttrn 8998  ax-pre-ltadd 8999  ax-pre-mulgt0 9000
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3or 937  df-3an 938  df-tru 1325  df-ex 1548  df-nf 1551  df-sb 1656  df-eu 2242  df-mo 2243  df-clab 2374  df-cleq 2380  df-clel 2383  df-nfc 2512  df-ne 2552  df-nel 2553  df-ral 2654  df-rex 2655  df-reu 2656  df-rmo 2657  df-rab 2658  df-v 2901  df-sbc 3105  df-csb 3195  df-dif 3266  df-un 3268  df-in 3270  df-ss 3277  df-pss 3279  df-nul 3572  df-if 3683  df-pw 3744  df-sn 3763  df-pr 3764  df-tp 3765  df-op 3766  df-uni 3958  df-int 3993  df-iun 4037  df-br 4154  df-opab 4208  df-mpt 4209  df-tr 4244  df-eprel 4435  df-id 4439  df-po 4444  df-so 4445  df-fr 4482  df-we 4484  df-ord 4525  df-on 4526  df-lim 4527  df-suc 4528  df-om 4786  df-xp 4824  df-rel 4825  df-cnv 4826  df-co 4827  df-dm 4828  df-rn 4829  df-res 4830  df-ima 4831  df-iota 5358  df-fun 5396  df-fn 5397  df-f 5398  df-f1 5399  df-fo 5400  df-f1o 5401  df-fv 5402  df-ov 6023  df-oprab 6024  df-mpt2 6025  df-1st 6288  df-2nd 6289  df-riota 6485  df-recs 6569  df-rdg 6604  df-1o 6660  df-oadd 6664  df-er 6841  df-en 7046  df-dom 7047  df-sdom 7048  df-fin 7049  df-sup 7381  df-card 7759  df-cda 7981  df-pnf 9055  df-mnf 9056  df-xr 9057  df-ltxr 9058  df-le 9059  df-sub 9225  df-neg 9226  df-nn 9933  df-2 9990  df-n0 10154  df-z 10215  df-uz 10421  df-rp 10545  df-fz 10976  df-hash 11546
  Copyright terms: Public domain W3C validator