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

Theorem ramub2 13061
Description: It is sufficient to check the Ramsey property on finite sets of size equal to the upper bound. (Contributed by Mario Carneiro, 23-Apr-2015.)
Hypotheses
Ref Expression
rami.c  |-  C  =  ( a  e.  _V ,  i  e.  NN0  |->  { b  e.  ~P a  |  ( # `  b
)  =  i } )
rami.m  |-  ( ph  ->  M  e.  NN0 )
rami.r  |-  ( ph  ->  R  e.  V )
rami.f  |-  ( ph  ->  F : R --> NN0 )
ramub2.n  |-  ( ph  ->  N  e.  NN0 )
ramub2.i  |-  ( (
ph  /\  ( ( # `
 s )  =  N  /\  f : ( s C M ) --> R ) )  ->  E. c  e.  R  E. x  e.  ~P  s ( ( F `
 c )  <_ 
( # `  x )  /\  ( x C M )  C_  ( `' f " {
c } ) ) )
Assertion
Ref Expression
ramub2  |-  ( ph  ->  ( M Ramsey  F )  <_  N )
Distinct variable groups:    f, c,
s, x, C    ph, c,
f, s, x    F, c, f, s, x    a,
b, c, f, i, s, x, M    R, c, f, s, x    N, a, c, f, i, s, x    V, c, f, s, x
Allowed substitution hints:    ph( i, a, b)    C( i, a, b)    R( i, a, b)    F( i, a, b)    N( b)    V( i, a, b)

Proof of Theorem ramub2
Dummy variables  g 
t are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 rami.c . 2  |-  C  =  ( a  e.  _V ,  i  e.  NN0  |->  { b  e.  ~P a  |  ( # `  b
)  =  i } )
2 rami.m . 2  |-  ( ph  ->  M  e.  NN0 )
3 rami.r . 2  |-  ( ph  ->  R  e.  V )
4 rami.f . 2  |-  ( ph  ->  F : R --> NN0 )
5 ramub2.n . 2  |-  ( ph  ->  N  e.  NN0 )
65adantr 451 . . . . . . 7  |-  ( (
ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  ->  N  e.  NN0 )
7 hashfz1 11345 . . . . . . 7  |-  ( N  e.  NN0  ->  ( # `  ( 1 ... N
) )  =  N )
86, 7syl 15 . . . . . 6  |-  ( (
ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  ->  ( # `  (
1 ... N ) )  =  N )
9 simprl 732 . . . . . 6  |-  ( (
ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  ->  N  <_  ( # `
 t ) )
108, 9eqbrtrd 4043 . . . . 5  |-  ( (
ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  ->  ( # `  (
1 ... N ) )  <_  ( # `  t
) )
11 fzfid 11035 . . . . . 6  |-  ( (
ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  ->  ( 1 ... N )  e.  Fin )
12 vex 2791 . . . . . 6  |-  t  e. 
_V
13 hashdom 11361 . . . . . 6  |-  ( ( ( 1 ... N
)  e.  Fin  /\  t  e.  _V )  ->  ( ( # `  (
1 ... N ) )  <_  ( # `  t
)  <->  ( 1 ... N )  ~<_  t ) )
1411, 12, 13sylancl 643 . . . . 5  |-  ( (
ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  ->  ( ( # `  ( 1 ... N
) )  <_  ( # `
 t )  <->  ( 1 ... N )  ~<_  t ) )
1510, 14mpbid 201 . . . 4  |-  ( (
ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  ->  ( 1 ... N )  ~<_  t )
1612domen 6875 . . . 4  |-  ( ( 1 ... N )  ~<_  t  <->  E. s ( ( 1 ... N ) 
~~  s  /\  s  C_  t ) )
1715, 16sylib 188 . . 3  |-  ( (
ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  ->  E. s ( ( 1 ... N ) 
~~  s  /\  s  C_  t ) )
18 simpll 730 . . . . . . 7  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  ph )
19 ensym 6910 . . . . . . . . . 10  |-  ( ( 1 ... N ) 
~~  s  ->  s  ~~  ( 1 ... N
) )
2019ad2antrl 708 . . . . . . . . 9  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  s  ~~  ( 1 ... N
) )
21 hasheni 11347 . . . . . . . . 9  |-  ( s 
~~  ( 1 ... N )  ->  ( # `
 s )  =  ( # `  (
1 ... N ) ) )
2220, 21syl 15 . . . . . . . 8  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  ( # `
 s )  =  ( # `  (
1 ... N ) ) )
235ad2antrr 706 . . . . . . . . 9  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  N  e.  NN0 )
2423, 7syl 15 . . . . . . . 8  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  ( # `
 ( 1 ... N ) )  =  N )
2522, 24eqtrd 2315 . . . . . . 7  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  ( # `
 s )  =  N )
26 simplrr 737 . . . . . . . 8  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  g : ( t C M ) --> R )
2712a1i 10 . . . . . . . . 9  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  t  e.  _V )
28 simprr 733 . . . . . . . . 9  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  s  C_  t )
292ad2antrr 706 . . . . . . . . 9  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  M  e.  NN0 )
301hashbcss 13051 . . . . . . . . 9  |-  ( ( t  e.  _V  /\  s  C_  t  /\  M  e.  NN0 )  ->  (
s C M ) 
C_  ( t C M ) )
3127, 28, 29, 30syl3anc 1182 . . . . . . . 8  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  (
s C M ) 
C_  ( t C M ) )
32 fssres 5408 . . . . . . . 8  |-  ( ( g : ( t C M ) --> R  /\  ( s C M )  C_  (
t C M ) )  ->  ( g  |`  ( s C M ) ) : ( s C M ) --> R )
3326, 31, 32syl2anc 642 . . . . . . 7  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  (
g  |`  ( s C M ) ) : ( s C M ) --> R )
34 vex 2791 . . . . . . . . 9  |-  g  e. 
_V
3534resex 4995 . . . . . . . 8  |-  ( g  |`  ( s C M ) )  e.  _V
36 feq1 5375 . . . . . . . . . . 11  |-  ( f  =  ( g  |`  ( s C M ) )  ->  (
f : ( s C M ) --> R  <-> 
( g  |`  (
s C M ) ) : ( s C M ) --> R ) )
3736anbi2d 684 . . . . . . . . . 10  |-  ( f  =  ( g  |`  ( s C M ) )  ->  (
( ( # `  s
)  =  N  /\  f : ( s C M ) --> R )  <-> 
( ( # `  s
)  =  N  /\  ( g  |`  (
s C M ) ) : ( s C M ) --> R ) ) )
3837anbi2d 684 . . . . . . . . 9  |-  ( f  =  ( g  |`  ( s C M ) )  ->  (
( ph  /\  (
( # `  s )  =  N  /\  f : ( s C M ) --> R ) )  <->  ( ph  /\  ( ( # `  s
)  =  N  /\  ( g  |`  (
s C M ) ) : ( s C M ) --> R ) ) ) )
39 cnveq 4855 . . . . . . . . . . . . . 14  |-  ( f  =  ( g  |`  ( s C M ) )  ->  `' f  =  `' (
g  |`  ( s C M ) ) )
4039imaeq1d 5011 . . . . . . . . . . . . 13  |-  ( f  =  ( g  |`  ( s C M ) )  ->  ( `' f " {
c } )  =  ( `' ( g  |`  ( s C M ) ) " {
c } ) )
41 cnvresima 5162 . . . . . . . . . . . . 13  |-  ( `' ( g  |`  (
s C M ) ) " { c } )  =  ( ( `' g " { c } )  i^i  ( s C M ) )
4240, 41syl6eq 2331 . . . . . . . . . . . 12  |-  ( f  =  ( g  |`  ( s C M ) )  ->  ( `' f " {
c } )  =  ( ( `' g
" { c } )  i^i  ( s C M ) ) )
4342sseq2d 3206 . . . . . . . . . . 11  |-  ( f  =  ( g  |`  ( s C M ) )  ->  (
( x C M )  C_  ( `' f " { c } )  <->  ( x C M )  C_  (
( `' g " { c } )  i^i  ( s C M ) ) ) )
4443anbi2d 684 . . . . . . . . . 10  |-  ( f  =  ( g  |`  ( s C M ) )  ->  (
( ( F `  c )  <_  ( # `
 x )  /\  ( x C M )  C_  ( `' f " { c } ) )  <->  ( ( F `  c )  <_  ( # `  x
)  /\  ( x C M )  C_  (
( `' g " { c } )  i^i  ( s C M ) ) ) ) )
45442rexbidv 2586 . . . . . . . . 9  |-  ( f  =  ( g  |`  ( s C M ) )  ->  ( E. c  e.  R  E. x  e.  ~P  s ( ( F `
 c )  <_ 
( # `  x )  /\  ( x C M )  C_  ( `' f " {
c } ) )  <->  E. c  e.  R  E. x  e.  ~P  s ( ( F `
 c )  <_ 
( # `  x )  /\  ( x C M )  C_  (
( `' g " { c } )  i^i  ( s C M ) ) ) ) )
4638, 45imbi12d 311 . . . . . . . 8  |-  ( f  =  ( g  |`  ( s C M ) )  ->  (
( ( ph  /\  ( ( # `  s
)  =  N  /\  f : ( s C M ) --> R ) )  ->  E. c  e.  R  E. x  e.  ~P  s ( ( F `  c )  <_  ( # `  x
)  /\  ( x C M )  C_  ( `' f " {
c } ) ) )  <->  ( ( ph  /\  ( ( # `  s
)  =  N  /\  ( g  |`  (
s C M ) ) : ( s C M ) --> R ) )  ->  E. c  e.  R  E. x  e.  ~P  s ( ( F `  c )  <_  ( # `  x
)  /\  ( x C M )  C_  (
( `' g " { c } )  i^i  ( s C M ) ) ) ) ) )
47 ramub2.i . . . . . . . 8  |-  ( (
ph  /\  ( ( # `
 s )  =  N  /\  f : ( s C M ) --> R ) )  ->  E. c  e.  R  E. x  e.  ~P  s ( ( F `
 c )  <_ 
( # `  x )  /\  ( x C M )  C_  ( `' f " {
c } ) ) )
4835, 46, 47vtocl 2838 . . . . . . 7  |-  ( (
ph  /\  ( ( # `
 s )  =  N  /\  ( g  |`  ( s C M ) ) : ( s C M ) --> R ) )  ->  E. c  e.  R  E. x  e.  ~P  s ( ( F `
 c )  <_ 
( # `  x )  /\  ( x C M )  C_  (
( `' g " { c } )  i^i  ( s C M ) ) ) )
4918, 25, 33, 48syl12anc 1180 . . . . . 6  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  E. c  e.  R  E. x  e.  ~P  s ( ( F `  c )  <_  ( # `  x
)  /\  ( x C M )  C_  (
( `' g " { c } )  i^i  ( s C M ) ) ) )
50 sstr 3187 . . . . . . . . . . . 12  |-  ( ( x  C_  s  /\  s  C_  t )  ->  x  C_  t )
5150expcom 424 . . . . . . . . . . 11  |-  ( s 
C_  t  ->  (
x  C_  s  ->  x 
C_  t ) )
5251ad2antll 709 . . . . . . . . . 10  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  (
x  C_  s  ->  x 
C_  t ) )
53 vex 2791 . . . . . . . . . . 11  |-  x  e. 
_V
5453elpw 3631 . . . . . . . . . 10  |-  ( x  e.  ~P s  <->  x  C_  s
)
5553elpw 3631 . . . . . . . . . 10  |-  ( x  e.  ~P t  <->  x  C_  t
)
5652, 54, 553imtr4g 261 . . . . . . . . 9  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  (
x  e.  ~P s  ->  x  e.  ~P t
) )
57 id 19 . . . . . . . . . . . 12  |-  ( ( x C M ) 
C_  ( ( `' g " { c } )  i^i  (
s C M ) )  ->  ( x C M )  C_  (
( `' g " { c } )  i^i  ( s C M ) ) )
58 inss1 3389 . . . . . . . . . . . 12  |-  ( ( `' g " {
c } )  i^i  ( s C M ) )  C_  ( `' g " {
c } )
5957, 58syl6ss 3191 . . . . . . . . . . 11  |-  ( ( x C M ) 
C_  ( ( `' g " { c } )  i^i  (
s C M ) )  ->  ( x C M )  C_  ( `' g " {
c } ) )
6059a1i 10 . . . . . . . . . 10  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  (
( x C M )  C_  ( ( `' g " {
c } )  i^i  ( s C M ) )  ->  (
x C M ) 
C_  ( `' g
" { c } ) ) )
6160anim2d 548 . . . . . . . . 9  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  (
( ( F `  c )  <_  ( # `
 x )  /\  ( x C M )  C_  ( ( `' g " {
c } )  i^i  ( s C M ) ) )  -> 
( ( F `  c )  <_  ( # `
 x )  /\  ( x C M )  C_  ( `' g " { c } ) ) ) )
6256, 61anim12d 546 . . . . . . . 8  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  (
( x  e.  ~P s  /\  ( ( F `
 c )  <_ 
( # `  x )  /\  ( x C M )  C_  (
( `' g " { c } )  i^i  ( s C M ) ) ) )  ->  ( x  e.  ~P t  /\  (
( F `  c
)  <_  ( # `  x
)  /\  ( x C M )  C_  ( `' g " {
c } ) ) ) ) )
6362reximdv2 2652 . . . . . . 7  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  ( E. x  e.  ~P  s ( ( F `
 c )  <_ 
( # `  x )  /\  ( x C M )  C_  (
( `' g " { c } )  i^i  ( s C M ) ) )  ->  E. x  e.  ~P  t ( ( F `
 c )  <_ 
( # `  x )  /\  ( x C M )  C_  ( `' g " {
c } ) ) ) )
6463reximdv 2654 . . . . . 6  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  ( E. c  e.  R  E. x  e.  ~P  s ( ( F `
 c )  <_ 
( # `  x )  /\  ( x C M )  C_  (
( `' g " { c } )  i^i  ( s C M ) ) )  ->  E. c  e.  R  E. x  e.  ~P  t ( ( F `
 c )  <_ 
( # `  x )  /\  ( x C M )  C_  ( `' g " {
c } ) ) ) )
6549, 64mpd 14 . . . . 5  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  E. c  e.  R  E. x  e.  ~P  t ( ( F `  c )  <_  ( # `  x
)  /\  ( x C M )  C_  ( `' g " {
c } ) ) )
6665ex 423 . . . 4  |-  ( (
ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  ->  ( ( ( 1 ... N ) 
~~  s  /\  s  C_  t )  ->  E. c  e.  R  E. x  e.  ~P  t ( ( F `  c )  <_  ( # `  x
)  /\  ( x C M )  C_  ( `' g " {
c } ) ) ) )
6766exlimdv 1664 . . 3  |-  ( (
ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  ->  ( E. s
( ( 1 ... N )  ~~  s  /\  s  C_  t )  ->  E. c  e.  R  E. x  e.  ~P  t ( ( F `
 c )  <_ 
( # `  x )  /\  ( x C M )  C_  ( `' g " {
c } ) ) ) )
6817, 67mpd 14 . 2  |-  ( (
ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  ->  E. c  e.  R  E. x  e.  ~P  t ( ( F `
 c )  <_ 
( # `  x )  /\  ( x C M )  C_  ( `' g " {
c } ) ) )
691, 2, 3, 4, 5, 68ramub 13060 1  |-  ( ph  ->  ( M Ramsey  F )  <_  N )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 176    /\ wa 358   E.wex 1528    = wceq 1623    e. wcel 1684   E.wrex 2544   {crab 2547   _Vcvv 2788    i^i cin 3151    C_ wss 3152   ~Pcpw 3625   {csn 3640   class class class wbr 4023   `'ccnv 4688    |` cres 4691   "cima 4692   -->wf 5251   ` cfv 5255  (class class class)co 5858    e. cmpt2 5860    ~~ cen 6860    ~<_ cdom 6861   Fincfn 6863   1c1 8738    <_ cle 8868   NN0cn0 9965   ...cfz 10782   #chash 11337   Ramsey cram 13046
This theorem is referenced by:  ramub1  13075
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1533  ax-5 1544  ax-17 1603  ax-9 1635  ax-8 1643  ax-13 1686  ax-14 1688  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264  ax-rep 4131  ax-sep 4141  ax-nul 4149  ax-pow 4188  ax-pr 4214  ax-un 4512  ax-cnex 8793  ax-resscn 8794  ax-1cn 8795  ax-icn 8796  ax-addcl 8797  ax-addrcl 8798  ax-mulcl 8799  ax-mulrcl 8800  ax-mulcom 8801  ax-addass 8802  ax-mulass 8803  ax-distr 8804  ax-i2m1 8805  ax-1ne0 8806  ax-1rid 8807  ax-rnegex 8808  ax-rrecex 8809  ax-cnre 8810  ax-pre-lttri 8811  ax-pre-lttrn 8812  ax-pre-ltadd 8813  ax-pre-mulgt0 8814
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  df-3an 936  df-tru 1310  df-ex 1529  df-nf 1532  df-sb 1630  df-eu 2147  df-mo 2148  df-clab 2270  df-cleq 2276  df-clel 2279  df-nfc 2408  df-ne 2448  df-nel 2449  df-ral 2548  df-rex 2549  df-reu 2550  df-rmo 2551  df-rab 2552  df-v 2790  df-sbc 2992  df-csb 3082  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-pss 3168  df-nul 3456  df-if 3566  df-pw 3627  df-sn 3646  df-pr 3647  df-tp 3648  df-op 3649  df-uni 3828  df-int 3863  df-iun 3907  df-br 4024  df-opab 4078  df-mpt 4079  df-tr 4114  df-eprel 4305  df-id 4309  df-po 4314  df-so 4315  df-fr 4352  df-we 4354  df-ord 4395  df-on 4396  df-lim 4397  df-suc 4398  df-om 4657  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-rn 4700  df-res 4701  df-ima 4702  df-iota 5219  df-fun 5257  df-fn 5258  df-f 5259  df-f1 5260  df-fo 5261  df-f1o 5262  df-fv 5263  df-ov 5861  df-oprab 5862  df-mpt2 5863  df-1st 6122  df-2nd 6123  df-riota 6304  df-recs 6388  df-rdg 6423  df-1o 6479  df-oadd 6483  df-er 6660  df-map 6774  df-en 6864  df-dom 6865  df-sdom 6866  df-fin 6867  df-sup 7194  df-card 7572  df-pnf 8869  df-mnf 8870  df-xr 8871  df-ltxr 8872  df-le 8873  df-sub 9039  df-neg 9040  df-nn 9747  df-n0 9966  df-z 10025  df-uz 10231  df-fz 10783  df-hash 11338  df-ram 13048
  Copyright terms: Public domain W3C validator