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

Theorem ballotlemsgt1 26845
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 11445 . . . . 5  |-  ( J  e.  ( 1 ... ( M  +  N
) )  ->  J  e.  ZZ )
213ad2ant2 1010 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  ->  J  e.  ZZ )
32zred 10739 . . 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 26836 . . . . . . . 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 11445 . . . . . . 7  |-  ( ( I `  C )  e.  ( 1 ... ( M  +  N
) )  ->  (
I `  C )  e.  ZZ )
1513, 14syl 16 . . . . . 6  |-  ( C  e.  ( O  \  E )  ->  (
I `  C )  e.  ZZ )
16153ad2ant1 1009 . . . . 5  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  -> 
( I `  C
)  e.  ZZ )
1716zred 10739 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  -> 
( I `  C
)  e.  RR )
18 1re 9377 . . . . 5  |-  1  e.  RR
1918a1i 11 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  -> 
1  e.  RR )
2017, 19readdcld 9405 . . 3  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  -> 
( ( I `  C )  +  1 )  e.  RR )
21 simp3 990 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  ->  J  <  ( I `  C ) )
2216zcnd 10740 . . . . 5  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  -> 
( I `  C
)  e.  CC )
23 ax-1cn 9332 . . . . . 6  |-  1  e.  CC
2423a1i 11 . . . . 5  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  -> 
1  e.  CC )
2522, 24pncand 9712 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  -> 
( ( ( I `
 C )  +  1 )  -  1 )  =  ( I `
 C ) )
2621, 25breqtrrd 4313 . . 3  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  ->  J  <  ( ( ( I `  C )  +  1 )  - 
1 ) )
273, 20, 19, 26ltsub13d 9937 . 2  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  -> 
1  <  ( (
( I `  C
)  +  1 )  -  J ) )
28 ballotth.s . . . . 5  |-  S  =  ( c  e.  ( O  \  E ) 
|->  ( i  e.  ( 1 ... ( M  +  N ) ) 
|->  if ( i  <_ 
( I `  c
) ,  ( ( ( I `  c
)  +  1 )  -  i ) ,  i ) ) )
294, 5, 6, 7, 8, 9, 10, 11, 28ballotlemsv 26844 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) ) )  ->  ( ( S `
 C ) `  J )  =  if ( J  <_  (
I `  C ) ,  ( ( ( I `  C )  +  1 )  -  J ) ,  J
) )
30293adant3 1008 . . 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 ) )
313, 17, 21ltled 9514 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  ->  J  <_  ( I `  C ) )
32 iftrue 3792 . . . 4  |-  ( J  <_  ( I `  C )  ->  if ( J  <_  ( I `
 C ) ,  ( ( ( I `
 C )  +  1 )  -  J
) ,  J )  =  ( ( ( I `  C )  +  1 )  -  J ) )
3331, 32syl 16 . . 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 ) )
3430, 33eqtrd 2470 . 2  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) )  /\  J  <  ( I `  C ) )  -> 
( ( S `  C ) `  J
)  =  ( ( ( I `  C
)  +  1 )  -  J ) )
3527, 34breqtrrd 4313 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 965    = wceq 1369    e. wcel 1756   A.wral 2710   {crab 2714    \ cdif 3320    i^i cin 3322   ifcif 3786   ~Pcpw 3855   class class class wbr 4287    e. cmpt 4345   `'ccnv 4834   ` cfv 5413  (class class class)co 6086   supcsup 7682   CCcc 9272   RRcr 9273   0cc0 9274   1c1 9275    + caddc 9277    < clt 9410    <_ cle 9411    - cmin 9587    / cdiv 9985   NNcn 10314   ZZcz 10638   ...cfz 11429   #chash 12095
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1591  ax-4 1602  ax-5 1670  ax-6 1708  ax-7 1728  ax-8 1758  ax-9 1760  ax-10 1775  ax-11 1780  ax-12 1792  ax-13 1943  ax-ext 2419  ax-rep 4398  ax-sep 4408  ax-nul 4416  ax-pow 4465  ax-pr 4526  ax-un 6367  ax-cnex 9330  ax-resscn 9331  ax-1cn 9332  ax-icn 9333  ax-addcl 9334  ax-addrcl 9335  ax-mulcl 9336  ax-mulrcl 9337  ax-mulcom 9338  ax-addass 9339  ax-mulass 9340  ax-distr 9341  ax-i2m1 9342  ax-1ne0 9343  ax-1rid 9344  ax-rnegex 9345  ax-rrecex 9346  ax-cnre 9347  ax-pre-lttri 9348  ax-pre-lttrn 9349  ax-pre-ltadd 9350  ax-pre-mulgt0 9351
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 966  df-3an 967  df-tru 1372  df-ex 1587  df-nf 1590  df-sb 1701  df-eu 2256  df-mo 2257  df-clab 2425  df-cleq 2431  df-clel 2434  df-nfc 2563  df-ne 2603  df-nel 2604  df-ral 2715  df-rex 2716  df-reu 2717  df-rmo 2718  df-rab 2719  df-v 2969  df-sbc 3182  df-csb 3284  df-dif 3326  df-un 3328  df-in 3330  df-ss 3337  df-pss 3339  df-nul 3633  df-if 3787  df-pw 3857  df-sn 3873  df-pr 3875  df-tp 3877  df-op 3879  df-uni 4087  df-int 4124  df-iun 4168  df-br 4288  df-opab 4346  df-mpt 4347  df-tr 4381  df-eprel 4627  df-id 4631  df-po 4636  df-so 4637  df-fr 4674  df-we 4676  df-ord 4717  df-on 4718  df-lim 4719  df-suc 4720  df-xp 4841  df-rel 4842  df-cnv 4843  df-co 4844  df-dm 4845  df-rn 4846  df-res 4847  df-ima 4848  df-iota 5376  df-fun 5415  df-fn 5416  df-f 5417  df-f1 5418  df-fo 5419  df-f1o 5420  df-fv 5421  df-riota 6047  df-ov 6089  df-oprab 6090  df-mpt2 6091  df-om 6472  df-1st 6572  df-2nd 6573  df-recs 6824  df-rdg 6858  df-1o 6912  df-oadd 6916  df-er 7093  df-en 7303  df-dom 7304  df-sdom 7305  df-fin 7306  df-sup 7683  df-card 8101  df-cda 8329  df-pnf 9412  df-mnf 9413  df-xr 9414  df-ltxr 9415  df-le 9416  df-sub 9589  df-neg 9590  df-nn 10315  df-2 10372  df-n0 10572  df-z 10639  df-uz 10854  df-fz 11430  df-hash 12096
This theorem is referenced by:  ballotlemfrcn0  26864
  Copyright terms: Public domain W3C validator