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

Theorem yonedalem1 18475
Description: Lemma for yoneda 18486. (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 2763 . . . . 5 ((⟨(1st ‘𝑌), tpos (2nd ‘𝑌)⟩ ∘func (𝑄 2ndF 𝑂)) ⟨,⟩F (𝑄 1stF 𝑂)) = ((⟨(1st ‘𝑌), tpos (2nd ‘𝑌)⟩ ∘func (𝑄 2ndF 𝑂)) ⟨,⟩F (𝑄 1stF 𝑂))
3 eqid 2763 . . . . 5 ((oppCat‘𝑄) ×c 𝑄) = ((oppCat‘𝑄) ×c 𝑄)
4 eqid 2763 . . . . . . 7 (𝑄 ×c 𝑂) = (𝑄 ×c 𝑂)
5 yoneda.q . . . . . . . 8 𝑄 = (𝑂 FuncCat 𝑆)
6 yoneda.c . . . . . . . . 9 (𝜑 → 𝐶 ∈ Cat)
7 yoneda.o . . . . . . . . . 10 𝑂 = (oppCat‘𝐶)
87oppccat 17925 . . . . . . . . 9 (𝐶 ∈ Cat → 𝑂 ∈ Cat)
96, 8syl 18 . . . . . . . 8 (𝜑 → 𝑂 ∈ Cat)
10 yoneda.w . . . . . . . . . 10 (𝜑 → 𝑉 ∈ 𝑊)
11 yoneda.v . . . . . . . . . . 11 (𝜑 → (ran (Homf ‘𝑄) ∪ 𝑈) ⊆ 𝑉)
1211unssbd 4195 . . . . . . . . . 10 (𝜑 → 𝑈 ⊆ 𝑉)
1310, 12ssexd 5290 . . . . . . . . 9 (𝜑 → 𝑈 ∈ V)
14 yoneda.s . . . . . . . . . 10 𝑆 = (SetCat‘𝑈)
1514setccat 18289 . . . . . . . . 9 (𝑈 ∈ V → 𝑆 ∈ Cat)
1613, 15syl 18 . . . . . . . 8 (𝜑 → 𝑆 ∈ Cat)
175, 9, 16fuccat 18177 . . . . . . 7 (𝜑 → 𝑄 ∈ Cat)
18 eqid 2763 . . . . . . 7 (𝑄 2ndF 𝑂) = (𝑄 2ndF 𝑂)
194, 17, 9, 182ndfcl 18401 . . . . . 6 (𝜑 → (𝑄 2ndF 𝑂) ∈ ((𝑄 ×c 𝑂) Func 𝑂))
20 eqid 2763 . . . . . . . 8 (oppCat‘𝑄) = (oppCat‘𝑄)
21 relfunc 18066 . . . . . . . . 9 Rel (𝐶 Func 𝑄)
22 yoneda.y . . . . . . . . . 10 𝑌 = (Yon‘𝐶)
23 yoneda.u . . . . . . . . . 10 (𝜑 → ran (Homf ‘𝐶) ⊆ 𝑈)
2422, 6, 7, 14, 5, 13, 23yoncl 18465 . . . . . . . . 9 (𝜑 → 𝑌 ∈ (𝐶 Func 𝑄))
25 1st2ndbr 8077 . . . . . . . . 9 ((Rel (𝐶 Func 𝑄) ∧ 𝑌 ∈ (𝐶 Func 𝑄)) → (1st ‘𝑌)(𝐶 Func 𝑄)(2nd ‘𝑌))
2621, 24, 25sylancr 599 . . . . . . . 8 (𝜑 → (1st ‘𝑌)(𝐶 Func 𝑄)(2nd ‘𝑌))
277, 20, 26funcoppc 18079 . . . . . . 7 (𝜑 → (1st ‘𝑌)(𝑂 Func (oppCat‘𝑄))tpos (2nd ‘𝑌))
28 df-br 5107 . . . . . . 7 ((1st ‘𝑌)(𝑂 Func (oppCat‘𝑄))tpos (2nd ‘𝑌) ↔ ⟨(1st ‘𝑌), tpos (2nd ‘𝑌)⟩ ∈ (𝑂 Func (oppCat‘𝑄)))
2927, 28sylib 221 . . . . . 6 (𝜑 → ⟨(1st ‘𝑌), tpos (2nd ‘𝑌)⟩ ∈ (𝑂 Func (oppCat‘𝑄)))
3019, 29cofucl 18092 . . . . 5 (𝜑 → (⟨(1st ‘𝑌), tpos (2nd ‘𝑌)⟩ ∘func (𝑄 2ndF 𝑂)) ∈ ((𝑄 ×c 𝑂) Func (oppCat‘𝑄)))
31 eqid 2763 . . . . . 6 (𝑄 1stF 𝑂) = (𝑄 1stF 𝑂)
324, 17, 9, 311stfcl 18400 . . . . 5 (𝜑 → (𝑄 1stF 𝑂) ∈ ((𝑄 ×c 𝑂) Func 𝑄))
332, 3, 30, 32prfcl 18406 . . . 4 (𝜑 → ((⟨(1st ‘𝑌), tpos (2nd ‘𝑌)⟩ ∘func (𝑄 2ndF 𝑂)) ⟨,⟩F (𝑄 1stF 𝑂)) ∈ ((𝑄 ×c 𝑂) Func ((oppCat‘𝑄) ×c 𝑄)))
34 yoneda.h . . . . 5 𝐻 = (HomF‘𝑄)
35 yoneda.t . . . . 5 𝑇 = (SetCat‘𝑉)
3611unssad 4194 . . . . 5 (𝜑 → ran (Homf ‘𝑄) ⊆ 𝑉)
3734, 20, 35, 17, 10, 36hofcl 18462 . . . 4 (𝜑 → 𝐻 ∈ (((oppCat‘𝑄) ×c 𝑄) Func 𝑇))
3833, 37cofucl 18092 . . 3 (𝜑 → (𝐻 ∘func ((⟨(1st ‘𝑌), tpos (2nd ‘𝑌)⟩ ∘func (𝑄 2ndF 𝑂)) ⟨,⟩F (𝑄 1stF 𝑂))) ∈ ((𝑄 ×c 𝑂) Func 𝑇))
391, 38eqeltrid 2868 . 2 (𝜑 → 𝑍 ∈ ((𝑄 ×c 𝑂) Func 𝑇))
4035, 14, 10, 12funcsetcres2 18297 . . 3 (𝜑 → ((𝑄 ×c 𝑂) Func 𝑆) ⊆ ((𝑄 ×c 𝑂) Func 𝑇))
41 yoneda.e . . . 4 𝐸 = (𝑂 evalF 𝑆)
4241, 5, 9, 16evlfcl 18425 . . 3 (𝜑 → 𝐸 ∈ ((𝑄 ×c 𝑂) Func 𝑆))
4340, 42sseldd 3914 . 2 (𝜑 → 𝐸 ∈ ((𝑄 ×c 𝑂) Func 𝑇))
4439, 43jca 521 1 (𝜑 → (𝑍 ∈ ((𝑄 ×c 𝑂) Func 𝑇) ∧ 𝐸 ∈ ((𝑄 ×c 𝑂) Func 𝑇)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1570   ∈ wcel 2147  Vcvv 3454   ⊆ wss 3900   ∪ cun 4152  ⟨cop 4838   class class class wbr 5106  ran crn 5656  Rel wrel 5660  ‘cfv 6558  (class class class)co 7443  1st c1st 8023  2nd c2nd 8024  tpos ctpos 8270  Basecbs 17416  Catccat 17867  Idccid 17868  Homf chomf 17869  oppCatcoppc 17914   Func cfunc 18058   ∘func ccofu 18060   FuncCat cfuc 18149  SetCatcsetc 18279   ×c cxpc 18371   1stF c1stf 18372   2ndF c2ndf 18373   ⟨,⟩F cprf 18374   evalF cevlf 18412  HomFchof 18451  Yoncyon 18452
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5235  ax-sep 5252  ax-nul 5263  ax-pow 5331  ax-pr 5395  ax-un 7775  ax-cnex 11283  ax-resscn 11284  ax-1cn 11285  ax-icn 11286  ax-addcl 11287  ax-addrcl 11288  ax-mulcl 11289  ax-mulrcl 11290  ax-mulcom 11291  ax-addass 11292  ax-mulass 11293  ax-distr 11294  ax-i2m1 11295  ax-1ne0 11296  ax-1rid 11297  ax-rnegex 11298  ax-rrecex 11299  ax-cnre 11300  ax-pre-lttri 11301  ax-pre-lttrn 11302  ax-pre-ltadd 11303  ax-pre-mulgt0 11304
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-nel 3066  df-ral 3081  df-rex 3091  df-rmo 3369  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-tp 4593  df-op 4839  df-uni 4871  df-iun 4956  df-br 5107  df-opab 5171  df-mpt 5190  df-tr 5216  df-id 5550  df-eprel 5555  df-po 5563  df-so 5564  df-fr 5608  df-we 5610  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-pred 6322  df-ord 6383  df-on 6384  df-lim 6385  df-suc 6386  df-iota 6512  df-fun 6560  df-fn 6561  df-f 6562  df-f1 6563  df-fo 6564  df-f1o 6565  df-fv 6566  df-riota 7400  df-ov 7446  df-oprab 7447  df-mpo 7448  df-om 7902  df-1st 8025  df-2nd 8026  df-tpos 8271  df-frecs 8327  df-wrecs 8358  df-recs 8407  df-rdg 8446  df-1o 8504  df-er 8745  df-map 8877  df-pm 8878  df-ixp 8954  df-en 9002  df-dom 9003  df-sdom 9004  df-fin 9005  df-pnf 11372  df-mnf 11373  df-xr 11374  df-ltxr 11375  df-le 11376  df-sub 11570  df-neg 11571  df-nn 12363  df-2 12432  df-3 12433  df-4 12434  df-5 12435  df-6 12436  df-7 12437  df-8 12438  df-9 12439  df-n0 12634  df-z 12721  df-dec 12842  df-uz 12993  df-fz 13667  df-struct 17354  df-sets 17371  df-slot 17389  df-ndx 17401  df-base 17417  df-ress 17438  df-hom 17481  df-cco 17482  df-cat 17871  df-cid 17872  df-homf 17873  df-comf 17874  df-oppc 17915  df-ssc 18014  df-resc 18015  df-subc 18016  df-func 18062  df-cofu 18064  df-nat 18150  df-fuc 18151  df-setc 18280  df-xpc 18375  df-1stf 18376  df-2ndf 18377  df-prf 18378  df-evlf 18416  df-curf 18417  df-hof 18453  df-yon 18454
This theorem is used by:  yonedalem3b  18482  yonedalem3  18483  yonedainv  18484  yonffthlem  18485  yoneda  18486
  Copyright terms: Public domain W3C validator