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

Theorem yonedalem1 17517
Description: Lemma for yoneda 17528. (Contributed by Mario Carneiro, 28-Jan-2017.)
Hypotheses
Ref Expression
yoneda.y 𝑌 = (Yon‘𝐶)
yoneda.b 𝐵 = (Base‘𝐶)
yoneda.1 1 = (Id‘𝐶)
yoneda.o 𝑂 = (oppCat‘𝐶)
yoneda.s 𝑆 = (SetCat‘𝑈)
yoneda.t 𝑇 = (SetCat‘𝑉)
yoneda.q 𝑄 = (𝑂 FuncCat 𝑆)
yoneda.h 𝐻 = (HomF𝑄)
yoneda.r 𝑅 = ((𝑄 ×c 𝑂) FuncCat 𝑇)
yoneda.e 𝐸 = (𝑂 evalF 𝑆)
yoneda.z 𝑍 = (𝐻func ((⟨(1st𝑌), tpos (2nd𝑌)⟩ ∘func (𝑄 2ndF 𝑂)) ⟨,⟩F (𝑄 1stF 𝑂)))
yoneda.c (𝜑𝐶 ∈ Cat)
yoneda.w (𝜑𝑉𝑊)
yoneda.u (𝜑 → ran (Homf𝐶) ⊆ 𝑈)
yoneda.v (𝜑 → (ran (Homf𝑄) ∪ 𝑈) ⊆ 𝑉)
Assertion
Ref Expression
yonedalem1 (𝜑 → (𝑍 ∈ ((𝑄 ×c 𝑂) Func 𝑇) ∧ 𝐸 ∈ ((𝑄 ×c 𝑂) Func 𝑇)))

Proof of Theorem yonedalem1
StepHypRef Expression
1 yoneda.z . . 3 𝑍 = (𝐻func ((⟨(1st𝑌), tpos (2nd𝑌)⟩ ∘func (𝑄 2ndF 𝑂)) ⟨,⟩F (𝑄 1stF 𝑂)))
2 eqid 2801 . . . . 5 ((⟨(1st𝑌), tpos (2nd𝑌)⟩ ∘func (𝑄 2ndF 𝑂)) ⟨,⟩F (𝑄 1stF 𝑂)) = ((⟨(1st𝑌), tpos (2nd𝑌)⟩ ∘func (𝑄 2ndF 𝑂)) ⟨,⟩F (𝑄 1stF 𝑂))
3 eqid 2801 . . . . 5 ((oppCat‘𝑄) ×c 𝑄) = ((oppCat‘𝑄) ×c 𝑄)
4 eqid 2801 . . . . . . 7 (𝑄 ×c 𝑂) = (𝑄 ×c 𝑂)
5 yoneda.q . . . . . . . 8 𝑄 = (𝑂 FuncCat 𝑆)
6 yoneda.c . . . . . . . . 9 (𝜑𝐶 ∈ Cat)
7 yoneda.o . . . . . . . . . 10 𝑂 = (oppCat‘𝐶)
87oppccat 16987 . . . . . . . . 9 (𝐶 ∈ Cat → 𝑂 ∈ Cat)
96, 8syl 17 . . . . . . . 8 (𝜑𝑂 ∈ Cat)
10 yoneda.w . . . . . . . . . 10 (𝜑𝑉𝑊)
11 yoneda.v . . . . . . . . . . 11 (𝜑 → (ran (Homf𝑄) ∪ 𝑈) ⊆ 𝑉)
1211unssbd 4118 . . . . . . . . . 10 (𝜑𝑈𝑉)
1310, 12ssexd 5195 . . . . . . . . 9 (𝜑𝑈 ∈ V)
14 yoneda.s . . . . . . . . . 10 𝑆 = (SetCat‘𝑈)
1514setccat 17340 . . . . . . . . 9 (𝑈 ∈ V → 𝑆 ∈ Cat)
1613, 15syl 17 . . . . . . . 8 (𝜑𝑆 ∈ Cat)
175, 9, 16fuccat 17235 . . . . . . 7 (𝜑𝑄 ∈ Cat)
18 eqid 2801 . . . . . . 7 (𝑄 2ndF 𝑂) = (𝑄 2ndF 𝑂)
194, 17, 9, 182ndfcl 17443 . . . . . 6 (𝜑 → (𝑄 2ndF 𝑂) ∈ ((𝑄 ×c 𝑂) Func 𝑂))
20 eqid 2801 . . . . . . . 8 (oppCat‘𝑄) = (oppCat‘𝑄)
21 relfunc 17127 . . . . . . . . 9 Rel (𝐶 Func 𝑄)
22 yoneda.y . . . . . . . . . 10 𝑌 = (Yon‘𝐶)
23 yoneda.u . . . . . . . . . 10 (𝜑 → ran (Homf𝐶) ⊆ 𝑈)
2422, 6, 7, 14, 5, 13, 23yoncl 17507 . . . . . . . . 9 (𝜑𝑌 ∈ (𝐶 Func 𝑄))
25 1st2ndbr 7727 . . . . . . . . 9 ((Rel (𝐶 Func 𝑄) ∧ 𝑌 ∈ (𝐶 Func 𝑄)) → (1st𝑌)(𝐶 Func 𝑄)(2nd𝑌))
2621, 24, 25sylancr 590 . . . . . . . 8 (𝜑 → (1st𝑌)(𝐶 Func 𝑄)(2nd𝑌))
277, 20, 26funcoppc 17140 . . . . . . 7 (𝜑 → (1st𝑌)(𝑂 Func (oppCat‘𝑄))tpos (2nd𝑌))
28 df-br 5034 . . . . . . 7 ((1st𝑌)(𝑂 Func (oppCat‘𝑄))tpos (2nd𝑌) ↔ ⟨(1st𝑌), tpos (2nd𝑌)⟩ ∈ (𝑂 Func (oppCat‘𝑄)))
2927, 28sylib 221 . . . . . 6 (𝜑 → ⟨(1st𝑌), tpos (2nd𝑌)⟩ ∈ (𝑂 Func (oppCat‘𝑄)))
3019, 29cofucl 17153 . . . . 5 (𝜑 → (⟨(1st𝑌), tpos (2nd𝑌)⟩ ∘func (𝑄 2ndF 𝑂)) ∈ ((𝑄 ×c 𝑂) Func (oppCat‘𝑄)))
31 eqid 2801 . . . . . 6 (𝑄 1stF 𝑂) = (𝑄 1stF 𝑂)
324, 17, 9, 311stfcl 17442 . . . . 5 (𝜑 → (𝑄 1stF 𝑂) ∈ ((𝑄 ×c 𝑂) Func 𝑄))
332, 3, 30, 32prfcl 17448 . . . 4 (𝜑 → ((⟨(1st𝑌), tpos (2nd𝑌)⟩ ∘func (𝑄 2ndF 𝑂)) ⟨,⟩F (𝑄 1stF 𝑂)) ∈ ((𝑄 ×c 𝑂) Func ((oppCat‘𝑄) ×c 𝑄)))
34 yoneda.h . . . . 5 𝐻 = (HomF𝑄)
35 yoneda.t . . . . 5 𝑇 = (SetCat‘𝑉)
3611unssad 4117 . . . . 5 (𝜑 → ran (Homf𝑄) ⊆ 𝑉)
3734, 20, 35, 17, 10, 36hofcl 17504 . . . 4 (𝜑𝐻 ∈ (((oppCat‘𝑄) ×c 𝑄) Func 𝑇))
3833, 37cofucl 17153 . . 3 (𝜑 → (𝐻func ((⟨(1st𝑌), tpos (2nd𝑌)⟩ ∘func (𝑄 2ndF 𝑂)) ⟨,⟩F (𝑄 1stF 𝑂))) ∈ ((𝑄 ×c 𝑂) Func 𝑇))
391, 38eqeltrid 2897 . 2 (𝜑𝑍 ∈ ((𝑄 ×c 𝑂) Func 𝑇))
4035, 14, 10, 12funcsetcres2 17348 . . 3 (𝜑 → ((𝑄 ×c 𝑂) Func 𝑆) ⊆ ((𝑄 ×c 𝑂) Func 𝑇))
41 yoneda.e . . . 4 𝐸 = (𝑂 evalF 𝑆)
4241, 5, 9, 16evlfcl 17467 . . 3 (𝜑𝐸 ∈ ((𝑄 ×c 𝑂) Func 𝑆))
4340, 42sseldd 3919 . 2 (𝜑𝐸 ∈ ((𝑄 ×c 𝑂) Func 𝑇))
4439, 43jca 515 1 (𝜑 → (𝑍 ∈ ((𝑄 ×c 𝑂) Func 𝑇) ∧ 𝐸 ∈ ((𝑄 ×c 𝑂) Func 𝑇)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399   = wceq 1538  wcel 2112  Vcvv 3444  cun 3882  wss 3884  cop 4534   class class class wbr 5033  ran crn 5524  Rel wrel 5528  cfv 6328  (class class class)co 7139  1st c1st 7673  2nd c2nd 7674  tpos ctpos 7878  Basecbs 16478  Catccat 16930  Idccid 16931  Homf chomf 16932  oppCatcoppc 16976   Func cfunc 17119  func ccofu 17121   FuncCat cfuc 17207  SetCatcsetc 17330   ×c cxpc 17413   1stF c1stf 17414   2ndF c2ndf 17415   ⟨,⟩F cprf 17416   evalF cevlf 17454  HomFchof 17493  Yoncyon 17494
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2114  ax-9 2122  ax-10 2143  ax-11 2159  ax-12 2176  ax-ext 2773  ax-rep 5157  ax-sep 5170  ax-nul 5177  ax-pow 5234  ax-pr 5298  ax-un 7445  ax-cnex 10586  ax-resscn 10587  ax-1cn 10588  ax-icn 10589  ax-addcl 10590  ax-addrcl 10591  ax-mulcl 10592  ax-mulrcl 10593  ax-mulcom 10594  ax-addass 10595  ax-mulass 10596  ax-distr 10597  ax-i2m1 10598  ax-1ne0 10599  ax-1rid 10600  ax-rnegex 10601  ax-rrecex 10602  ax-cnre 10603  ax-pre-lttri 10604  ax-pre-lttrn 10605  ax-pre-ltadd 10606  ax-pre-mulgt0 10607
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-fal 1551  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2601  df-eu 2632  df-clab 2780  df-cleq 2794  df-clel 2873  df-nfc 2941  df-ne 2991  df-nel 3095  df-ral 3114  df-rex 3115  df-reu 3116  df-rmo 3117  df-rab 3118  df-v 3446  df-sbc 3724  df-csb 3832  df-dif 3887  df-un 3889  df-in 3891  df-ss 3901  df-pss 3903  df-nul 4247  df-if 4429  df-pw 4502  df-sn 4529  df-pr 4531  df-tp 4533  df-op 4535  df-uni 4804  df-int 4842  df-iun 4886  df-br 5034  df-opab 5096  df-mpt 5114  df-tr 5140  df-id 5428  df-eprel 5433  df-po 5442  df-so 5443  df-fr 5482  df-we 5484  df-xp 5529  df-rel 5530  df-cnv 5531  df-co 5532  df-dm 5533  df-rn 5534  df-res 5535  df-ima 5536  df-pred 6120  df-ord 6166  df-on 6167  df-lim 6168  df-suc 6169  df-iota 6287  df-fun 6330  df-fn 6331  df-f 6332  df-f1 6333  df-fo 6334  df-f1o 6335  df-fv 6336  df-riota 7097  df-ov 7142  df-oprab 7143  df-mpo 7144  df-om 7565  df-1st 7675  df-2nd 7676  df-tpos 7879  df-wrecs 7934  df-recs 7995  df-rdg 8033  df-1o 8089  df-oadd 8093  df-er 8276  df-map 8395  df-pm 8396  df-ixp 8449  df-en 8497  df-dom 8498  df-sdom 8499  df-fin 8500  df-pnf 10670  df-mnf 10671  df-xr 10672  df-ltxr 10673  df-le 10674  df-sub 10865  df-neg 10866  df-nn 11630  df-2 11692  df-3 11693  df-4 11694  df-5 11695  df-6 11696  df-7 11697  df-8 11698  df-9 11699  df-n0 11890  df-z 11974  df-dec 12091  df-uz 12236  df-fz 12890  df-struct 16480  df-ndx 16481  df-slot 16482  df-base 16484  df-sets 16485  df-ress 16486  df-hom 16584  df-cco 16585  df-cat 16934  df-cid 16935  df-homf 16936  df-comf 16937  df-oppc 16977  df-ssc 17075  df-resc 17076  df-subc 17077  df-func 17123  df-cofu 17125  df-nat 17208  df-fuc 17209  df-setc 17331  df-xpc 17417  df-1stf 17418  df-2ndf 17419  df-prf 17420  df-evlf 17458  df-curf 17459  df-hof 17495  df-yon 17496
This theorem is referenced by:  yonedalem3b  17524  yonedalem3  17525  yonedainv  17526  yonffthlem  17527  yoneda  17528
  Copyright terms: Public domain W3C validator