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

Theorem vdw 13037
Description: Van der Waerden's theorem. For any finite coloring 
R and integer  K, there is an  N such that every coloring function from  1 ... N to  R contains a monochromatic arithmetic progression (which written out in full means that there is a color  c and base, increment values  a ,  d such that all the numbers  a ,  a  +  d ,  ... ,  a  +  ( k  -  1 ) d lie in the preimage of  {
c }, i.e. they are all in  1 ... N and  f evaluated at each one yields  c). (Contributed by Mario Carneiro, 13-Sep-2014.)
Assertion
Ref Expression
vdw  |-  ( ( R  e.  Fin  /\  K  e.  NN0 )  ->  E. n  e.  NN  A. f  e.  ( R  ^m  ( 1 ... n ) ) E. c  e.  R  E. a  e.  NN  E. d  e.  NN  A. m  e.  ( 0 ... ( K  -  1 ) ) ( a  +  ( m  x.  d
) )  e.  ( `' f " {
c } ) )
Distinct variable groups:    a, c, d, f, m, n, K    R, a, c, d, f, n
Allowed substitution group:    R( m)

Proof of Theorem vdw
StepHypRef Expression
1 simpl 445 . . 3  |-  ( ( R  e.  Fin  /\  K  e.  NN0 )  ->  R  e.  Fin )
2 simpr 449 . . 3  |-  ( ( R  e.  Fin  /\  K  e.  NN0 )  ->  K  e.  NN0 )
31, 2vdwlem13 13036 . 2  |-  ( ( R  e.  Fin  /\  K  e.  NN0 )  ->  E. n  e.  NN  A. f  e.  ( R  ^m  ( 1 ... n ) ) K MonoAP 
f )
4 ovex 5846 . . . . 5  |-  ( 1 ... n )  e. 
_V
5 simpllr 737 . . . . 5  |-  ( ( ( ( R  e. 
Fin  /\  K  e.  NN0 )  /\  n  e.  NN )  /\  f  e.  ( R  ^m  (
1 ... n ) ) )  ->  K  e.  NN0 )
6 simpll 732 . . . . . . 7  |-  ( ( ( R  e.  Fin  /\  K  e.  NN0 )  /\  n  e.  NN )  ->  R  e.  Fin )
7 elmapg 6782 . . . . . . 7  |-  ( ( R  e.  Fin  /\  ( 1 ... n
)  e.  _V )  ->  ( f  e.  ( R  ^m  ( 1 ... n ) )  <-> 
f : ( 1 ... n ) --> R ) )
86, 4, 7sylancl 645 . . . . . 6  |-  ( ( ( R  e.  Fin  /\  K  e.  NN0 )  /\  n  e.  NN )  ->  ( f  e.  ( R  ^m  (
1 ... n ) )  <-> 
f : ( 1 ... n ) --> R ) )
98biimpa 472 . . . . 5  |-  ( ( ( ( R  e. 
Fin  /\  K  e.  NN0 )  /\  n  e.  NN )  /\  f  e.  ( R  ^m  (
1 ... n ) ) )  ->  f :
( 1 ... n
) --> R )
10 simplr 733 . . . . . . 7  |-  ( ( ( ( R  e. 
Fin  /\  K  e.  NN0 )  /\  n  e.  NN )  /\  f  e.  ( R  ^m  (
1 ... n ) ) )  ->  n  e.  NN )
11 nnuz 10260 . . . . . . 7  |-  NN  =  ( ZZ>= `  1 )
1210, 11syl6eleq 2376 . . . . . 6  |-  ( ( ( ( R  e. 
Fin  /\  K  e.  NN0 )  /\  n  e.  NN )  /\  f  e.  ( R  ^m  (
1 ... n ) ) )  ->  n  e.  ( ZZ>= `  1 )
)
13 eluzfz1 10799 . . . . . 6  |-  ( n  e.  ( ZZ>= `  1
)  ->  1  e.  ( 1 ... n
) )
1412, 13syl 17 . . . . 5  |-  ( ( ( ( R  e. 
Fin  /\  K  e.  NN0 )  /\  n  e.  NN )  /\  f  e.  ( R  ^m  (
1 ... n ) ) )  ->  1  e.  ( 1 ... n
) )
154, 5, 9, 14vdwmc2 13022 . . . 4  |-  ( ( ( ( R  e. 
Fin  /\  K  e.  NN0 )  /\  n  e.  NN )  /\  f  e.  ( R  ^m  (
1 ... n ) ) )  ->  ( K MonoAP  f  <->  E. c  e.  R  E. a  e.  NN  E. d  e.  NN  A. m  e.  ( 0 ... ( K  - 
1 ) ) ( a  +  ( m  x.  d ) )  e.  ( `' f
" { c } ) ) )
1615ralbidva 2562 . . 3  |-  ( ( ( R  e.  Fin  /\  K  e.  NN0 )  /\  n  e.  NN )  ->  ( A. f  e.  ( R  ^m  (
1 ... n ) ) K MonoAP  f  <->  A. f  e.  ( R  ^m  (
1 ... n ) ) E. c  e.  R  E. a  e.  NN  E. d  e.  NN  A. m  e.  ( 0 ... ( K  - 
1 ) ) ( a  +  ( m  x.  d ) )  e.  ( `' f
" { c } ) ) )
1716rexbidva 2563 . 2  |-  ( ( R  e.  Fin  /\  K  e.  NN0 )  -> 
( E. n  e.  NN  A. f  e.  ( R  ^m  (
1 ... n ) ) K MonoAP  f  <->  E. n  e.  NN  A. f  e.  ( R  ^m  (
1 ... n ) ) E. c  e.  R  E. a  e.  NN  E. d  e.  NN  A. m  e.  ( 0 ... ( K  - 
1 ) ) ( a  +  ( m  x.  d ) )  e.  ( `' f
" { c } ) ) )
183, 17mpbid 203 1  |-  ( ( R  e.  Fin  /\  K  e.  NN0 )  ->  E. n  e.  NN  A. f  e.  ( R  ^m  ( 1 ... n ) ) E. c  e.  R  E. a  e.  NN  E. d  e.  NN  A. m  e.  ( 0 ... ( K  -  1 ) ) ( a  +  ( m  x.  d
) )  e.  ( `' f " {
c } ) )
Colors of variables: wff set class
Syntax hints:    -> wi 6    <-> wb 178    /\ wa 360    e. wcel 1687   A.wral 2546   E.wrex 2547   _Vcvv 2791   {csn 3643   class class class wbr 4026   `'ccnv 4689   "cima 4693   -->wf 5219   ` cfv 5223  (class class class)co 5821    ^m cmap 6769   Fincfn 6860   0cc0 8734   1c1 8735    + caddc 8737    x. cmul 8739    - cmin 9034   NNcn 9743   NN0cn0 9962   ZZ>=cuz 10227   ...cfz 10778   MonoAP cvdwm 13009
This theorem is referenced by:  vdwnnlem1  13038
This theorem was proved from axioms:  ax-1 7  ax-2 8  ax-3 9  ax-mp 10  ax-gen 1535  ax-5 1546  ax-17 1605  ax-9 1638  ax-8 1646  ax-13 1689  ax-14 1691  ax-6 1706  ax-7 1711  ax-11 1718  ax-12 1870  ax-ext 2267  ax-rep 4134  ax-sep 4144  ax-nul 4152  ax-pow 4189  ax-pr 4215  ax-un 4513  ax-cnex 8790  ax-resscn 8791  ax-1cn 8792  ax-icn 8793  ax-addcl 8794  ax-addrcl 8795  ax-mulcl 8796  ax-mulrcl 8797  ax-mulcom 8798  ax-addass 8799  ax-mulass 8800  ax-distr 8801  ax-i2m1 8802  ax-1ne0 8803  ax-1rid 8804  ax-rnegex 8805  ax-rrecex 8806  ax-cnre 8807  ax-pre-lttri 8808  ax-pre-lttrn 8809  ax-pre-ltadd 8810  ax-pre-mulgt0 8811
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3or 937  df-3an 938  df-tru 1312  df-ex 1531  df-nf 1534  df-sb 1633  df-eu 2150  df-mo 2151  df-clab 2273  df-cleq 2279  df-clel 2282  df-nfc 2411  df-ne 2451  df-nel 2452  df-ral 2551  df-rex 2552  df-reu 2553  df-rmo 2554  df-rab 2555  df-v 2793  df-sbc 2995  df-csb 3085  df-dif 3158  df-un 3160  df-in 3162  df-ss 3169  df-pss 3171  df-nul 3459  df-if 3569  df-pw 3630  df-sn 3649  df-pr 3650  df-tp 3651  df-op 3652  df-uni 3831  df-int 3866  df-iun 3910  df-br 4027  df-opab 4081  df-mpt 4082  df-tr 4117  df-eprel 4306  df-id 4310  df-po 4315  df-so 4316  df-fr 4353  df-we 4355  df-ord 4396  df-on 4397  df-lim 4398  df-suc 4399  df-om 4658  df-xp 4696  df-rel 4697  df-cnv 4698  df-co 4699  df-dm 4700  df-rn 4701  df-res 4702  df-ima 4703  df-fun 5225  df-fn 5226  df-f 5227  df-f1 5228  df-fo 5229  df-f1o 5230  df-fv 5231  df-ov 5824  df-oprab 5825  df-mpt2 5826  df-1st 6085  df-2nd 6086  df-iota 6254  df-riota 6301  df-recs 6385  df-rdg 6420  df-1o 6476  df-2o 6477  df-oadd 6480  df-er 6657  df-map 6771  df-pm 6772  df-en 6861  df-dom 6862  df-sdom 6863  df-fin 6864  df-card 7569  df-cda 7791  df-pnf 8866  df-mnf 8867  df-xr 8868  df-ltxr 8869  df-le 8870  df-sub 9036  df-neg 9037  df-nn 9744  df-2 9801  df-n0 9963  df-z 10022  df-uz 10228  df-rp 10352  df-fz 10779  df-hash 11334  df-vdwap 13011  df-vdwmc 13012  df-vdwpc 13013
  Copyright terms: Public domain W3C validator