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

Theorem fucval 17675
Description: Value of the functor category. (Contributed by Mario Carneiro, 6-Jan-2017.)
Hypotheses
Ref Expression
fucval.q 𝑄 = (𝐶 FuncCat 𝐷)
fucval.b 𝐵 = (𝐶 Func 𝐷)
fucval.n 𝑁 = (𝐶 Nat 𝐷)
fucval.a 𝐴 = (Base‘𝐶)
fucval.o · = (comp‘𝐷)
fucval.c (𝜑𝐶 ∈ Cat)
fucval.d (𝜑𝐷 ∈ Cat)
fucval.x (𝜑 = (𝑣 ∈ (𝐵 × 𝐵), 𝐵(1st𝑣) / 𝑓(2nd𝑣) / 𝑔(𝑏 ∈ (𝑔𝑁), 𝑎 ∈ (𝑓𝑁𝑔) ↦ (𝑥𝐴 ↦ ((𝑏𝑥)(⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩ · ((1st)‘𝑥))(𝑎𝑥))))))
Assertion
Ref Expression
fucval (𝜑𝑄 = {⟨(Base‘ndx), 𝐵⟩, ⟨(Hom ‘ndx), 𝑁⟩, ⟨(comp‘ndx), ⟩})
Distinct variable groups:   𝑣,,𝐵   𝑎,𝑏,𝑓,𝑔,,𝑣,𝑥,𝜑   𝐶,𝑎,𝑏,𝑓,𝑔,,𝑣,𝑥   𝐷,𝑎,𝑏,𝑓,𝑔,,𝑣,𝑥
Allowed substitution hints:   𝐴(𝑥,𝑣,𝑓,𝑔,,𝑎,𝑏)   𝐵(𝑥,𝑓,𝑔,𝑎,𝑏)   𝑄(𝑥,𝑣,𝑓,𝑔,,𝑎,𝑏)   (𝑥,𝑣,𝑓,𝑔,,𝑎,𝑏)   · (𝑥,𝑣,𝑓,𝑔,,𝑎,𝑏)   𝑁(𝑥,𝑣,𝑓,𝑔,,𝑎,𝑏)

Proof of Theorem fucval
Dummy variables 𝑡 𝑢 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fucval.q . 2 𝑄 = (𝐶 FuncCat 𝐷)
2 df-fuc 17660 . . . 4 FuncCat = (𝑡 ∈ Cat, 𝑢 ∈ Cat ↦ {⟨(Base‘ndx), (𝑡 Func 𝑢)⟩, ⟨(Hom ‘ndx), (𝑡 Nat 𝑢)⟩, ⟨(comp‘ndx), (𝑣 ∈ ((𝑡 Func 𝑢) × (𝑡 Func 𝑢)), ∈ (𝑡 Func 𝑢) ↦ (1st𝑣) / 𝑓(2nd𝑣) / 𝑔(𝑏 ∈ (𝑔(𝑡 Nat 𝑢)), 𝑎 ∈ (𝑓(𝑡 Nat 𝑢)𝑔) ↦ (𝑥 ∈ (Base‘𝑡) ↦ ((𝑏𝑥)(⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩(comp‘𝑢)((1st)‘𝑥))(𝑎𝑥)))))⟩})
32a1i 11 . . 3 (𝜑 → FuncCat = (𝑡 ∈ Cat, 𝑢 ∈ Cat ↦ {⟨(Base‘ndx), (𝑡 Func 𝑢)⟩, ⟨(Hom ‘ndx), (𝑡 Nat 𝑢)⟩, ⟨(comp‘ndx), (𝑣 ∈ ((𝑡 Func 𝑢) × (𝑡 Func 𝑢)), ∈ (𝑡 Func 𝑢) ↦ (1st𝑣) / 𝑓(2nd𝑣) / 𝑔(𝑏 ∈ (𝑔(𝑡 Nat 𝑢)), 𝑎 ∈ (𝑓(𝑡 Nat 𝑢)𝑔) ↦ (𝑥 ∈ (Base‘𝑡) ↦ ((𝑏𝑥)(⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩(comp‘𝑢)((1st)‘𝑥))(𝑎𝑥)))))⟩}))
4 simprl 768 . . . . . . 7 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → 𝑡 = 𝐶)
5 simprr 770 . . . . . . 7 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → 𝑢 = 𝐷)
64, 5oveq12d 7293 . . . . . 6 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → (𝑡 Func 𝑢) = (𝐶 Func 𝐷))
7 fucval.b . . . . . 6 𝐵 = (𝐶 Func 𝐷)
86, 7eqtr4di 2796 . . . . 5 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → (𝑡 Func 𝑢) = 𝐵)
98opeq2d 4811 . . . 4 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → ⟨(Base‘ndx), (𝑡 Func 𝑢)⟩ = ⟨(Base‘ndx), 𝐵⟩)
104, 5oveq12d 7293 . . . . . 6 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → (𝑡 Nat 𝑢) = (𝐶 Nat 𝐷))
11 fucval.n . . . . . 6 𝑁 = (𝐶 Nat 𝐷)
1210, 11eqtr4di 2796 . . . . 5 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → (𝑡 Nat 𝑢) = 𝑁)
1312opeq2d 4811 . . . 4 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → ⟨(Hom ‘ndx), (𝑡 Nat 𝑢)⟩ = ⟨(Hom ‘ndx), 𝑁⟩)
148sqxpeqd 5621 . . . . . . 7 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → ((𝑡 Func 𝑢) × (𝑡 Func 𝑢)) = (𝐵 × 𝐵))
1512oveqd 7292 . . . . . . . . . 10 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → (𝑔(𝑡 Nat 𝑢)) = (𝑔𝑁))
1612oveqd 7292 . . . . . . . . . 10 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → (𝑓(𝑡 Nat 𝑢)𝑔) = (𝑓𝑁𝑔))
174fveq2d 6778 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → (Base‘𝑡) = (Base‘𝐶))
18 fucval.a . . . . . . . . . . . 12 𝐴 = (Base‘𝐶)
1917, 18eqtr4di 2796 . . . . . . . . . . 11 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → (Base‘𝑡) = 𝐴)
205fveq2d 6778 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → (comp‘𝑢) = (comp‘𝐷))
21 fucval.o . . . . . . . . . . . . . 14 · = (comp‘𝐷)
2220, 21eqtr4di 2796 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → (comp‘𝑢) = · )
2322oveqd 7292 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → (⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩(comp‘𝑢)((1st)‘𝑥)) = (⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩ · ((1st)‘𝑥)))
2423oveqd 7292 . . . . . . . . . . 11 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → ((𝑏𝑥)(⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩(comp‘𝑢)((1st)‘𝑥))(𝑎𝑥)) = ((𝑏𝑥)(⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩ · ((1st)‘𝑥))(𝑎𝑥)))
2519, 24mpteq12dv 5165 . . . . . . . . . 10 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → (𝑥 ∈ (Base‘𝑡) ↦ ((𝑏𝑥)(⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩(comp‘𝑢)((1st)‘𝑥))(𝑎𝑥))) = (𝑥𝐴 ↦ ((𝑏𝑥)(⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩ · ((1st)‘𝑥))(𝑎𝑥))))
2615, 16, 25mpoeq123dv 7350 . . . . . . . . 9 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → (𝑏 ∈ (𝑔(𝑡 Nat 𝑢)), 𝑎 ∈ (𝑓(𝑡 Nat 𝑢)𝑔) ↦ (𝑥 ∈ (Base‘𝑡) ↦ ((𝑏𝑥)(⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩(comp‘𝑢)((1st)‘𝑥))(𝑎𝑥)))) = (𝑏 ∈ (𝑔𝑁), 𝑎 ∈ (𝑓𝑁𝑔) ↦ (𝑥𝐴 ↦ ((𝑏𝑥)(⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩ · ((1st)‘𝑥))(𝑎𝑥)))))
2726csbeq2dv 3839 . . . . . . . 8 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → (2nd𝑣) / 𝑔(𝑏 ∈ (𝑔(𝑡 Nat 𝑢)), 𝑎 ∈ (𝑓(𝑡 Nat 𝑢)𝑔) ↦ (𝑥 ∈ (Base‘𝑡) ↦ ((𝑏𝑥)(⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩(comp‘𝑢)((1st)‘𝑥))(𝑎𝑥)))) = (2nd𝑣) / 𝑔(𝑏 ∈ (𝑔𝑁), 𝑎 ∈ (𝑓𝑁𝑔) ↦ (𝑥𝐴 ↦ ((𝑏𝑥)(⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩ · ((1st)‘𝑥))(𝑎𝑥)))))
2827csbeq2dv 3839 . . . . . . 7 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → (1st𝑣) / 𝑓(2nd𝑣) / 𝑔(𝑏 ∈ (𝑔(𝑡 Nat 𝑢)), 𝑎 ∈ (𝑓(𝑡 Nat 𝑢)𝑔) ↦ (𝑥 ∈ (Base‘𝑡) ↦ ((𝑏𝑥)(⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩(comp‘𝑢)((1st)‘𝑥))(𝑎𝑥)))) = (1st𝑣) / 𝑓(2nd𝑣) / 𝑔(𝑏 ∈ (𝑔𝑁), 𝑎 ∈ (𝑓𝑁𝑔) ↦ (𝑥𝐴 ↦ ((𝑏𝑥)(⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩ · ((1st)‘𝑥))(𝑎𝑥)))))
2914, 8, 28mpoeq123dv 7350 . . . . . 6 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → (𝑣 ∈ ((𝑡 Func 𝑢) × (𝑡 Func 𝑢)), ∈ (𝑡 Func 𝑢) ↦ (1st𝑣) / 𝑓(2nd𝑣) / 𝑔(𝑏 ∈ (𝑔(𝑡 Nat 𝑢)), 𝑎 ∈ (𝑓(𝑡 Nat 𝑢)𝑔) ↦ (𝑥 ∈ (Base‘𝑡) ↦ ((𝑏𝑥)(⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩(comp‘𝑢)((1st)‘𝑥))(𝑎𝑥))))) = (𝑣 ∈ (𝐵 × 𝐵), 𝐵(1st𝑣) / 𝑓(2nd𝑣) / 𝑔(𝑏 ∈ (𝑔𝑁), 𝑎 ∈ (𝑓𝑁𝑔) ↦ (𝑥𝐴 ↦ ((𝑏𝑥)(⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩ · ((1st)‘𝑥))(𝑎𝑥))))))
30 fucval.x . . . . . . 7 (𝜑 = (𝑣 ∈ (𝐵 × 𝐵), 𝐵(1st𝑣) / 𝑓(2nd𝑣) / 𝑔(𝑏 ∈ (𝑔𝑁), 𝑎 ∈ (𝑓𝑁𝑔) ↦ (𝑥𝐴 ↦ ((𝑏𝑥)(⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩ · ((1st)‘𝑥))(𝑎𝑥))))))
3130adantr 481 . . . . . 6 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → = (𝑣 ∈ (𝐵 × 𝐵), 𝐵(1st𝑣) / 𝑓(2nd𝑣) / 𝑔(𝑏 ∈ (𝑔𝑁), 𝑎 ∈ (𝑓𝑁𝑔) ↦ (𝑥𝐴 ↦ ((𝑏𝑥)(⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩ · ((1st)‘𝑥))(𝑎𝑥))))))
3229, 31eqtr4d 2781 . . . . 5 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → (𝑣 ∈ ((𝑡 Func 𝑢) × (𝑡 Func 𝑢)), ∈ (𝑡 Func 𝑢) ↦ (1st𝑣) / 𝑓(2nd𝑣) / 𝑔(𝑏 ∈ (𝑔(𝑡 Nat 𝑢)), 𝑎 ∈ (𝑓(𝑡 Nat 𝑢)𝑔) ↦ (𝑥 ∈ (Base‘𝑡) ↦ ((𝑏𝑥)(⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩(comp‘𝑢)((1st)‘𝑥))(𝑎𝑥))))) = )
3332opeq2d 4811 . . . 4 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → ⟨(comp‘ndx), (𝑣 ∈ ((𝑡 Func 𝑢) × (𝑡 Func 𝑢)), ∈ (𝑡 Func 𝑢) ↦ (1st𝑣) / 𝑓(2nd𝑣) / 𝑔(𝑏 ∈ (𝑔(𝑡 Nat 𝑢)), 𝑎 ∈ (𝑓(𝑡 Nat 𝑢)𝑔) ↦ (𝑥 ∈ (Base‘𝑡) ↦ ((𝑏𝑥)(⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩(comp‘𝑢)((1st)‘𝑥))(𝑎𝑥)))))⟩ = ⟨(comp‘ndx), ⟩)
349, 13, 33tpeq123d 4684 . . 3 ((𝜑 ∧ (𝑡 = 𝐶𝑢 = 𝐷)) → {⟨(Base‘ndx), (𝑡 Func 𝑢)⟩, ⟨(Hom ‘ndx), (𝑡 Nat 𝑢)⟩, ⟨(comp‘ndx), (𝑣 ∈ ((𝑡 Func 𝑢) × (𝑡 Func 𝑢)), ∈ (𝑡 Func 𝑢) ↦ (1st𝑣) / 𝑓(2nd𝑣) / 𝑔(𝑏 ∈ (𝑔(𝑡 Nat 𝑢)), 𝑎 ∈ (𝑓(𝑡 Nat 𝑢)𝑔) ↦ (𝑥 ∈ (Base‘𝑡) ↦ ((𝑏𝑥)(⟨((1st𝑓)‘𝑥), ((1st𝑔)‘𝑥)⟩(comp‘𝑢)((1st)‘𝑥))(𝑎𝑥)))))⟩} = {⟨(Base‘ndx), 𝐵⟩, ⟨(Hom ‘ndx), 𝑁⟩, ⟨(comp‘ndx), ⟩})
35 fucval.c . . 3 (𝜑𝐶 ∈ Cat)
36 fucval.d . . 3 (𝜑𝐷 ∈ Cat)
37 tpex 7597 . . . 4 {⟨(Base‘ndx), 𝐵⟩, ⟨(Hom ‘ndx), 𝑁⟩, ⟨(comp‘ndx), ⟩} ∈ V
3837a1i 11 . . 3 (𝜑 → {⟨(Base‘ndx), 𝐵⟩, ⟨(Hom ‘ndx), 𝑁⟩, ⟨(comp‘ndx), ⟩} ∈ V)
393, 34, 35, 36, 38ovmpod 7425 . 2 (𝜑 → (𝐶 FuncCat 𝐷) = {⟨(Base‘ndx), 𝐵⟩, ⟨(Hom ‘ndx), 𝑁⟩, ⟨(comp‘ndx), ⟩})
401, 39eqtrid 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  csb 3832  {ctp 4565  cop 4567  cmpt 5157   × cxp 5587  cfv 6433  (class class class)co 7275  cmpo 7277  1st c1st 7829  2nd c2nd 7830  ndxcnx 16894  Basecbs 16912  Hom chom 16973  compcco 16974  Catccat 17373   Func cfunc 17569   Nat cnat 17657   FuncCat cfuc 17658
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-ov 7278  df-oprab 7279  df-mpo 7280  df-fuc 17660
This theorem is referenced by:  fuccofval  17676  fucbas  17677  fuchom  17678  fuchomOLD  17679  fucpropd  17695  catcfuccl  17834  catcfucclOLD  17835
  Copyright terms: Public domain W3C validator