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

Theorem ballotlemi1 26735
Description: The first tie cannot be reached at the first pick. (Contributed by Thierry Arnoux, 12-Mar-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 ,  `'  <  ) )
Assertion
Ref Expression
ballotlemi1  |-  ( ( C  e.  ( O 
\  E )  /\  -.  1  e.  C
)  ->  ( I `  C )  =/=  1
)
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   
k, c, E    i, I
Allowed substitution hints:    C( x, c)    P( x, i, k, c)    E( x)    F( x)    I( x, c)    M( x)    N( x)    O( x)

Proof of Theorem ballotlemi1
StepHypRef Expression
1 0re 9376 . . . . . . 7  |-  0  e.  RR
2 1re 9375 . . . . . . 7  |-  1  e.  RR
31, 2resubcli 9661 . . . . . 6  |-  ( 0  -  1 )  e.  RR
4 0lt1 9852 . . . . . . 7  |-  0  <  1
5 ltsub23 9809 . . . . . . . . 9  |-  ( ( 0  e.  RR  /\  1  e.  RR  /\  0  e.  RR )  ->  (
( 0  -  1 )  <  0  <->  (
0  -  0 )  <  1 ) )
61, 2, 1, 5mp3an 1309 . . . . . . . 8  |-  ( ( 0  -  1 )  <  0  <->  ( 0  -  0 )  <  1 )
7 0m0e0 10421 . . . . . . . . 9  |-  ( 0  -  0 )  =  0
87breq1i 4289 . . . . . . . 8  |-  ( ( 0  -  0 )  <  1  <->  0  <  1 )
96, 8bitr2i 250 . . . . . . 7  |-  ( 0  <  1  <->  ( 0  -  1 )  <  0 )
104, 9mpbi 208 . . . . . 6  |-  ( 0  -  1 )  <  0
113, 10gtneii 9476 . . . . 5  |-  0  =/=  ( 0  -  1 )
12 eqcom 2437 . . . . . 6  |-  ( 0  =  ( 0  -  1 )  <->  ( 0  -  1 )  =  0 )
1312necon3abii 2630 . . . . 5  |-  ( 0  =/=  ( 0  -  1 )  <->  -.  (
0  -  1 )  =  0 )
1411, 13mpbi 208 . . . 4  |-  -.  (
0  -  1 )  =  0
15 ballotth.m . . . . . . . . 9  |-  M  e.  NN
16 ballotth.n . . . . . . . . 9  |-  N  e.  NN
17 ballotth.o . . . . . . . . 9  |-  O  =  { c  e.  ~P ( 1 ... ( M  +  N )
)  |  ( # `  c )  =  M }
18 ballotth.p . . . . . . . . 9  |-  P  =  ( x  e.  ~P O  |->  ( ( # `  x )  /  ( # `
 O ) ) )
19 ballotth.f . . . . . . . . 9  |-  F  =  ( c  e.  O  |->  ( i  e.  ZZ  |->  ( ( # `  (
( 1 ... i
)  i^i  c )
)  -  ( # `  ( ( 1 ... i )  \  c
) ) ) ) )
20 eldifi 3468 . . . . . . . . 9  |-  ( C  e.  ( O  \  E )  ->  C  e.  O )
21 1nn 10323 . . . . . . . . . 10  |-  1  e.  NN
2221a1i 11 . . . . . . . . 9  |-  ( C  e.  ( O  \  E )  ->  1  e.  NN )
2315, 16, 17, 18, 19, 20, 22ballotlemfp1 26724 . . . . . . . 8  |-  ( C  e.  ( O  \  E )  ->  (
( -.  1  e.  C  ->  ( ( F `  C ) `  1 )  =  ( ( ( F `
 C ) `  ( 1  -  1 ) )  -  1 ) )  /\  (
1  e.  C  -> 
( ( F `  C ) `  1
)  =  ( ( ( F `  C
) `  ( 1  -  1 ) )  +  1 ) ) ) )
2423simpld 456 . . . . . . 7  |-  ( C  e.  ( O  \  E )  ->  ( -.  1  e.  C  ->  ( ( F `  C ) `  1
)  =  ( ( ( F `  C
) `  ( 1  -  1 ) )  -  1 ) ) )
2524imp 429 . . . . . 6  |-  ( ( C  e.  ( O 
\  E )  /\  -.  1  e.  C
)  ->  ( ( F `  C ) `  1 )  =  ( ( ( F `
 C ) `  ( 1  -  1 ) )  -  1 ) )
26 1m1e0 10380 . . . . . . . . 9  |-  ( 1  -  1 )  =  0
2726fveq2i 5684 . . . . . . . 8  |-  ( ( F `  C ) `
 ( 1  -  1 ) )  =  ( ( F `  C ) `  0
)
2827oveq1i 6092 . . . . . . 7  |-  ( ( ( F `  C
) `  ( 1  -  1 ) )  -  1 )  =  ( ( ( F `
 C ) ` 
0 )  -  1 )
2928a1i 11 . . . . . 6  |-  ( ( C  e.  ( O 
\  E )  /\  -.  1  e.  C
)  ->  ( (
( F `  C
) `  ( 1  -  1 ) )  -  1 )  =  ( ( ( F `
 C ) ` 
0 )  -  1 ) )
3015, 16, 17, 18, 19ballotlemfval0 26728 . . . . . . . . 9  |-  ( C  e.  O  ->  (
( F `  C
) `  0 )  =  0 )
3120, 30syl 16 . . . . . . . 8  |-  ( C  e.  ( O  \  E )  ->  (
( F `  C
) `  0 )  =  0 )
3231adantr 462 . . . . . . 7  |-  ( ( C  e.  ( O 
\  E )  /\  -.  1  e.  C
)  ->  ( ( F `  C ) `  0 )  =  0 )
3332oveq1d 6097 . . . . . 6  |-  ( ( C  e.  ( O 
\  E )  /\  -.  1  e.  C
)  ->  ( (
( F `  C
) `  0 )  -  1 )  =  ( 0  -  1 ) )
3425, 29, 333eqtrrd 2472 . . . . 5  |-  ( ( C  e.  ( O 
\  E )  /\  -.  1  e.  C
)  ->  ( 0  -  1 )  =  ( ( F `  C ) `  1
) )
3534eqeq1d 2443 . . . 4  |-  ( ( C  e.  ( O 
\  E )  /\  -.  1  e.  C
)  ->  ( (
0  -  1 )  =  0  <->  ( ( F `  C ) `  1 )  =  0 ) )
3614, 35mtbii 302 . . 3  |-  ( ( C  e.  ( O 
\  E )  /\  -.  1  e.  C
)  ->  -.  (
( F `  C
) `  1 )  =  0 )
37 ballotth.e . . . . . . 7  |-  E  =  { c  e.  O  |  A. i  e.  ( 1 ... ( M  +  N ) ) 0  <  ( ( F `  c ) `
 i ) }
38 ballotth.mgtn . . . . . . 7  |-  N  < 
M
39 ballotth.i . . . . . . 7  |-  I  =  ( c  e.  ( O  \  E ) 
|->  sup ( { k  e.  ( 1 ... ( M  +  N
) )  |  ( ( F `  c
) `  k )  =  0 } ,  RR ,  `'  <  ) )
4015, 16, 17, 18, 19, 37, 38, 39ballotlemiex 26734 . . . . . 6  |-  ( C  e.  ( O  \  E )  ->  (
( I `  C
)  e.  ( 1 ... ( M  +  N ) )  /\  ( ( F `  C ) `  (
I `  C )
)  =  0 ) )
4140simprd 460 . . . . 5  |-  ( C  e.  ( O  \  E )  ->  (
( F `  C
) `  ( I `  C ) )  =  0 )
4241ad2antrr 720 . . . 4  |-  ( ( ( C  e.  ( O  \  E )  /\  -.  1  e.  C )  /\  (
I `  C )  =  1 )  -> 
( ( F `  C ) `  (
I `  C )
)  =  0 )
43 fveq2 5681 . . . . . 6  |-  ( ( I `  C )  =  1  ->  (
( F `  C
) `  ( I `  C ) )  =  ( ( F `  C ) `  1
) )
4443eqeq1d 2443 . . . . 5  |-  ( ( I `  C )  =  1  ->  (
( ( F `  C ) `  (
I `  C )
)  =  0  <->  (
( F `  C
) `  1 )  =  0 ) )
4544adantl 463 . . . 4  |-  ( ( ( C  e.  ( O  \  E )  /\  -.  1  e.  C )  /\  (
I `  C )  =  1 )  -> 
( ( ( F `
 C ) `  ( I `  C
) )  =  0  <-> 
( ( F `  C ) `  1
)  =  0 ) )
4642, 45mpbid 210 . . 3  |-  ( ( ( C  e.  ( O  \  E )  /\  -.  1  e.  C )  /\  (
I `  C )  =  1 )  -> 
( ( F `  C ) `  1
)  =  0 )
4736, 46mtand 654 . 2  |-  ( ( C  e.  ( O 
\  E )  /\  -.  1  e.  C
)  ->  -.  (
I `  C )  =  1 )
4847neneqad 2673 1  |-  ( ( C  e.  ( O 
\  E )  /\  -.  1  e.  C
)  ->  ( I `  C )  =/=  1
)
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 184    /\ wa 369    = wceq 1364    e. wcel 1757    =/= wne 2598   A.wral 2707   {crab 2711    \ cdif 3315    i^i cin 3317   ~Pcpw 3850   class class class wbr 4282    e. cmpt 4340   `'ccnv 4828   ` cfv 5408  (class class class)co 6082   supcsup 7680   RRcr 9271   0cc0 9272   1c1 9273    + caddc 9275    < clt 9408    - cmin 9585    / cdiv 9983   NNcn 10312   ZZcz 10636   ...cfz 11426   #chash 12089
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1596  ax-4 1607  ax-5 1671  ax-6 1709  ax-7 1729  ax-8 1759  ax-9 1761  ax-10 1776  ax-11 1781  ax-12 1793  ax-13 1944  ax-ext 2416  ax-rep 4393  ax-sep 4403  ax-nul 4411  ax-pow 4460  ax-pr 4521  ax-un 6363  ax-cnex 9328  ax-resscn 9329  ax-1cn 9330  ax-icn 9331  ax-addcl 9332  ax-addrcl 9333  ax-mulcl 9334  ax-mulrcl 9335  ax-mulcom 9336  ax-addass 9337  ax-mulass 9338  ax-distr 9339  ax-i2m1 9340  ax-1ne0 9341  ax-1rid 9342  ax-rnegex 9343  ax-rrecex 9344  ax-cnre 9345  ax-pre-lttri 9346  ax-pre-lttrn 9347  ax-pre-ltadd 9348  ax-pre-mulgt0 9349
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 961  df-3an 962  df-tru 1367  df-ex 1592  df-nf 1595  df-sb 1702  df-eu 2260  df-mo 2261  df-clab 2422  df-cleq 2428  df-clel 2431  df-nfc 2560  df-ne 2600  df-nel 2601  df-ral 2712  df-rex 2713  df-reu 2714  df-rmo 2715  df-rab 2716  df-v 2966  df-sbc 3178  df-csb 3279  df-dif 3321  df-un 3323  df-in 3325  df-ss 3332  df-pss 3334  df-nul 3628  df-if 3782  df-pw 3852  df-sn 3868  df-pr 3870  df-tp 3872  df-op 3874  df-uni 4082  df-int 4119  df-iun 4163  df-br 4283  df-opab 4341  df-mpt 4342  df-tr 4376  df-eprel 4621  df-id 4625  df-po 4630  df-so 4631  df-fr 4668  df-we 4670  df-ord 4711  df-on 4712  df-lim 4713  df-suc 4714  df-xp 4835  df-rel 4836  df-cnv 4837  df-co 4838  df-dm 4839  df-rn 4840  df-res 4841  df-ima 4842  df-iota 5371  df-fun 5410  df-fn 5411  df-f 5412  df-f1 5413  df-fo 5414  df-f1o 5415  df-fv 5416  df-riota 6041  df-ov 6085  df-oprab 6086  df-mpt2 6087  df-om 6468  df-1st 6568  df-2nd 6569  df-recs 6820  df-rdg 6854  df-1o 6910  df-oadd 6914  df-er 7091  df-en 7301  df-dom 7302  df-sdom 7303  df-fin 7304  df-sup 7681  df-card 8099  df-cda 8327  df-pnf 9410  df-mnf 9411  df-xr 9412  df-ltxr 9413  df-le 9414  df-sub 9587  df-neg 9588  df-nn 10313  df-2 10370  df-n0 10570  df-z 10637  df-uz 10852  df-fz 11427  df-hash 12090
This theorem is referenced by:  ballotlemic  26739
  Copyright terms: Public domain W3C validator