Users' Mathboxes Mathbox for Mario Carneiro < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  erdsze Unicode version

Theorem erdsze 22904
Description: The Erdős-Szekeres theorem. For any injective sequence  F on the reals of length at least 
( R  -  1 )  x.  ( S  -  1 )  +  1, there is either a subsequence of length at least  R on which  F is increasing (i.e. a  <  ,  < order isomorphism) or a subsequence of length at least  S on which  F is decreasing (i.e. a  <  ,  `'  < order isomorphism, recalling that  `'  < is the greater-than relation). (Contributed by Mario Carneiro, 22-Jan-2015.)
Hypotheses
Ref Expression
erdsze.n  |-  ( ph  ->  N  e.  NN )
erdsze.f  |-  ( ph  ->  F : ( 1 ... N ) -1-1-> RR )
erdsze.r  |-  ( ph  ->  R  e.  NN )
erdsze.s  |-  ( ph  ->  S  e.  NN )
erdsze.l  |-  ( ph  ->  ( ( R  - 
1 )  x.  ( S  -  1 ) )  <  N )
Assertion
Ref Expression
erdsze  |-  ( ph  ->  E. s  e.  ~P  ( 1 ... N
) ( ( R  <_  ( # `  s
)  /\  ( F  |`  s )  Isom  <  ,  <  ( s ,  ( F " s
) ) )  \/  ( S  <_  ( # `
 s )  /\  ( F  |`  s ) 
Isom  <  ,  `'  <  ( s ,  ( F
" s ) ) ) ) )
Distinct variable groups:    F, s    R, s    N, s    ph, s    S, s

Proof of Theorem erdsze
StepHypRef Expression
1 erdsze.n . 2  |-  ( ph  ->  N  e.  NN )
2 erdsze.f . 2  |-  ( ph  ->  F : ( 1 ... N ) -1-1-> RR )
3 reseq2 4857 . . . . . . . . . 10  |-  ( w  =  y  ->  ( F  |`  w )  =  ( F  |`  y
) )
4 isoeq1 5668 . . . . . . . . . 10  |-  ( ( F  |`  w )  =  ( F  |`  y )  ->  (
( F  |`  w
)  Isom  <  ,  <  ( w ,  ( F
" w ) )  <-> 
( F  |`  y
)  Isom  <  ,  <  ( w ,  ( F
" w ) ) ) )
53, 4syl 17 . . . . . . . . 9  |-  ( w  =  y  ->  (
( F  |`  w
)  Isom  <  ,  <  ( w ,  ( F
" w ) )  <-> 
( F  |`  y
)  Isom  <  ,  <  ( w ,  ( F
" w ) ) ) )
6 isoeq4 5671 . . . . . . . . 9  |-  ( w  =  y  ->  (
( F  |`  y
)  Isom  <  ,  <  ( w ,  ( F
" w ) )  <-> 
( F  |`  y
)  Isom  <  ,  <  ( y ,  ( F
" w ) ) ) )
7 imaeq2 4915 . . . . . . . . . 10  |-  ( w  =  y  ->  ( F " w )  =  ( F " y
) )
8 isoeq5 5672 . . . . . . . . . 10  |-  ( ( F " w )  =  ( F "
y )  ->  (
( F  |`  y
)  Isom  <  ,  <  ( y ,  ( F
" w ) )  <-> 
( F  |`  y
)  Isom  <  ,  <  ( y ,  ( F
" y ) ) ) )
97, 8syl 17 . . . . . . . . 9  |-  ( w  =  y  ->  (
( F  |`  y
)  Isom  <  ,  <  ( y ,  ( F
" w ) )  <-> 
( F  |`  y
)  Isom  <  ,  <  ( y ,  ( F
" y ) ) ) )
105, 6, 93bitrd 272 . . . . . . . 8  |-  ( w  =  y  ->  (
( F  |`  w
)  Isom  <  ,  <  ( w ,  ( F
" w ) )  <-> 
( F  |`  y
)  Isom  <  ,  <  ( y ,  ( F
" y ) ) ) )
11 elequ2 1832 . . . . . . . 8  |-  ( w  =  y  ->  (
z  e.  w  <->  z  e.  y ) )
1210, 11anbi12d 694 . . . . . . 7  |-  ( w  =  y  ->  (
( ( F  |`  w )  Isom  <  ,  <  ( w ,  ( F " w
) )  /\  z  e.  w )  <->  ( ( F  |`  y )  Isom  <  ,  <  ( y ,  ( F " y
) )  /\  z  e.  y ) ) )
1312cbvrabv 2726 . . . . . 6  |-  { w  e.  ~P ( 1 ... z )  |  ( ( F  |`  w
)  Isom  <  ,  <  ( w ,  ( F
" w ) )  /\  z  e.  w
) }  =  {
y  e.  ~P (
1 ... z )  |  ( ( F  |`  y )  Isom  <  ,  <  ( y ,  ( F " y
) )  /\  z  e.  y ) }
14 oveq2 5718 . . . . . . . 8  |-  ( z  =  x  ->  (
1 ... z )  =  ( 1 ... x
) )
1514pweqd 3535 . . . . . . 7  |-  ( z  =  x  ->  ~P ( 1 ... z
)  =  ~P (
1 ... x ) )
16 elequ1 1831 . . . . . . . 8  |-  ( z  =  x  ->  (
z  e.  y  <->  x  e.  y ) )
1716anbi2d 687 . . . . . . 7  |-  ( z  =  x  ->  (
( ( F  |`  y )  Isom  <  ,  <  ( y ,  ( F " y
) )  /\  z  e.  y )  <->  ( ( F  |`  y )  Isom  <  ,  <  ( y ,  ( F " y
) )  /\  x  e.  y ) ) )
1815, 17rabeqbidv 2722 . . . . . 6  |-  ( z  =  x  ->  { y  e.  ~P ( 1 ... z )  |  ( ( F  |`  y )  Isom  <  ,  <  ( y ,  ( F " y
) )  /\  z  e.  y ) }  =  { y  e.  ~P ( 1 ... x
)  |  ( ( F  |`  y )  Isom  <  ,  <  (
y ,  ( F
" y ) )  /\  x  e.  y ) } )
1913, 18syl5eq 2297 . . . . 5  |-  ( z  =  x  ->  { w  e.  ~P ( 1 ... z )  |  ( ( F  |`  w
)  Isom  <  ,  <  ( w ,  ( F
" w ) )  /\  z  e.  w
) }  =  {
y  e.  ~P (
1 ... x )  |  ( ( F  |`  y )  Isom  <  ,  <  ( y ,  ( F " y
) )  /\  x  e.  y ) } )
2019imaeq2d 4919 . . . 4  |-  ( z  =  x  ->  ( #
" { w  e. 
~P ( 1 ... z )  |  ( ( F  |`  w
)  Isom  <  ,  <  ( w ,  ( F
" w ) )  /\  z  e.  w
) } )  =  ( # " {
y  e.  ~P (
1 ... x )  |  ( ( F  |`  y )  Isom  <  ,  <  ( y ,  ( F " y
) )  /\  x  e.  y ) } ) )
2120supeq1d 7083 . . 3  |-  ( z  =  x  ->  sup ( ( # " {
w  e.  ~P (
1 ... z )  |  ( ( F  |`  w )  Isom  <  ,  <  ( w ,  ( F " w
) )  /\  z  e.  w ) } ) ,  RR ,  <  )  =  sup ( (
# " { y  e.  ~P ( 1 ... x )  |  ( ( F  |`  y )  Isom  <  ,  <  ( y ,  ( F " y
) )  /\  x  e.  y ) } ) ,  RR ,  <  ) )
2221cbvmptv 4008 . 2  |-  ( z  e.  ( 1 ... N )  |->  sup (
( # " { w  e.  ~P ( 1 ... z )  |  ( ( F  |`  w
)  Isom  <  ,  <  ( w ,  ( F
" w ) )  /\  z  e.  w
) } ) ,  RR ,  <  )
)  =  ( x  e.  ( 1 ... N )  |->  sup (
( # " { y  e.  ~P ( 1 ... x )  |  ( ( F  |`  y )  Isom  <  ,  <  ( y ,  ( F " y
) )  /\  x  e.  y ) } ) ,  RR ,  <  ) )
23 isoeq1 5668 . . . . . . . . . 10  |-  ( ( F  |`  w )  =  ( F  |`  y )  ->  (
( F  |`  w
)  Isom  <  ,  `'  <  ( w ,  ( F " w ) )  <->  ( F  |`  y )  Isom  <  ,  `'  <  ( w ,  ( F " w
) ) ) )
243, 23syl 17 . . . . . . . . 9  |-  ( w  =  y  ->  (
( F  |`  w
)  Isom  <  ,  `'  <  ( w ,  ( F " w ) )  <->  ( F  |`  y )  Isom  <  ,  `'  <  ( w ,  ( F " w
) ) ) )
25 isoeq4 5671 . . . . . . . . 9  |-  ( w  =  y  ->  (
( F  |`  y
)  Isom  <  ,  `'  <  ( w ,  ( F " w ) )  <->  ( F  |`  y )  Isom  <  ,  `'  <  ( y ,  ( F " w
) ) ) )
26 isoeq5 5672 . . . . . . . . . 10  |-  ( ( F " w )  =  ( F "
y )  ->  (
( F  |`  y
)  Isom  <  ,  `'  <  ( y ,  ( F " w ) )  <->  ( F  |`  y )  Isom  <  ,  `'  <  ( y ,  ( F " y
) ) ) )
277, 26syl 17 . . . . . . . . 9  |-  ( w  =  y  ->  (
( F  |`  y
)  Isom  <  ,  `'  <  ( y ,  ( F " w ) )  <->  ( F  |`  y )  Isom  <  ,  `'  <  ( y ,  ( F " y
) ) ) )
2824, 25, 273bitrd 272 . . . . . . . 8  |-  ( w  =  y  ->  (
( F  |`  w
)  Isom  <  ,  `'  <  ( w ,  ( F " w ) )  <->  ( F  |`  y )  Isom  <  ,  `'  <  ( y ,  ( F " y
) ) ) )
2928, 11anbi12d 694 . . . . . . 7  |-  ( w  =  y  ->  (
( ( F  |`  w )  Isom  <  ,  `'  <  ( w ,  ( F " w
) )  /\  z  e.  w )  <->  ( ( F  |`  y )  Isom  <  ,  `'  <  ( y ,  ( F "
y ) )  /\  z  e.  y )
) )
3029cbvrabv 2726 . . . . . 6  |-  { w  e.  ~P ( 1 ... z )  |  ( ( F  |`  w
)  Isom  <  ,  `'  <  ( w ,  ( F " w ) )  /\  z  e.  w ) }  =  { y  e.  ~P ( 1 ... z
)  |  ( ( F  |`  y )  Isom  <  ,  `'  <  ( y ,  ( F
" y ) )  /\  z  e.  y ) }
3116anbi2d 687 . . . . . . 7  |-  ( z  =  x  ->  (
( ( F  |`  y )  Isom  <  ,  `'  <  ( y ,  ( F " y
) )  /\  z  e.  y )  <->  ( ( F  |`  y )  Isom  <  ,  `'  <  ( y ,  ( F "
y ) )  /\  x  e.  y )
) )
3215, 31rabeqbidv 2722 . . . . . 6  |-  ( z  =  x  ->  { y  e.  ~P ( 1 ... z )  |  ( ( F  |`  y )  Isom  <  ,  `'  <  ( y ,  ( F " y
) )  /\  z  e.  y ) }  =  { y  e.  ~P ( 1 ... x
)  |  ( ( F  |`  y )  Isom  <  ,  `'  <  ( y ,  ( F
" y ) )  /\  x  e.  y ) } )
3330, 32syl5eq 2297 . . . . 5  |-  ( z  =  x  ->  { w  e.  ~P ( 1 ... z )  |  ( ( F  |`  w
)  Isom  <  ,  `'  <  ( w ,  ( F " w ) )  /\  z  e.  w ) }  =  { y  e.  ~P ( 1 ... x
)  |  ( ( F  |`  y )  Isom  <  ,  `'  <  ( y ,  ( F
" y ) )  /\  x  e.  y ) } )
3433imaeq2d 4919 . . . 4  |-  ( z  =  x  ->  ( #
" { w  e. 
~P ( 1 ... z )  |  ( ( F  |`  w
)  Isom  <  ,  `'  <  ( w ,  ( F " w ) )  /\  z  e.  w ) } )  =  ( # " {
y  e.  ~P (
1 ... x )  |  ( ( F  |`  y )  Isom  <  ,  `'  <  ( y ,  ( F " y
) )  /\  x  e.  y ) } ) )
3534supeq1d 7083 . . 3  |-  ( z  =  x  ->  sup ( ( # " {
w  e.  ~P (
1 ... z )  |  ( ( F  |`  w )  Isom  <  ,  `'  <  ( w ,  ( F " w
) )  /\  z  e.  w ) } ) ,  RR ,  <  )  =  sup ( (
# " { y  e.  ~P ( 1 ... x )  |  ( ( F  |`  y )  Isom  <  ,  `'  <  ( y ,  ( F " y
) )  /\  x  e.  y ) } ) ,  RR ,  <  ) )
3635cbvmptv 4008 . 2  |-  ( z  e.  ( 1 ... N )  |->  sup (
( # " { w  e.  ~P ( 1 ... z )  |  ( ( F  |`  w
)  Isom  <  ,  `'  <  ( w ,  ( F " w ) )  /\  z  e.  w ) } ) ,  RR ,  <  ) )  =  ( x  e.  ( 1 ... N )  |->  sup (
( # " { y  e.  ~P ( 1 ... x )  |  ( ( F  |`  y )  Isom  <  ,  `'  <  ( y ,  ( F " y
) )  /\  x  e.  y ) } ) ,  RR ,  <  ) )
37 eqid 2253 . 2  |-  ( n  e.  ( 1 ... N )  |->  <. (
( z  e.  ( 1 ... N ) 
|->  sup ( ( # " { w  e.  ~P ( 1 ... z
)  |  ( ( F  |`  w )  Isom  <  ,  <  (
w ,  ( F
" w ) )  /\  z  e.  w
) } ) ,  RR ,  <  )
) `  n ) ,  ( ( z  e.  ( 1 ... N )  |->  sup (
( # " { w  e.  ~P ( 1 ... z )  |  ( ( F  |`  w
)  Isom  <  ,  `'  <  ( w ,  ( F " w ) )  /\  z  e.  w ) } ) ,  RR ,  <  ) ) `  n )
>. )  =  (
n  e.  ( 1 ... N )  |->  <.
( ( z  e.  ( 1 ... N
)  |->  sup ( ( # " { w  e.  ~P ( 1 ... z
)  |  ( ( F  |`  w )  Isom  <  ,  <  (
w ,  ( F
" w ) )  /\  z  e.  w
) } ) ,  RR ,  <  )
) `  n ) ,  ( ( z  e.  ( 1 ... N )  |->  sup (
( # " { w  e.  ~P ( 1 ... z )  |  ( ( F  |`  w
)  Isom  <  ,  `'  <  ( w ,  ( F " w ) )  /\  z  e.  w ) } ) ,  RR ,  <  ) ) `  n )
>. )
38 erdsze.r . 2  |-  ( ph  ->  R  e.  NN )
39 erdsze.s . 2  |-  ( ph  ->  S  e.  NN )
40 erdsze.l . 2  |-  ( ph  ->  ( ( R  - 
1 )  x.  ( S  -  1 ) )  <  N )
411, 2, 22, 36, 37, 38, 39, 40erdszelem11 22903 1  |-  ( ph  ->  E. s  e.  ~P  ( 1 ... N
) ( ( R  <_  ( # `  s
)  /\  ( F  |`  s )  Isom  <  ,  <  ( s ,  ( F " s
) ) )  \/  ( S  <_  ( # `
 s )  /\  ( F  |`  s ) 
Isom  <  ,  `'  <  ( s ,  ( F
" s ) ) ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 6    <-> wb 178    \/ wo 359    /\ wa 360    = wceq 1619    e. wcel 1621   E.wrex 2510   {crab 2512   ~Pcpw 3530   <.cop 3547   class class class wbr 3920    e. cmpt 3974   `'ccnv 4579    |` cres 4582   "cima 4583   -1-1->wf1 4589   ` cfv 4592    Isom wiso 4593  (class class class)co 5710   supcsup 7077   RRcr 8616   1c1 8618    x. cmul 8622    < clt 8747    <_ cle 8748    - cmin 8917   NNcn 9626   ...cfz 10660   #chash 11215
This theorem is referenced by:  erdsze2lem2  22906
This theorem was proved from axioms:  ax-1 7  ax-2 8  ax-3 9  ax-mp 10  ax-5 1533  ax-6 1534  ax-7 1535  ax-gen 1536  ax-8 1623  ax-11 1624  ax-13 1625  ax-14 1626  ax-17 1628  ax-12o 1664  ax-10 1678  ax-9 1684  ax-4 1692  ax-16 1926  ax-ext 2234  ax-rep 4028  ax-sep 4038  ax-nul 4046  ax-pow 4082  ax-pr 4108  ax-un 4403  ax-cnex 8673  ax-resscn 8674  ax-1cn 8675  ax-icn 8676  ax-addcl 8677  ax-addrcl 8678  ax-mulcl 8679  ax-mulrcl 8680  ax-mulcom 8681  ax-addass 8682  ax-mulass 8683  ax-distr 8684  ax-i2m1 8685  ax-1ne0 8686  ax-1rid 8687  ax-rnegex 8688  ax-rrecex 8689  ax-cnre 8690  ax-pre-lttri 8691  ax-pre-lttrn 8692  ax-pre-ltadd 8693  ax-pre-mulgt0 8694  ax-pre-sup 8695
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3or 940  df-3an 941  df-tru 1315  df-ex 1538  df-nf 1540  df-sb 1883  df-eu 2118  df-mo 2119  df-clab 2240  df-cleq 2246  df-clel 2249  df-nfc 2374  df-ne 2414  df-nel 2415  df-ral 2513  df-rex 2514  df-reu 2515  df-rab 2516  df-v 2729  df-sbc 2922  df-csb 3010  df-dif 3081  df-un 3083  df-in 3085  df-ss 3089  df-pss 3091  df-nul 3363  df-if 3471  df-pw 3532  df-sn 3550  df-pr 3551  df-tp 3552  df-op 3553  df-uni 3728  df-int 3761  df-iun 3805  df-br 3921  df-opab 3975  df-mpt 3976  df-tr 4011  df-eprel 4198  df-id 4202  df-po 4207  df-so 4208  df-fr 4245  df-we 4247  df-ord 4288  df-on 4289  df-lim 4290  df-suc 4291  df-om 4548  df-xp 4594  df-rel 4595  df-cnv 4596  df-co 4597  df-dm 4598  df-rn 4599  df-res 4600  df-ima 4601  df-fun 4602  df-fn 4603  df-f 4604  df-f1 4605  df-fo 4606  df-f1o 4607  df-fv 4608  df-isom 4609  df-ov 5713  df-oprab 5714  df-mpt2 5715  df-1st 5974  df-2nd 5975  df-iota 6143  df-riota 6190  df-recs 6274  df-rdg 6309  df-1o 6365  df-2o 6366  df-oadd 6369  df-er 6546  df-map 6660  df-en 6750  df-dom 6751  df-sdom 6752  df-fin 6753  df-sup 7078  df-card 7456  df-cda 7678  df-pnf 8749  df-mnf 8750  df-xr 8751  df-ltxr 8752  df-le 8753  df-sub 8919  df-neg 8920  df-n 9627  df-n0 9845  df-z 9904  df-uz 10110  df-fz 10661  df-hash 11216
  Copyright terms: Public domain W3C validator