MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  ramub1 Structured version   Visualization version   GIF version

Theorem ramub1 16352
Description: Inductive step for Ramsey's theorem, in the form of an explicit upper bound. (Contributed by Mario Carneiro, 23-Apr-2015.)
Hypotheses
Ref Expression
ramub1.m (𝜑𝑀 ∈ ℕ)
ramub1.r (𝜑𝑅 ∈ Fin)
ramub1.f (𝜑𝐹:𝑅⟶ℕ)
ramub1.g 𝐺 = (𝑥𝑅 ↦ (𝑀 Ramsey (𝑦𝑅 ↦ if(𝑦 = 𝑥, ((𝐹𝑥) − 1), (𝐹𝑦)))))
ramub1.1 (𝜑𝐺:𝑅⟶ℕ0)
ramub1.2 (𝜑 → ((𝑀 − 1) Ramsey 𝐺) ∈ ℕ0)
Assertion
Ref Expression
ramub1 (𝜑 → (𝑀 Ramsey 𝐹) ≤ (((𝑀 − 1) Ramsey 𝐺) + 1))
Distinct variable groups:   𝑥,𝑦,𝐹   𝑥,𝑀,𝑦   𝑥,𝐺,𝑦   𝑥,𝑅,𝑦   𝜑,𝑥,𝑦

Proof of Theorem ramub1
Dummy variables 𝑢 𝑐 𝑓 𝑠 𝑣 𝑤 𝑧 𝑎 𝑏 𝑖 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eqid 2818 . 2 (𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖}) = (𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})
2 ramub1.m . . 3 (𝜑𝑀 ∈ ℕ)
32nnnn0d 11943 . 2 (𝜑𝑀 ∈ ℕ0)
4 ramub1.r . 2 (𝜑𝑅 ∈ Fin)
5 ramub1.f . . 3 (𝜑𝐹:𝑅⟶ℕ)
6 nnssnn0 11888 . . 3 ℕ ⊆ ℕ0
7 fss 6520 . . 3 ((𝐹:𝑅⟶ℕ ∧ ℕ ⊆ ℕ0) → 𝐹:𝑅⟶ℕ0)
85, 6, 7sylancl 586 . 2 (𝜑𝐹:𝑅⟶ℕ0)
9 ramub1.2 . . 3 (𝜑 → ((𝑀 − 1) Ramsey 𝐺) ∈ ℕ0)
10 peano2nn0 11925 . . 3 (((𝑀 − 1) Ramsey 𝐺) ∈ ℕ0 → (((𝑀 − 1) Ramsey 𝐺) + 1) ∈ ℕ0)
119, 10syl 17 . 2 (𝜑 → (((𝑀 − 1) Ramsey 𝐺) + 1) ∈ ℕ0)
12 simprl 767 . . . . . 6 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → (♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1))
139adantr 481 . . . . . . 7 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → ((𝑀 − 1) Ramsey 𝐺) ∈ ℕ0)
14 nn0p1nn 11924 . . . . . . 7 (((𝑀 − 1) Ramsey 𝐺) ∈ ℕ0 → (((𝑀 − 1) Ramsey 𝐺) + 1) ∈ ℕ)
1513, 14syl 17 . . . . . 6 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → (((𝑀 − 1) Ramsey 𝐺) + 1) ∈ ℕ)
1612, 15eqeltrd 2910 . . . . 5 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → (♯‘𝑠) ∈ ℕ)
1716nnnn0d 11943 . . . . . . 7 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → (♯‘𝑠) ∈ ℕ0)
18 hashclb 13707 . . . . . . . 8 (𝑠 ∈ V → (𝑠 ∈ Fin ↔ (♯‘𝑠) ∈ ℕ0))
1918elv 3497 . . . . . . 7 (𝑠 ∈ Fin ↔ (♯‘𝑠) ∈ ℕ0)
2017, 19sylibr 235 . . . . . 6 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → 𝑠 ∈ Fin)
21 hashnncl 13715 . . . . . 6 (𝑠 ∈ Fin → ((♯‘𝑠) ∈ ℕ ↔ 𝑠 ≠ ∅))
2220, 21syl 17 . . . . 5 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → ((♯‘𝑠) ∈ ℕ ↔ 𝑠 ≠ ∅))
2316, 22mpbid 233 . . . 4 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → 𝑠 ≠ ∅)
24 n0 4307 . . . 4 (𝑠 ≠ ∅ ↔ ∃𝑤 𝑤𝑠)
2523, 24sylib 219 . . 3 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → ∃𝑤 𝑤𝑠)
262adantr 481 . . . . . 6 ((𝜑 ∧ (((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅) ∧ 𝑤𝑠)) → 𝑀 ∈ ℕ)
274adantr 481 . . . . . 6 ((𝜑 ∧ (((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅) ∧ 𝑤𝑠)) → 𝑅 ∈ Fin)
285adantr 481 . . . . . 6 ((𝜑 ∧ (((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅) ∧ 𝑤𝑠)) → 𝐹:𝑅⟶ℕ)
29 ramub1.g . . . . . 6 𝐺 = (𝑥𝑅 ↦ (𝑀 Ramsey (𝑦𝑅 ↦ if(𝑦 = 𝑥, ((𝐹𝑥) − 1), (𝐹𝑦)))))
30 ramub1.1 . . . . . . 7 (𝜑𝐺:𝑅⟶ℕ0)
3130adantr 481 . . . . . 6 ((𝜑 ∧ (((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅) ∧ 𝑤𝑠)) → 𝐺:𝑅⟶ℕ0)
329adantr 481 . . . . . 6 ((𝜑 ∧ (((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅) ∧ 𝑤𝑠)) → ((𝑀 − 1) Ramsey 𝐺) ∈ ℕ0)
3320adantrr 713 . . . . . 6 ((𝜑 ∧ (((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅) ∧ 𝑤𝑠)) → 𝑠 ∈ Fin)
34 simprll 775 . . . . . 6 ((𝜑 ∧ (((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅) ∧ 𝑤𝑠)) → (♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1))
35 simprlr 776 . . . . . 6 ((𝜑 ∧ (((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅) ∧ 𝑤𝑠)) → 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)
36 simprr 769 . . . . . 6 ((𝜑 ∧ (((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅) ∧ 𝑤𝑠)) → 𝑤𝑠)
37 uneq1 4129 . . . . . . . 8 (𝑣 = 𝑢 → (𝑣 ∪ {𝑤}) = (𝑢 ∪ {𝑤}))
3837fveq2d 6667 . . . . . . 7 (𝑣 = 𝑢 → (𝑓‘(𝑣 ∪ {𝑤})) = (𝑓‘(𝑢 ∪ {𝑤})))
3938cbvmptv 5160 . . . . . 6 (𝑣 ∈ ((𝑠 ∖ {𝑤})(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})(𝑀 − 1)) ↦ (𝑓‘(𝑣 ∪ {𝑤}))) = (𝑢 ∈ ((𝑠 ∖ {𝑤})(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})(𝑀 − 1)) ↦ (𝑓‘(𝑢 ∪ {𝑤})))
4026, 27, 28, 29, 31, 32, 1, 33, 34, 35, 36, 39ramub1lem2 16351 . . . . 5 ((𝜑 ∧ (((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅) ∧ 𝑤𝑠)) → ∃𝑐𝑅𝑧 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑧) ∧ (𝑧(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀) ⊆ (𝑓 “ {𝑐})))
4140expr 457 . . . 4 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → (𝑤𝑠 → ∃𝑐𝑅𝑧 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑧) ∧ (𝑧(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀) ⊆ (𝑓 “ {𝑐}))))
4241exlimdv 1925 . . 3 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → (∃𝑤 𝑤𝑠 → ∃𝑐𝑅𝑧 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑧) ∧ (𝑧(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀) ⊆ (𝑓 “ {𝑐}))))
4325, 42mpd 15 . 2 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → ∃𝑐𝑅𝑧 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑧) ∧ (𝑧(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀) ⊆ (𝑓 “ {𝑐})))
441, 3, 4, 8, 11, 43ramub2 16338 1 (𝜑 → (𝑀 Ramsey 𝐹) ≤ (((𝑀 − 1) Ramsey 𝐺) + 1))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 207  wa 396   = wceq 1528  wex 1771  wcel 2105  wne 3013  wrex 3136  {crab 3139  Vcvv 3492  cdif 3930  cun 3931  wss 3933  c0 4288  ifcif 4463  𝒫 cpw 4535  {csn 4557   class class class wbr 5057  cmpt 5137  ccnv 5547  cima 5551  wf 6344  cfv 6348  (class class class)co 7145  cmpo 7147  Fincfn 8497  1c1 10526   + caddc 10528  cle 10664  cmin 10858  cn 11626  0cn0 11885  chash 13678   Ramsey cram 16323
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1787  ax-4 1801  ax-5 1902  ax-6 1961  ax-7 2006  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2151  ax-12 2167  ax-ext 2790  ax-rep 5181  ax-sep 5194  ax-nul 5201  ax-pow 5257  ax-pr 5320  ax-un 7450  ax-cnex 10581  ax-resscn 10582  ax-1cn 10583  ax-icn 10584  ax-addcl 10585  ax-addrcl 10586  ax-mulcl 10587  ax-mulrcl 10588  ax-mulcom 10589  ax-addass 10590  ax-mulass 10591  ax-distr 10592  ax-i2m1 10593  ax-1ne0 10594  ax-1rid 10595  ax-rnegex 10596  ax-rrecex 10597  ax-cnre 10598  ax-pre-lttri 10599  ax-pre-lttrn 10600  ax-pre-ltadd 10601  ax-pre-mulgt0 10602
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 842  df-3or 1080  df-3an 1081  df-tru 1531  df-ex 1772  df-nf 1776  df-sb 2061  df-mo 2615  df-eu 2647  df-clab 2797  df-cleq 2811  df-clel 2890  df-nfc 2960  df-ne 3014  df-nel 3121  df-ral 3140  df-rex 3141  df-reu 3142  df-rmo 3143  df-rab 3144  df-v 3494  df-sbc 3770  df-csb 3881  df-dif 3936  df-un 3938  df-in 3940  df-ss 3949  df-pss 3951  df-nul 4289  df-if 4464  df-pw 4537  df-sn 4558  df-pr 4560  df-tp 4562  df-op 4564  df-uni 4831  df-int 4868  df-iun 4912  df-br 5058  df-opab 5120  df-mpt 5138  df-tr 5164  df-id 5453  df-eprel 5458  df-po 5467  df-so 5468  df-fr 5507  df-we 5509  df-xp 5554  df-rel 5555  df-cnv 5556  df-co 5557  df-dm 5558  df-rn 5559  df-res 5560  df-ima 5561  df-pred 6141  df-ord 6187  df-on 6188  df-lim 6189  df-suc 6190  df-iota 6307  df-fun 6350  df-fn 6351  df-f 6352  df-f1 6353  df-fo 6354  df-f1o 6355  df-fv 6356  df-riota 7103  df-ov 7148  df-oprab 7149  df-mpo 7150  df-om 7570  df-1st 7678  df-2nd 7679  df-wrecs 7936  df-recs 7997  df-rdg 8035  df-1o 8091  df-oadd 8095  df-er 8278  df-map 8397  df-en 8498  df-dom 8499  df-sdom 8500  df-fin 8501  df-sup 8894  df-inf 8895  df-dju 9318  df-card 9356  df-pnf 10665  df-mnf 10666  df-xr 10667  df-ltxr 10668  df-le 10669  df-sub 10860  df-neg 10861  df-nn 11627  df-n0 11886  df-xnn0 11956  df-z 11970  df-uz 12232  df-fz 12881  df-hash 13679  df-ram 16325
This theorem is referenced by:  ramcl  16353
  Copyright terms: Public domain W3C validator