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

Theorem ballotlemsel1iOLD 29395
Description: The range  ( 1 ... ( I `  C ) ) is invariant under  ( S `
 C ). (Contributed by Thierry Arnoux, 28-Apr-2017.) Obsolete version of ballotlemsel1i 29357 as of 6-Oct-2020. (New usage is discouraged.) (Proof modification is discouraged.)
Hypotheses
Ref Expression
ballotthOLD.m  |-  M  e.  NN
ballotthOLD.n  |-  N  e.  NN
ballotthOLD.o  |-  O  =  { c  e.  ~P ( 1 ... ( M  +  N )
)  |  ( # `  c )  =  M }
ballotthOLD.p  |-  P  =  ( x  e.  ~P O  |->  ( ( # `  x )  /  ( # `
 O ) ) )
ballotthOLD.f  |-  F  =  ( c  e.  O  |->  ( i  e.  ZZ  |->  ( ( # `  (
( 1 ... i
)  i^i  c )
)  -  ( # `  ( ( 1 ... i )  \  c
) ) ) ) )
ballotthOLD.e  |-  E  =  { c  e.  O  |  A. i  e.  ( 1 ... ( M  +  N ) ) 0  <  ( ( F `  c ) `
 i ) }
ballotthOLD.mgtn  |-  N  < 
M
ballotthOLD.i  |-  I  =  ( c  e.  ( O  \  E ) 
|->  sup ( { k  e.  ( 1 ... ( M  +  N
) )  |  ( ( F `  c
) `  k )  =  0 } ,  RR ,  `'  <  ) )
ballotthOLD.s  |-  S  =  ( c  e.  ( O  \  E ) 
|->  ( i  e.  ( 1 ... ( M  +  N ) ) 
|->  if ( i  <_ 
( I `  c
) ,  ( ( ( I `  c
)  +  1 )  -  i ) ,  i ) ) )
Assertion
Ref Expression
ballotlemsel1iOLD  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  ( ( S `
 C ) `  J )  e.  ( 1 ... ( I `
 C ) ) )
Distinct variable groups:    M, c    N, c    O, c    i, M   
i, N    i, O    k, M    k, N    k, O    C, i, k    i,
c, F, k    i, E, 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 ballotlemsel1iOLD
StepHypRef Expression
1 1zzd 10975 . 2  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  1  e.  ZZ )
2 ballotthOLD.m . . . . . 6  |-  M  e.  NN
3 ballotthOLD.n . . . . . 6  |-  N  e.  NN
4 ballotthOLD.o . . . . . 6  |-  O  =  { c  e.  ~P ( 1 ... ( M  +  N )
)  |  ( # `  c )  =  M }
5 ballotthOLD.p . . . . . 6  |-  P  =  ( x  e.  ~P O  |->  ( ( # `  x )  /  ( # `
 O ) ) )
6 ballotthOLD.f . . . . . 6  |-  F  =  ( c  e.  O  |->  ( i  e.  ZZ  |->  ( ( # `  (
( 1 ... i
)  i^i  c )
)  -  ( # `  ( ( 1 ... i )  \  c
) ) ) ) )
7 ballotthOLD.e . . . . . 6  |-  E  =  { c  e.  O  |  A. i  e.  ( 1 ... ( M  +  N ) ) 0  <  ( ( F `  c ) `
 i ) }
8 ballotthOLD.mgtn . . . . . 6  |-  N  < 
M
9 ballotthOLD.i . . . . . 6  |-  I  =  ( c  e.  ( O  \  E ) 
|->  sup ( { k  e.  ( 1 ... ( M  +  N
) )  |  ( ( F `  c
) `  k )  =  0 } ,  RR ,  `'  <  ) )
102, 3, 4, 5, 6, 7, 8, 9ballotlemiexOLD 29384 . . . . 5  |-  ( C  e.  ( O  \  E )  ->  (
( I `  C
)  e.  ( 1 ... ( M  +  N ) )  /\  ( ( F `  C ) `  (
I `  C )
)  =  0 ) )
1110simpld 461 . . . 4  |-  ( C  e.  ( O  \  E )  ->  (
I `  C )  e.  ( 1 ... ( M  +  N )
) )
12 elfzelz 11807 . . . 4  |-  ( ( I `  C )  e.  ( 1 ... ( M  +  N
) )  ->  (
I `  C )  e.  ZZ )
1311, 12syl 17 . . 3  |-  ( C  e.  ( O  \  E )  ->  (
I `  C )  e.  ZZ )
1413adantr 467 . 2  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  ( I `  C )  e.  ZZ )
15 nnaddcl 10638 . . . . . . . . . 10  |-  ( ( M  e.  NN  /\  N  e.  NN )  ->  ( M  +  N
)  e.  NN )
162, 3, 15mp2an 679 . . . . . . . . 9  |-  ( M  +  N )  e.  NN
1716nnzi 10968 . . . . . . . 8  |-  ( M  +  N )  e.  ZZ
1817a1i 11 . . . . . . 7  |-  ( C  e.  ( O  \  E )  ->  ( M  +  N )  e.  ZZ )
19 elfzle2 11810 . . . . . . . 8  |-  ( ( I `  C )  e.  ( 1 ... ( M  +  N
) )  ->  (
I `  C )  <_  ( M  +  N
) )
2011, 19syl 17 . . . . . . 7  |-  ( C  e.  ( O  \  E )  ->  (
I `  C )  <_  ( M  +  N
) )
21 eluz2 11172 . . . . . . 7  |-  ( ( M  +  N )  e.  ( ZZ>= `  (
I `  C )
)  <->  ( ( I `
 C )  e.  ZZ  /\  ( M  +  N )  e.  ZZ  /\  ( I `
 C )  <_ 
( M  +  N
) ) )
2213, 18, 20, 21syl3anbrc 1193 . . . . . 6  |-  ( C  e.  ( O  \  E )  ->  ( M  +  N )  e.  ( ZZ>= `  ( I `  C ) ) )
23 fzss2 11845 . . . . . 6  |-  ( ( M  +  N )  e.  ( ZZ>= `  (
I `  C )
)  ->  ( 1 ... ( I `  C ) )  C_  ( 1 ... ( M  +  N )
) )
2422, 23syl 17 . . . . 5  |-  ( C  e.  ( O  \  E )  ->  (
1 ... ( I `  C ) )  C_  ( 1 ... ( M  +  N )
) )
2524sselda 3434 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  J  e.  ( 1 ... ( M  +  N ) ) )
26 ballotthOLD.s . . . . 5  |-  S  =  ( c  e.  ( O  \  E ) 
|->  ( i  e.  ( 1 ... ( M  +  N ) ) 
|->  if ( i  <_ 
( I `  c
) ,  ( ( ( I `  c
)  +  1 )  -  i ) ,  i ) ) )
272, 3, 4, 5, 6, 7, 8, 9, 26ballotlemsdomOLD 29394 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) ) )  ->  ( ( S `
 C ) `  J )  e.  ( 1 ... ( M  +  N ) ) )
2825, 27syldan 473 . . 3  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  ( ( S `
 C ) `  J )  e.  ( 1 ... ( M  +  N ) ) )
29 elfzelz 11807 . . 3  |-  ( ( ( S `  C
) `  J )  e.  ( 1 ... ( M  +  N )
)  ->  ( ( S `  C ) `  J )  e.  ZZ )
3028, 29syl 17 . 2  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  ( ( S `
 C ) `  J )  e.  ZZ )
31 elfzelz 11807 . . . . . 6  |-  ( J  e.  ( 1 ... ( I `  C
) )  ->  J  e.  ZZ )
3231adantl 468 . . . . 5  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  J  e.  ZZ )
3332zred 11047 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  J  e.  RR )
3414zred 11047 . . . . 5  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  ( I `  C )  e.  RR )
35 1red 9663 . . . . 5  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  1  e.  RR )
3634, 35readdcld 9675 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  ( ( I `
 C )  +  1 )  e.  RR )
37 elfzle2 11810 . . . . . 6  |-  ( J  e.  ( 1 ... ( I `  C
) )  ->  J  <_  ( I `  C
) )
3837adantl 468 . . . . 5  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  J  <_  (
I `  C )
)
3914zcnd 11048 . . . . . 6  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  ( I `  C )  e.  CC )
40 1cnd 9664 . . . . . 6  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  1  e.  CC )
4139, 40pncand 9992 . . . . 5  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  ( ( ( I `  C )  +  1 )  - 
1 )  =  ( I `  C ) )
4238, 41breqtrrd 4432 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  J  <_  (
( ( I `  C )  +  1 )  -  1 ) )
4333, 36, 35, 42lesubd 10224 . . 3  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  1  <_  (
( ( I `  C )  +  1 )  -  J ) )
442, 3, 4, 5, 6, 7, 8, 9, 26ballotlemsvOLD 29392 . . . . 5  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) ) )  ->  ( ( S `
 C ) `  J )  =  if ( J  <_  (
I `  C ) ,  ( ( ( I `  C )  +  1 )  -  J ) ,  J
) )
4525, 44syldan 473 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  ( ( S `
 C ) `  J )  =  if ( J  <_  (
I `  C ) ,  ( ( ( I `  C )  +  1 )  -  J ) ,  J
) )
4638iftrued 3891 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  if ( J  <_  ( I `  C ) ,  ( ( ( I `  C )  +  1 )  -  J ) ,  J )  =  ( ( ( I `
 C )  +  1 )  -  J
) )
4745, 46eqtrd 2487 . . 3  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  ( ( S `
 C ) `  J )  =  ( ( ( I `  C )  +  1 )  -  J ) )
4843, 47breqtrrd 4432 . 2  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  1  <_  (
( S `  C
) `  J )
)
4913adantr 467 . . . . 5  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) ) )  ->  ( I `  C )  e.  ZZ )
50 elfznn 11835 . . . . . 6  |-  ( J  e.  ( 1 ... ( M  +  N
) )  ->  J  e.  NN )
5150adantl 468 . . . . 5  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) ) )  ->  J  e.  NN )
5249, 51ltesubnnd 28397 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( M  +  N ) ) )  ->  ( ( ( I `  C )  +  1 )  -  J )  <_  (
I `  C )
)
5325, 52syldan 473 . . 3  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  ( ( ( I `  C )  +  1 )  -  J )  <_  (
I `  C )
)
5447, 53eqbrtrd 4426 . 2  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  ( ( S `
 C ) `  J )  <_  (
I `  C )
)
55 elfz4 11800 . 2  |-  ( ( ( 1  e.  ZZ  /\  ( I `  C
)  e.  ZZ  /\  ( ( S `  C ) `  J
)  e.  ZZ )  /\  ( 1  <_ 
( ( S `  C ) `  J
)  /\  ( ( S `  C ) `  J )  <_  (
I `  C )
) )  ->  (
( S `  C
) `  J )  e.  ( 1 ... (
I `  C )
) )
561, 14, 30, 48, 54, 55syl32anc 1277 1  |-  ( ( C  e.  ( O 
\  E )  /\  J  e.  ( 1 ... ( I `  C ) ) )  ->  ( ( S `
 C ) `  J )  e.  ( 1 ... ( I `
 C ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    /\ wa 371    = wceq 1446    e. wcel 1889   A.wral 2739   {crab 2743    \ cdif 3403    i^i cin 3405    C_ wss 3406   ifcif 3883   ~Pcpw 3953   class class class wbr 4405    |-> cmpt 4464   `'ccnv 4836   ` cfv 5585  (class class class)co 6295   supcsup 7959   RRcr 9543   0cc0 9544   1c1 9545    + caddc 9547    < clt 9680    <_ cle 9681    - cmin 9865    / cdiv 10276   NNcn 10616   ZZcz 10944   ZZ>=cuz 11166   ...cfz 11791   #chash 12522
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1671  ax-4 1684  ax-5 1760  ax-6 1807  ax-7 1853  ax-8 1891  ax-9 1898  ax-10 1917  ax-11 1922  ax-12 1935  ax-13 2093  ax-ext 2433  ax-rep 4518  ax-sep 4528  ax-nul 4537  ax-pow 4584  ax-pr 4642  ax-un 6588  ax-cnex 9600  ax-resscn 9601  ax-1cn 9602  ax-icn 9603  ax-addcl 9604  ax-addrcl 9605  ax-mulcl 9606  ax-mulrcl 9607  ax-mulcom 9608  ax-addass 9609  ax-mulass 9610  ax-distr 9611  ax-i2m1 9612  ax-1ne0 9613  ax-1rid 9614  ax-rnegex 9615  ax-rrecex 9616  ax-cnre 9617  ax-pre-lttri 9618  ax-pre-lttrn 9619  ax-pre-ltadd 9620  ax-pre-mulgt0 9621
This theorem depends on definitions:  df-bi 189  df-or 372  df-an 373  df-3or 987  df-3an 988  df-tru 1449  df-ex 1666  df-nf 1670  df-sb 1800  df-eu 2305  df-mo 2306  df-clab 2440  df-cleq 2446  df-clel 2449  df-nfc 2583  df-ne 2626  df-nel 2627  df-ral 2744  df-rex 2745  df-reu 2746  df-rmo 2747  df-rab 2748  df-v 3049  df-sbc 3270  df-csb 3366  df-dif 3409  df-un 3411  df-in 3413  df-ss 3420  df-pss 3422  df-nul 3734  df-if 3884  df-pw 3955  df-sn 3971  df-pr 3973  df-tp 3975  df-op 3977  df-uni 4202  df-int 4238  df-iun 4283  df-br 4406  df-opab 4465  df-mpt 4466  df-tr 4501  df-eprel 4748  df-id 4752  df-po 4758  df-so 4759  df-fr 4796  df-we 4798  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-pred 5383  df-ord 5429  df-on 5430  df-lim 5431  df-suc 5432  df-iota 5549  df-fun 5587  df-fn 5588  df-f 5589  df-f1 5590  df-fo 5591  df-f1o 5592  df-fv 5593  df-riota 6257  df-ov 6298  df-oprab 6299  df-mpt2 6300  df-om 6698  df-1st 6798  df-2nd 6799  df-wrecs 7033  df-recs 7095  df-rdg 7133  df-1o 7187  df-oadd 7191  df-er 7368  df-en 7575  df-dom 7576  df-sdom 7577  df-fin 7578  df-sup 7961  df-card 8378  df-cda 8603  df-pnf 9682  df-mnf 9683  df-xr 9684  df-ltxr 9685  df-le 9686  df-sub 9867  df-neg 9868  df-nn 10617  df-2 10675  df-n0 10877  df-z 10945  df-uz 11167  df-rp 11310  df-fz 11792  df-hash 12523
This theorem is referenced by:  ballotlemfrceqOLD  29411  ballotlemfrcn0OLD  29412
  Copyright terms: Public domain W3C validator