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

Theorem erdsze 33064
Description: The Erdős-Szekeres theorem. For any injective sequence 𝐹 on the reals of length at least (𝑅 − 1) · (𝑆 − 1) + 1, there is either a subsequence of length at least 𝑅 on which 𝐹 is increasing (i.e. a < , < order isomorphism) or a subsequence of length at least 𝑆 on which 𝐹 is decreasing (i.e. a < , < order isomorphism, recalling that < is the "greater than" relation). This is part of Metamath 100 proof #73. (Contributed by Mario Carneiro, 22-Jan-2015.)
Hypotheses
Ref Expression
erdsze.n (𝜑𝑁 ∈ ℕ)
erdsze.f (𝜑𝐹:(1...𝑁)–1-1→ℝ)
erdsze.r (𝜑𝑅 ∈ ℕ)
erdsze.s (𝜑𝑆 ∈ ℕ)
erdsze.l (𝜑 → ((𝑅 − 1) · (𝑆 − 1)) < 𝑁)
Assertion
Ref Expression
erdsze (𝜑 → ∃𝑠 ∈ 𝒫 (1...𝑁)((𝑅 ≤ (♯‘𝑠) ∧ (𝐹𝑠) Isom < , < (𝑠, (𝐹𝑠))) ∨ (𝑆 ≤ (♯‘𝑠) ∧ (𝐹𝑠) Isom < , < (𝑠, (𝐹𝑠)))))
Distinct variable groups:   𝐹,𝑠   𝑅,𝑠   𝑁,𝑠   𝜑,𝑠   𝑆,𝑠

Proof of Theorem erdsze
Dummy variables 𝑤 𝑥 𝑦 𝑧 𝑛 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 erdsze.n . 2 (𝜑𝑁 ∈ ℕ)
2 erdsze.f . 2 (𝜑𝐹:(1...𝑁)–1-1→ℝ)
3 reseq2 5875 . . . . . . . . . 10 (𝑤 = 𝑦 → (𝐹𝑤) = (𝐹𝑦))
4 isoeq1 7168 . . . . . . . . . 10 ((𝐹𝑤) = (𝐹𝑦) → ((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ↔ (𝐹𝑦) Isom < , < (𝑤, (𝐹𝑤))))
53, 4syl 17 . . . . . . . . 9 (𝑤 = 𝑦 → ((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ↔ (𝐹𝑦) Isom < , < (𝑤, (𝐹𝑤))))
6 isoeq4 7171 . . . . . . . . 9 (𝑤 = 𝑦 → ((𝐹𝑦) Isom < , < (𝑤, (𝐹𝑤)) ↔ (𝐹𝑦) Isom < , < (𝑦, (𝐹𝑤))))
7 imaeq2 5954 . . . . . . . . . 10 (𝑤 = 𝑦 → (𝐹𝑤) = (𝐹𝑦))
8 isoeq5 7172 . . . . . . . . . 10 ((𝐹𝑤) = (𝐹𝑦) → ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑤)) ↔ (𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦))))
97, 8syl 17 . . . . . . . . 9 (𝑤 = 𝑦 → ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑤)) ↔ (𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦))))
105, 6, 93bitrd 304 . . . . . . . 8 (𝑤 = 𝑦 → ((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ↔ (𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦))))
11 elequ2 2123 . . . . . . . 8 (𝑤 = 𝑦 → (𝑧𝑤𝑧𝑦))
1210, 11anbi12d 630 . . . . . . 7 (𝑤 = 𝑦 → (((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ∧ 𝑧𝑤) ↔ ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦)) ∧ 𝑧𝑦)))
1312cbvrabv 3416 . . . . . 6 {𝑤 ∈ 𝒫 (1...𝑧) ∣ ((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ∧ 𝑧𝑤)} = {𝑦 ∈ 𝒫 (1...𝑧) ∣ ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦)) ∧ 𝑧𝑦)}
14 oveq2 7263 . . . . . . . 8 (𝑧 = 𝑥 → (1...𝑧) = (1...𝑥))
1514pweqd 4549 . . . . . . 7 (𝑧 = 𝑥 → 𝒫 (1...𝑧) = 𝒫 (1...𝑥))
16 elequ1 2115 . . . . . . . 8 (𝑧 = 𝑥 → (𝑧𝑦𝑥𝑦))
1716anbi2d 628 . . . . . . 7 (𝑧 = 𝑥 → (((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦)) ∧ 𝑧𝑦) ↔ ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦)) ∧ 𝑥𝑦)))
1815, 17rabeqbidv 3410 . . . . . 6 (𝑧 = 𝑥 → {𝑦 ∈ 𝒫 (1...𝑧) ∣ ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦)) ∧ 𝑧𝑦)} = {𝑦 ∈ 𝒫 (1...𝑥) ∣ ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦)) ∧ 𝑥𝑦)})
1913, 18syl5eq 2791 . . . . 5 (𝑧 = 𝑥 → {𝑤 ∈ 𝒫 (1...𝑧) ∣ ((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ∧ 𝑧𝑤)} = {𝑦 ∈ 𝒫 (1...𝑥) ∣ ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦)) ∧ 𝑥𝑦)})
2019imaeq2d 5958 . . . 4 (𝑧 = 𝑥 → (♯ “ {𝑤 ∈ 𝒫 (1...𝑧) ∣ ((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ∧ 𝑧𝑤)}) = (♯ “ {𝑦 ∈ 𝒫 (1...𝑥) ∣ ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦)) ∧ 𝑥𝑦)}))
2120supeq1d 9135 . . 3 (𝑧 = 𝑥 → sup((♯ “ {𝑤 ∈ 𝒫 (1...𝑧) ∣ ((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ∧ 𝑧𝑤)}), ℝ, < ) = sup((♯ “ {𝑦 ∈ 𝒫 (1...𝑥) ∣ ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦)) ∧ 𝑥𝑦)}), ℝ, < ))
2221cbvmptv 5183 . 2 (𝑧 ∈ (1...𝑁) ↦ sup((♯ “ {𝑤 ∈ 𝒫 (1...𝑧) ∣ ((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ∧ 𝑧𝑤)}), ℝ, < )) = (𝑥 ∈ (1...𝑁) ↦ sup((♯ “ {𝑦 ∈ 𝒫 (1...𝑥) ∣ ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦)) ∧ 𝑥𝑦)}), ℝ, < ))
23 isoeq1 7168 . . . . . . . . . 10 ((𝐹𝑤) = (𝐹𝑦) → ((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ↔ (𝐹𝑦) Isom < , < (𝑤, (𝐹𝑤))))
243, 23syl 17 . . . . . . . . 9 (𝑤 = 𝑦 → ((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ↔ (𝐹𝑦) Isom < , < (𝑤, (𝐹𝑤))))
25 isoeq4 7171 . . . . . . . . 9 (𝑤 = 𝑦 → ((𝐹𝑦) Isom < , < (𝑤, (𝐹𝑤)) ↔ (𝐹𝑦) Isom < , < (𝑦, (𝐹𝑤))))
26 isoeq5 7172 . . . . . . . . . 10 ((𝐹𝑤) = (𝐹𝑦) → ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑤)) ↔ (𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦))))
277, 26syl 17 . . . . . . . . 9 (𝑤 = 𝑦 → ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑤)) ↔ (𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦))))
2824, 25, 273bitrd 304 . . . . . . . 8 (𝑤 = 𝑦 → ((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ↔ (𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦))))
2928, 11anbi12d 630 . . . . . . 7 (𝑤 = 𝑦 → (((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ∧ 𝑧𝑤) ↔ ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦)) ∧ 𝑧𝑦)))
3029cbvrabv 3416 . . . . . 6 {𝑤 ∈ 𝒫 (1...𝑧) ∣ ((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ∧ 𝑧𝑤)} = {𝑦 ∈ 𝒫 (1...𝑧) ∣ ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦)) ∧ 𝑧𝑦)}
3116anbi2d 628 . . . . . . 7 (𝑧 = 𝑥 → (((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦)) ∧ 𝑧𝑦) ↔ ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦)) ∧ 𝑥𝑦)))
3215, 31rabeqbidv 3410 . . . . . 6 (𝑧 = 𝑥 → {𝑦 ∈ 𝒫 (1...𝑧) ∣ ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦)) ∧ 𝑧𝑦)} = {𝑦 ∈ 𝒫 (1...𝑥) ∣ ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦)) ∧ 𝑥𝑦)})
3330, 32syl5eq 2791 . . . . 5 (𝑧 = 𝑥 → {𝑤 ∈ 𝒫 (1...𝑧) ∣ ((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ∧ 𝑧𝑤)} = {𝑦 ∈ 𝒫 (1...𝑥) ∣ ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦)) ∧ 𝑥𝑦)})
3433imaeq2d 5958 . . . 4 (𝑧 = 𝑥 → (♯ “ {𝑤 ∈ 𝒫 (1...𝑧) ∣ ((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ∧ 𝑧𝑤)}) = (♯ “ {𝑦 ∈ 𝒫 (1...𝑥) ∣ ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦)) ∧ 𝑥𝑦)}))
3534supeq1d 9135 . . 3 (𝑧 = 𝑥 → sup((♯ “ {𝑤 ∈ 𝒫 (1...𝑧) ∣ ((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ∧ 𝑧𝑤)}), ℝ, < ) = sup((♯ “ {𝑦 ∈ 𝒫 (1...𝑥) ∣ ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦)) ∧ 𝑥𝑦)}), ℝ, < ))
3635cbvmptv 5183 . 2 (𝑧 ∈ (1...𝑁) ↦ sup((♯ “ {𝑤 ∈ 𝒫 (1...𝑧) ∣ ((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ∧ 𝑧𝑤)}), ℝ, < )) = (𝑥 ∈ (1...𝑁) ↦ sup((♯ “ {𝑦 ∈ 𝒫 (1...𝑥) ∣ ((𝐹𝑦) Isom < , < (𝑦, (𝐹𝑦)) ∧ 𝑥𝑦)}), ℝ, < ))
37 eqid 2738 . 2 (𝑛 ∈ (1...𝑁) ↦ ⟨((𝑧 ∈ (1...𝑁) ↦ sup((♯ “ {𝑤 ∈ 𝒫 (1...𝑧) ∣ ((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ∧ 𝑧𝑤)}), ℝ, < ))‘𝑛), ((𝑧 ∈ (1...𝑁) ↦ sup((♯ “ {𝑤 ∈ 𝒫 (1...𝑧) ∣ ((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ∧ 𝑧𝑤)}), ℝ, < ))‘𝑛)⟩) = (𝑛 ∈ (1...𝑁) ↦ ⟨((𝑧 ∈ (1...𝑁) ↦ sup((♯ “ {𝑤 ∈ 𝒫 (1...𝑧) ∣ ((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ∧ 𝑧𝑤)}), ℝ, < ))‘𝑛), ((𝑧 ∈ (1...𝑁) ↦ sup((♯ “ {𝑤 ∈ 𝒫 (1...𝑧) ∣ ((𝐹𝑤) Isom < , < (𝑤, (𝐹𝑤)) ∧ 𝑧𝑤)}), ℝ, < ))‘𝑛)⟩)
38 erdsze.r . 2 (𝜑𝑅 ∈ ℕ)
39 erdsze.s . 2 (𝜑𝑆 ∈ ℕ)
40 erdsze.l . 2 (𝜑 → ((𝑅 − 1) · (𝑆 − 1)) < 𝑁)
411, 2, 22, 36, 37, 38, 39, 40erdszelem11 33063 1 (𝜑 → ∃𝑠 ∈ 𝒫 (1...𝑁)((𝑅 ≤ (♯‘𝑠) ∧ (𝐹𝑠) Isom < , < (𝑠, (𝐹𝑠))) ∨ (𝑆 ≤ (♯‘𝑠) ∧ (𝐹𝑠) Isom < , < (𝑠, (𝐹𝑠)))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  wo 843   = wceq 1539  wcel 2108  wrex 3064  {crab 3067  𝒫 cpw 4530  cop 4564   class class class wbr 5070  cmpt 5153  ccnv 5579  cres 5582  cima 5583  1-1wf1 6415  cfv 6418   Isom wiso 6419  (class class class)co 7255  supcsup 9129  cr 10801  1c1 10803   · cmul 10807   < clt 10940  cle 10941  cmin 11135  cn 11903  ...cfz 13168  chash 13972
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879  ax-pre-sup 10880
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-int 4877  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-isom 6427  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-oadd 8271  df-er 8456  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-sup 9131  df-dju 9590  df-card 9628  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-nn 11904  df-n0 12164  df-xnn0 12236  df-z 12250  df-uz 12512  df-fz 13169  df-hash 13973
This theorem is referenced by:  erdsze2lem2  33066
  Copyright terms: Public domain W3C validator