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

Theorem ballotlemgval 24553
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 3472 . . . 4  |-  ( u  =  U  ->  (
v  i^i  u )  =  ( v  i^i 
U ) )
21fveq2d 5665 . . 3  |-  ( u  =  U  ->  ( # `
 ( v  i^i  u ) )  =  ( # `  (
v  i^i  U )
) )
3 difeq2 3395 . . . 4  |-  ( u  =  U  ->  (
v  \  u )  =  ( v  \  U ) )
43fveq2d 5665 . . 3  |-  ( u  =  U  ->  ( # `
 ( v  \  u ) )  =  ( # `  (
v  \  U )
) )
52, 4oveq12d 6031 . 2  |-  ( u  =  U  ->  (
( # `  ( v  i^i  u ) )  -  ( # `  (
v  \  u )
) )  =  ( ( # `  (
v  i^i  U )
)  -  ( # `  ( v  \  U
) ) ) )
6 ineq1 3471 . . . 4  |-  ( v  =  V  ->  (
v  i^i  U )  =  ( V  i^i  U ) )
76fveq2d 5665 . . 3  |-  ( v  =  V  ->  ( # `
 ( v  i^i 
U ) )  =  ( # `  ( V  i^i  U ) ) )
8 difeq1 3394 . . . 4  |-  ( v  =  V  ->  (
v  \  U )  =  ( V  \  U ) )
98fveq2d 5665 . . 3  |-  ( v  =  V  ->  ( # `
 ( v  \  U ) )  =  ( # `  ( V  \  U ) ) )
107, 9oveq12d 6031 . 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 6038 . 2  |-  ( (
# `  ( V  i^i  U ) )  -  ( # `  ( V 
\  U ) ) )  e.  _V
135, 10, 11, 12ovmpt2 6141 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 1649    e. wcel 1717   A.wral 2642   {crab 2646    \ cdif 3253    i^i cin 3255   ifcif 3675   ~Pcpw 3735   class class class wbr 4146    e. cmpt 4200   `'ccnv 4810   "cima 4814   ` cfv 5387  (class class class)co 6013    e. cmpt2 6015   Fincfn 7038   supcsup 7373   RRcr 8915   0cc0 8916   1c1 8917    + caddc 8919    < clt 9046    <_ cle 9047    - cmin 9216    / cdiv 9602   NNcn 9925   ZZcz 10207   ...cfz 10968   #chash 11538
This theorem is referenced by:  ballotlemgun  24554  ballotlemfg  24555  ballotlemfrc  24556
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1552  ax-5 1563  ax-17 1623  ax-9 1661  ax-8 1682  ax-14 1721  ax-6 1736  ax-7 1741  ax-11 1753  ax-12 1939  ax-ext 2361  ax-sep 4264  ax-nul 4272  ax-pr 4337
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3an 938  df-tru 1325  df-ex 1548  df-nf 1551  df-sb 1656  df-eu 2235  df-mo 2236  df-clab 2367  df-cleq 2373  df-clel 2376  df-nfc 2505  df-ne 2545  df-ral 2647  df-rex 2648  df-rab 2651  df-v 2894  df-sbc 3098  df-dif 3259  df-un 3261  df-in 3263  df-ss 3270  df-nul 3565  df-if 3676  df-sn 3756  df-pr 3757  df-op 3759  df-uni 3951  df-br 4147  df-opab 4201  df-id 4432  df-xp 4817  df-rel 4818  df-cnv 4819  df-co 4820  df-dm 4821  df-iota 5351  df-fun 5389  df-fv 5395  df-ov 6016  df-oprab 6017  df-mpt2 6018
  Copyright terms: Public domain W3C validator