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

Theorem ballotlemsgt1 28646
Description:  S maps values less than  (
I `  C ) to values greater than 1. (Contributed by Thierry Arnoux, 28-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 ) ) )
Assertion
Ref Expression
ballotlemsgt1  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  -> 
1  <  ( ( S `  C ) `  J ) )
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
Allowed substitution hints:    C( x, c)    P( x, i, k, c)    S( x, i, k, c)    E( x)    F( x)    I( x)    J( x, i, k, c)    M( x)    N( x)    O( x)

Proof of Theorem ballotlemsgt1
StepHypRef Expression
1 elfzelz 11713 . . . . 5  |-  ( J  e.  ( 1 ... ( M  +  N
) )  ->  J  e.  ZZ )
213ad2ant2 1018 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  ->  J  e.  ZZ )
32zred 10990 . . 3  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  ->  J  e.  RR )
4 ballotth.m . . . . . . . . 9  |-  M  e.  NN
5 ballotth.n . . . . . . . . 9  |-  N  e.  NN
6 ballotth.o . . . . . . . . 9  |-  O  =  { c  e.  ~P ( 1 ... ( M  +  N )
)  |  ( # `  c )  =  M }
7 ballotth.p . . . . . . . . 9  |-  P  =  ( x  e.  ~P O  |->  ( ( # `  x )  /  ( # `
 O ) ) )
8 ballotth.f . . . . . . . . 9  |-  F  =  ( c  e.  O  |->  ( i  e.  ZZ  |->  ( ( # `  (
( 1 ... i
)  i^i  c )
)  -  ( # `  ( ( 1 ... i )  \  c
) ) ) ) )
9 ballotth.e . . . . . . . . 9  |-  E  =  { c  e.  O  |  A. i  e.  ( 1 ... ( M  +  N ) ) 0  <  ( ( F `  c ) `
 i ) }
10 ballotth.mgtn . . . . . . . . 9  |-  N  < 
M
11 ballotth.i . . . . . . . . 9  |-  I  =  ( c  e.  ( O  \  E ) 
|->  sup ( { k  e.  ( 1 ... ( M  +  N
) )  |  ( ( F `  c
) `  k )  =  0 } ,  RR ,  `'  <  ) )
124, 5, 6, 7, 8, 9, 10, 11ballotlemiex 28637 . . . . . . . 8  |-  ( C  e.  ( O  \  E )  ->  (
( I `  C
)  e.  ( 1 ... ( M  +  N ) )  /\  ( ( F `  C ) `  (
I `  C )
)  =  0 ) )
1312simpld 459 . . . . . . 7  |-  ( C  e.  ( O  \  E )  ->  (
I `  C )  e.  ( 1 ... ( M  +  N )
) )
14 elfzelz 11713 . . . . . . 7  |-  ( ( I `  C )  e.  ( 1 ... ( M  +  N
) )  ->  (
I `  C )  e.  ZZ )
1513, 14syl 16 . . . . . 6  |-  ( C  e.  ( O  \  E )  ->  (
I `  C )  e.  ZZ )
16153ad2ant1 1017 . . . . 5  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  -> 
( I `  C
)  e.  ZZ )
1716zred 10990 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  -> 
( I `  C
)  e.  RR )
18 1red 9628 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  -> 
1  e.  RR )
1917, 18readdcld 9640 . . 3  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  -> 
( ( I `  C )  +  1 )  e.  RR )
20 simp3 998 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  ->  J  <  ( I `  C ) )
2116zcnd 10991 . . . . 5  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  -> 
( I `  C
)  e.  CC )
22 1cnd 9629 . . . . 5  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  -> 
1  e.  CC )
2321, 22pncand 9951 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  -> 
( ( ( I `
 C )  +  1 )  -  1 )  =  ( I `
 C ) )
2420, 23breqtrrd 4482 . . 3  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  ->  J  <  ( ( ( I `  C )  +  1 )  - 
1 ) )
253, 19, 18, 24ltsub13d 10179 . 2  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  -> 
1  <  ( (
( I `  C
)  +  1 )  -  J ) )
26 ballotth.s . . . . 5  |-  S  =  ( c  e.  ( O  \  E ) 
|->  ( i  e.  ( 1 ... ( M  +  N ) ) 
|->  if ( i  <_ 
( I `  c
) ,  ( ( ( I `  c
)  +  1 )  -  i ) ,  i ) ) )
274, 5, 6, 7, 8, 9, 10, 11, 26ballotlemsv 28645 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) ) )  ->  ( ( S `
 C ) `  J )  =  if ( J  <_  (
I `  C ) ,  ( ( ( I `  C )  +  1 )  -  J ) ,  J
) )
28273adant3 1016 . . 3  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  -> 
( ( S `  C ) `  J
)  =  if ( J  <_  ( I `  C ) ,  ( ( ( I `  C )  +  1 )  -  J ) ,  J ) )
293, 17, 20ltled 9750 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  ->  J  <_  ( I `  C ) )
3029iftrued 3952 . . 3  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  ->  if ( J  <_  (
I `  C ) ,  ( ( ( I `  C )  +  1 )  -  J ) ,  J
)  =  ( ( ( I `  C
)  +  1 )  -  J ) )
3128, 30eqtrd 2498 . 2  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  -> 
( ( S `  C ) `  J
)  =  ( ( ( I `  C
)  +  1 )  -  J ) )
3225, 31breqtrrd 4482 1  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  -> 
1  <  ( ( S `  C ) `  J ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    /\ w3a 973    = wceq 1395    e. wcel 1819   A.wral 2807   {crab 2811    \ cdif 3468    i^i cin 3470   ifcif 3944   ~Pcpw 4015   class class class wbr 4456    |-> cmpt 4515   `'ccnv 5007   ` cfv 5594  (class class class)co 6296   supcsup 7918   RRcr 9508   0cc0 9509   1c1 9510    + caddc 9512    < clt 9645    <_ cle 9646    - cmin 9824    / cdiv 10227   NNcn 10556   ZZcz 10885   ...cfz 11697   #chash 12408
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1619  ax-4 1632  ax-5 1705  ax-6 1748  ax-7 1791  ax-8 1821  ax-9 1823  ax-10 1838  ax-11 1843  ax-12 1855  ax-13 2000  ax-ext 2435  ax-rep 4568  ax-sep 4578  ax-nul 4586  ax-pow 4634  ax-pr 4695  ax-un 6591  ax-cnex 9565  ax-resscn 9566  ax-1cn 9567  ax-icn 9568  ax-addcl 9569  ax-addrcl 9570  ax-mulcl 9571  ax-mulrcl 9572  ax-mulcom 9573  ax-addass 9574  ax-mulass 9575  ax-distr 9576  ax-i2m1 9577  ax-1ne0 9578  ax-1rid 9579  ax-rnegex 9580  ax-rrecex 9581  ax-cnre 9582  ax-pre-lttri 9583  ax-pre-lttrn 9584  ax-pre-ltadd 9585  ax-pre-mulgt0 9586
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 974  df-3an 975  df-tru 1398  df-ex 1614  df-nf 1618  df-sb 1741  df-eu 2287  df-mo 2288  df-clab 2443  df-cleq 2449  df-clel 2452  df-nfc 2607  df-ne 2654  df-nel 2655  df-ral 2812  df-rex 2813  df-reu 2814  df-rmo 2815  df-rab 2816  df-v 3111  df-sbc 3328  df-csb 3431  df-dif 3474  df-un 3476  df-in 3478  df-ss 3485  df-pss 3487  df-nul 3794  df-if 3945  df-pw 4017  df-sn 4033  df-pr 4035  df-tp 4037  df-op 4039  df-uni 4252  df-int 4289  df-iun 4334  df-br 4457  df-opab 4516  df-mpt 4517  df-tr 4551  df-eprel 4800  df-id 4804  df-po 4809  df-so 4810  df-fr 4847  df-we 4849  df-ord 4890  df-on 4891  df-lim 4892  df-suc 4893  df-xp 5014  df-rel 5015  df-cnv 5016  df-co 5017  df-dm 5018  df-rn 5019  df-res 5020  df-ima 5021  df-iota 5557  df-fun 5596  df-fn 5597  df-f 5598  df-f1 5599  df-fo 5600  df-f1o 5601  df-fv 5602  df-riota 6258  df-ov 6299  df-oprab 6300  df-mpt2 6301  df-om 6700  df-1st 6799  df-2nd 6800  df-recs 7060  df-rdg 7094  df-1o 7148  df-oadd 7152  df-er 7329  df-en 7536  df-dom 7537  df-sdom 7538  df-fin 7539  df-sup 7919  df-card 8337  df-cda 8565  df-pnf 9647  df-mnf 9648  df-xr 9649  df-ltxr 9650  df-le 9651  df-sub 9826  df-neg 9827  df-nn 10557  df-2 10615  df-n0 10817  df-z 10886  df-uz 11107  df-fz 11698  df-hash 12409
This theorem is referenced by:  ballotlemfrcn0  28665
  Copyright terms: Public domain W3C validator