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

Theorem resssetc 18247
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 5286 . . . . . . 7 (𝜑 → 𝑉 ∈ V)
54adantr 486 . . . . . 6 ((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉)) → 𝑉 ∈ V)
6 eqid 2761 . . . . . 6 (Hom ‘𝐷) = (Hom ‘𝐷)
7 simprl 783 . . . . . 6 ((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉)) → 𝑥 ∈ 𝑉)
8 simprr 785 . . . . . 6 ((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉)) → 𝑦 ∈ 𝑉)
91, 5, 6, 7, 8setchom 18235 . . . . 5 ((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉)) → (𝑥(Hom ‘𝐷)𝑦) = (𝑦 ↑m 𝑥))
10 resssetc.c . . . . . 6 𝐶 = (SetCat‘𝑈)
112adantr 486 . . . . . 6 ((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉)) → 𝑈 ∈ 𝑊)
12 eqid 2761 . . . . . 6 (Hom ‘𝐶) = (Hom ‘𝐶)
133adantr 486 . . . . . . 7 ((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉)) → 𝑉 ⊆ 𝑈)
1413, 7sseldd 3932 . . . . . 6 ((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉)) → 𝑥 ∈ 𝑈)
1513, 8sseldd 3932 . . . . . 6 ((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉)) → 𝑦 ∈ 𝑈)
1610, 11, 12, 14, 15setchom 18235 . . . . 5 ((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉)) → (𝑥(Hom ‘𝐶)𝑦) = (𝑦 ↑m 𝑥))
17 eqid 2761 . . . . . . . 8 (𝐶 ↾s 𝑉) = (𝐶 ↾s 𝑉)
1817, 12resshom 17569 . . . . . . 7 (𝑉 ∈ V → (Hom ‘𝐶) = (Hom ‘(𝐶 ↾s 𝑉)))
194, 18syl 18 . . . . . 6 (𝜑 → (Hom ‘𝐶) = (Hom ‘(𝐶 ↾s 𝑉)))
2019oveqdr 7440 . . . . 5 ((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉)) → (𝑥(Hom ‘𝐶)𝑦) = (𝑥(Hom ‘(𝐶 ↾s 𝑉))𝑦))
219, 16, 203eqtr2rd 2803 . . . 4 ((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉)) → (𝑥(Hom ‘(𝐶 ↾s 𝑉))𝑦) = (𝑥(Hom ‘𝐷)𝑦))
2221ralrimivva 3206 . . 3 (𝜑 → ∀𝑥 ∈ 𝑉 ∀𝑦 ∈ 𝑉 (𝑥(Hom ‘(𝐶 ↾s 𝑉))𝑦) = (𝑥(Hom ‘𝐷)𝑦))
23 eqid 2761 . . . 4 (Hom ‘(𝐶 ↾s 𝑉)) = (Hom ‘(𝐶 ↾s 𝑉))
2410, 2setcbas 18233 . . . . . 6 (𝜑 → 𝑈 = (Base‘𝐶))
253, 24sseqtrd 3967 . . . . 5 (𝜑 → 𝑉 ⊆ (Base‘𝐶))
26 eqid 2761 . . . . . 6 (Base‘𝐶) = (Base‘𝐶)
2717, 26ressbas2 17396 . . . . 5 (𝑉 ⊆ (Base‘𝐶) → 𝑉 = (Base‘(𝐶 ↾s 𝑉)))
2825, 27syl 18 . . . 4 (𝜑 → 𝑉 = (Base‘(𝐶 ↾s 𝑉)))
291, 4setcbas 18233 . . . 4 (𝜑 → 𝑉 = (Base‘𝐷))
3023, 6, 28, 29homfeq 17848 . . 3 (𝜑 → ((Homf ‘(𝐶 ↾s 𝑉)) = (Homf ‘𝐷) ↔ ∀𝑥 ∈ 𝑉 ∀𝑦 ∈ 𝑉 (𝑥(Hom ‘(𝐶 ↾s 𝑉))𝑦) = (𝑥(Hom ‘𝐷)𝑦)))
3122, 30mpbird 260 . 2 (𝜑 → (Homf ‘(𝐶 ↾s 𝑉)) = (Homf ‘𝐷))
324ad2antrr 739 . . . . . . . 8 (((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑉 ∈ V)
33 eqid 2761 . . . . . . . 8 (comp‘𝐷) = (comp‘𝐷)
34 simplr1 1234 . . . . . . . 8 (((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑥 ∈ 𝑉)
35 simplr2 1235 . . . . . . . 8 (((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑦 ∈ 𝑉)
36 simplr3 1236 . . . . . . . 8 (((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑧 ∈ 𝑉)
37 simprl 783 . . . . . . . . 9 (((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦))
381, 32, 6, 34, 35elsetchom 18236 . . . . . . . . 9 (((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ↔ 𝑓:𝑥⟶𝑦))
3937, 38mpbid 235 . . . . . . . 8 (((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑓:𝑥⟶𝑦)
40 simprr 785 . . . . . . . . 9 (((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))
411, 32, 6, 35, 36elsetchom 18236 . . . . . . . . 9 (((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ↔ 𝑔:𝑦⟶𝑧))
4240, 41mpbid 235 . . . . . . . 8 (((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑔:𝑦⟶𝑧)
431, 32, 33, 34, 35, 36, 39, 42setcco 18238 . . . . . . 7 (((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → (𝑔(⟨𝑥, 𝑦⟩(comp‘𝐷)𝑧)𝑓) = (𝑔 ∘ 𝑓))
442ad2antrr 739 . . . . . . . 8 (((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑈 ∈ 𝑊)
45 eqid 2761 . . . . . . . 8 (comp‘𝐶) = (comp‘𝐶)
463ad2antrr 739 . . . . . . . . 9 (((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑉 ⊆ 𝑈)
4746, 34sseldd 3932 . . . . . . . 8 (((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑥 ∈ 𝑈)
4846, 35sseldd 3932 . . . . . . . 8 (((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑦 ∈ 𝑈)
4946, 36sseldd 3932 . . . . . . . 8 (((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → 𝑧 ∈ 𝑈)
5010, 44, 45, 47, 48, 49, 39, 42setcco 18238 . . . . . . 7 (((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → (𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓) = (𝑔 ∘ 𝑓))
5117, 45ressco 17570 . . . . . . . . . . 11 (𝑉 ∈ V → (comp‘𝐶) = (comp‘(𝐶 ↾s 𝑉)))
524, 51syl 18 . . . . . . . . . 10 (𝜑 → (comp‘𝐶) = (comp‘(𝐶 ↾s 𝑉)))
5352ad2antrr 739 . . . . . . . . 9 (((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → (comp‘𝐶) = (comp‘(𝐶 ↾s 𝑉)))
5453oveqd 7429 . . . . . . . 8 (((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → (⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧) = (⟨𝑥, 𝑦⟩(comp‘(𝐶 ↾s 𝑉))𝑧))
5554oveqd 7429 . . . . . . 7 (((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → (𝑔(⟨𝑥, 𝑦⟩(comp‘𝐶)𝑧)𝑓) = (𝑔(⟨𝑥, 𝑦⟩(comp‘(𝐶 ↾s 𝑉))𝑧)𝑓))
5643, 50, 553eqtr2d 2802 . . . . . 6 (((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) ∧ (𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))) → (𝑔(⟨𝑥, 𝑦⟩(comp‘𝐷)𝑧)𝑓) = (𝑔(⟨𝑥, 𝑦⟩(comp‘(𝐶 ↾s 𝑉))𝑧)𝑓))
5756ralrimivva 3206 . . . . 5 ((𝜑 ∧ (𝑥 ∈ 𝑉 ∧ 𝑦 ∈ 𝑉 ∧ 𝑧 ∈ 𝑉)) → ∀𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦)∀𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐷)𝑧)𝑓) = (𝑔(⟨𝑥, 𝑦⟩(comp‘(𝐶 ↾s 𝑉))𝑧)𝑓))
5857ralrimivvva 3209 . . . 4 (𝜑 → ∀𝑥 ∈ 𝑉 ∀𝑦 ∈ 𝑉 ∀𝑧 ∈ 𝑉 ∀𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦)∀𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐷)𝑧)𝑓) = (𝑔(⟨𝑥, 𝑦⟩(comp‘(𝐶 ↾s 𝑉))𝑧)𝑓))
59 eqid 2761 . . . . 5 (comp‘(𝐶 ↾s 𝑉)) = (comp‘(𝐶 ↾s 𝑉))
6031eqcomd 2767 . . . . 5 (𝜑 → (Homf ‘𝐷) = (Homf ‘(𝐶 ↾s 𝑉)))
6133, 59, 6, 29, 28, 60comfeq 17860 . . . 4 (𝜑 → ((compf‘𝐷) = (compf‘(𝐶 ↾s 𝑉)) ↔ ∀𝑥 ∈ 𝑉 ∀𝑦 ∈ 𝑉 ∀𝑧 ∈ 𝑉 ∀𝑓 ∈ (𝑥(Hom ‘𝐷)𝑦)∀𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)(𝑔(⟨𝑥, 𝑦⟩(comp‘𝐷)𝑧)𝑓) = (𝑔(⟨𝑥, 𝑦⟩(comp‘(𝐶 ↾s 𝑉))𝑧)𝑓)))
6258, 61mpbird 260 . . 3 (𝜑 → (compf‘𝐷) = (compf‘(𝐶 ↾s 𝑉)))
6362eqcomd 2767 . 2 (𝜑 → (compf‘(𝐶 ↾s 𝑉)) = (compf‘𝐷))
6431, 63jca 521 1 (𝜑 → ((Homf ‘(𝐶 ↾s 𝑉)) = (Homf ‘𝐷) ∧ (compf‘(𝐶 ↾s 𝑉)) = (compf‘𝐷)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   ∧ w3a 1103   = wceq 1570   ∈ wcel 2145  ∀wral 3077  Vcvv 3451   ⊆ wss 3899  ⟨cop 4590   ∘ ccom 5655  ⟶wf 6527  ‘cfv 6531  (class class class)co 7412   ↑m cmap 8831  Basecbs 17367   ↾s cress 17388  Hom chom 17419  compcco 17420  Homf chomf 17820  compfccomf 17821  SetCatcsetc 18230
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 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-rep 5232  ax-sep 5249  ax-nul 5260  ax-pow 5327  ax-pr 5391  ax-un 7740  ax-cnex 11237  ax-resscn 11238  ax-1cn 11239  ax-icn 11240  ax-addcl 11241  ax-addrcl 11242  ax-mulcl 11243  ax-mulrcl 11244  ax-mulcom 11245  ax-addass 11246  ax-mulass 11247  ax-distr 11248  ax-i2m1 11249  ax-1ne0 11250  ax-1rid 11251  ax-rnegex 11252  ax-rrecex 11253  ax-cnre 11254  ax-pre-lttri 11255  ax-pre-lttrn 11256  ax-pre-ltadd 11257  ax-pre-mulgt0 11258
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 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-nel 3063  df-ral 3078  df-rex 3088  df-reu 3367  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-pss 3919  df-nul 4280  df-if 4483  df-pw 4559  df-sn 4585  df-pr 4587  df-tp 4589  df-op 4591  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-tr 5213  df-id 5546  df-eprel 5551  df-po 5559  df-so 5560  df-fr 5604  df-we 5606  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-pred 6297  df-ord 6358  df-on 6359  df-lim 6360  df-suc 6361  df-iota 6487  df-fun 6533  df-fn 6534  df-f 6535  df-f1 6536  df-fo 6537  df-f1o 6538  df-fv 6539  df-riota 7369  df-ov 7415  df-oprab 7416  df-mpo 7417  df-om 7867  df-1st 7990  df-2nd 7991  df-frecs 8283  df-wrecs 8314  df-recs 8363  df-rdg 8402  df-1o 8460  df-er 8701  df-map 8833  df-en 8958  df-dom 8959  df-sdom 8960  df-fin 8961  df-pnf 11326  df-mnf 11327  df-xr 11328  df-ltxr 11329  df-le 11330  df-sub 11524  df-neg 11525  df-nn 12317  df-2 12386  df-3 12387  df-4 12388  df-5 12389  df-6 12390  df-7 12391  df-8 12392  df-9 12393  df-n0 12588  df-z 12675  df-dec 12796  df-uz 12947  df-fz 13621  df-struct 17305  df-sets 17322  df-slot 17340  df-ndx 17352  df-base 17368  df-ress 17389  df-hom 17432  df-cco 17433  df-homf 17824  df-comf 17825  df-setc 18231
This theorem is used by:  funcsetcres2  18248
  Copyright terms: Public domain W3C validator