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

Theorem estrres 18088
Description: Any restriction of a category (as an extensible structure which is an unordered triple of ordered pairs) is an unordered triple of ordered pairs. (Contributed by AV, 15-Mar-2020.) (Revised by AV, 3-Jul-2022.)
Hypotheses
Ref Expression
estrres.c (𝜑𝐶 = {⟨(Base‘ndx), 𝐵⟩, ⟨(Hom ‘ndx), 𝐻⟩, ⟨(comp‘ndx), · ⟩})
estrres.b (𝜑𝐵𝑉)
estrres.h (𝜑𝐻𝑋)
estrres.x (𝜑·𝑌)
estrres.g (𝜑𝐺𝑊)
estrres.u (𝜑𝐴𝐵)
Assertion
Ref Expression
estrres (𝜑 → ((𝐶s 𝐴) sSet ⟨(Hom ‘ndx), 𝐺⟩) = {⟨(Base‘ndx), 𝐴⟩, ⟨(Hom ‘ndx), 𝐺⟩, ⟨(comp‘ndx), · ⟩})

Proof of Theorem estrres
StepHypRef Expression
1 ovex 7439 . . 3 (𝐶s 𝐴) ∈ V
2 estrres.g . . 3 (𝜑𝐺𝑊)
3 setsval 17097 . . 3 (((𝐶s 𝐴) ∈ V ∧ 𝐺𝑊) → ((𝐶s 𝐴) sSet ⟨(Hom ‘ndx), 𝐺⟩) = (((𝐶s 𝐴) ↾ (V ∖ {(Hom ‘ndx)})) ∪ {⟨(Hom ‘ndx), 𝐺⟩}))
41, 2, 3sylancr 588 . 2 (𝜑 → ((𝐶s 𝐴) sSet ⟨(Hom ‘ndx), 𝐺⟩) = (((𝐶s 𝐴) ↾ (V ∖ {(Hom ‘ndx)})) ∪ {⟨(Hom ‘ndx), 𝐺⟩}))
5 eqid 2733 . . . . 5 (𝐶s 𝐴) = (𝐶s 𝐴)
6 eqid 2733 . . . . 5 (Base‘𝐶) = (Base‘𝐶)
7 eqid 2733 . . . . 5 (Base‘ndx) = (Base‘ndx)
8 estrres.c . . . . . 6 (𝜑𝐶 = {⟨(Base‘ndx), 𝐵⟩, ⟨(Hom ‘ndx), 𝐻⟩, ⟨(comp‘ndx), · ⟩})
9 tpex 7731 . . . . . 6 {⟨(Base‘ndx), 𝐵⟩, ⟨(Hom ‘ndx), 𝐻⟩, ⟨(comp‘ndx), · ⟩} ∈ V
108, 9eqeltrdi 2842 . . . . 5 (𝜑𝐶 ∈ V)
11 fvex 6902 . . . . . . . . 9 (Base‘ndx) ∈ V
12 fvex 6902 . . . . . . . . 9 (Hom ‘ndx) ∈ V
13 fvex 6902 . . . . . . . . 9 (comp‘ndx) ∈ V
1411, 12, 133pm3.2i 1340 . . . . . . . 8 ((Base‘ndx) ∈ V ∧ (Hom ‘ndx) ∈ V ∧ (comp‘ndx) ∈ V)
1514a1i 11 . . . . . . 7 (𝜑 → ((Base‘ndx) ∈ V ∧ (Hom ‘ndx) ∈ V ∧ (comp‘ndx) ∈ V))
16 estrres.b . . . . . . 7 (𝜑𝐵𝑉)
17 estrres.h . . . . . . 7 (𝜑𝐻𝑋)
18 estrres.x . . . . . . 7 (𝜑·𝑌)
19 slotsbhcdif 17357 . . . . . . . 8 ((Base‘ndx) ≠ (Hom ‘ndx) ∧ (Base‘ndx) ≠ (comp‘ndx) ∧ (Hom ‘ndx) ≠ (comp‘ndx))
2019a1i 11 . . . . . . 7 (𝜑 → ((Base‘ndx) ≠ (Hom ‘ndx) ∧ (Base‘ndx) ≠ (comp‘ndx) ∧ (Hom ‘ndx) ≠ (comp‘ndx)))
21 funtpg 6601 . . . . . . 7 ((((Base‘ndx) ∈ V ∧ (Hom ‘ndx) ∈ V ∧ (comp‘ndx) ∈ V) ∧ (𝐵𝑉𝐻𝑋·𝑌) ∧ ((Base‘ndx) ≠ (Hom ‘ndx) ∧ (Base‘ndx) ≠ (comp‘ndx) ∧ (Hom ‘ndx) ≠ (comp‘ndx))) → Fun {⟨(Base‘ndx), 𝐵⟩, ⟨(Hom ‘ndx), 𝐻⟩, ⟨(comp‘ndx), · ⟩})
2215, 16, 17, 18, 20, 21syl131anc 1384 . . . . . 6 (𝜑 → Fun {⟨(Base‘ndx), 𝐵⟩, ⟨(Hom ‘ndx), 𝐻⟩, ⟨(comp‘ndx), · ⟩})
238funeqd 6568 . . . . . 6 (𝜑 → (Fun 𝐶 ↔ Fun {⟨(Base‘ndx), 𝐵⟩, ⟨(Hom ‘ndx), 𝐻⟩, ⟨(comp‘ndx), · ⟩}))
2422, 23mpbird 257 . . . . 5 (𝜑 → Fun 𝐶)
258, 16, 17, 18estrreslem2 18087 . . . . 5 (𝜑 → (Base‘ndx) ∈ dom 𝐶)
26 estrres.u . . . . . 6 (𝜑𝐴𝐵)
278, 16estrreslem1 18085 . . . . . 6 (𝜑𝐵 = (Base‘𝐶))
2826, 27sseqtrd 4022 . . . . 5 (𝜑𝐴 ⊆ (Base‘𝐶))
295, 6, 7, 10, 24, 25, 28ressval3d 17188 . . . 4 (𝜑 → (𝐶s 𝐴) = (𝐶 sSet ⟨(Base‘ndx), 𝐴⟩))
3029reseq1d 5979 . . 3 (𝜑 → ((𝐶s 𝐴) ↾ (V ∖ {(Hom ‘ndx)})) = ((𝐶 sSet ⟨(Base‘ndx), 𝐴⟩) ↾ (V ∖ {(Hom ‘ndx)})))
3130uneq1d 4162 . 2 (𝜑 → (((𝐶s 𝐴) ↾ (V ∖ {(Hom ‘ndx)})) ∪ {⟨(Hom ‘ndx), 𝐺⟩}) = (((𝐶 sSet ⟨(Base‘ndx), 𝐴⟩) ↾ (V ∖ {(Hom ‘ndx)})) ∪ {⟨(Hom ‘ndx), 𝐺⟩}))
3216, 26ssexd 5324 . . . . . . 7 (𝜑𝐴 ∈ V)
33 setsval 17097 . . . . . . 7 ((𝐶 ∈ V ∧ 𝐴 ∈ V) → (𝐶 sSet ⟨(Base‘ndx), 𝐴⟩) = ((𝐶 ↾ (V ∖ {(Base‘ndx)})) ∪ {⟨(Base‘ndx), 𝐴⟩}))
3410, 32, 33syl2anc 585 . . . . . 6 (𝜑 → (𝐶 sSet ⟨(Base‘ndx), 𝐴⟩) = ((𝐶 ↾ (V ∖ {(Base‘ndx)})) ∪ {⟨(Base‘ndx), 𝐴⟩}))
3534reseq1d 5979 . . . . 5 (𝜑 → ((𝐶 sSet ⟨(Base‘ndx), 𝐴⟩) ↾ (V ∖ {(Hom ‘ndx)})) = (((𝐶 ↾ (V ∖ {(Base‘ndx)})) ∪ {⟨(Base‘ndx), 𝐴⟩}) ↾ (V ∖ {(Hom ‘ndx)})))
36 fvexd 6904 . . . . . . . . 9 (𝜑 → (Hom ‘ndx) ∈ V)
37 fvexd 6904 . . . . . . . . 9 (𝜑 → (comp‘ndx) ∈ V)
3817elexd 3495 . . . . . . . . 9 (𝜑𝐻 ∈ V)
3918elexd 3495 . . . . . . . . 9 (𝜑· ∈ V)
40 simp1 1137 . . . . . . . . . . 11 (((Base‘ndx) ≠ (Hom ‘ndx) ∧ (Base‘ndx) ≠ (comp‘ndx) ∧ (Hom ‘ndx) ≠ (comp‘ndx)) → (Base‘ndx) ≠ (Hom ‘ndx))
4140necomd 2997 . . . . . . . . . 10 (((Base‘ndx) ≠ (Hom ‘ndx) ∧ (Base‘ndx) ≠ (comp‘ndx) ∧ (Hom ‘ndx) ≠ (comp‘ndx)) → (Hom ‘ndx) ≠ (Base‘ndx))
4219, 41mp1i 13 . . . . . . . . 9 (𝜑 → (Hom ‘ndx) ≠ (Base‘ndx))
43 simp2 1138 . . . . . . . . . . 11 (((Base‘ndx) ≠ (Hom ‘ndx) ∧ (Base‘ndx) ≠ (comp‘ndx) ∧ (Hom ‘ndx) ≠ (comp‘ndx)) → (Base‘ndx) ≠ (comp‘ndx))
4443necomd 2997 . . . . . . . . . 10 (((Base‘ndx) ≠ (Hom ‘ndx) ∧ (Base‘ndx) ≠ (comp‘ndx) ∧ (Hom ‘ndx) ≠ (comp‘ndx)) → (comp‘ndx) ≠ (Base‘ndx))
4519, 44mp1i 13 . . . . . . . . 9 (𝜑 → (comp‘ndx) ≠ (Base‘ndx))
468, 36, 37, 38, 39, 42, 45tpres 7199 . . . . . . . 8 (𝜑 → (𝐶 ↾ (V ∖ {(Base‘ndx)})) = {⟨(Hom ‘ndx), 𝐻⟩, ⟨(comp‘ndx), · ⟩})
4746uneq1d 4162 . . . . . . 7 (𝜑 → ((𝐶 ↾ (V ∖ {(Base‘ndx)})) ∪ {⟨(Base‘ndx), 𝐴⟩}) = ({⟨(Hom ‘ndx), 𝐻⟩, ⟨(comp‘ndx), · ⟩} ∪ {⟨(Base‘ndx), 𝐴⟩}))
48 df-tp 4633 . . . . . . 7 {⟨(Hom ‘ndx), 𝐻⟩, ⟨(comp‘ndx), · ⟩, ⟨(Base‘ndx), 𝐴⟩} = ({⟨(Hom ‘ndx), 𝐻⟩, ⟨(comp‘ndx), · ⟩} ∪ {⟨(Base‘ndx), 𝐴⟩})
4947, 48eqtr4di 2791 . . . . . 6 (𝜑 → ((𝐶 ↾ (V ∖ {(Base‘ndx)})) ∪ {⟨(Base‘ndx), 𝐴⟩}) = {⟨(Hom ‘ndx), 𝐻⟩, ⟨(comp‘ndx), · ⟩, ⟨(Base‘ndx), 𝐴⟩})
50 fvexd 6904 . . . . . 6 (𝜑 → (Base‘ndx) ∈ V)
51 simp3 1139 . . . . . . . 8 (((Base‘ndx) ≠ (Hom ‘ndx) ∧ (Base‘ndx) ≠ (comp‘ndx) ∧ (Hom ‘ndx) ≠ (comp‘ndx)) → (Hom ‘ndx) ≠ (comp‘ndx))
5251necomd 2997 . . . . . . 7 (((Base‘ndx) ≠ (Hom ‘ndx) ∧ (Base‘ndx) ≠ (comp‘ndx) ∧ (Hom ‘ndx) ≠ (comp‘ndx)) → (comp‘ndx) ≠ (Hom ‘ndx))
5319, 52mp1i 13 . . . . . 6 (𝜑 → (comp‘ndx) ≠ (Hom ‘ndx))
5419, 40mp1i 13 . . . . . 6 (𝜑 → (Base‘ndx) ≠ (Hom ‘ndx))
5549, 37, 50, 39, 32, 53, 54tpres 7199 . . . . 5 (𝜑 → (((𝐶 ↾ (V ∖ {(Base‘ndx)})) ∪ {⟨(Base‘ndx), 𝐴⟩}) ↾ (V ∖ {(Hom ‘ndx)})) = {⟨(comp‘ndx), · ⟩, ⟨(Base‘ndx), 𝐴⟩})
5635, 55eqtrd 2773 . . . 4 (𝜑 → ((𝐶 sSet ⟨(Base‘ndx), 𝐴⟩) ↾ (V ∖ {(Hom ‘ndx)})) = {⟨(comp‘ndx), · ⟩, ⟨(Base‘ndx), 𝐴⟩})
5756uneq1d 4162 . . 3 (𝜑 → (((𝐶 sSet ⟨(Base‘ndx), 𝐴⟩) ↾ (V ∖ {(Hom ‘ndx)})) ∪ {⟨(Hom ‘ndx), 𝐺⟩}) = ({⟨(comp‘ndx), · ⟩, ⟨(Base‘ndx), 𝐴⟩} ∪ {⟨(Hom ‘ndx), 𝐺⟩}))
58 df-tp 4633 . . . 4 {⟨(comp‘ndx), · ⟩, ⟨(Base‘ndx), 𝐴⟩, ⟨(Hom ‘ndx), 𝐺⟩} = ({⟨(comp‘ndx), · ⟩, ⟨(Base‘ndx), 𝐴⟩} ∪ {⟨(Hom ‘ndx), 𝐺⟩})
59 tprot 4753 . . . 4 {⟨(comp‘ndx), · ⟩, ⟨(Base‘ndx), 𝐴⟩, ⟨(Hom ‘ndx), 𝐺⟩} = {⟨(Base‘ndx), 𝐴⟩, ⟨(Hom ‘ndx), 𝐺⟩, ⟨(comp‘ndx), · ⟩}
6058, 59eqtr3i 2763 . . 3 ({⟨(comp‘ndx), · ⟩, ⟨(Base‘ndx), 𝐴⟩} ∪ {⟨(Hom ‘ndx), 𝐺⟩}) = {⟨(Base‘ndx), 𝐴⟩, ⟨(Hom ‘ndx), 𝐺⟩, ⟨(comp‘ndx), · ⟩}
6157, 60eqtrdi 2789 . 2 (𝜑 → (((𝐶 sSet ⟨(Base‘ndx), 𝐴⟩) ↾ (V ∖ {(Hom ‘ndx)})) ∪ {⟨(Hom ‘ndx), 𝐺⟩}) = {⟨(Base‘ndx), 𝐴⟩, ⟨(Hom ‘ndx), 𝐺⟩, ⟨(comp‘ndx), · ⟩})
624, 31, 613eqtrd 2777 1 (𝜑 → ((𝐶s 𝐴) sSet ⟨(Hom ‘ndx), 𝐺⟩) = {⟨(Base‘ndx), 𝐴⟩, ⟨(Hom ‘ndx), 𝐺⟩, ⟨(comp‘ndx), · ⟩})
Colors of variables: wff setvar class
Syntax hints:  wi 4  w3a 1088   = wceq 1542  wcel 2107  wne 2941  Vcvv 3475  cdif 3945  cun 3946  wss 3948  {csn 4628  {cpr 4630  {ctp 4632  cop 4634  cres 5678  Fun wfun 6535  cfv 6541  (class class class)co 7406   sSet csts 17093  ndxcnx 17123  Basecbs 17141  s cress 17170  Hom chom 17205  compcco 17206
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2155  ax-12 2172  ax-ext 2704  ax-sep 5299  ax-nul 5306  ax-pow 5363  ax-pr 5427  ax-un 7722  ax-cnex 11163  ax-resscn 11164  ax-1cn 11165  ax-icn 11166  ax-addcl 11167  ax-addrcl 11168  ax-mulcl 11169  ax-mulrcl 11170  ax-mulcom 11171  ax-addass 11172  ax-mulass 11173  ax-distr 11174  ax-i2m1 11175  ax-1ne0 11176  ax-1rid 11177  ax-rnegex 11178  ax-rrecex 11179  ax-cnre 11180  ax-pre-lttri 11181  ax-pre-lttrn 11182  ax-pre-ltadd 11183  ax-pre-mulgt0 11184
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-3or 1089  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1783  df-nf 1787  df-sb 2069  df-mo 2535  df-eu 2564  df-clab 2711  df-cleq 2725  df-clel 2811  df-nfc 2886  df-ne 2942  df-nel 3048  df-ral 3063  df-rex 3072  df-reu 3378  df-rab 3434  df-v 3477  df-sbc 3778  df-csb 3894  df-dif 3951  df-un 3953  df-in 3955  df-ss 3965  df-pss 3967  df-nul 4323  df-if 4529  df-pw 4604  df-sn 4629  df-pr 4631  df-tp 4633  df-op 4635  df-uni 4909  df-iun 4999  df-br 5149  df-opab 5211  df-mpt 5232  df-tr 5266  df-id 5574  df-eprel 5580  df-po 5588  df-so 5589  df-fr 5631  df-we 5633  df-xp 5682  df-rel 5683  df-cnv 5684  df-co 5685  df-dm 5686  df-rn 5687  df-res 5688  df-ima 5689  df-pred 6298  df-ord 6365  df-on 6366  df-lim 6367  df-suc 6368  df-iota 6493  df-fun 6543  df-fn 6544  df-f 6545  df-f1 6546  df-fo 6547  df-f1o 6548  df-fv 6549  df-riota 7362  df-ov 7409  df-oprab 7410  df-mpo 7411  df-om 7853  df-2nd 7973  df-frecs 8263  df-wrecs 8294  df-recs 8368  df-rdg 8407  df-er 8700  df-en 8937  df-dom 8938  df-sdom 8939  df-pnf 11247  df-mnf 11248  df-xr 11249  df-ltxr 11250  df-le 11251  df-sub 11443  df-neg 11444  df-nn 12210  df-2 12272  df-3 12273  df-4 12274  df-5 12275  df-6 12276  df-7 12277  df-8 12278  df-9 12279  df-n0 12470  df-z 12556  df-dec 12675  df-sets 17094  df-slot 17112  df-ndx 17124  df-base 17142  df-ress 17171  df-hom 17218  df-cco 17219
This theorem is referenced by:  dfrngc2  46824  dfringc2  46870  rngcresringcat  46882
  Copyright terms: Public domain W3C validator