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

Theorem setcval 17792
Description: Value of the category of sets (in a universe). (Contributed by Mario Carneiro, 3-Jan-2017.)
Hypotheses
Ref Expression
setcval.c 𝐶 = (SetCat‘𝑈)
setcval.u (𝜑𝑈𝑉)
setcval.h (𝜑𝐻 = (𝑥𝑈, 𝑦𝑈 ↦ (𝑦m 𝑥)))
setcval.o (𝜑· = (𝑣 ∈ (𝑈 × 𝑈), 𝑧𝑈 ↦ (𝑔 ∈ (𝑧m (2nd𝑣)), 𝑓 ∈ ((2nd𝑣) ↑m (1st𝑣)) ↦ (𝑔𝑓))))
Assertion
Ref Expression
setcval (𝜑𝐶 = {⟨(Base‘ndx), 𝑈⟩, ⟨(Hom ‘ndx), 𝐻⟩, ⟨(comp‘ndx), · ⟩})
Distinct variable groups:   𝑓,𝑔,𝑣,𝑥,𝑦,𝑧   𝜑,𝑣,𝑥,𝑦,𝑧   𝑣,𝑈,𝑥,𝑦,𝑧
Allowed substitution hints:   𝜑(𝑓,𝑔)   𝐶(𝑥,𝑦,𝑧,𝑣,𝑓,𝑔)   · (𝑥,𝑦,𝑧,𝑣,𝑓,𝑔)   𝑈(𝑓,𝑔)   𝐻(𝑥,𝑦,𝑧,𝑣,𝑓,𝑔)   𝑉(𝑥,𝑦,𝑧,𝑣,𝑓,𝑔)

Proof of Theorem setcval
Dummy variable 𝑢 is distinct from all other variables.
StepHypRef Expression
1 setcval.c . 2 𝐶 = (SetCat‘𝑈)
2 df-setc 17791 . . 3 SetCat = (𝑢 ∈ V ↦ {⟨(Base‘ndx), 𝑢⟩, ⟨(Hom ‘ndx), (𝑥𝑢, 𝑦𝑢 ↦ (𝑦m 𝑥))⟩, ⟨(comp‘ndx), (𝑣 ∈ (𝑢 × 𝑢), 𝑧𝑢 ↦ (𝑔 ∈ (𝑧m (2nd𝑣)), 𝑓 ∈ ((2nd𝑣) ↑m (1st𝑣)) ↦ (𝑔𝑓)))⟩})
3 simpr 485 . . . . 5 ((𝜑𝑢 = 𝑈) → 𝑢 = 𝑈)
43opeq2d 4811 . . . 4 ((𝜑𝑢 = 𝑈) → ⟨(Base‘ndx), 𝑢⟩ = ⟨(Base‘ndx), 𝑈⟩)
5 eqidd 2739 . . . . . . 7 ((𝜑𝑢 = 𝑈) → (𝑦m 𝑥) = (𝑦m 𝑥))
63, 3, 5mpoeq123dv 7350 . . . . . 6 ((𝜑𝑢 = 𝑈) → (𝑥𝑢, 𝑦𝑢 ↦ (𝑦m 𝑥)) = (𝑥𝑈, 𝑦𝑈 ↦ (𝑦m 𝑥)))
7 setcval.h . . . . . . 7 (𝜑𝐻 = (𝑥𝑈, 𝑦𝑈 ↦ (𝑦m 𝑥)))
87adantr 481 . . . . . 6 ((𝜑𝑢 = 𝑈) → 𝐻 = (𝑥𝑈, 𝑦𝑈 ↦ (𝑦m 𝑥)))
96, 8eqtr4d 2781 . . . . 5 ((𝜑𝑢 = 𝑈) → (𝑥𝑢, 𝑦𝑢 ↦ (𝑦m 𝑥)) = 𝐻)
109opeq2d 4811 . . . 4 ((𝜑𝑢 = 𝑈) → ⟨(Hom ‘ndx), (𝑥𝑢, 𝑦𝑢 ↦ (𝑦m 𝑥))⟩ = ⟨(Hom ‘ndx), 𝐻⟩)
113sqxpeqd 5621 . . . . . . 7 ((𝜑𝑢 = 𝑈) → (𝑢 × 𝑢) = (𝑈 × 𝑈))
12 eqidd 2739 . . . . . . 7 ((𝜑𝑢 = 𝑈) → (𝑔 ∈ (𝑧m (2nd𝑣)), 𝑓 ∈ ((2nd𝑣) ↑m (1st𝑣)) ↦ (𝑔𝑓)) = (𝑔 ∈ (𝑧m (2nd𝑣)), 𝑓 ∈ ((2nd𝑣) ↑m (1st𝑣)) ↦ (𝑔𝑓)))
1311, 3, 12mpoeq123dv 7350 . . . . . 6 ((𝜑𝑢 = 𝑈) → (𝑣 ∈ (𝑢 × 𝑢), 𝑧𝑢 ↦ (𝑔 ∈ (𝑧m (2nd𝑣)), 𝑓 ∈ ((2nd𝑣) ↑m (1st𝑣)) ↦ (𝑔𝑓))) = (𝑣 ∈ (𝑈 × 𝑈), 𝑧𝑈 ↦ (𝑔 ∈ (𝑧m (2nd𝑣)), 𝑓 ∈ ((2nd𝑣) ↑m (1st𝑣)) ↦ (𝑔𝑓))))
14 setcval.o . . . . . . 7 (𝜑· = (𝑣 ∈ (𝑈 × 𝑈), 𝑧𝑈 ↦ (𝑔 ∈ (𝑧m (2nd𝑣)), 𝑓 ∈ ((2nd𝑣) ↑m (1st𝑣)) ↦ (𝑔𝑓))))
1514adantr 481 . . . . . 6 ((𝜑𝑢 = 𝑈) → · = (𝑣 ∈ (𝑈 × 𝑈), 𝑧𝑈 ↦ (𝑔 ∈ (𝑧m (2nd𝑣)), 𝑓 ∈ ((2nd𝑣) ↑m (1st𝑣)) ↦ (𝑔𝑓))))
1613, 15eqtr4d 2781 . . . . 5 ((𝜑𝑢 = 𝑈) → (𝑣 ∈ (𝑢 × 𝑢), 𝑧𝑢 ↦ (𝑔 ∈ (𝑧m (2nd𝑣)), 𝑓 ∈ ((2nd𝑣) ↑m (1st𝑣)) ↦ (𝑔𝑓))) = · )
1716opeq2d 4811 . . . 4 ((𝜑𝑢 = 𝑈) → ⟨(comp‘ndx), (𝑣 ∈ (𝑢 × 𝑢), 𝑧𝑢 ↦ (𝑔 ∈ (𝑧m (2nd𝑣)), 𝑓 ∈ ((2nd𝑣) ↑m (1st𝑣)) ↦ (𝑔𝑓)))⟩ = ⟨(comp‘ndx), · ⟩)
184, 10, 17tpeq123d 4684 . . 3 ((𝜑𝑢 = 𝑈) → {⟨(Base‘ndx), 𝑢⟩, ⟨(Hom ‘ndx), (𝑥𝑢, 𝑦𝑢 ↦ (𝑦m 𝑥))⟩, ⟨(comp‘ndx), (𝑣 ∈ (𝑢 × 𝑢), 𝑧𝑢 ↦ (𝑔 ∈ (𝑧m (2nd𝑣)), 𝑓 ∈ ((2nd𝑣) ↑m (1st𝑣)) ↦ (𝑔𝑓)))⟩} = {⟨(Base‘ndx), 𝑈⟩, ⟨(Hom ‘ndx), 𝐻⟩, ⟨(comp‘ndx), · ⟩})
19 setcval.u . . . 4 (𝜑𝑈𝑉)
2019elexd 3452 . . 3 (𝜑𝑈 ∈ V)
21 tpex 7597 . . . 4 {⟨(Base‘ndx), 𝑈⟩, ⟨(Hom ‘ndx), 𝐻⟩, ⟨(comp‘ndx), · ⟩} ∈ V
2221a1i 11 . . 3 (𝜑 → {⟨(Base‘ndx), 𝑈⟩, ⟨(Hom ‘ndx), 𝐻⟩, ⟨(comp‘ndx), · ⟩} ∈ V)
232, 18, 20, 22fvmptd2 6883 . 2 (𝜑 → (SetCat‘𝑈) = {⟨(Base‘ndx), 𝑈⟩, ⟨(Hom ‘ndx), 𝐻⟩, ⟨(comp‘ndx), · ⟩})
241, 23eqtrid 2790 1 (𝜑𝐶 = {⟨(Base‘ndx), 𝑈⟩, ⟨(Hom ‘ndx), 𝐻⟩, ⟨(comp‘ndx), · ⟩})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396   = wceq 1539  wcel 2106  Vcvv 3432  {ctp 4565  cop 4567   × cxp 5587  ccom 5593  cfv 6433  (class class class)co 7275  cmpo 7277  1st c1st 7829  2nd c2nd 7830  m cmap 8615  ndxcnx 16894  Basecbs 16912  Hom chom 16973  compcco 16974  SetCatcsetc 17790
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 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-tp 4566  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-iota 6391  df-fun 6435  df-fv 6441  df-oprab 7279  df-mpo 7280  df-setc 17791
This theorem is referenced by:  setcbas  17793  setchomfval  17794  setccofval  17797
  Copyright terms: Public domain W3C validator