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

Theorem yonedalem4b 18043
Description: Lemma for yoneda 18050. (Contributed by Mario Carneiro, 29-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𝑄) ∪ 𝑈) ⊆ 𝑉)
yonedalem21.f (𝜑𝐹 ∈ (𝑂 Func 𝑆))
yonedalem21.x (𝜑𝑋𝐵)
yonedalem4.n 𝑁 = (𝑓 ∈ (𝑂 Func 𝑆), 𝑥𝐵 ↦ (𝑢 ∈ ((1st𝑓)‘𝑥) ↦ (𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑥) ↦ (((𝑥(2nd𝑓)𝑦)‘𝑔)‘𝑢)))))
yonedalem4.p (𝜑𝐴 ∈ ((1st𝐹)‘𝑋))
yonedalem4b.p (𝜑𝑃𝐵)
yonedalem4b.g (𝜑𝐺 ∈ (𝑃(Hom ‘𝐶)𝑋))
Assertion
Ref Expression
yonedalem4b (𝜑 → ((((𝐹𝑁𝑋)‘𝐴)‘𝑃)‘𝐺) = (((𝑋(2nd𝐹)𝑃)‘𝐺)‘𝐴))
Distinct variable groups:   𝑓,𝑔,𝑥,𝑦, 1   𝑢,𝑔,𝐴,𝑦   𝑢,𝑓,𝐶,𝑔,𝑥,𝑦   𝑓,𝐸,𝑔,𝑢,𝑦   𝑓,𝐹,𝑔,𝑢,𝑥,𝑦   𝐵,𝑓,𝑔,𝑢,𝑥,𝑦   𝑓,𝐺,𝑔,𝑥,𝑦   𝑓,𝑂,𝑔,𝑢,𝑥,𝑦   𝑆,𝑓,𝑔,𝑢,𝑥,𝑦   𝑄,𝑓,𝑔,𝑢,𝑥   𝑇,𝑓,𝑔,𝑢,𝑦   𝑃,𝑓,𝑔,𝑥,𝑦   𝜑,𝑓,𝑔,𝑢,𝑥,𝑦   𝑢,𝑅   𝑓,𝑌,𝑔,𝑢,𝑥,𝑦   𝑓,𝑍,𝑔,𝑢,𝑥,𝑦   𝑓,𝑋,𝑔,𝑢,𝑥,𝑦
Allowed substitution hints:   𝐴(𝑥,𝑓)   𝑃(𝑢)   𝑄(𝑦)   𝑅(𝑥,𝑦,𝑓,𝑔)   𝑇(𝑥)   𝑈(𝑥,𝑦,𝑢,𝑓,𝑔)   1 (𝑢)   𝐸(𝑥)   𝐺(𝑢)   𝐻(𝑥,𝑦,𝑢,𝑓,𝑔)   𝑁(𝑥,𝑦,𝑢,𝑓,𝑔)   𝑉(𝑥,𝑦,𝑢,𝑓,𝑔)   𝑊(𝑥,𝑦,𝑢,𝑓,𝑔)

Proof of Theorem yonedalem4b
StepHypRef Expression
1 yoneda.y . . . . 5 𝑌 = (Yon‘𝐶)
2 yoneda.b . . . . 5 𝐵 = (Base‘𝐶)
3 yoneda.1 . . . . 5 1 = (Id‘𝐶)
4 yoneda.o . . . . 5 𝑂 = (oppCat‘𝐶)
5 yoneda.s . . . . 5 𝑆 = (SetCat‘𝑈)
6 yoneda.t . . . . 5 𝑇 = (SetCat‘𝑉)
7 yoneda.q . . . . 5 𝑄 = (𝑂 FuncCat 𝑆)
8 yoneda.h . . . . 5 𝐻 = (HomF𝑄)
9 yoneda.r . . . . 5 𝑅 = ((𝑄 ×c 𝑂) FuncCat 𝑇)
10 yoneda.e . . . . 5 𝐸 = (𝑂 evalF 𝑆)
11 yoneda.z . . . . 5 𝑍 = (𝐻func ((⟨(1st𝑌), tpos (2nd𝑌)⟩ ∘func (𝑄 2ndF 𝑂)) ⟨,⟩F (𝑄 1stF 𝑂)))
12 yoneda.c . . . . 5 (𝜑𝐶 ∈ Cat)
13 yoneda.w . . . . 5 (𝜑𝑉𝑊)
14 yoneda.u . . . . 5 (𝜑 → ran (Homf𝐶) ⊆ 𝑈)
15 yoneda.v . . . . 5 (𝜑 → (ran (Homf𝑄) ∪ 𝑈) ⊆ 𝑉)
16 yonedalem21.f . . . . 5 (𝜑𝐹 ∈ (𝑂 Func 𝑆))
17 yonedalem21.x . . . . 5 (𝜑𝑋𝐵)
18 yonedalem4.n . . . . 5 𝑁 = (𝑓 ∈ (𝑂 Func 𝑆), 𝑥𝐵 ↦ (𝑢 ∈ ((1st𝑓)‘𝑥) ↦ (𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑥) ↦ (((𝑥(2nd𝑓)𝑦)‘𝑔)‘𝑢)))))
19 yonedalem4.p . . . . 5 (𝜑𝐴 ∈ ((1st𝐹)‘𝑋))
201, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19yonedalem4a 18042 . . . 4 (𝜑 → ((𝐹𝑁𝑋)‘𝐴) = (𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴))))
2120fveq1d 6806 . . 3 (𝜑 → (((𝐹𝑁𝑋)‘𝐴)‘𝑃) = ((𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴)))‘𝑃))
2221fveq1d 6806 . 2 (𝜑 → ((((𝐹𝑁𝑋)‘𝐴)‘𝑃)‘𝐺) = (((𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴)))‘𝑃)‘𝐺))
23 eqidd 2737 . . 3 (𝜑 → (𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴))) = (𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴))))
24 yonedalem4b.p . . . 4 (𝜑𝑃𝐵)
25 ovex 7340 . . . . . 6 (𝑦(Hom ‘𝐶)𝑋) ∈ V
2625mptex 7131 . . . . 5 (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴)) ∈ V
2726a1i 11 . . . 4 ((𝜑𝑦 = 𝑃) → (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴)) ∈ V)
28 yonedalem4b.g . . . . . . 7 (𝜑𝐺 ∈ (𝑃(Hom ‘𝐶)𝑋))
2928adantr 482 . . . . . 6 ((𝜑𝑦 = 𝑃) → 𝐺 ∈ (𝑃(Hom ‘𝐶)𝑋))
30 simpr 486 . . . . . . 7 ((𝜑𝑦 = 𝑃) → 𝑦 = 𝑃)
3130oveq1d 7322 . . . . . 6 ((𝜑𝑦 = 𝑃) → (𝑦(Hom ‘𝐶)𝑋) = (𝑃(Hom ‘𝐶)𝑋))
3229, 31eleqtrrd 2840 . . . . 5 ((𝜑𝑦 = 𝑃) → 𝐺 ∈ (𝑦(Hom ‘𝐶)𝑋))
33 fvexd 6819 . . . . 5 (((𝜑𝑦 = 𝑃) ∧ 𝑔 = 𝐺) → (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴) ∈ V)
34 simplr 767 . . . . . . . 8 (((𝜑𝑦 = 𝑃) ∧ 𝑔 = 𝐺) → 𝑦 = 𝑃)
3534oveq2d 7323 . . . . . . 7 (((𝜑𝑦 = 𝑃) ∧ 𝑔 = 𝐺) → (𝑋(2nd𝐹)𝑦) = (𝑋(2nd𝐹)𝑃))
36 simpr 486 . . . . . . 7 (((𝜑𝑦 = 𝑃) ∧ 𝑔 = 𝐺) → 𝑔 = 𝐺)
3735, 36fveq12d 6811 . . . . . 6 (((𝜑𝑦 = 𝑃) ∧ 𝑔 = 𝐺) → ((𝑋(2nd𝐹)𝑦)‘𝑔) = ((𝑋(2nd𝐹)𝑃)‘𝐺))
3837fveq1d 6806 . . . . 5 (((𝜑𝑦 = 𝑃) ∧ 𝑔 = 𝐺) → (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴) = (((𝑋(2nd𝐹)𝑃)‘𝐺)‘𝐴))
3932, 33, 38fvmptdv2 6925 . . . 4 ((𝜑𝑦 = 𝑃) → (((𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴)))‘𝑃) = (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴)) → (((𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴)))‘𝑃)‘𝐺) = (((𝑋(2nd𝐹)𝑃)‘𝐺)‘𝐴)))
40 nfmpt1 5189 . . . 4 𝑦(𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴)))
41 nffvmpt1 6815 . . . . . 6 𝑦((𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴)))‘𝑃)
42 nfcv 2905 . . . . . 6 𝑦𝐺
4341, 42nffv 6814 . . . . 5 𝑦(((𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴)))‘𝑃)‘𝐺)
4443nfeq1 2920 . . . 4 𝑦(((𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴)))‘𝑃)‘𝐺) = (((𝑋(2nd𝐹)𝑃)‘𝐺)‘𝐴)
4524, 27, 39, 40, 44fvmptd2f 6923 . . 3 (𝜑 → ((𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴))) = (𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴))) → (((𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴)))‘𝑃)‘𝐺) = (((𝑋(2nd𝐹)𝑃)‘𝐺)‘𝐴)))
4623, 45mpd 15 . 2 (𝜑 → (((𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴)))‘𝑃)‘𝐺) = (((𝑋(2nd𝐹)𝑃)‘𝐺)‘𝐴))
4722, 46eqtrd 2776 1 (𝜑 → ((((𝐹𝑁𝑋)‘𝐴)‘𝑃)‘𝐺) = (((𝑋(2nd𝐹)𝑃)‘𝐺)‘𝐴))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 397   = wceq 1539  wcel 2104  Vcvv 3437  cun 3890  wss 3892  cop 4571  cmpt 5164  ran crn 5601  cfv 6458  (class class class)co 7307  cmpo 7309  1st c1st 7861  2nd c2nd 7862  tpos ctpos 8072  Basecbs 16961  Hom chom 17022  Catccat 17422  Idccid 17423  Homf chomf 17424  oppCatcoppc 17469   Func cfunc 17618  func ccofu 17620   FuncCat cfuc 17707  SetCatcsetc 17839   ×c cxpc 17934   1stF c1stf 17935   2ndF c2ndf 17936   ⟨,⟩F cprf 17937   evalF cevlf 17976  HomFchof 18015  Yoncyon 18016
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1911  ax-6 1969  ax-7 2009  ax-8 2106  ax-9 2114  ax-10 2135  ax-11 2152  ax-12 2169  ax-ext 2707  ax-rep 5218  ax-sep 5232  ax-nul 5239  ax-pr 5361
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 846  df-3an 1089  df-tru 1542  df-fal 1552  df-ex 1780  df-nf 1784  df-sb 2066  df-mo 2538  df-eu 2567  df-clab 2714  df-cleq 2728  df-clel 2814  df-nfc 2887  df-ne 2942  df-ral 3063  df-rex 3072  df-reu 3305  df-rab 3306  df-v 3439  df-sbc 3722  df-csb 3838  df-dif 3895  df-un 3897  df-in 3899  df-ss 3909  df-nul 4263  df-if 4466  df-sn 4566  df-pr 4568  df-op 4572  df-uni 4845  df-iun 4933  df-br 5082  df-opab 5144  df-mpt 5165  df-id 5500  df-xp 5606  df-rel 5607  df-cnv 5608  df-co 5609  df-dm 5610  df-rn 5611  df-res 5612  df-ima 5613  df-iota 6410  df-fun 6460  df-fn 6461  df-f 6462  df-f1 6463  df-fo 6464  df-f1o 6465  df-fv 6466  df-ov 7310  df-oprab 7311  df-mpo 7312
This theorem is referenced by:  yonedalem4c  18044  yonedainv  18048
  Copyright terms: Public domain W3C validator