MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  df-ram Structured version   Visualization version   Unicode version

Definition df-ram 15705
Description: Define the Ramsey number function. The input is a number  m for the size of the edges of the hypergraph, and a tuple  r from the finite color set to lower bounds for each color. The Ramsey number  ( M Ramsey  R
) is the smallest number such that for any set  S with  ( M Ramsey  R
)  <_  # S and any coloring  F of the set of  M-element subsets of  S (with color set  dom  R), there is a color  c  e.  dom  R and a subset  x  C_  S such that  R ( c )  <_  # x and all the hyperedges of  x (that is, subsets of  x of size  M) have color  c. (Contributed by Mario Carneiro, 20-Apr-2015.) (Revised by AV, 14-Sep-2020.)
Assertion
Ref Expression
df-ram  |- Ramsey  =  ( m  e.  NN0 , 
r  e.  _V  |-> inf ( { n  e.  NN0  | 
A. s ( n  <_  ( # `  s
)  ->  A. f  e.  ( dom  r  ^m  { y  e.  ~P s  |  ( # `  y
)  =  m }
) E. c  e. 
dom  r E. x  e.  ~P  s ( ( r `  c )  <_  ( # `  x
)  /\  A. y  e.  ~P  x ( (
# `  y )  =  m  ->  ( f `
 y )  =  c ) ) ) } ,  RR* ,  <  ) )
Distinct variable group:    f, c, x, y, m, n, r, s

Detailed syntax breakdown of Definition df-ram
StepHypRef Expression
1 cram 15703 . 2  class Ramsey
2 vm . . 3  setvar  m
3 vr . . 3  setvar  r
4 cn0 11292 . . 3  class  NN0
5 cvv 3200 . . 3  class  _V
6 vn . . . . . . . . 9  setvar  n
76cv 1482 . . . . . . . 8  class  n
8 vs . . . . . . . . . 10  setvar  s
98cv 1482 . . . . . . . . 9  class  s
10 chash 13117 . . . . . . . . 9  class  #
119, 10cfv 5888 . . . . . . . 8  class  ( # `  s )
12 cle 10075 . . . . . . . 8  class  <_
137, 11, 12wbr 4653 . . . . . . 7  wff  n  <_ 
( # `  s )
14 vc . . . . . . . . . . . . . 14  setvar  c
1514cv 1482 . . . . . . . . . . . . 13  class  c
163cv 1482 . . . . . . . . . . . . 13  class  r
1715, 16cfv 5888 . . . . . . . . . . . 12  class  ( r `
 c )
18 vx . . . . . . . . . . . . . 14  setvar  x
1918cv 1482 . . . . . . . . . . . . 13  class  x
2019, 10cfv 5888 . . . . . . . . . . . 12  class  ( # `  x )
2117, 20, 12wbr 4653 . . . . . . . . . . 11  wff  ( r `
 c )  <_ 
( # `  x )
22 vy . . . . . . . . . . . . . . . 16  setvar  y
2322cv 1482 . . . . . . . . . . . . . . 15  class  y
2423, 10cfv 5888 . . . . . . . . . . . . . 14  class  ( # `  y )
252cv 1482 . . . . . . . . . . . . . 14  class  m
2624, 25wceq 1483 . . . . . . . . . . . . 13  wff  ( # `  y )  =  m
27 vf . . . . . . . . . . . . . . . 16  setvar  f
2827cv 1482 . . . . . . . . . . . . . . 15  class  f
2923, 28cfv 5888 . . . . . . . . . . . . . 14  class  ( f `
 y )
3029, 15wceq 1483 . . . . . . . . . . . . 13  wff  ( f `
 y )  =  c
3126, 30wi 4 . . . . . . . . . . . 12  wff  ( (
# `  y )  =  m  ->  ( f `
 y )  =  c )
3219cpw 4158 . . . . . . . . . . . 12  class  ~P x
3331, 22, 32wral 2912 . . . . . . . . . . 11  wff  A. y  e.  ~P  x ( (
# `  y )  =  m  ->  ( f `
 y )  =  c )
3421, 33wa 384 . . . . . . . . . 10  wff  ( ( r `  c )  <_  ( # `  x
)  /\  A. y  e.  ~P  x ( (
# `  y )  =  m  ->  ( f `
 y )  =  c ) )
359cpw 4158 . . . . . . . . . 10  class  ~P s
3634, 18, 35wrex 2913 . . . . . . . . 9  wff  E. x  e.  ~P  s ( ( r `  c )  <_  ( # `  x
)  /\  A. y  e.  ~P  x ( (
# `  y )  =  m  ->  ( f `
 y )  =  c ) )
3716cdm 5114 . . . . . . . . 9  class  dom  r
3836, 14, 37wrex 2913 . . . . . . . 8  wff  E. c  e.  dom  r E. x  e.  ~P  s ( ( r `  c )  <_  ( # `  x
)  /\  A. y  e.  ~P  x ( (
# `  y )  =  m  ->  ( f `
 y )  =  c ) )
3926, 22, 35crab 2916 . . . . . . . . 9  class  { y  e.  ~P s  |  ( # `  y
)  =  m }
40 cmap 7857 . . . . . . . . 9  class  ^m
4137, 39, 40co 6650 . . . . . . . 8  class  ( dom  r  ^m  { y  e.  ~P s  |  ( # `  y
)  =  m }
)
4238, 27, 41wral 2912 . . . . . . 7  wff  A. f  e.  ( dom  r  ^m  { y  e.  ~P s  |  ( # `  y
)  =  m }
) E. c  e. 
dom  r E. x  e.  ~P  s ( ( r `  c )  <_  ( # `  x
)  /\  A. y  e.  ~P  x ( (
# `  y )  =  m  ->  ( f `
 y )  =  c ) )
4313, 42wi 4 . . . . . 6  wff  ( n  <_  ( # `  s
)  ->  A. f  e.  ( dom  r  ^m  { y  e.  ~P s  |  ( # `  y
)  =  m }
) E. c  e. 
dom  r E. x  e.  ~P  s ( ( r `  c )  <_  ( # `  x
)  /\  A. y  e.  ~P  x ( (
# `  y )  =  m  ->  ( f `
 y )  =  c ) ) )
4443, 8wal 1481 . . . . 5  wff  A. s
( n  <_  ( # `
 s )  ->  A. f  e.  ( dom  r  ^m  { y  e.  ~P s  |  ( # `  y
)  =  m }
) E. c  e. 
dom  r E. x  e.  ~P  s ( ( r `  c )  <_  ( # `  x
)  /\  A. y  e.  ~P  x ( (
# `  y )  =  m  ->  ( f `
 y )  =  c ) ) )
4544, 6, 4crab 2916 . . . 4  class  { n  e.  NN0  |  A. s
( n  <_  ( # `
 s )  ->  A. f  e.  ( dom  r  ^m  { y  e.  ~P s  |  ( # `  y
)  =  m }
) E. c  e. 
dom  r E. x  e.  ~P  s ( ( r `  c )  <_  ( # `  x
)  /\  A. y  e.  ~P  x ( (
# `  y )  =  m  ->  ( f `
 y )  =  c ) ) ) }
46 cxr 10073 . . . 4  class  RR*
47 clt 10074 . . . 4  class  <
4845, 46, 47cinf 8347 . . 3  class inf ( { n  e.  NN0  |  A. s ( n  <_ 
( # `  s )  ->  A. f  e.  ( dom  r  ^m  {
y  e.  ~P s  |  ( # `  y
)  =  m }
) E. c  e. 
dom  r E. x  e.  ~P  s ( ( r `  c )  <_  ( # `  x
)  /\  A. y  e.  ~P  x ( (
# `  y )  =  m  ->  ( f `
 y )  =  c ) ) ) } ,  RR* ,  <  )
492, 3, 4, 5, 48cmpt2 6652 . 2  class  ( m  e.  NN0 ,  r  e.  _V  |-> inf ( { n  e.  NN0  |  A. s ( n  <_ 
( # `  s )  ->  A. f  e.  ( dom  r  ^m  {
y  e.  ~P s  |  ( # `  y
)  =  m }
) E. c  e. 
dom  r E. x  e.  ~P  s ( ( r `  c )  <_  ( # `  x
)  /\  A. y  e.  ~P  x ( (
# `  y )  =  m  ->  ( f `
 y )  =  c ) ) ) } ,  RR* ,  <  ) )
501, 49wceq 1483 1  wff Ramsey  =  ( m  e.  NN0 , 
r  e.  _V  |-> inf ( { n  e.  NN0  | 
A. s ( n  <_  ( # `  s
)  ->  A. f  e.  ( dom  r  ^m  { y  e.  ~P s  |  ( # `  y
)  =  m }
) E. c  e. 
dom  r E. x  e.  ~P  s ( ( r `  c )  <_  ( # `  x
)  /\  A. y  e.  ~P  x ( (
# `  y )  =  m  ->  ( f `
 y )  =  c ) ) ) } ,  RR* ,  <  ) )
Colors of variables: wff setvar class
This definition is referenced by:  ramval  15712
  Copyright terms: Public domain W3C validator