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

Theorem yonedalem4a 17974
Description: Lemma for yoneda 17982. (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𝐹)‘𝑋))
Assertion
Ref Expression
yonedalem4a (𝜑 → ((𝐹𝑁𝑋)‘𝐴) = (𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴))))
Distinct variable groups:   𝑓,𝑔,𝑥,𝑦, 1   𝑢,𝑔,𝐴,𝑦   𝑢,𝑓,𝐶,𝑔,𝑥,𝑦   𝑓,𝐸,𝑔,𝑢,𝑦   𝑓,𝐹,𝑔,𝑢,𝑥,𝑦   𝐵,𝑓,𝑔,𝑢,𝑥,𝑦   𝑓,𝑂,𝑔,𝑢,𝑥,𝑦   𝑆,𝑓,𝑔,𝑢,𝑥,𝑦   𝑄,𝑓,𝑔,𝑢,𝑥   𝑇,𝑓,𝑔,𝑢,𝑦   𝜑,𝑓,𝑔,𝑢,𝑥,𝑦   𝑢,𝑅   𝑓,𝑌,𝑔,𝑢,𝑥,𝑦   𝑓,𝑍,𝑔,𝑢,𝑥,𝑦   𝑓,𝑋,𝑔,𝑢,𝑥,𝑦
Allowed substitution hints:   𝐴(𝑥,𝑓)   𝑄(𝑦)   𝑅(𝑥,𝑦,𝑓,𝑔)   𝑇(𝑥)   𝑈(𝑥,𝑦,𝑢,𝑓,𝑔)   1 (𝑢)   𝐸(𝑥)   𝐻(𝑥,𝑦,𝑢,𝑓,𝑔)   𝑁(𝑥,𝑦,𝑢,𝑓,𝑔)   𝑉(𝑥,𝑦,𝑢,𝑓,𝑔)   𝑊(𝑥,𝑦,𝑢,𝑓,𝑔)

Proof of Theorem yonedalem4a
StepHypRef Expression
1 yonedalem4.n . . . 4 𝑁 = (𝑓 ∈ (𝑂 Func 𝑆), 𝑥𝐵 ↦ (𝑢 ∈ ((1st𝑓)‘𝑥) ↦ (𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑥) ↦ (((𝑥(2nd𝑓)𝑦)‘𝑔)‘𝑢)))))
21a1i 11 . . 3 (𝜑𝑁 = (𝑓 ∈ (𝑂 Func 𝑆), 𝑥𝐵 ↦ (𝑢 ∈ ((1st𝑓)‘𝑥) ↦ (𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑥) ↦ (((𝑥(2nd𝑓)𝑦)‘𝑔)‘𝑢))))))
3 simprl 767 . . . . . 6 ((𝜑 ∧ (𝑓 = 𝐹𝑥 = 𝑋)) → 𝑓 = 𝐹)
43fveq2d 6772 . . . . 5 ((𝜑 ∧ (𝑓 = 𝐹𝑥 = 𝑋)) → (1st𝑓) = (1st𝐹))
5 simprr 769 . . . . 5 ((𝜑 ∧ (𝑓 = 𝐹𝑥 = 𝑋)) → 𝑥 = 𝑋)
64, 5fveq12d 6775 . . . 4 ((𝜑 ∧ (𝑓 = 𝐹𝑥 = 𝑋)) → ((1st𝑓)‘𝑥) = ((1st𝐹)‘𝑋))
7 simplrr 774 . . . . . . 7 (((𝜑 ∧ (𝑓 = 𝐹𝑥 = 𝑋)) ∧ 𝑦𝐵) → 𝑥 = 𝑋)
87oveq2d 7284 . . . . . 6 (((𝜑 ∧ (𝑓 = 𝐹𝑥 = 𝑋)) ∧ 𝑦𝐵) → (𝑦(Hom ‘𝐶)𝑥) = (𝑦(Hom ‘𝐶)𝑋))
9 simplrl 773 . . . . . . . . . 10 (((𝜑 ∧ (𝑓 = 𝐹𝑥 = 𝑋)) ∧ 𝑦𝐵) → 𝑓 = 𝐹)
109fveq2d 6772 . . . . . . . . 9 (((𝜑 ∧ (𝑓 = 𝐹𝑥 = 𝑋)) ∧ 𝑦𝐵) → (2nd𝑓) = (2nd𝐹))
11 eqidd 2740 . . . . . . . . 9 (((𝜑 ∧ (𝑓 = 𝐹𝑥 = 𝑋)) ∧ 𝑦𝐵) → 𝑦 = 𝑦)
1210, 7, 11oveq123d 7289 . . . . . . . 8 (((𝜑 ∧ (𝑓 = 𝐹𝑥 = 𝑋)) ∧ 𝑦𝐵) → (𝑥(2nd𝑓)𝑦) = (𝑋(2nd𝐹)𝑦))
1312fveq1d 6770 . . . . . . 7 (((𝜑 ∧ (𝑓 = 𝐹𝑥 = 𝑋)) ∧ 𝑦𝐵) → ((𝑥(2nd𝑓)𝑦)‘𝑔) = ((𝑋(2nd𝐹)𝑦)‘𝑔))
1413fveq1d 6770 . . . . . 6 (((𝜑 ∧ (𝑓 = 𝐹𝑥 = 𝑋)) ∧ 𝑦𝐵) → (((𝑥(2nd𝑓)𝑦)‘𝑔)‘𝑢) = (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝑢))
158, 14mpteq12dv 5169 . . . . 5 (((𝜑 ∧ (𝑓 = 𝐹𝑥 = 𝑋)) ∧ 𝑦𝐵) → (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑥) ↦ (((𝑥(2nd𝑓)𝑦)‘𝑔)‘𝑢)) = (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝑢)))
1615mpteq2dva 5178 . . . 4 ((𝜑 ∧ (𝑓 = 𝐹𝑥 = 𝑋)) → (𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑥) ↦ (((𝑥(2nd𝑓)𝑦)‘𝑔)‘𝑢))) = (𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝑢))))
176, 16mpteq12dv 5169 . . 3 ((𝜑 ∧ (𝑓 = 𝐹𝑥 = 𝑋)) → (𝑢 ∈ ((1st𝑓)‘𝑥) ↦ (𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑥) ↦ (((𝑥(2nd𝑓)𝑦)‘𝑔)‘𝑢)))) = (𝑢 ∈ ((1st𝐹)‘𝑋) ↦ (𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝑢)))))
18 yonedalem21.f . . 3 (𝜑𝐹 ∈ (𝑂 Func 𝑆))
19 yonedalem21.x . . 3 (𝜑𝑋𝐵)
20 fvex 6781 . . . . 5 ((1st𝐹)‘𝑋) ∈ V
2120mptex 7093 . . . 4 (𝑢 ∈ ((1st𝐹)‘𝑋) ↦ (𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝑢)))) ∈ V
2221a1i 11 . . 3 (𝜑 → (𝑢 ∈ ((1st𝐹)‘𝑋) ↦ (𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝑢)))) ∈ V)
232, 17, 18, 19, 22ovmpod 7416 . 2 (𝜑 → (𝐹𝑁𝑋) = (𝑢 ∈ ((1st𝐹)‘𝑋) ↦ (𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝑢)))))
24 simpr 484 . . . . 5 ((𝜑𝑢 = 𝐴) → 𝑢 = 𝐴)
2524fveq2d 6772 . . . 4 ((𝜑𝑢 = 𝐴) → (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝑢) = (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴))
2625mpteq2dv 5180 . . 3 ((𝜑𝑢 = 𝐴) → (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝑢)) = (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴)))
2726mpteq2dv 5180 . 2 ((𝜑𝑢 = 𝐴) → (𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝑢))) = (𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴))))
28 yonedalem4.p . 2 (𝜑𝐴 ∈ ((1st𝐹)‘𝑋))
29 yoneda.b . . . . 5 𝐵 = (Base‘𝐶)
3029fvexi 6782 . . . 4 𝐵 ∈ V
3130mptex 7093 . . 3 (𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴))) ∈ V
3231a1i 11 . 2 (𝜑 → (𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴))) ∈ V)
3323, 27, 28, 32fvmptd 6876 1 (𝜑 → ((𝐹𝑁𝑋)‘𝐴) = (𝑦𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐶)𝑋) ↦ (((𝑋(2nd𝐹)𝑦)‘𝑔)‘𝐴))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1541  wcel 2109  Vcvv 3430  cun 3889  wss 3891  cop 4572  cmpt 5161  ran crn 5589  cfv 6430  (class class class)co 7268  cmpo 7270  1st c1st 7815  2nd c2nd 7816  tpos ctpos 8025  Basecbs 16893  Hom chom 16954  Catccat 17354  Idccid 17355  Homf chomf 17356  oppCatcoppc 17401   Func cfunc 17550  func ccofu 17552   FuncCat cfuc 17639  SetCatcsetc 17771   ×c cxpc 17866   1stF c1stf 17867   2ndF c2ndf 17868   ⟨,⟩F cprf 17869   evalF cevlf 17908  HomFchof 17947  Yoncyon 17948
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-10 2140  ax-11 2157  ax-12 2174  ax-ext 2710  ax-rep 5213  ax-sep 5226  ax-nul 5233  ax-pr 5355
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1544  df-fal 1554  df-ex 1786  df-nf 1790  df-sb 2071  df-mo 2541  df-eu 2570  df-clab 2717  df-cleq 2731  df-clel 2817  df-nfc 2890  df-ne 2945  df-ral 3070  df-rex 3071  df-reu 3072  df-rab 3074  df-v 3432  df-sbc 3720  df-csb 3837  df-dif 3894  df-un 3896  df-in 3898  df-ss 3908  df-nul 4262  df-if 4465  df-sn 4567  df-pr 4569  df-op 4573  df-uni 4845  df-iun 4931  df-br 5079  df-opab 5141  df-mpt 5162  df-id 5488  df-xp 5594  df-rel 5595  df-cnv 5596  df-co 5597  df-dm 5598  df-rn 5599  df-res 5600  df-ima 5601  df-iota 6388  df-fun 6432  df-fn 6433  df-f 6434  df-f1 6435  df-fo 6436  df-f1o 6437  df-fv 6438  df-ov 7271  df-oprab 7272  df-mpo 7273
This theorem is referenced by:  yonedalem4b  17975  yonedalem4c  17976  yonffthlem  17981
  Copyright terms: Public domain W3C validator