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

Theorem ramub2 13387
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 453 . . . . . . 7  |-  ( (
ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  ->  N  e.  NN0 )
7 hashfz1 11635 . . . . . . 7  |-  ( N  e.  NN0  ->  ( # `  ( 1 ... N
) )  =  N )
86, 7syl 16 . . . . . 6  |-  ( (
ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  ->  ( # `  (
1 ... N ) )  =  N )
9 simprl 734 . . . . . 6  |-  ( (
ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  ->  N  <_  ( # `
 t ) )
108, 9eqbrtrd 4235 . . . . 5  |-  ( (
ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  ->  ( # `  (
1 ... N ) )  <_  ( # `  t
) )
11 fzfid 11317 . . . . . 6  |-  ( (
ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  ->  ( 1 ... N )  e.  Fin )
12 vex 2961 . . . . . 6  |-  t  e. 
_V
13 hashdom 11658 . . . . . 6  |-  ( ( ( 1 ... N
)  e.  Fin  /\  t  e.  _V )  ->  ( ( # `  (
1 ... N ) )  <_  ( # `  t
)  <->  ( 1 ... N )  ~<_  t ) )
1411, 12, 13sylancl 645 . . . . 5  |-  ( (
ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  ->  ( ( # `  ( 1 ... N
) )  <_  ( # `
 t )  <->  ( 1 ... N )  ~<_  t ) )
1510, 14mpbid 203 . . . 4  |-  ( (
ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  ->  ( 1 ... N )  ~<_  t )
1612domen 7124 . . . 4  |-  ( ( 1 ... N )  ~<_  t  <->  E. s ( ( 1 ... N ) 
~~  s  /\  s  C_  t ) )
1715, 16sylib 190 . . 3  |-  ( (
ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  ->  E. s ( ( 1 ... N ) 
~~  s  /\  s  C_  t ) )
18 simpll 732 . . . . 5  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  ph )
19 ensym 7159 . . . . . . . 8  |-  ( ( 1 ... N ) 
~~  s  ->  s  ~~  ( 1 ... N
) )
2019ad2antrl 710 . . . . . . 7  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  s  ~~  ( 1 ... N
) )
21 hasheni 11637 . . . . . . 7  |-  ( s 
~~  ( 1 ... N )  ->  ( # `
 s )  =  ( # `  (
1 ... N ) ) )
2220, 21syl 16 . . . . . 6  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  ( # `
 s )  =  ( # `  (
1 ... N ) ) )
235ad2antrr 708 . . . . . . 7  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  N  e.  NN0 )
2423, 7syl 16 . . . . . 6  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  ( # `
 ( 1 ... N ) )  =  N )
2522, 24eqtrd 2470 . . . . 5  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  ( # `
 s )  =  N )
26 simplrr 739 . . . . . 6  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  g : ( t C M ) --> R )
2712a1i 11 . . . . . . 7  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  t  e.  _V )
28 simprr 735 . . . . . . 7  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  s  C_  t )
292ad2antrr 708 . . . . . . 7  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  M  e.  NN0 )
301hashbcss 13377 . . . . . . 7  |-  ( ( t  e.  _V  /\  s  C_  t  /\  M  e.  NN0 )  ->  (
s C M ) 
C_  ( t C M ) )
3127, 28, 29, 30syl3anc 1185 . . . . . 6  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  (
s C M ) 
C_  ( t C M ) )
32 fssres 5613 . . . . . 6  |-  ( ( g : ( t C M ) --> R  /\  ( s C M )  C_  (
t C M ) )  ->  ( g  |`  ( s C M ) ) : ( s C M ) --> R )
3326, 31, 32syl2anc 644 . . . . 5  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  (
g  |`  ( s C M ) ) : ( s C M ) --> R )
34 vex 2961 . . . . . . 7  |-  g  e. 
_V
3534resex 5189 . . . . . 6  |-  ( g  |`  ( s C M ) )  e.  _V
36 feq1 5579 . . . . . . . . 9  |-  ( f  =  ( g  |`  ( s C M ) )  ->  (
f : ( s C M ) --> R  <-> 
( g  |`  (
s C M ) ) : ( s C M ) --> R ) )
3736anbi2d 686 . . . . . . . 8  |-  ( f  =  ( g  |`  ( s C M ) )  ->  (
( ( # `  s
)  =  N  /\  f : ( s C M ) --> R )  <-> 
( ( # `  s
)  =  N  /\  ( g  |`  (
s C M ) ) : ( s C M ) --> R ) ) )
3837anbi2d 686 . . . . . . 7  |-  ( 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 5049 . . . . . . . . . . . 12  |-  ( f  =  ( g  |`  ( s C M ) )  ->  `' f  =  `' (
g  |`  ( s C M ) ) )
4039imaeq1d 5205 . . . . . . . . . . 11  |-  ( f  =  ( g  |`  ( s C M ) )  ->  ( `' f " {
c } )  =  ( `' ( g  |`  ( s C M ) ) " {
c } ) )
41 cnvresima 5362 . . . . . . . . . . 11  |-  ( `' ( g  |`  (
s C M ) ) " { c } )  =  ( ( `' g " { c } )  i^i  ( s C M ) )
4240, 41syl6eq 2486 . . . . . . . . . 10  |-  ( f  =  ( g  |`  ( s C M ) )  ->  ( `' f " {
c } )  =  ( ( `' g
" { c } )  i^i  ( s C M ) ) )
4342sseq2d 3378 . . . . . . . . 9  |-  ( f  =  ( g  |`  ( s C M ) )  ->  (
( x C M )  C_  ( `' f " { c } )  <->  ( x C M )  C_  (
( `' g " { c } )  i^i  ( s C M ) ) ) )
4443anbi2d 686 . . . . . . . 8  |-  ( 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 2750 . . . . . . 7  |-  ( 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 313 . . . . . 6  |-  ( 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 . . . . . 6  |-  ( (
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 3008 . . . . 5  |-  ( (
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 1183 . . . 4  |-  ( ( ( 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 3358 . . . . . . . . . 10  |-  ( ( x  C_  s  /\  s  C_  t )  ->  x  C_  t )
5150expcom 426 . . . . . . . . 9  |-  ( s 
C_  t  ->  (
x  C_  s  ->  x 
C_  t ) )
5251ad2antll 711 . . . . . . . 8  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  (
x  C_  s  ->  x 
C_  t ) )
53 vex 2961 . . . . . . . . 9  |-  x  e. 
_V
5453elpw 3807 . . . . . . . 8  |-  ( x  e.  ~P s  <->  x  C_  s
)
5553elpw 3807 . . . . . . . 8  |-  ( x  e.  ~P t  <->  x  C_  t
)
5652, 54, 553imtr4g 263 . . . . . . 7  |-  ( ( ( ph  /\  ( N  <_  ( # `  t
)  /\  g :
( t C M ) --> R ) )  /\  ( ( 1 ... N )  ~~  s  /\  s  C_  t
) )  ->  (
x  e.  ~P s  ->  x  e.  ~P t
) )
57 id 21 . . . . . . . . . 10  |-  ( ( x C M ) 
C_  ( ( `' g " { c } )  i^i  (
s C M ) )  ->  ( x C M )  C_  (
( `' g " { c } )  i^i  ( s C M ) ) )
58 inss1 3563 . . . . . . . . . 10  |-  ( ( `' g " {
c } )  i^i  ( s C M ) )  C_  ( `' g " {
c } )
5957, 58syl6ss 3362 . . . . . . . . 9  |-  ( ( x C M ) 
C_  ( ( `' g " { c } )  i^i  (
s C M ) )  ->  ( x C M )  C_  ( `' g " {
c } ) )
6059a1i 11 . . . . . . . 8  |-  ( ( ( 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 550 . . . . . . 7  |-  ( ( ( 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 548 . . . . . 6  |-  ( ( ( 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 2817 . . . . 5  |-  ( ( ( 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 2819 . . . 4  |-  ( ( ( 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 15 . . 3  |-  ( ( ( 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 } ) ) )
6617, 65exlimddv 1649 . 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 } ) ) )
671, 2, 3, 4, 5, 66ramub 13386 1  |-  ( ph  ->  ( M Ramsey  F )  <_  N )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 178    /\ wa 360   E.wex 1551    = wceq 1653    e. wcel 1726   E.wrex 2708   {crab 2711   _Vcvv 2958    i^i cin 3321    C_ wss 3322   ~Pcpw 3801   {csn 3816   class class class wbr 4215   `'ccnv 4880    |` cres 4883   "cima 4884   -->wf 5453   ` cfv 5457  (class class class)co 6084    e. cmpt2 6086    ~~ cen 7109    ~<_ cdom 7110   Fincfn 7112   1c1 8996    <_ cle 9126   NN0cn0 10226   ...cfz 11048   #chash 11623   Ramsey cram 13372
This theorem is referenced by:  ramub1  13401
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1556  ax-5 1567  ax-17 1627  ax-9 1667  ax-8 1688  ax-13 1728  ax-14 1730  ax-6 1745  ax-7 1750  ax-11 1762  ax-12 1951  ax-ext 2419  ax-rep 4323  ax-sep 4333  ax-nul 4341  ax-pow 4380  ax-pr 4406  ax-un 4704  ax-cnex 9051  ax-resscn 9052  ax-1cn 9053  ax-icn 9054  ax-addcl 9055  ax-addrcl 9056  ax-mulcl 9057  ax-mulrcl 9058  ax-mulcom 9059  ax-addass 9060  ax-mulass 9061  ax-distr 9062  ax-i2m1 9063  ax-1ne0 9064  ax-1rid 9065  ax-rnegex 9066  ax-rrecex 9067  ax-cnre 9068  ax-pre-lttri 9069  ax-pre-lttrn 9070  ax-pre-ltadd 9071  ax-pre-mulgt0 9072
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3or 938  df-3an 939  df-tru 1329  df-ex 1552  df-nf 1555  df-sb 1660  df-eu 2287  df-mo 2288  df-clab 2425  df-cleq 2431  df-clel 2434  df-nfc 2563  df-ne 2603  df-nel 2604  df-ral 2712  df-rex 2713  df-reu 2714  df-rmo 2715  df-rab 2716  df-v 2960  df-sbc 3164  df-csb 3254  df-dif 3325  df-un 3327  df-in 3329  df-ss 3336  df-pss 3338  df-nul 3631  df-if 3742  df-pw 3803  df-sn 3822  df-pr 3823  df-tp 3824  df-op 3825  df-uni 4018  df-int 4053  df-iun 4097  df-br 4216  df-opab 4270  df-mpt 4271  df-tr 4306  df-eprel 4497  df-id 4501  df-po 4506  df-so 4507  df-fr 4544  df-we 4546  df-ord 4587  df-on 4588  df-lim 4589  df-suc 4590  df-om 4849  df-xp 4887  df-rel 4888  df-cnv 4889  df-co 4890  df-dm 4891  df-rn 4892  df-res 4893  df-ima 4894  df-iota 5421  df-fun 5459  df-fn 5460  df-f 5461  df-f1 5462  df-fo 5463  df-f1o 5464  df-fv 5465  df-ov 6087  df-oprab 6088  df-mpt2 6089  df-1st 6352  df-2nd 6353  df-riota 6552  df-recs 6636  df-rdg 6671  df-1o 6727  df-oadd 6731  df-er 6908  df-map 7023  df-en 7113  df-dom 7114  df-sdom 7115  df-fin 7116  df-sup 7449  df-card 7831  df-pnf 9127  df-mnf 9128  df-xr 9129  df-ltxr 9130  df-le 9131  df-sub 9298  df-neg 9299  df-nn 10006  df-n0 10227  df-z 10288  df-uz 10494  df-fz 11049  df-hash 11624  df-ram 13374
  Copyright terms: Public domain W3C validator