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

Theorem resssetc 17344
Description: The restriction of the category of sets to a subset is the category of sets in the subset. Thus, the SetCat‘𝑈 categories for different 𝑈 are full subcategories of each other. (Contributed by Mario Carneiro, 6-Jan-2017.)
Hypotheses
Ref Expression
resssetc.c 𝐶 = (SetCat‘𝑈)
resssetc.d 𝐷 = (SetCat‘𝑉)
resssetc.1 (𝜑𝑈𝑊)
resssetc.2 (𝜑𝑉𝑈)
Assertion
Ref Expression
resssetc (𝜑 → ((Homf ‘(𝐶s 𝑉)) = (Homf𝐷) ∧ (compf‘(𝐶s 𝑉)) = (compf𝐷)))

Proof of Theorem resssetc
Dummy variables 𝑓 𝑔 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 resssetc.d . . . . . 6 𝐷 = (SetCat‘𝑉)
2 resssetc.1 . . . . . . . 8 (𝜑𝑈𝑊)
3 resssetc.2 . . . . . . . 8 (𝜑𝑉𝑈)
42, 3ssexd 5192 . . . . . . 7 (𝜑𝑉 ∈ V)
54adantr 484 . . . . . 6 ((𝜑 ∧ (𝑥𝑉𝑦𝑉)) → 𝑉 ∈ V)
6 eqid 2798 . . . . . 6 (Hom ‘𝐷) = (Hom ‘𝐷)
7 simprl 770 . . . . . 6 ((𝜑 ∧ (𝑥𝑉𝑦𝑉)) → 𝑥𝑉)
8 simprr 772 . . . . . 6 ((𝜑 ∧ (𝑥𝑉𝑦𝑉)) → 𝑦𝑉)
91, 5, 6, 7, 8setchom 17332 . . . . 5 ((𝜑 ∧ (𝑥𝑉𝑦𝑉)) → (𝑥(Hom ‘𝐷)𝑦) = (𝑦m 𝑥))
10 resssetc.c . . . . . 6 𝐶 = (SetCat‘𝑈)
112adantr 484 . . . . . 6 ((𝜑 ∧ (𝑥𝑉𝑦𝑉)) → 𝑈𝑊)
12 eqid 2798 . . . . . 6 (Hom ‘𝐶) = (Hom ‘𝐶)
133adantr 484 . . . . . . 7 ((𝜑 ∧ (𝑥𝑉𝑦𝑉)) → 𝑉𝑈)
1413, 7sseldd 3916 . . . . . 6 ((𝜑 ∧ (𝑥𝑉𝑦𝑉)) → 𝑥𝑈)
1513, 8sseldd 3916 . . . . . 6 ((𝜑 ∧ (𝑥𝑉𝑦𝑉)) → 𝑦𝑈)
1610, 11, 12, 14, 15setchom 17332 . . . . 5 ((𝜑 ∧ (𝑥𝑉𝑦𝑉)) → (𝑥(Hom ‘𝐶)𝑦) = (𝑦m 𝑥))
17 eqid 2798 . . . . . . . 8 (𝐶s 𝑉) = (𝐶s 𝑉)
1817, 12resshom 16683 . . . . . . 7 (𝑉 ∈ V → (Hom ‘𝐶) = (Hom ‘(𝐶s 𝑉)))
194, 18syl 17 . . . . . 6 (𝜑 → (Hom ‘𝐶) = (Hom ‘(𝐶s 𝑉)))
2019oveqdr 7163 . . . . 5 ((𝜑 ∧ (𝑥𝑉𝑦𝑉)) → (𝑥(Hom ‘𝐶)𝑦) = (𝑥(Hom ‘(𝐶s 𝑉))𝑦))
219, 16, 203eqtr2rd 2840 . . . 4 ((𝜑 ∧ (𝑥𝑉𝑦𝑉)) → (𝑥(Hom ‘(𝐶s 𝑉))𝑦) = (𝑥(Hom ‘𝐷)𝑦))
2221ralrimivva 3156 . . 3 (𝜑 → ∀𝑥𝑉𝑦𝑉 (𝑥(Hom ‘(𝐶s 𝑉))𝑦) = (𝑥(Hom ‘𝐷)𝑦))
23 eqid 2798 . . . 4 (Hom ‘(𝐶s 𝑉)) = (Hom ‘(𝐶s 𝑉))
2410, 2setcbas 17330 . . . . . 6 (𝜑𝑈 = (Base‘𝐶))
253, 24sseqtrd 3955 . . . . 5 (𝜑𝑉 ⊆ (Base‘𝐶))
26 eqid 2798 . . . . . 6 (Base‘𝐶) = (Base‘𝐶)
2717, 26ressbas2 16547 . . . . 5 (𝑉 ⊆ (Base‘𝐶) → 𝑉 = (Base‘(𝐶s 𝑉)))
2825, 27syl 17 . . . 4 (𝜑𝑉 = (Base‘(𝐶s 𝑉)))
291, 4setcbas 17330 . . . 4 (𝜑𝑉 = (Base‘𝐷))
3023, 6, 28, 29homfeq 16956 . . 3 (𝜑 → ((Homf ‘(𝐶s 𝑉)) = (Homf𝐷) ↔ ∀𝑥𝑉𝑦𝑉 (𝑥(Hom ‘(𝐶s 𝑉))𝑦) = (𝑥(Hom ‘𝐷)𝑦)))
3122, 30mpbird 260 . 2 (𝜑 → (Homf ‘(𝐶s 𝑉)) = (Homf𝐷))
324ad2antrr 725 . . . . . . . 8 (((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑉 ∈ V)
33 eqid 2798 . . . . . . . 8 (comp‘𝐷) = (comp‘𝐷)
34 simplr1 1212 . . . . . . . 8 (((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑥𝑉)
35 simplr2 1213 . . . . . . . 8 (((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑦𝑉)
36 simplr3 1214 . . . . . . . 8 (((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑧𝑉)
37 simprl 770 . . . . . . . . 9 (((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦))
381, 32, 6, 34, 35elsetchom 17333 . . . . . . . . 9 (((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ↔ 𝑓:𝑥𝑦))
3937, 38mpbid 235 . . . . . . . 8 (((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑓:𝑥𝑦)
40 simprr 772 . . . . . . . . 9 (((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))
411, 32, 6, 35, 36elsetchom 17333 . . . . . . . . 9 (((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ↔ 𝑔:𝑦𝑧))
4240, 41mpbid 235 . . . . . . . 8 (((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑔:𝑦𝑧)
431, 32, 33, 34, 35, 36, 39, 42setcco 17335 . . . . . . 7 (((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → (𝑔(⟨𝑥, 𝑦⟩(comp‘𝐷)𝑧)𝑓) = (𝑔𝑓))
442ad2antrr 725 . . . . . . . 8 (((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑈𝑊)
45 eqid 2798 . . . . . . . 8 (comp‘𝐶) = (comp‘𝐶)
463ad2antrr 725 . . . . . . . . 9 (((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑉𝑈)
4746, 34sseldd 3916 . . . . . . . 8 (((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑥𝑈)
4846, 35sseldd 3916 . . . . . . . 8 (((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑦𝑈)
4946, 36sseldd 3916 . . . . . . . 8 (((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑧𝑈)
5010, 44, 45, 47, 48, 49, 39, 42setcco 17335 . . . . . . 7 (((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → (𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓) = (𝑔𝑓))
5117, 45ressco 16684 . . . . . . . . . . 11 (𝑉 ∈ V → (comp‘𝐶) = (comp‘(𝐶s 𝑉)))
524, 51syl 17 . . . . . . . . . 10 (𝜑 → (comp‘𝐶) = (comp‘(𝐶s 𝑉)))
5352ad2antrr 725 . . . . . . . . 9 (((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → (comp‘𝐶) = (comp‘(𝐶s 𝑉)))
5453oveqd 7152 . . . . . . . 8 (((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → (⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧) = (⟨𝑥, 𝑦⟩(comp‘(𝐶s 𝑉))𝑧))
5554oveqd 7152 . . . . . . 7 (((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → (𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓) = (𝑔(⟨𝑥, 𝑦⟩(comp‘(𝐶s 𝑉))𝑧)𝑓))
5643, 50, 553eqtr2d 2839 . . . . . 6 (((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → (𝑔(⟨𝑥, 𝑦⟩(comp‘𝐷)𝑧)𝑓) = (𝑔(⟨𝑥, 𝑦⟩(comp‘(𝐶s 𝑉))𝑧)𝑓))
5756ralrimivva 3156 . . . . 5 ((𝜑 ∧ (𝑥𝑉𝑦𝑉𝑧𝑉)) → ∀𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦)∀𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐷)𝑧)𝑓) = (𝑔(⟨𝑥, 𝑦⟩(comp‘(𝐶s 𝑉))𝑧)𝑓))
5857ralrimivvva 3157 . . . 4 (𝜑 → ∀𝑥𝑉𝑦𝑉𝑧𝑉𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦)∀𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐷)𝑧)𝑓) = (𝑔(⟨𝑥, 𝑦⟩(comp‘(𝐶s 𝑉))𝑧)𝑓))
59 eqid 2798 . . . . 5 (comp‘(𝐶s 𝑉)) = (comp‘(𝐶s 𝑉))
6031eqcomd 2804 . . . . 5 (𝜑 → (Homf𝐷) = (Homf ‘(𝐶s 𝑉)))
6133, 59, 6, 29, 28, 60comfeq 16968 . . . 4 (𝜑 → ((compf𝐷) = (compf‘(𝐶s 𝑉)) ↔ ∀𝑥𝑉𝑦𝑉𝑧𝑉𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦)∀𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐷)𝑧)𝑓) = (𝑔(⟨𝑥, 𝑦⟩(comp‘(𝐶s 𝑉))𝑧)𝑓)))
6258, 61mpbird 260 . . 3 (𝜑 → (compf𝐷) = (compf‘(𝐶s 𝑉)))
6362eqcomd 2804 . 2 (𝜑 → (compf‘(𝐶s 𝑉)) = (compf𝐷))
6431, 63jca 515 1 (𝜑 → ((Homf ‘(𝐶s 𝑉)) = (Homf𝐷) ∧ (compf‘(𝐶s 𝑉)) = (compf𝐷)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399  w3a 1084   = wceq 1538  wcel 2111  wral 3106  Vcvv 3441  wss 3881  cop 4531  ccom 5523  wf 6320  cfv 6324  (class class class)co 7135  m cmap 8389  Basecbs 16475  s cress 16476  Hom chom 16568  compcco 16569  Homf chomf 16929  compfccomf 16930  SetCatcsetc 17327
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 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-rep 5154  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441  ax-cnex 10582  ax-resscn 10583  ax-1cn 10584  ax-icn 10585  ax-addcl 10586  ax-addrcl 10587  ax-mulcl 10588  ax-mulrcl 10589  ax-mulcom 10590  ax-addass 10591  ax-mulass 10592  ax-distr 10593  ax-i2m1 10594  ax-1ne0 10595  ax-1rid 10596  ax-rnegex 10597  ax-rrecex 10598  ax-cnre 10599  ax-pre-lttri 10600  ax-pre-lttrn 10601  ax-pre-ltadd 10602  ax-pre-mulgt0 10603
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-nel 3092  df-ral 3111  df-rex 3112  df-reu 3113  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-pss 3900  df-nul 4244  df-if 4426  df-pw 4499  df-sn 4526  df-pr 4528  df-tp 4530  df-op 4532  df-uni 4801  df-int 4839  df-iun 4883  df-br 5031  df-opab 5093  df-mpt 5111  df-tr 5137  df-id 5425  df-eprel 5430  df-po 5438  df-so 5439  df-fr 5478  df-we 5480  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-pred 6116  df-ord 6162  df-on 6163  df-lim 6164  df-suc 6165  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-f1 6329  df-fo 6330  df-f1o 6331  df-fv 6332  df-riota 7093  df-ov 7138  df-oprab 7139  df-mpo 7140  df-om 7561  df-1st 7671  df-2nd 7672  df-wrecs 7930  df-recs 7991  df-rdg 8029  df-1o 8085  df-oadd 8089  df-er 8272  df-map 8391  df-en 8493  df-dom 8494  df-sdom 8495  df-fin 8496  df-pnf 10666  df-mnf 10667  df-xr 10668  df-ltxr 10669  df-le 10670  df-sub 10861  df-neg 10862  df-nn 11626  df-2 11688  df-3 11689  df-4 11690  df-5 11691  df-6 11692  df-7 11693  df-8 11694  df-9 11695  df-n0 11886  df-z 11970  df-dec 12087  df-uz 12232  df-fz 12886  df-struct 16477  df-ndx 16478  df-slot 16479  df-base 16481  df-sets 16482  df-ress 16483  df-hom 16581  df-cco 16582  df-homf 16933  df-comf 16934  df-setc 17328
This theorem is referenced by:  funcsetcres2  17345
  Copyright terms: Public domain W3C validator