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

Theorem ballotlemgval 24774
Description: Expand the value of  .^. (Contributed by Thierry Arnoux, 21-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 ) ) )
ballotth.r  |-  R  =  ( c  e.  ( O  \  E ) 
|->  ( ( S `  c ) " c
) )
ballotlemg  |-  .^  =  ( u  e.  Fin ,  v  e.  Fin  |->  ( ( # `  (
v  i^i  u )
)  -  ( # `  ( v  \  u
) ) ) )
Assertion
Ref Expression
ballotlemgval  |-  ( ( U  e.  Fin  /\  V  e.  Fin )  ->  ( U  .^  V
)  =  ( (
# `  ( V  i^i  U ) )  -  ( # `  ( V 
\  U ) ) ) )
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   
i, E, k    k, I, c    E, c    i, I, c    S, k, i, c    R, i    v, u, I    u, R, v   
u, S, v    u, U, v    u, V, v
Allowed substitution hints:    P( x, v, u, i, k, c)    R( x, k, c)    S( x)    U( x, i, k, c)    E( x, v, u)    .^ ( x, v, u, i, k, c)    F( x, v, u)    I( x)    M( x, v, u)    N( x, v, u)    O( x, v, u)    V( x, i, k, c)

Proof of Theorem ballotlemgval
StepHypRef Expression
1 ineq2 3529 . . . 4  |-  ( u  =  U  ->  (
v  i^i  u )  =  ( v  i^i 
U ) )
21fveq2d 5725 . . 3  |-  ( u  =  U  ->  ( # `
 ( v  i^i  u ) )  =  ( # `  (
v  i^i  U )
) )
3 difeq2 3452 . . . 4  |-  ( u  =  U  ->  (
v  \  u )  =  ( v  \  U ) )
43fveq2d 5725 . . 3  |-  ( u  =  U  ->  ( # `
 ( v  \  u ) )  =  ( # `  (
v  \  U )
) )
52, 4oveq12d 6092 . 2  |-  ( u  =  U  ->  (
( # `  ( v  i^i  u ) )  -  ( # `  (
v  \  u )
) )  =  ( ( # `  (
v  i^i  U )
)  -  ( # `  ( v  \  U
) ) ) )
6 ineq1 3528 . . . 4  |-  ( v  =  V  ->  (
v  i^i  U )  =  ( V  i^i  U ) )
76fveq2d 5725 . . 3  |-  ( v  =  V  ->  ( # `
 ( v  i^i 
U ) )  =  ( # `  ( V  i^i  U ) ) )
8 difeq1 3451 . . . 4  |-  ( v  =  V  ->  (
v  \  U )  =  ( V  \  U ) )
98fveq2d 5725 . . 3  |-  ( v  =  V  ->  ( # `
 ( v  \  U ) )  =  ( # `  ( V  \  U ) ) )
107, 9oveq12d 6092 . 2  |-  ( v  =  V  ->  (
( # `  ( v  i^i  U ) )  -  ( # `  (
v  \  U )
) )  =  ( ( # `  ( V  i^i  U ) )  -  ( # `  ( V  \  U ) ) ) )
11 ballotlemg . 2  |-  .^  =  ( u  e.  Fin ,  v  e.  Fin  |->  ( ( # `  (
v  i^i  u )
)  -  ( # `  ( v  \  u
) ) ) )
12 ovex 6099 . 2  |-  ( (
# `  ( V  i^i  U ) )  -  ( # `  ( V 
\  U ) ) )  e.  _V
135, 10, 11, 12ovmpt2 6202 1  |-  ( ( U  e.  Fin  /\  V  e.  Fin )  ->  ( U  .^  V
)  =  ( (
# `  ( V  i^i  U ) )  -  ( # `  ( V 
\  U ) ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 359    = wceq 1652    e. wcel 1725   A.wral 2698   {crab 2702    \ cdif 3310    i^i cin 3312   ifcif 3732   ~Pcpw 3792   class class class wbr 4205    e. cmpt 4259   `'ccnv 4870   "cima 4874   ` cfv 5447  (class class class)co 6074    e. cmpt2 6076   Fincfn 7102   supcsup 7438   RRcr 8982   0cc0 8983   1c1 8984    + caddc 8986    < clt 9113    <_ cle 9114    - cmin 9284    / cdiv 9670   NNcn 9993   ZZcz 10275   ...cfz 11036   #chash 11611
This theorem is referenced by:  ballotlemgun  24775  ballotlemfg  24776  ballotlemfrc  24777
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1555  ax-5 1566  ax-17 1626  ax-9 1666  ax-8 1687  ax-14 1729  ax-6 1744  ax-7 1749  ax-11 1761  ax-12 1950  ax-ext 2417  ax-sep 4323  ax-nul 4331  ax-pr 4396
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3an 938  df-tru 1328  df-ex 1551  df-nf 1554  df-sb 1659  df-eu 2285  df-mo 2286  df-clab 2423  df-cleq 2429  df-clel 2432  df-nfc 2561  df-ne 2601  df-ral 2703  df-rex 2704  df-rab 2707  df-v 2951  df-sbc 3155  df-dif 3316  df-un 3318  df-in 3320  df-ss 3327  df-nul 3622  df-if 3733  df-sn 3813  df-pr 3814  df-op 3816  df-uni 4009  df-br 4206  df-opab 4260  df-id 4491  df-xp 4877  df-rel 4878  df-cnv 4879  df-co 4880  df-dm 4881  df-iota 5411  df-fun 5449  df-fv 5455  df-ov 6077  df-oprab 6078  df-mpt2 6079
  Copyright terms: Public domain W3C validator