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

Theorem ramub1 17000
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 2725 . 2 (𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖}) = (𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})
2 ramub1.m . . 3 (𝜑𝑀 ∈ ℕ)
32nnnn0d 12565 . 2 (𝜑𝑀 ∈ ℕ0)
4 ramub1.r . 2 (𝜑𝑅 ∈ Fin)
5 ramub1.f . . 3 (𝜑𝐹:𝑅⟶ℕ)
6 nnssnn0 12508 . . 3 ℕ ⊆ ℕ0
7 fss 6739 . . 3 ((𝐹:𝑅⟶ℕ ∧ ℕ ⊆ ℕ0) → 𝐹:𝑅⟶ℕ0)
85, 6, 7sylancl 584 . 2 (𝜑𝐹:𝑅⟶ℕ0)
9 ramub1.2 . . 3 (𝜑 → ((𝑀 − 1) Ramsey 𝐺) ∈ ℕ0)
10 peano2nn0 12545 . . 3 (((𝑀 − 1) Ramsey 𝐺) ∈ ℕ0 → (((𝑀 − 1) Ramsey 𝐺) + 1) ∈ ℕ0)
119, 10syl 17 . 2 (𝜑 → (((𝑀 − 1) Ramsey 𝐺) + 1) ∈ ℕ0)
12 simprl 769 . . . . . 6 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → (♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1))
139adantr 479 . . . . . . 7 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → ((𝑀 − 1) Ramsey 𝐺) ∈ ℕ0)
14 nn0p1nn 12544 . . . . . . 7 (((𝑀 − 1) Ramsey 𝐺) ∈ ℕ0 → (((𝑀 − 1) Ramsey 𝐺) + 1) ∈ ℕ)
1513, 14syl 17 . . . . . 6 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → (((𝑀 − 1) Ramsey 𝐺) + 1) ∈ ℕ)
1612, 15eqeltrd 2825 . . . . 5 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → (♯‘𝑠) ∈ ℕ)
1716nnnn0d 12565 . . . . . . 7 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → (♯‘𝑠) ∈ ℕ0)
18 hashclb 14353 . . . . . . . 8 (𝑠 ∈ V → (𝑠 ∈ Fin ↔ (♯‘𝑠) ∈ ℕ0))
1918elv 3467 . . . . . . 7 (𝑠 ∈ Fin ↔ (♯‘𝑠) ∈ ℕ0)
2017, 19sylibr 233 . . . . . 6 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → 𝑠 ∈ Fin)
21 hashnncl 14361 . . . . . 6 (𝑠 ∈ Fin → ((♯‘𝑠) ∈ ℕ ↔ 𝑠 ≠ ∅))
2220, 21syl 17 . . . . 5 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → ((♯‘𝑠) ∈ ℕ ↔ 𝑠 ≠ ∅))
2316, 22mpbid 231 . . . 4 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → 𝑠 ≠ ∅)
24 n0 4346 . . . 4 (𝑠 ≠ ∅ ↔ ∃𝑤 𝑤𝑠)
2523, 24sylib 217 . . 3 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → ∃𝑤 𝑤𝑠)
262adantr 479 . . . . . 6 ((𝜑 ∧ (((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅) ∧ 𝑤𝑠)) → 𝑀 ∈ ℕ)
274adantr 479 . . . . . 6 ((𝜑 ∧ (((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅) ∧ 𝑤𝑠)) → 𝑅 ∈ Fin)
285adantr 479 . . . . . 6 ((𝜑 ∧ (((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅) ∧ 𝑤𝑠)) → 𝐹:𝑅⟶ℕ)
29 ramub1.g . . . . . 6 𝐺 = (𝑥𝑅 ↦ (𝑀 Ramsey (𝑦𝑅 ↦ if(𝑦 = 𝑥, ((𝐹𝑥) − 1), (𝐹𝑦)))))
30 ramub1.1 . . . . . . 7 (𝜑𝐺:𝑅⟶ℕ0)
3130adantr 479 . . . . . 6 ((𝜑 ∧ (((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅) ∧ 𝑤𝑠)) → 𝐺:𝑅⟶ℕ0)
329adantr 479 . . . . . 6 ((𝜑 ∧ (((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅) ∧ 𝑤𝑠)) → ((𝑀 − 1) Ramsey 𝐺) ∈ ℕ0)
3320adantrr 715 . . . . . 6 ((𝜑 ∧ (((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅) ∧ 𝑤𝑠)) → 𝑠 ∈ Fin)
34 simprll 777 . . . . . 6 ((𝜑 ∧ (((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅) ∧ 𝑤𝑠)) → (♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1))
35 simprlr 778 . . . . . 6 ((𝜑 ∧ (((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅) ∧ 𝑤𝑠)) → 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)
36 simprr 771 . . . . . 6 ((𝜑 ∧ (((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅) ∧ 𝑤𝑠)) → 𝑤𝑠)
37 uneq1 4153 . . . . . . . 8 (𝑣 = 𝑢 → (𝑣 ∪ {𝑤}) = (𝑢 ∪ {𝑤}))
3837fveq2d 6900 . . . . . . 7 (𝑣 = 𝑢 → (𝑓‘(𝑣 ∪ {𝑤})) = (𝑓‘(𝑢 ∪ {𝑤})))
3938cbvmptv 5262 . . . . . 6 (𝑣 ∈ ((𝑠 ∖ {𝑤})(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})(𝑀 − 1)) ↦ (𝑓‘(𝑣 ∪ {𝑤}))) = (𝑢 ∈ ((𝑠 ∖ {𝑤})(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})(𝑀 − 1)) ↦ (𝑓‘(𝑢 ∪ {𝑤})))
4026, 27, 28, 29, 31, 32, 1, 33, 34, 35, 36, 39ramub1lem2 16999 . . . . 5 ((𝜑 ∧ (((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅) ∧ 𝑤𝑠)) → ∃𝑐𝑅𝑧 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑧) ∧ (𝑧(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀) ⊆ (𝑓 “ {𝑐})))
4140expr 455 . . . 4 ((𝜑 ∧ ((♯‘𝑠) = (((𝑀 − 1) Ramsey 𝐺) + 1) ∧ 𝑓:(𝑠(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀)⟶𝑅)) → (𝑤𝑠 → ∃𝑐𝑅𝑧 ∈ 𝒫 𝑠((𝐹𝑐) ≤ (♯‘𝑧) ∧ (𝑧(𝑎 ∈ V, 𝑖 ∈ ℕ0 ↦ {𝑏 ∈ 𝒫 𝑎 ∣ (♯‘𝑏) = 𝑖})𝑀) ⊆ (𝑓 “ {𝑐}))))
4241exlimdv 1928 . . 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 16986 1 (𝜑 → (𝑀 Ramsey 𝐹) ≤ (((𝑀 − 1) Ramsey 𝐺) + 1))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 394   = wceq 1533  wex 1773  wcel 2098  wne 2929  wrex 3059  {crab 3418  Vcvv 3461  cdif 3941  cun 3942  wss 3944  c0 4322  ifcif 4530  𝒫 cpw 4604  {csn 4630   class class class wbr 5149  cmpt 5232  ccnv 5677  cima 5681  wf 6545  cfv 6549  (class class class)co 7419  cmpo 7421  Fincfn 8964  1c1 11141   + caddc 11143  cle 11281  cmin 11476  cn 12245  0cn0 12505  chash 14325   Ramsey cram 16971
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1789  ax-4 1803  ax-5 1905  ax-6 1963  ax-7 2003  ax-8 2100  ax-9 2108  ax-10 2129  ax-11 2146  ax-12 2166  ax-ext 2696  ax-rep 5286  ax-sep 5300  ax-nul 5307  ax-pow 5365  ax-pr 5429  ax-un 7741  ax-cnex 11196  ax-resscn 11197  ax-1cn 11198  ax-icn 11199  ax-addcl 11200  ax-addrcl 11201  ax-mulcl 11202  ax-mulrcl 11203  ax-mulcom 11204  ax-addass 11205  ax-mulass 11206  ax-distr 11207  ax-i2m1 11208  ax-1ne0 11209  ax-1rid 11210  ax-rnegex 11211  ax-rrecex 11212  ax-cnre 11213  ax-pre-lttri 11214  ax-pre-lttrn 11215  ax-pre-ltadd 11216  ax-pre-mulgt0 11217
This theorem depends on definitions:  df-bi 206  df-an 395  df-or 846  df-3or 1085  df-3an 1086  df-tru 1536  df-fal 1546  df-ex 1774  df-nf 1778  df-sb 2060  df-mo 2528  df-eu 2557  df-clab 2703  df-cleq 2717  df-clel 2802  df-nfc 2877  df-ne 2930  df-nel 3036  df-ral 3051  df-rex 3060  df-rmo 3363  df-reu 3364  df-rab 3419  df-v 3463  df-sbc 3774  df-csb 3890  df-dif 3947  df-un 3949  df-in 3951  df-ss 3961  df-pss 3964  df-nul 4323  df-if 4531  df-pw 4606  df-sn 4631  df-pr 4633  df-op 4637  df-uni 4910  df-int 4951  df-iun 4999  df-br 5150  df-opab 5212  df-mpt 5233  df-tr 5267  df-id 5576  df-eprel 5582  df-po 5590  df-so 5591  df-fr 5633  df-we 5635  df-xp 5684  df-rel 5685  df-cnv 5686  df-co 5687  df-dm 5688  df-rn 5689  df-res 5690  df-ima 5691  df-pred 6307  df-ord 6374  df-on 6375  df-lim 6376  df-suc 6377  df-iota 6501  df-fun 6551  df-fn 6552  df-f 6553  df-f1 6554  df-fo 6555  df-f1o 6556  df-fv 6557  df-riota 7375  df-ov 7422  df-oprab 7423  df-mpo 7424  df-om 7872  df-1st 7994  df-2nd 7995  df-frecs 8287  df-wrecs 8318  df-recs 8392  df-rdg 8431  df-1o 8487  df-oadd 8491  df-er 8725  df-map 8847  df-en 8965  df-dom 8966  df-sdom 8967  df-fin 8968  df-sup 9467  df-inf 9468  df-dju 9926  df-card 9964  df-pnf 11282  df-mnf 11283  df-xr 11284  df-ltxr 11285  df-le 11286  df-sub 11478  df-neg 11479  df-nn 12246  df-n0 12506  df-xnn0 12578  df-z 12592  df-uz 12856  df-fz 13520  df-hash 14326  df-ram 16973
This theorem is referenced by:  ramcl  17001
  Copyright terms: Public domain W3C validator