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

Theorem fucval 18141
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 18127 . . . 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 783 . . . . . . 7 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → 𝑡 = 𝐶)
5 simprr 785 . . . . . . 7 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → 𝑢 = 𝐷)
64, 5oveq12d 7438 . . . . . 6 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → (𝑡 Func 𝑢) = (𝐶 Func 𝐷))
7 fucval.b . . . . . 6 𝐵 = (𝐶 Func 𝐷)
86, 7eqtr4di 2813 . . . . 5 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → (𝑡 Func 𝑢) = 𝐵)
98opeq2d 4846 . . . 4 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → ⟨(Base‘ndx), (𝑡 Func 𝑢)⟩ = ⟨(Base‘ndx), 𝐵⟩)
104, 5oveq12d 7438 . . . . . 6 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → (𝑡 Nat 𝑢) = (𝐶 Nat 𝐷))
11 fucval.n . . . . . 6 𝑁 = (𝐶 Nat 𝐷)
1210, 11eqtr4di 2813 . . . . 5 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → (𝑡 Nat 𝑢) = 𝑁)
1312opeq2d 4846 . . . 4 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → ⟨(Hom ‘ndx), (𝑡 Nat 𝑢)⟩ = ⟨(Hom ‘ndx), 𝑁⟩)
148sqxpeqd 5682 . . . . . . 7 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → ((𝑡 Func 𝑢) × (𝑡 Func 𝑢)) = (𝐵 × 𝐵))
1512oveqd 7437 . . . . . . . . . 10 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → (𝑔(𝑡 Nat 𝑢)ℎ) = (𝑔𝑁ℎ))
1612oveqd 7437 . . . . . . . . . 10 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → (𝑓(𝑡 Nat 𝑢)𝑔) = (𝑓𝑁𝑔))
174fveq2d 6889 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → (Base‘𝑡) = (Base‘𝐶))
18 fucval.a . . . . . . . . . . . 12 𝐴 = (Base‘𝐶)
1917, 18eqtr4di 2813 . . . . . . . . . . 11 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → (Base‘𝑡) = 𝐴)
205fveq2d 6889 . . . . . . . . . . . . . 14 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → (comp‘𝑢) = (comp‘𝐷))
21 fucval.o . . . . . . . . . . . . . 14 · = (comp‘𝐷)
2220, 21eqtr4di 2813 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → (comp‘𝑢) = · )
2322oveqd 7437 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → (⟨((1st ‘𝑓)‘𝑥), ((1st ‘𝑔)‘𝑥)⟩(comp‘𝑢)((1st ‘ℎ)‘𝑥)) = (⟨((1st ‘𝑓)‘𝑥), ((1st ‘𝑔)‘𝑥)⟩ · ((1st ‘ℎ)‘𝑥)))
2423oveqd 7437 . . . . . . . . . . 11 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → ((𝑏‘𝑥)(⟨((1st ‘𝑓)‘𝑥), ((1st ‘𝑔)‘𝑥)⟩(comp‘𝑢)((1st ‘ℎ)‘𝑥))(𝑎‘𝑥)) = ((𝑏‘𝑥)(⟨((1st ‘𝑓)‘𝑥), ((1st ‘𝑔)‘𝑥)⟩ · ((1st ‘ℎ)‘𝑥))(𝑎‘𝑥)))
2519, 24mpteq12dv 5191 . . . . . . . . . 10 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → (𝑥 ∈ (Base‘𝑡) ↦ ((𝑏‘𝑥)(⟨((1st ‘𝑓)‘𝑥), ((1st ‘𝑔)‘𝑥)⟩(comp‘𝑢)((1st ‘ℎ)‘𝑥))(𝑎‘𝑥))) = (𝑥 ∈ 𝐴 ↦ ((𝑏‘𝑥)(⟨((1st ‘𝑓)‘𝑥), ((1st ‘𝑔)‘𝑥)⟩ · ((1st ‘ℎ)‘𝑥))(𝑎‘𝑥))))
2615, 16, 25mpoeq123dv 7495 . . . . . . . . 9 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → (𝑏 ∈ (𝑔(𝑡 Nat 𝑢)ℎ), 𝑎 ∈ (𝑓(𝑡 Nat 𝑢)𝑔) ↦ (𝑥 ∈ (Base‘𝑡) ↦ ((𝑏‘𝑥)(⟨((1st ‘𝑓)‘𝑥), ((1st ‘𝑔)‘𝑥)⟩(comp‘𝑢)((1st ‘ℎ)‘𝑥))(𝑎‘𝑥)))) = (𝑏 ∈ (𝑔𝑁ℎ), 𝑎 ∈ (𝑓𝑁𝑔) ↦ (𝑥 ∈ 𝐴 ↦ ((𝑏‘𝑥)(⟨((1st ‘𝑓)‘𝑥), ((1st ‘𝑔)‘𝑥)⟩ · ((1st ‘ℎ)‘𝑥))(𝑎‘𝑥)))))
2726csbeq2dv 3853 . . . . . . . 8 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → ⦋(2nd ‘𝑣) / 𝑔⦌(𝑏 ∈ (𝑔(𝑡 Nat 𝑢)ℎ), 𝑎 ∈ (𝑓(𝑡 Nat 𝑢)𝑔) ↦ (𝑥 ∈ (Base‘𝑡) ↦ ((𝑏‘𝑥)(⟨((1st ‘𝑓)‘𝑥), ((1st ‘𝑔)‘𝑥)⟩(comp‘𝑢)((1st ‘ℎ)‘𝑥))(𝑎‘𝑥)))) = ⦋(2nd ‘𝑣) / 𝑔⦌(𝑏 ∈ (𝑔𝑁ℎ), 𝑎 ∈ (𝑓𝑁𝑔) ↦ (𝑥 ∈ 𝐴 ↦ ((𝑏‘𝑥)(⟨((1st ‘𝑓)‘𝑥), ((1st ‘𝑔)‘𝑥)⟩ · ((1st ‘ℎ)‘𝑥))(𝑎‘𝑥)))))
2827csbeq2dv 3853 . . . . . . 7 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → ⦋(1st ‘𝑣) / 𝑓⦌⦋(2nd ‘𝑣) / 𝑔⦌(𝑏 ∈ (𝑔(𝑡 Nat 𝑢)ℎ), 𝑎 ∈ (𝑓(𝑡 Nat 𝑢)𝑔) ↦ (𝑥 ∈ (Base‘𝑡) ↦ ((𝑏‘𝑥)(⟨((1st ‘𝑓)‘𝑥), ((1st ‘𝑔)‘𝑥)⟩(comp‘𝑢)((1st ‘ℎ)‘𝑥))(𝑎‘𝑥)))) = ⦋(1st ‘𝑣) / 𝑓⦌⦋(2nd ‘𝑣) / 𝑔⦌(𝑏 ∈ (𝑔𝑁ℎ), 𝑎 ∈ (𝑓𝑁𝑔) ↦ (𝑥 ∈ 𝐴 ↦ ((𝑏‘𝑥)(⟨((1st ‘𝑓)‘𝑥), ((1st ‘𝑔)‘𝑥)⟩ · ((1st ‘ℎ)‘𝑥))(𝑎‘𝑥)))))
2914, 8, 28mpoeq123dv 7495 . . . . . 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 486 . . . . . 6 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → ∙ = (𝑣 ∈ (𝐵 × 𝐵), ℎ ∈ 𝐵 ↦ ⦋(1st ‘𝑣) / 𝑓⦌⦋(2nd ‘𝑣) / 𝑔⦌(𝑏 ∈ (𝑔𝑁ℎ), 𝑎 ∈ (𝑓𝑁𝑔) ↦ (𝑥 ∈ 𝐴 ↦ ((𝑏‘𝑥)(⟨((1st ‘𝑓)‘𝑥), ((1st ‘𝑔)‘𝑥)⟩ · ((1st ‘ℎ)‘𝑥))(𝑎‘𝑥))))))
3229, 31eqtr4d 2798 . . . . 5 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → (𝑣 ∈ ((𝑡 Func 𝑢) × (𝑡 Func 𝑢)), ℎ ∈ (𝑡 Func 𝑢) ↦ ⦋(1st ‘𝑣) / 𝑓⦌⦋(2nd ‘𝑣) / 𝑔⦌(𝑏 ∈ (𝑔(𝑡 Nat 𝑢)ℎ), 𝑎 ∈ (𝑓(𝑡 Nat 𝑢)𝑔) ↦ (𝑥 ∈ (Base‘𝑡) ↦ ((𝑏‘𝑥)(⟨((1st ‘𝑓)‘𝑥), ((1st ‘𝑔)‘𝑥)⟩(comp‘𝑢)((1st ‘ℎ)‘𝑥))(𝑎‘𝑥))))) = ∙ )
3332opeq2d 4846 . . . 4 ((𝜑 ∧ (𝑡 = 𝐶 ∧ 𝑢 = 𝐷)) → ⟨(comp‘ndx), (𝑣 ∈ ((𝑡 Func 𝑢) × (𝑡 Func 𝑢)), ℎ ∈ (𝑡 Func 𝑢) ↦ ⦋(1st ‘𝑣) / 𝑓⦌⦋(2nd ‘𝑣) / 𝑔⦌(𝑏 ∈ (𝑔(𝑡 Nat 𝑢)ℎ), 𝑎 ∈ (𝑓(𝑡 Nat 𝑢)𝑔) ↦ (𝑥 ∈ (Base‘𝑡) ↦ ((𝑏‘𝑥)(⟨((1st ‘𝑓)‘𝑥), ((1st ‘𝑔)‘𝑥)⟩(comp‘𝑢)((1st ‘ℎ)‘𝑥))(𝑎‘𝑥)))))⟩ = ⟨(comp‘ndx), ∙ ⟩)
349, 13, 33tpeq123d 4705 . . 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 7762 . . . 4 {⟨(Base‘ndx), 𝐵⟩, ⟨(Hom ‘ndx), 𝑁⟩, ⟨(comp‘ndx), ∙ ⟩} ∈ V
3837a1i 11 . . 3 (𝜑 → {⟨(Base‘ndx), 𝐵⟩, ⟨(Hom ‘ndx), 𝑁⟩, ⟨(comp‘ndx), ∙ ⟩} ∈ V)
393, 34, 35, 36, 38ovmpod 7572 . 2 (𝜑 → (𝐶 FuncCat 𝐷) = {⟨(Base‘ndx), 𝐵⟩, ⟨(Hom ‘ndx), 𝑁⟩, ⟨(comp‘ndx), ∙ ⟩})
401, 39eqtrid 2807 1 (𝜑 → 𝑄 = {⟨(Base‘ndx), 𝐵⟩, ⟨(Hom ‘ndx), 𝑁⟩, ⟨(comp‘ndx), ∙ ⟩})
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1569   ∈ wcel 2144  Vcvv 3450  ⦋csb 3846  {ctp 4588  ⟨cop 4834   ↦ cmpt 5185   × cxp 5648  ‘cfv 6538  (class class class)co 7420   ∈ cmpo 7422  1st c1st 7999  2nd c2nd 8000  ndxcnx 17376  Basecbs 17392  Hom chom 17444  compcco 17445  Catccat 17843   Func cfunc 18034   Nat cnat 18124   FuncCat cfuc 18125
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-pr 5390  ax-un 7751
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-sn 4585  df-pr 4587  df-tp 4589  df-op 4835  df-uni 4867  df-br 5103  df-opab 5167  df-mpt 5186  df-id 5545  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-iota 6494  df-fun 6540  df-fv 6546  df-ov 7423  df-oprab 7424  df-mpo 7425  df-fuc 18127
This theorem is used by:  fuccofval  18142  fucbas  18143  fuchom  18144  fucpropd  18160  catcfuccl  18298
  Copyright terms: Public domain W3C validator