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

Theorem ballotlemfval 27006
Description: The value of F. (Contributed by Thierry Arnoux, 23-Nov-2016.)
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
) ) ) ) )
ballotlemfval.c  |-  ( ph  ->  C  e.  O )
ballotlemfval.j  |-  ( ph  ->  J  e.  ZZ )
Assertion
Ref Expression
ballotlemfval  |-  ( ph  ->  ( ( F `  C ) `  J
)  =  ( (
# `  ( (
1 ... J )  i^i 
C ) )  -  ( # `  ( ( 1 ... J ) 
\  C ) ) ) )
Distinct variable groups:    M, c    N, c    O, c    i, M   
i, N    i, O, c    F, c, i    C, i    i, J    ph, i
Allowed substitution hints:    ph( x, c)    C( x, c)    P( x, i, c)    F( x)    J( x, c)    M( x)    N( x)    O( x)

Proof of Theorem ballotlemfval
Dummy variable  b is distinct from all other variables.
StepHypRef Expression
1 ballotlemfval.c . . 3  |-  ( ph  ->  C  e.  O )
2 simpl 457 . . . . . . . 8  |-  ( ( b  =  C  /\  i  e.  ZZ )  ->  b  =  C )
32ineq2d 3650 . . . . . . 7  |-  ( ( b  =  C  /\  i  e.  ZZ )  ->  ( ( 1 ... i )  i^i  b
)  =  ( ( 1 ... i )  i^i  C ) )
43fveq2d 5793 . . . . . 6  |-  ( ( b  =  C  /\  i  e.  ZZ )  ->  ( # `  (
( 1 ... i
)  i^i  b )
)  =  ( # `  ( ( 1 ... i )  i^i  C
) ) )
52difeq2d 3572 . . . . . . 7  |-  ( ( b  =  C  /\  i  e.  ZZ )  ->  ( ( 1 ... i )  \  b
)  =  ( ( 1 ... i ) 
\  C ) )
65fveq2d 5793 . . . . . 6  |-  ( ( b  =  C  /\  i  e.  ZZ )  ->  ( # `  (
( 1 ... i
)  \  b )
)  =  ( # `  ( ( 1 ... i )  \  C
) ) )
74, 6oveq12d 6208 . . . . 5  |-  ( ( b  =  C  /\  i  e.  ZZ )  ->  ( ( # `  (
( 1 ... i
)  i^i  b )
)  -  ( # `  ( ( 1 ... i )  \  b
) ) )  =  ( ( # `  (
( 1 ... i
)  i^i  C )
)  -  ( # `  ( ( 1 ... i )  \  C
) ) ) )
87mpteq2dva 4476 . . . 4  |-  ( b  =  C  ->  (
i  e.  ZZ  |->  ( ( # `  (
( 1 ... i
)  i^i  b )
)  -  ( # `  ( ( 1 ... i )  \  b
) ) ) )  =  ( i  e.  ZZ  |->  ( ( # `  ( ( 1 ... i )  i^i  C
) )  -  ( # `
 ( ( 1 ... i )  \  C ) ) ) ) )
9 ballotth.f . . . . 5  |-  F  =  ( c  e.  O  |->  ( i  e.  ZZ  |->  ( ( # `  (
( 1 ... i
)  i^i  c )
)  -  ( # `  ( ( 1 ... i )  \  c
) ) ) ) )
10 ineq2 3644 . . . . . . . . 9  |-  ( b  =  c  ->  (
( 1 ... i
)  i^i  b )  =  ( ( 1 ... i )  i^i  c ) )
1110fveq2d 5793 . . . . . . . 8  |-  ( b  =  c  ->  ( # `
 ( ( 1 ... i )  i^i  b ) )  =  ( # `  (
( 1 ... i
)  i^i  c )
) )
12 difeq2 3566 . . . . . . . . 9  |-  ( b  =  c  ->  (
( 1 ... i
)  \  b )  =  ( ( 1 ... i )  \ 
c ) )
1312fveq2d 5793 . . . . . . . 8  |-  ( b  =  c  ->  ( # `
 ( ( 1 ... i )  \ 
b ) )  =  ( # `  (
( 1 ... i
)  \  c )
) )
1411, 13oveq12d 6208 . . . . . . 7  |-  ( b  =  c  ->  (
( # `  ( ( 1 ... i )  i^i  b ) )  -  ( # `  (
( 1 ... i
)  \  b )
) )  =  ( ( # `  (
( 1 ... i
)  i^i  c )
)  -  ( # `  ( ( 1 ... i )  \  c
) ) ) )
1514mpteq2dv 4477 . . . . . 6  |-  ( b  =  c  ->  (
i  e.  ZZ  |->  ( ( # `  (
( 1 ... i
)  i^i  b )
)  -  ( # `  ( ( 1 ... i )  \  b
) ) ) )  =  ( i  e.  ZZ  |->  ( ( # `  ( ( 1 ... i )  i^i  c
) )  -  ( # `
 ( ( 1 ... i )  \ 
c ) ) ) ) )
1615cbvmptv 4481 . . . . 5  |-  ( b  e.  O  |->  ( i  e.  ZZ  |->  ( (
# `  ( (
1 ... i )  i^i  b ) )  -  ( # `  ( ( 1 ... i ) 
\  b ) ) ) ) )  =  ( c  e.  O  |->  ( i  e.  ZZ  |->  ( ( # `  (
( 1 ... i
)  i^i  c )
)  -  ( # `  ( ( 1 ... i )  \  c
) ) ) ) )
179, 16eqtr4i 2483 . . . 4  |-  F  =  ( b  e.  O  |->  ( i  e.  ZZ  |->  ( ( # `  (
( 1 ... i
)  i^i  b )
)  -  ( # `  ( ( 1 ... i )  \  b
) ) ) ) )
18 zex 10756 . . . . 5  |-  ZZ  e.  _V
1918mptex 6047 . . . 4  |-  ( i  e.  ZZ  |->  ( (
# `  ( (
1 ... i )  i^i 
C ) )  -  ( # `  ( ( 1 ... i ) 
\  C ) ) ) )  e.  _V
208, 17, 19fvmpt 5873 . . 3  |-  ( C  e.  O  ->  ( F `  C )  =  ( i  e.  ZZ  |->  ( ( # `  ( ( 1 ... i )  i^i  C
) )  -  ( # `
 ( ( 1 ... i )  \  C ) ) ) ) )
211, 20syl 16 . 2  |-  ( ph  ->  ( F `  C
)  =  ( i  e.  ZZ  |->  ( (
# `  ( (
1 ... i )  i^i 
C ) )  -  ( # `  ( ( 1 ... i ) 
\  C ) ) ) ) )
22 oveq2 6198 . . . . . 6  |-  ( i  =  J  ->  (
1 ... i )  =  ( 1 ... J
) )
2322ineq1d 3649 . . . . 5  |-  ( i  =  J  ->  (
( 1 ... i
)  i^i  C )  =  ( ( 1 ... J )  i^i 
C ) )
2423fveq2d 5793 . . . 4  |-  ( i  =  J  ->  ( # `
 ( ( 1 ... i )  i^i 
C ) )  =  ( # `  (
( 1 ... J
)  i^i  C )
) )
2522difeq1d 3571 . . . . 5  |-  ( i  =  J  ->  (
( 1 ... i
)  \  C )  =  ( ( 1 ... J )  \  C ) )
2625fveq2d 5793 . . . 4  |-  ( i  =  J  ->  ( # `
 ( ( 1 ... i )  \  C ) )  =  ( # `  (
( 1 ... J
)  \  C )
) )
2724, 26oveq12d 6208 . . 3  |-  ( i  =  J  ->  (
( # `  ( ( 1 ... i )  i^i  C ) )  -  ( # `  (
( 1 ... i
)  \  C )
) )  =  ( ( # `  (
( 1 ... J
)  i^i  C )
)  -  ( # `  ( ( 1 ... J )  \  C
) ) ) )
2827adantl 466 . 2  |-  ( (
ph  /\  i  =  J )  ->  (
( # `  ( ( 1 ... i )  i^i  C ) )  -  ( # `  (
( 1 ... i
)  \  C )
) )  =  ( ( # `  (
( 1 ... J
)  i^i  C )
)  -  ( # `  ( ( 1 ... J )  \  C
) ) ) )
29 ballotlemfval.j . 2  |-  ( ph  ->  J  e.  ZZ )
30 ovex 6215 . . 3  |-  ( (
# `  ( (
1 ... J )  i^i 
C ) )  -  ( # `  ( ( 1 ... J ) 
\  C ) ) )  e.  _V
3130a1i 11 . 2  |-  ( ph  ->  ( ( # `  (
( 1 ... J
)  i^i  C )
)  -  ( # `  ( ( 1 ... J )  \  C
) ) )  e. 
_V )
3221, 28, 29, 31fvmptd 5878 1  |-  ( ph  ->  ( ( F `  C ) `  J
)  =  ( (
# `  ( (
1 ... J )  i^i 
C ) )  -  ( # `  ( ( 1 ... J ) 
\  C ) ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    /\ wa 369    = wceq 1370    e. wcel 1758   {crab 2799   _Vcvv 3068    \ cdif 3423    i^i cin 3425   ~Pcpw 3958    |-> cmpt 4448   ` cfv 5516  (class class class)co 6190   1c1 9384    + caddc 9386    - cmin 9696    / cdiv 10094   NNcn 10423   ZZcz 10747   ...cfz 11538   #chash 12204
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1592  ax-4 1603  ax-5 1671  ax-6 1710  ax-7 1730  ax-9 1762  ax-10 1777  ax-11 1782  ax-12 1794  ax-13 1952  ax-ext 2430  ax-rep 4501  ax-sep 4511  ax-nul 4519  ax-pr 4629  ax-cnex 9439  ax-resscn 9440
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 966  df-3an 967  df-tru 1373  df-ex 1588  df-nf 1591  df-sb 1703  df-eu 2264  df-mo 2265  df-clab 2437  df-cleq 2443  df-clel 2446  df-nfc 2601  df-ne 2646  df-ral 2800  df-rex 2801  df-reu 2802  df-rab 2804  df-v 3070  df-sbc 3285  df-csb 3387  df-dif 3429  df-un 3431  df-in 3433  df-ss 3440  df-nul 3736  df-if 3890  df-sn 3976  df-pr 3978  df-op 3982  df-uni 4190  df-iun 4271  df-br 4391  df-opab 4449  df-mpt 4450  df-id 4734  df-xp 4944  df-rel 4945  df-cnv 4946  df-co 4947  df-dm 4948  df-rn 4949  df-res 4950  df-ima 4951  df-iota 5479  df-fun 5518  df-fn 5519  df-f 5520  df-f1 5521  df-fo 5522  df-f1o 5523  df-fv 5524  df-ov 6193  df-neg 9699  df-z 10748
This theorem is referenced by:  ballotlemfelz  27007  ballotlemfp1  27008  ballotlemfmpn  27011  ballotlemfval0  27012  ballotlemfg  27042  ballotlemfrc  27043
  Copyright terms: Public domain W3C validator