MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  vdwlem5 Structured version   Unicode version

Theorem vdwlem5 14168
Description: Lemma for vdw 14177. (Contributed by Mario Carneiro, 12-Sep-2014.)
Hypotheses
Ref Expression
vdwlem3.v  |-  ( ph  ->  V  e.  NN )
vdwlem3.w  |-  ( ph  ->  W  e.  NN )
vdwlem4.r  |-  ( ph  ->  R  e.  Fin )
vdwlem4.h  |-  ( ph  ->  H : ( 1 ... ( W  x.  ( 2  x.  V
) ) ) --> R )
vdwlem4.f  |-  F  =  ( x  e.  ( 1 ... V ) 
|->  ( y  e.  ( 1 ... W ) 
|->  ( H `  (
y  +  ( W  x.  ( ( x  -  1 )  +  V ) ) ) ) ) )
vdwlem7.m  |-  ( ph  ->  M  e.  NN )
vdwlem7.g  |-  ( ph  ->  G : ( 1 ... W ) --> R )
vdwlem7.k  |-  ( ph  ->  K  e.  ( ZZ>= ` 
2 ) )
vdwlem7.a  |-  ( ph  ->  A  e.  NN )
vdwlem7.d  |-  ( ph  ->  D  e.  NN )
vdwlem7.s  |-  ( ph  ->  ( A (AP `  K ) D ) 
C_  ( `' F " { G } ) )
vdwlem6.b  |-  ( ph  ->  B  e.  NN )
vdwlem6.e  |-  ( ph  ->  E : ( 1 ... M ) --> NN )
vdwlem6.s  |-  ( ph  ->  A. i  e.  ( 1 ... M ) ( ( B  +  ( E `  i ) ) (AP `  K
) ( E `  i ) )  C_  ( `' G " { ( G `  ( B  +  ( E `  i ) ) ) } ) )
vdwlem6.j  |-  J  =  ( i  e.  ( 1 ... M ) 
|->  ( G `  ( B  +  ( E `  i ) ) ) )
vdwlem6.r  |-  ( ph  ->  ( # `  ran  J )  =  M )
vdwlem6.t  |-  T  =  ( B  +  ( W  x.  ( ( A  +  ( V  -  D ) )  -  1 ) ) )
vdwlem6.p  |-  P  =  ( j  e.  ( 1 ... ( M  +  1 ) ) 
|->  ( if ( j  =  ( M  + 
1 ) ,  0 ,  ( E `  j ) )  +  ( W  x.  D
) ) )
Assertion
Ref Expression
vdwlem5  |-  ( ph  ->  T  e.  NN )
Distinct variable groups:    x, y, A    i, j, x, y, G    i, K, j, x, y    i, J, j, x    P, i, x    ph, i, j, x, y    R, i, x, y    B, i, j, x, y   
i, H, x, y   
i, M, j, x, y    D, j, x, y   
i, E, j, x, y    i, W, j, x, y    T, i, x    x, V, y
Allowed substitution hints:    A( i, j)    D( i)    P( y, j)    R( j)    T( y, j)    F( x, y, i, j)    H( j)    J( y)    V( i, j)

Proof of Theorem vdwlem5
StepHypRef Expression
1 vdwlem6.t . 2  |-  T  =  ( B  +  ( W  x.  ( ( A  +  ( V  -  D ) )  -  1 ) ) )
2 vdwlem6.b . . 3  |-  ( ph  ->  B  e.  NN )
3 vdwlem3.w . . . . 5  |-  ( ph  ->  W  e.  NN )
43nnnn0d 10751 . . . 4  |-  ( ph  ->  W  e.  NN0 )
5 vdwlem7.a . . . . . 6  |-  ( ph  ->  A  e.  NN )
6 vdwlem3.v . . . . . . . . . 10  |-  ( ph  ->  V  e.  NN )
76nncnd 10453 . . . . . . . . 9  |-  ( ph  ->  V  e.  CC )
8 vdwlem7.d . . . . . . . . . 10  |-  ( ph  ->  D  e.  NN )
98nncnd 10453 . . . . . . . . 9  |-  ( ph  ->  D  e.  CC )
107, 9subcld 9834 . . . . . . . 8  |-  ( ph  ->  ( V  -  D
)  e.  CC )
115nncnd 10453 . . . . . . . 8  |-  ( ph  ->  A  e.  CC )
1210, 11npcand 9838 . . . . . . 7  |-  ( ph  ->  ( ( ( V  -  D )  -  A )  +  A
)  =  ( V  -  D ) )
137, 9, 11subsub4d 9865 . . . . . . . . . 10  |-  ( ph  ->  ( ( V  -  D )  -  A
)  =  ( V  -  ( D  +  A ) ) )
149, 11addcomd 9686 . . . . . . . . . . 11  |-  ( ph  ->  ( D  +  A
)  =  ( A  +  D ) )
1514oveq2d 6219 . . . . . . . . . 10  |-  ( ph  ->  ( V  -  ( D  +  A )
)  =  ( V  -  ( A  +  D ) ) )
1613, 15eqtrd 2495 . . . . . . . . 9  |-  ( ph  ->  ( ( V  -  D )  -  A
)  =  ( V  -  ( A  +  D ) ) )
17 cnvimass 5300 . . . . . . . . . . . . 13  |-  ( `' F " { G } )  C_  dom  F
18 vdwlem4.r . . . . . . . . . . . . . . 15  |-  ( ph  ->  R  e.  Fin )
19 vdwlem4.h . . . . . . . . . . . . . . 15  |-  ( ph  ->  H : ( 1 ... ( W  x.  ( 2  x.  V
) ) ) --> R )
20 vdwlem4.f . . . . . . . . . . . . . . 15  |-  F  =  ( x  e.  ( 1 ... V ) 
|->  ( y  e.  ( 1 ... W ) 
|->  ( H `  (
y  +  ( W  x.  ( ( x  -  1 )  +  V ) ) ) ) ) )
216, 3, 18, 19, 20vdwlem4 14167 . . . . . . . . . . . . . 14  |-  ( ph  ->  F : ( 1 ... V ) --> ( R  ^m  ( 1 ... W ) ) )
22 fdm 5674 . . . . . . . . . . . . . 14  |-  ( F : ( 1 ... V ) --> ( R  ^m  ( 1 ... W ) )  ->  dom  F  =  ( 1 ... V ) )
2321, 22syl 16 . . . . . . . . . . . . 13  |-  ( ph  ->  dom  F  =  ( 1 ... V ) )
2417, 23syl5sseq 3515 . . . . . . . . . . . 12  |-  ( ph  ->  ( `' F " { G } )  C_  ( 1 ... V
) )
25 vdwlem7.s . . . . . . . . . . . . 13  |-  ( ph  ->  ( A (AP `  K ) D ) 
C_  ( `' F " { G } ) )
26 ssun2 3631 . . . . . . . . . . . . . . 15  |-  ( ( A  +  D ) (AP `  ( K  -  1 ) ) D )  C_  ( { A }  u.  (
( A  +  D
) (AP `  ( K  -  1 ) ) D ) )
27 vdwlem7.k . . . . . . . . . . . . . . . . 17  |-  ( ph  ->  K  e.  ( ZZ>= ` 
2 ) )
28 uz2m1nn 11044 . . . . . . . . . . . . . . . . 17  |-  ( K  e.  ( ZZ>= `  2
)  ->  ( K  -  1 )  e.  NN )
2927, 28syl 16 . . . . . . . . . . . . . . . 16  |-  ( ph  ->  ( K  -  1 )  e.  NN )
305, 8nnaddcld 10483 . . . . . . . . . . . . . . . 16  |-  ( ph  ->  ( A  +  D
)  e.  NN )
31 vdwapid1 14158 . . . . . . . . . . . . . . . 16  |-  ( ( ( K  -  1 )  e.  NN  /\  ( A  +  D
)  e.  NN  /\  D  e.  NN )  ->  ( A  +  D
)  e.  ( ( A  +  D ) (AP `  ( K  -  1 ) ) D ) )
3229, 30, 8, 31syl3anc 1219 . . . . . . . . . . . . . . 15  |-  ( ph  ->  ( A  +  D
)  e.  ( ( A  +  D ) (AP `  ( K  -  1 ) ) D ) )
3326, 32sseldi 3465 . . . . . . . . . . . . . 14  |-  ( ph  ->  ( A  +  D
)  e.  ( { A }  u.  (
( A  +  D
) (AP `  ( K  -  1 ) ) D ) ) )
34 eluz2b2 11042 . . . . . . . . . . . . . . . . . . . . 21  |-  ( K  e.  ( ZZ>= `  2
)  <->  ( K  e.  NN  /\  1  < 
K ) )
3534simplbi 460 . . . . . . . . . . . . . . . . . . . 20  |-  ( K  e.  ( ZZ>= `  2
)  ->  K  e.  NN )
3627, 35syl 16 . . . . . . . . . . . . . . . . . . 19  |-  ( ph  ->  K  e.  NN )
3736nncnd 10453 . . . . . . . . . . . . . . . . . 18  |-  ( ph  ->  K  e.  CC )
38 ax-1cn 9455 . . . . . . . . . . . . . . . . . 18  |-  1  e.  CC
39 npcan 9734 . . . . . . . . . . . . . . . . . 18  |-  ( ( K  e.  CC  /\  1  e.  CC )  ->  ( ( K  - 
1 )  +  1 )  =  K )
4037, 38, 39sylancl 662 . . . . . . . . . . . . . . . . 17  |-  ( ph  ->  ( ( K  - 
1 )  +  1 )  =  K )
4140fveq2d 5806 . . . . . . . . . . . . . . . 16  |-  ( ph  ->  (AP `  ( ( K  -  1 )  +  1 ) )  =  (AP `  K
) )
4241oveqd 6220 . . . . . . . . . . . . . . 15  |-  ( ph  ->  ( A (AP `  ( ( K  - 
1 )  +  1 ) ) D )  =  ( A (AP
`  K ) D ) )
43 nnm1nn0 10736 . . . . . . . . . . . . . . . . 17  |-  ( K  e.  NN  ->  ( K  -  1 )  e.  NN0 )
4436, 43syl 16 . . . . . . . . . . . . . . . 16  |-  ( ph  ->  ( K  -  1 )  e.  NN0 )
45 vdwapun 14157 . . . . . . . . . . . . . . . 16  |-  ( ( ( K  -  1 )  e.  NN0  /\  A  e.  NN  /\  D  e.  NN )  ->  ( A (AP `  ( ( K  -  1 )  +  1 ) ) D )  =  ( { A }  u.  ( ( A  +  D ) (AP `  ( K  -  1
) ) D ) ) )
4644, 5, 8, 45syl3anc 1219 . . . . . . . . . . . . . . 15  |-  ( ph  ->  ( A (AP `  ( ( K  - 
1 )  +  1 ) ) D )  =  ( { A }  u.  ( ( A  +  D )
(AP `  ( K  -  1 ) ) D ) ) )
4742, 46eqtr3d 2497 . . . . . . . . . . . . . 14  |-  ( ph  ->  ( A (AP `  K ) D )  =  ( { A }  u.  ( ( A  +  D )
(AP `  ( K  -  1 ) ) D ) ) )
4833, 47eleqtrrd 2545 . . . . . . . . . . . . 13  |-  ( ph  ->  ( A  +  D
)  e.  ( A (AP `  K ) D ) )
4925, 48sseldd 3468 . . . . . . . . . . . 12  |-  ( ph  ->  ( A  +  D
)  e.  ( `' F " { G } ) )
5024, 49sseldd 3468 . . . . . . . . . . 11  |-  ( ph  ->  ( A  +  D
)  e.  ( 1 ... V ) )
51 elfzuz3 11571 . . . . . . . . . . 11  |-  ( ( A  +  D )  e.  ( 1 ... V )  ->  V  e.  ( ZZ>= `  ( A  +  D ) ) )
5250, 51syl 16 . . . . . . . . . 10  |-  ( ph  ->  V  e.  ( ZZ>= `  ( A  +  D
) ) )
53 uznn0sub 11007 . . . . . . . . . 10  |-  ( V  e.  ( ZZ>= `  ( A  +  D )
)  ->  ( V  -  ( A  +  D ) )  e. 
NN0 )
5452, 53syl 16 . . . . . . . . 9  |-  ( ph  ->  ( V  -  ( A  +  D )
)  e.  NN0 )
5516, 54eqeltrd 2542 . . . . . . . 8  |-  ( ph  ->  ( ( V  -  D )  -  A
)  e.  NN0 )
56 nn0nnaddcl 10726 . . . . . . . 8  |-  ( ( ( ( V  -  D )  -  A
)  e.  NN0  /\  A  e.  NN )  ->  ( ( ( V  -  D )  -  A )  +  A
)  e.  NN )
5755, 5, 56syl2anc 661 . . . . . . 7  |-  ( ph  ->  ( ( ( V  -  D )  -  A )  +  A
)  e.  NN )
5812, 57eqeltrrd 2543 . . . . . 6  |-  ( ph  ->  ( V  -  D
)  e.  NN )
595, 58nnaddcld 10483 . . . . 5  |-  ( ph  ->  ( A  +  ( V  -  D ) )  e.  NN )
60 nnm1nn0 10736 . . . . 5  |-  ( ( A  +  ( V  -  D ) )  e.  NN  ->  (
( A  +  ( V  -  D ) )  -  1 )  e.  NN0 )
6159, 60syl 16 . . . 4  |-  ( ph  ->  ( ( A  +  ( V  -  D
) )  -  1 )  e.  NN0 )
624, 61nn0mulcld 10756 . . 3  |-  ( ph  ->  ( W  x.  (
( A  +  ( V  -  D ) )  -  1 ) )  e.  NN0 )
63 nnnn0addcl 10725 . . 3  |-  ( ( B  e.  NN  /\  ( W  x.  (
( A  +  ( V  -  D ) )  -  1 ) )  e.  NN0 )  ->  ( B  +  ( W  x.  ( ( A  +  ( V  -  D ) )  -  1 ) ) )  e.  NN )
642, 62, 63syl2anc 661 . 2  |-  ( ph  ->  ( B  +  ( W  x.  ( ( A  +  ( V  -  D ) )  -  1 ) ) )  e.  NN )
651, 64syl5eqel 2546 1  |-  ( ph  ->  T  e.  NN )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    = wceq 1370    e. wcel 1758   A.wral 2799    u. cun 3437    C_ wss 3439   ifcif 3902   {csn 3988   class class class wbr 4403    |-> cmpt 4461   `'ccnv 4950   dom cdm 4951   ran crn 4952   "cima 4954   -->wf 5525   ` cfv 5529  (class class class)co 6203    ^m cmap 7327   Fincfn 7423   CCcc 9395   0cc0 9397   1c1 9398    + caddc 9400    x. cmul 9402    < clt 9533    - cmin 9710   NNcn 10437   2c2 10486   NN0cn0 10694   ZZ>=cuz 10976   ...cfz 11558   #chash 12224  APcvdwa 14148
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-8 1760  ax-9 1762  ax-10 1777  ax-11 1782  ax-12 1794  ax-13 1955  ax-ext 2432  ax-rep 4514  ax-sep 4524  ax-nul 4532  ax-pow 4581  ax-pr 4642  ax-un 6485  ax-cnex 9453  ax-resscn 9454  ax-1cn 9455  ax-icn 9456  ax-addcl 9457  ax-addrcl 9458  ax-mulcl 9459  ax-mulrcl 9460  ax-mulcom 9461  ax-addass 9462  ax-mulass 9463  ax-distr 9464  ax-i2m1 9465  ax-1ne0 9466  ax-1rid 9467  ax-rnegex 9468  ax-rrecex 9469  ax-cnre 9470  ax-pre-lttri 9471  ax-pre-lttrn 9472  ax-pre-ltadd 9473  ax-pre-mulgt0 9474
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 2266  df-mo 2267  df-clab 2440  df-cleq 2446  df-clel 2449  df-nfc 2604  df-ne 2650  df-nel 2651  df-ral 2804  df-rex 2805  df-reu 2806  df-rab 2808  df-v 3080  df-sbc 3295  df-csb 3399  df-dif 3442  df-un 3444  df-in 3446  df-ss 3453  df-pss 3455  df-nul 3749  df-if 3903  df-pw 3973  df-sn 3989  df-pr 3991  df-tp 3993  df-op 3995  df-uni 4203  df-iun 4284  df-br 4404  df-opab 4462  df-mpt 4463  df-tr 4497  df-eprel 4743  df-id 4747  df-po 4752  df-so 4753  df-fr 4790  df-we 4792  df-ord 4833  df-on 4834  df-lim 4835  df-suc 4836  df-xp 4957  df-rel 4958  df-cnv 4959  df-co 4960  df-dm 4961  df-rn 4962  df-res 4963  df-ima 4964  df-iota 5492  df-fun 5531  df-fn 5532  df-f 5533  df-f1 5534  df-fo 5535  df-f1o 5536  df-fv 5537  df-riota 6164  df-ov 6206  df-oprab 6207  df-mpt2 6208  df-om 6590  df-1st 6690  df-2nd 6691  df-recs 6945  df-rdg 6979  df-er 7214  df-map 7329  df-en 7424  df-dom 7425  df-sdom 7426  df-pnf 9535  df-mnf 9536  df-xr 9537  df-ltxr 9538  df-le 9539  df-sub 9712  df-neg 9713  df-nn 10438  df-2 10495  df-n0 10695  df-z 10762  df-uz 10977  df-fz 11559  df-vdwap 14151
This theorem is referenced by:  vdwlem6  14169
  Copyright terms: Public domain W3C validator