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

Theorem uncf2 18190
Description: Value of the uncurry functor on a morphism. (Contributed by Mario Carneiro, 13-Jan-2017.)
Hypotheses
Ref Expression
uncfval.g 𝐹 = (⟨“𝐶𝐷𝐸”⟩ uncurryF 𝐺)
uncfval.c (𝜑𝐷 ∈ Cat)
uncfval.d (𝜑𝐸 ∈ Cat)
uncfval.f (𝜑𝐺 ∈ (𝐶 Func (𝐷 FuncCat 𝐸)))
uncf1.a 𝐴 = (Base‘𝐶)
uncf1.b 𝐵 = (Base‘𝐷)
uncf1.x (𝜑𝑋𝐴)
uncf1.y (𝜑𝑌𝐵)
uncf2.h 𝐻 = (Hom ‘𝐶)
uncf2.j 𝐽 = (Hom ‘𝐷)
uncf2.z (𝜑𝑍𝐴)
uncf2.w (𝜑𝑊𝐵)
uncf2.r (𝜑𝑅 ∈ (𝑋𝐻𝑍))
uncf2.s (𝜑𝑆 ∈ (𝑌𝐽𝑊))
Assertion
Ref Expression
uncf2 (𝜑 → (𝑅(⟨𝑋, 𝑌⟩(2nd𝐹)⟨𝑍, 𝑊⟩)𝑆) = ((((𝑋(2nd𝐺)𝑍)‘𝑅)‘𝑊)(⟨((1st ‘((1st𝐺)‘𝑋))‘𝑌), ((1st ‘((1st𝐺)‘𝑋))‘𝑊)⟩(comp‘𝐸)((1st ‘((1st𝐺)‘𝑍))‘𝑊))((𝑌(2nd ‘((1st𝐺)‘𝑋))𝑊)‘𝑆)))

Proof of Theorem uncf2
StepHypRef Expression
1 uncfval.g . . . . . . 7 𝐹 = (⟨“𝐶𝐷𝐸”⟩ uncurryF 𝐺)
2 uncfval.c . . . . . . 7 (𝜑𝐷 ∈ Cat)
3 uncfval.d . . . . . . 7 (𝜑𝐸 ∈ Cat)
4 uncfval.f . . . . . . 7 (𝜑𝐺 ∈ (𝐶 Func (𝐷 FuncCat 𝐸)))
51, 2, 3, 4uncfval 18187 . . . . . 6 (𝜑𝐹 = ((𝐷 evalF 𝐸) ∘func ((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷))))
65fveq2d 6896 . . . . 5 (𝜑 → (2nd𝐹) = (2nd ‘((𝐷 evalF 𝐸) ∘func ((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))))
76oveqd 7426 . . . 4 (𝜑 → (⟨𝑋, 𝑌⟩(2nd𝐹)⟨𝑍, 𝑊⟩) = (⟨𝑋, 𝑌⟩(2nd ‘((𝐷 evalF 𝐸) ∘func ((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷))))⟨𝑍, 𝑊⟩))
87oveqd 7426 . . 3 (𝜑 → (𝑅(⟨𝑋, 𝑌⟩(2nd𝐹)⟨𝑍, 𝑊⟩)𝑆) = (𝑅(⟨𝑋, 𝑌⟩(2nd ‘((𝐷 evalF 𝐸) ∘func ((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷))))⟨𝑍, 𝑊⟩)𝑆))
9 df-ov 7412 . . . 4 (𝑅(⟨𝑋, 𝑌⟩(2nd ‘((𝐷 evalF 𝐸) ∘func ((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷))))⟨𝑍, 𝑊⟩)𝑆) = ((⟨𝑋, 𝑌⟩(2nd ‘((𝐷 evalF 𝐸) ∘func ((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷))))⟨𝑍, 𝑊⟩)‘⟨𝑅, 𝑆⟩)
10 eqid 2733 . . . . . 6 (𝐶 ×c 𝐷) = (𝐶 ×c 𝐷)
11 uncf1.a . . . . . 6 𝐴 = (Base‘𝐶)
12 uncf1.b . . . . . 6 𝐵 = (Base‘𝐷)
1310, 11, 12xpcbas 18130 . . . . 5 (𝐴 × 𝐵) = (Base‘(𝐶 ×c 𝐷))
14 eqid 2733 . . . . . 6 ((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)) = ((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷))
15 eqid 2733 . . . . . 6 ((𝐷 FuncCat 𝐸) ×c 𝐷) = ((𝐷 FuncCat 𝐸) ×c 𝐷)
16 funcrcl 17813 . . . . . . . . . 10 (𝐺 ∈ (𝐶 Func (𝐷 FuncCat 𝐸)) → (𝐶 ∈ Cat ∧ (𝐷 FuncCat 𝐸) ∈ Cat))
174, 16syl 17 . . . . . . . . 9 (𝜑 → (𝐶 ∈ Cat ∧ (𝐷 FuncCat 𝐸) ∈ Cat))
1817simpld 496 . . . . . . . 8 (𝜑𝐶 ∈ Cat)
19 eqid 2733 . . . . . . . 8 (𝐶 1stF 𝐷) = (𝐶 1stF 𝐷)
2010, 18, 2, 191stfcl 18149 . . . . . . 7 (𝜑 → (𝐶 1stF 𝐷) ∈ ((𝐶 ×c 𝐷) Func 𝐶))
2120, 4cofucl 17838 . . . . . 6 (𝜑 → (𝐺func (𝐶 1stF 𝐷)) ∈ ((𝐶 ×c 𝐷) Func (𝐷 FuncCat 𝐸)))
22 eqid 2733 . . . . . . 7 (𝐶 2ndF 𝐷) = (𝐶 2ndF 𝐷)
2310, 18, 2, 222ndfcl 18150 . . . . . 6 (𝜑 → (𝐶 2ndF 𝐷) ∈ ((𝐶 ×c 𝐷) Func 𝐷))
2414, 15, 21, 23prfcl 18155 . . . . 5 (𝜑 → ((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)) ∈ ((𝐶 ×c 𝐷) Func ((𝐷 FuncCat 𝐸) ×c 𝐷)))
25 eqid 2733 . . . . . 6 (𝐷 evalF 𝐸) = (𝐷 evalF 𝐸)
26 eqid 2733 . . . . . 6 (𝐷 FuncCat 𝐸) = (𝐷 FuncCat 𝐸)
2725, 26, 2, 3evlfcl 18175 . . . . 5 (𝜑 → (𝐷 evalF 𝐸) ∈ (((𝐷 FuncCat 𝐸) ×c 𝐷) Func 𝐸))
28 uncf1.x . . . . . 6 (𝜑𝑋𝐴)
29 uncf1.y . . . . . 6 (𝜑𝑌𝐵)
3028, 29opelxpd 5716 . . . . 5 (𝜑 → ⟨𝑋, 𝑌⟩ ∈ (𝐴 × 𝐵))
31 uncf2.z . . . . . 6 (𝜑𝑍𝐴)
32 uncf2.w . . . . . 6 (𝜑𝑊𝐵)
3331, 32opelxpd 5716 . . . . 5 (𝜑 → ⟨𝑍, 𝑊⟩ ∈ (𝐴 × 𝐵))
34 eqid 2733 . . . . 5 (Hom ‘(𝐶 ×c 𝐷)) = (Hom ‘(𝐶 ×c 𝐷))
35 uncf2.r . . . . . . 7 (𝜑𝑅 ∈ (𝑋𝐻𝑍))
36 uncf2.s . . . . . . 7 (𝜑𝑆 ∈ (𝑌𝐽𝑊))
3735, 36opelxpd 5716 . . . . . 6 (𝜑 → ⟨𝑅, 𝑆⟩ ∈ ((𝑋𝐻𝑍) × (𝑌𝐽𝑊)))
38 uncf2.h . . . . . . 7 𝐻 = (Hom ‘𝐶)
39 uncf2.j . . . . . . 7 𝐽 = (Hom ‘𝐷)
4010, 11, 12, 38, 39, 28, 29, 31, 32, 34xpchom2 18138 . . . . . 6 (𝜑 → (⟨𝑋, 𝑌⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑍, 𝑊⟩) = ((𝑋𝐻𝑍) × (𝑌𝐽𝑊)))
4137, 40eleqtrrd 2837 . . . . 5 (𝜑 → ⟨𝑅, 𝑆⟩ ∈ (⟨𝑋, 𝑌⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑍, 𝑊⟩))
4213, 24, 27, 30, 33, 34, 41cofu2 17836 . . . 4 (𝜑 → ((⟨𝑋, 𝑌⟩(2nd ‘((𝐷 evalF 𝐸) ∘func ((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷))))⟨𝑍, 𝑊⟩)‘⟨𝑅, 𝑆⟩) = ((((1st ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))‘⟨𝑋, 𝑌⟩)(2nd ‘(𝐷 evalF 𝐸))((1st ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))‘⟨𝑍, 𝑊⟩))‘((⟨𝑋, 𝑌⟩(2nd ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))⟨𝑍, 𝑊⟩)‘⟨𝑅, 𝑆⟩)))
439, 42eqtrid 2785 . . 3 (𝜑 → (𝑅(⟨𝑋, 𝑌⟩(2nd ‘((𝐷 evalF 𝐸) ∘func ((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷))))⟨𝑍, 𝑊⟩)𝑆) = ((((1st ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))‘⟨𝑋, 𝑌⟩)(2nd ‘(𝐷 evalF 𝐸))((1st ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))‘⟨𝑍, 𝑊⟩))‘((⟨𝑋, 𝑌⟩(2nd ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))⟨𝑍, 𝑊⟩)‘⟨𝑅, 𝑆⟩)))
448, 43eqtrd 2773 . 2 (𝜑 → (𝑅(⟨𝑋, 𝑌⟩(2nd𝐹)⟨𝑍, 𝑊⟩)𝑆) = ((((1st ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))‘⟨𝑋, 𝑌⟩)(2nd ‘(𝐷 evalF 𝐸))((1st ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))‘⟨𝑍, 𝑊⟩))‘((⟨𝑋, 𝑌⟩(2nd ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))⟨𝑍, 𝑊⟩)‘⟨𝑅, 𝑆⟩)))
4514, 13, 34, 21, 23, 30prf1 18152 . . . . . 6 (𝜑 → ((1st ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))‘⟨𝑋, 𝑌⟩) = ⟨((1st ‘(𝐺func (𝐶 1stF 𝐷)))‘⟨𝑋, 𝑌⟩), ((1st ‘(𝐶 2ndF 𝐷))‘⟨𝑋, 𝑌⟩)⟩)
4613, 20, 4, 30cofu1 17834 . . . . . . . 8 (𝜑 → ((1st ‘(𝐺func (𝐶 1stF 𝐷)))‘⟨𝑋, 𝑌⟩) = ((1st𝐺)‘((1st ‘(𝐶 1stF 𝐷))‘⟨𝑋, 𝑌⟩)))
4710, 13, 34, 18, 2, 19, 301stf1 18144 . . . . . . . . . 10 (𝜑 → ((1st ‘(𝐶 1stF 𝐷))‘⟨𝑋, 𝑌⟩) = (1st ‘⟨𝑋, 𝑌⟩))
48 op1stg 7987 . . . . . . . . . . 11 ((𝑋𝐴𝑌𝐵) → (1st ‘⟨𝑋, 𝑌⟩) = 𝑋)
4928, 29, 48syl2anc 585 . . . . . . . . . 10 (𝜑 → (1st ‘⟨𝑋, 𝑌⟩) = 𝑋)
5047, 49eqtrd 2773 . . . . . . . . 9 (𝜑 → ((1st ‘(𝐶 1stF 𝐷))‘⟨𝑋, 𝑌⟩) = 𝑋)
5150fveq2d 6896 . . . . . . . 8 (𝜑 → ((1st𝐺)‘((1st ‘(𝐶 1stF 𝐷))‘⟨𝑋, 𝑌⟩)) = ((1st𝐺)‘𝑋))
5246, 51eqtrd 2773 . . . . . . 7 (𝜑 → ((1st ‘(𝐺func (𝐶 1stF 𝐷)))‘⟨𝑋, 𝑌⟩) = ((1st𝐺)‘𝑋))
5310, 13, 34, 18, 2, 22, 302ndf1 18147 . . . . . . . 8 (𝜑 → ((1st ‘(𝐶 2ndF 𝐷))‘⟨𝑋, 𝑌⟩) = (2nd ‘⟨𝑋, 𝑌⟩))
54 op2ndg 7988 . . . . . . . . 9 ((𝑋𝐴𝑌𝐵) → (2nd ‘⟨𝑋, 𝑌⟩) = 𝑌)
5528, 29, 54syl2anc 585 . . . . . . . 8 (𝜑 → (2nd ‘⟨𝑋, 𝑌⟩) = 𝑌)
5653, 55eqtrd 2773 . . . . . . 7 (𝜑 → ((1st ‘(𝐶 2ndF 𝐷))‘⟨𝑋, 𝑌⟩) = 𝑌)
5752, 56opeq12d 4882 . . . . . 6 (𝜑 → ⟨((1st ‘(𝐺func (𝐶 1stF 𝐷)))‘⟨𝑋, 𝑌⟩), ((1st ‘(𝐶 2ndF 𝐷))‘⟨𝑋, 𝑌⟩)⟩ = ⟨((1st𝐺)‘𝑋), 𝑌⟩)
5845, 57eqtrd 2773 . . . . 5 (𝜑 → ((1st ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))‘⟨𝑋, 𝑌⟩) = ⟨((1st𝐺)‘𝑋), 𝑌⟩)
5914, 13, 34, 21, 23, 33prf1 18152 . . . . . 6 (𝜑 → ((1st ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))‘⟨𝑍, 𝑊⟩) = ⟨((1st ‘(𝐺func (𝐶 1stF 𝐷)))‘⟨𝑍, 𝑊⟩), ((1st ‘(𝐶 2ndF 𝐷))‘⟨𝑍, 𝑊⟩)⟩)
6013, 20, 4, 33cofu1 17834 . . . . . . . 8 (𝜑 → ((1st ‘(𝐺func (𝐶 1stF 𝐷)))‘⟨𝑍, 𝑊⟩) = ((1st𝐺)‘((1st ‘(𝐶 1stF 𝐷))‘⟨𝑍, 𝑊⟩)))
6110, 13, 34, 18, 2, 19, 331stf1 18144 . . . . . . . . . 10 (𝜑 → ((1st ‘(𝐶 1stF 𝐷))‘⟨𝑍, 𝑊⟩) = (1st ‘⟨𝑍, 𝑊⟩))
62 op1stg 7987 . . . . . . . . . . 11 ((𝑍𝐴𝑊𝐵) → (1st ‘⟨𝑍, 𝑊⟩) = 𝑍)
6331, 32, 62syl2anc 585 . . . . . . . . . 10 (𝜑 → (1st ‘⟨𝑍, 𝑊⟩) = 𝑍)
6461, 63eqtrd 2773 . . . . . . . . 9 (𝜑 → ((1st ‘(𝐶 1stF 𝐷))‘⟨𝑍, 𝑊⟩) = 𝑍)
6564fveq2d 6896 . . . . . . . 8 (𝜑 → ((1st𝐺)‘((1st ‘(𝐶 1stF 𝐷))‘⟨𝑍, 𝑊⟩)) = ((1st𝐺)‘𝑍))
6660, 65eqtrd 2773 . . . . . . 7 (𝜑 → ((1st ‘(𝐺func (𝐶 1stF 𝐷)))‘⟨𝑍, 𝑊⟩) = ((1st𝐺)‘𝑍))
6710, 13, 34, 18, 2, 22, 332ndf1 18147 . . . . . . . 8 (𝜑 → ((1st ‘(𝐶 2ndF 𝐷))‘⟨𝑍, 𝑊⟩) = (2nd ‘⟨𝑍, 𝑊⟩))
68 op2ndg 7988 . . . . . . . . 9 ((𝑍𝐴𝑊𝐵) → (2nd ‘⟨𝑍, 𝑊⟩) = 𝑊)
6931, 32, 68syl2anc 585 . . . . . . . 8 (𝜑 → (2nd ‘⟨𝑍, 𝑊⟩) = 𝑊)
7067, 69eqtrd 2773 . . . . . . 7 (𝜑 → ((1st ‘(𝐶 2ndF 𝐷))‘⟨𝑍, 𝑊⟩) = 𝑊)
7166, 70opeq12d 4882 . . . . . 6 (𝜑 → ⟨((1st ‘(𝐺func (𝐶 1stF 𝐷)))‘⟨𝑍, 𝑊⟩), ((1st ‘(𝐶 2ndF 𝐷))‘⟨𝑍, 𝑊⟩)⟩ = ⟨((1st𝐺)‘𝑍), 𝑊⟩)
7259, 71eqtrd 2773 . . . . 5 (𝜑 → ((1st ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))‘⟨𝑍, 𝑊⟩) = ⟨((1st𝐺)‘𝑍), 𝑊⟩)
7358, 72oveq12d 7427 . . . 4 (𝜑 → (((1st ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))‘⟨𝑋, 𝑌⟩)(2nd ‘(𝐷 evalF 𝐸))((1st ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))‘⟨𝑍, 𝑊⟩)) = (⟨((1st𝐺)‘𝑋), 𝑌⟩(2nd ‘(𝐷 evalF 𝐸))⟨((1st𝐺)‘𝑍), 𝑊⟩))
7414, 13, 34, 21, 23, 30, 33, 41prf2 18154 . . . . 5 (𝜑 → ((⟨𝑋, 𝑌⟩(2nd ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))⟨𝑍, 𝑊⟩)‘⟨𝑅, 𝑆⟩) = ⟨((⟨𝑋, 𝑌⟩(2nd ‘(𝐺func (𝐶 1stF 𝐷)))⟨𝑍, 𝑊⟩)‘⟨𝑅, 𝑆⟩), ((⟨𝑋, 𝑌⟩(2nd ‘(𝐶 2ndF 𝐷))⟨𝑍, 𝑊⟩)‘⟨𝑅, 𝑆⟩)⟩)
7513, 20, 4, 30, 33, 34, 41cofu2 17836 . . . . . . 7 (𝜑 → ((⟨𝑋, 𝑌⟩(2nd ‘(𝐺func (𝐶 1stF 𝐷)))⟨𝑍, 𝑊⟩)‘⟨𝑅, 𝑆⟩) = ((((1st ‘(𝐶 1stF 𝐷))‘⟨𝑋, 𝑌⟩)(2nd𝐺)((1st ‘(𝐶 1stF 𝐷))‘⟨𝑍, 𝑊⟩))‘((⟨𝑋, 𝑌⟩(2nd ‘(𝐶 1stF 𝐷))⟨𝑍, 𝑊⟩)‘⟨𝑅, 𝑆⟩)))
7650, 64oveq12d 7427 . . . . . . . 8 (𝜑 → (((1st ‘(𝐶 1stF 𝐷))‘⟨𝑋, 𝑌⟩)(2nd𝐺)((1st ‘(𝐶 1stF 𝐷))‘⟨𝑍, 𝑊⟩)) = (𝑋(2nd𝐺)𝑍))
7710, 13, 34, 18, 2, 19, 30, 331stf2 18145 . . . . . . . . . 10 (𝜑 → (⟨𝑋, 𝑌⟩(2nd ‘(𝐶 1stF 𝐷))⟨𝑍, 𝑊⟩) = (1st ↾ (⟨𝑋, 𝑌⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑍, 𝑊⟩)))
7877fveq1d 6894 . . . . . . . . 9 (𝜑 → ((⟨𝑋, 𝑌⟩(2nd ‘(𝐶 1stF 𝐷))⟨𝑍, 𝑊⟩)‘⟨𝑅, 𝑆⟩) = ((1st ↾ (⟨𝑋, 𝑌⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑍, 𝑊⟩))‘⟨𝑅, 𝑆⟩))
7941fvresd 6912 . . . . . . . . 9 (𝜑 → ((1st ↾ (⟨𝑋, 𝑌⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑍, 𝑊⟩))‘⟨𝑅, 𝑆⟩) = (1st ‘⟨𝑅, 𝑆⟩))
80 op1stg 7987 . . . . . . . . . 10 ((𝑅 ∈ (𝑋𝐻𝑍) ∧ 𝑆 ∈ (𝑌𝐽𝑊)) → (1st ‘⟨𝑅, 𝑆⟩) = 𝑅)
8135, 36, 80syl2anc 585 . . . . . . . . 9 (𝜑 → (1st ‘⟨𝑅, 𝑆⟩) = 𝑅)
8278, 79, 813eqtrd 2777 . . . . . . . 8 (𝜑 → ((⟨𝑋, 𝑌⟩(2nd ‘(𝐶 1stF 𝐷))⟨𝑍, 𝑊⟩)‘⟨𝑅, 𝑆⟩) = 𝑅)
8376, 82fveq12d 6899 . . . . . . 7 (𝜑 → ((((1st ‘(𝐶 1stF 𝐷))‘⟨𝑋, 𝑌⟩)(2nd𝐺)((1st ‘(𝐶 1stF 𝐷))‘⟨𝑍, 𝑊⟩))‘((⟨𝑋, 𝑌⟩(2nd ‘(𝐶 1stF 𝐷))⟨𝑍, 𝑊⟩)‘⟨𝑅, 𝑆⟩)) = ((𝑋(2nd𝐺)𝑍)‘𝑅))
8475, 83eqtrd 2773 . . . . . 6 (𝜑 → ((⟨𝑋, 𝑌⟩(2nd ‘(𝐺func (𝐶 1stF 𝐷)))⟨𝑍, 𝑊⟩)‘⟨𝑅, 𝑆⟩) = ((𝑋(2nd𝐺)𝑍)‘𝑅))
8510, 13, 34, 18, 2, 22, 30, 332ndf2 18148 . . . . . . . 8 (𝜑 → (⟨𝑋, 𝑌⟩(2nd ‘(𝐶 2ndF 𝐷))⟨𝑍, 𝑊⟩) = (2nd ↾ (⟨𝑋, 𝑌⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑍, 𝑊⟩)))
8685fveq1d 6894 . . . . . . 7 (𝜑 → ((⟨𝑋, 𝑌⟩(2nd ‘(𝐶 2ndF 𝐷))⟨𝑍, 𝑊⟩)‘⟨𝑅, 𝑆⟩) = ((2nd ↾ (⟨𝑋, 𝑌⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑍, 𝑊⟩))‘⟨𝑅, 𝑆⟩))
8741fvresd 6912 . . . . . . 7 (𝜑 → ((2nd ↾ (⟨𝑋, 𝑌⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑍, 𝑊⟩))‘⟨𝑅, 𝑆⟩) = (2nd ‘⟨𝑅, 𝑆⟩))
88 op2ndg 7988 . . . . . . . 8 ((𝑅 ∈ (𝑋𝐻𝑍) ∧ 𝑆 ∈ (𝑌𝐽𝑊)) → (2nd ‘⟨𝑅, 𝑆⟩) = 𝑆)
8935, 36, 88syl2anc 585 . . . . . . 7 (𝜑 → (2nd ‘⟨𝑅, 𝑆⟩) = 𝑆)
9086, 87, 893eqtrd 2777 . . . . . 6 (𝜑 → ((⟨𝑋, 𝑌⟩(2nd ‘(𝐶 2ndF 𝐷))⟨𝑍, 𝑊⟩)‘⟨𝑅, 𝑆⟩) = 𝑆)
9184, 90opeq12d 4882 . . . . 5 (𝜑 → ⟨((⟨𝑋, 𝑌⟩(2nd ‘(𝐺func (𝐶 1stF 𝐷)))⟨𝑍, 𝑊⟩)‘⟨𝑅, 𝑆⟩), ((⟨𝑋, 𝑌⟩(2nd ‘(𝐶 2ndF 𝐷))⟨𝑍, 𝑊⟩)‘⟨𝑅, 𝑆⟩)⟩ = ⟨((𝑋(2nd𝐺)𝑍)‘𝑅), 𝑆⟩)
9274, 91eqtrd 2773 . . . 4 (𝜑 → ((⟨𝑋, 𝑌⟩(2nd ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))⟨𝑍, 𝑊⟩)‘⟨𝑅, 𝑆⟩) = ⟨((𝑋(2nd𝐺)𝑍)‘𝑅), 𝑆⟩)
9373, 92fveq12d 6899 . . 3 (𝜑 → ((((1st ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))‘⟨𝑋, 𝑌⟩)(2nd ‘(𝐷 evalF 𝐸))((1st ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))‘⟨𝑍, 𝑊⟩))‘((⟨𝑋, 𝑌⟩(2nd ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))⟨𝑍, 𝑊⟩)‘⟨𝑅, 𝑆⟩)) = ((⟨((1st𝐺)‘𝑋), 𝑌⟩(2nd ‘(𝐷 evalF 𝐸))⟨((1st𝐺)‘𝑍), 𝑊⟩)‘⟨((𝑋(2nd𝐺)𝑍)‘𝑅), 𝑆⟩))
94 df-ov 7412 . . 3 (((𝑋(2nd𝐺)𝑍)‘𝑅)(⟨((1st𝐺)‘𝑋), 𝑌⟩(2nd ‘(𝐷 evalF 𝐸))⟨((1st𝐺)‘𝑍), 𝑊⟩)𝑆) = ((⟨((1st𝐺)‘𝑋), 𝑌⟩(2nd ‘(𝐷 evalF 𝐸))⟨((1st𝐺)‘𝑍), 𝑊⟩)‘⟨((𝑋(2nd𝐺)𝑍)‘𝑅), 𝑆⟩)
9593, 94eqtr4di 2791 . 2 (𝜑 → ((((1st ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))‘⟨𝑋, 𝑌⟩)(2nd ‘(𝐷 evalF 𝐸))((1st ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))‘⟨𝑍, 𝑊⟩))‘((⟨𝑋, 𝑌⟩(2nd ‘((𝐺func (𝐶 1stF 𝐷)) ⟨,⟩F (𝐶 2ndF 𝐷)))⟨𝑍, 𝑊⟩)‘⟨𝑅, 𝑆⟩)) = (((𝑋(2nd𝐺)𝑍)‘𝑅)(⟨((1st𝐺)‘𝑋), 𝑌⟩(2nd ‘(𝐷 evalF 𝐸))⟨((1st𝐺)‘𝑍), 𝑊⟩)𝑆))
96 eqid 2733 . . 3 (comp‘𝐸) = (comp‘𝐸)
97 eqid 2733 . . 3 (𝐷 Nat 𝐸) = (𝐷 Nat 𝐸)
9826fucbas 17912 . . . . 5 (𝐷 Func 𝐸) = (Base‘(𝐷 FuncCat 𝐸))
99 relfunc 17812 . . . . . 6 Rel (𝐶 Func (𝐷 FuncCat 𝐸))
100 1st2ndbr 8028 . . . . . 6 ((Rel (𝐶 Func (𝐷 FuncCat 𝐸)) ∧ 𝐺 ∈ (𝐶 Func (𝐷 FuncCat 𝐸))) → (1st𝐺)(𝐶 Func (𝐷 FuncCat 𝐸))(2nd𝐺))
10199, 4, 100sylancr 588 . . . . 5 (𝜑 → (1st𝐺)(𝐶 Func (𝐷 FuncCat 𝐸))(2nd𝐺))
10211, 98, 101funcf1 17816 . . . 4 (𝜑 → (1st𝐺):𝐴⟶(𝐷 Func 𝐸))
103102, 28ffvelcdmd 7088 . . 3 (𝜑 → ((1st𝐺)‘𝑋) ∈ (𝐷 Func 𝐸))
104102, 31ffvelcdmd 7088 . . 3 (𝜑 → ((1st𝐺)‘𝑍) ∈ (𝐷 Func 𝐸))
105 eqid 2733 . . 3 (⟨((1st𝐺)‘𝑋), 𝑌⟩(2nd ‘(𝐷 evalF 𝐸))⟨((1st𝐺)‘𝑍), 𝑊⟩) = (⟨((1st𝐺)‘𝑋), 𝑌⟩(2nd ‘(𝐷 evalF 𝐸))⟨((1st𝐺)‘𝑍), 𝑊⟩)
10626, 97fuchom 17913 . . . . 5 (𝐷 Nat 𝐸) = (Hom ‘(𝐷 FuncCat 𝐸))
10711, 38, 106, 101, 28, 31funcf2 17818 . . . 4 (𝜑 → (𝑋(2nd𝐺)𝑍):(𝑋𝐻𝑍)⟶(((1st𝐺)‘𝑋)(𝐷 Nat 𝐸)((1st𝐺)‘𝑍)))
108107, 35ffvelcdmd 7088 . . 3 (𝜑 → ((𝑋(2nd𝐺)𝑍)‘𝑅) ∈ (((1st𝐺)‘𝑋)(𝐷 Nat 𝐸)((1st𝐺)‘𝑍)))
10925, 2, 3, 12, 39, 96, 97, 103, 104, 29, 32, 105, 108, 36evlf2val 18172 . 2 (𝜑 → (((𝑋(2nd𝐺)𝑍)‘𝑅)(⟨((1st𝐺)‘𝑋), 𝑌⟩(2nd ‘(𝐷 evalF 𝐸))⟨((1st𝐺)‘𝑍), 𝑊⟩)𝑆) = ((((𝑋(2nd𝐺)𝑍)‘𝑅)‘𝑊)(⟨((1st ‘((1st𝐺)‘𝑋))‘𝑌), ((1st ‘((1st𝐺)‘𝑋))‘𝑊)⟩(comp‘𝐸)((1st ‘((1st𝐺)‘𝑍))‘𝑊))((𝑌(2nd ‘((1st𝐺)‘𝑋))𝑊)‘𝑆)))
11044, 95, 1093eqtrd 2777 1 (𝜑 → (𝑅(⟨𝑋, 𝑌⟩(2nd𝐹)⟨𝑍, 𝑊⟩)𝑆) = ((((𝑋(2nd𝐺)𝑍)‘𝑅)‘𝑊)(⟨((1st ‘((1st𝐺)‘𝑋))‘𝑌), ((1st ‘((1st𝐺)‘𝑋))‘𝑊)⟩(comp‘𝐸)((1st ‘((1st𝐺)‘𝑍))‘𝑊))((𝑌(2nd ‘((1st𝐺)‘𝑋))𝑊)‘𝑆)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 397   = wceq 1542  wcel 2107  cop 4635   class class class wbr 5149   × cxp 5675  cres 5679  Rel wrel 5682  cfv 6544  (class class class)co 7409  1st c1st 7973  2nd c2nd 7974  ⟨“cs3 14793  Basecbs 17144  Hom chom 17208  compcco 17209  Catccat 17608   Func cfunc 17804  func ccofu 17806   Nat cnat 17892   FuncCat cfuc 17893   ×c cxpc 18120   1stF c1stf 18121   2ndF c2ndf 18122   ⟨,⟩F cprf 18123   evalF cevlf 18162   uncurryF cuncf 18164
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-rep 5286  ax-sep 5300  ax-nul 5307  ax-pow 5364  ax-pr 5428  ax-un 7725  ax-cnex 11166  ax-resscn 11167  ax-1cn 11168  ax-icn 11169  ax-addcl 11170  ax-addrcl 11171  ax-mulcl 11172  ax-mulrcl 11173  ax-mulcom 11174  ax-addass 11175  ax-mulass 11176  ax-distr 11177  ax-i2m1 11178  ax-1ne0 11179  ax-1rid 11180  ax-rnegex 11181  ax-rrecex 11182  ax-cnre 11183  ax-pre-lttri 11184  ax-pre-lttrn 11185  ax-pre-ltadd 11186  ax-pre-mulgt0 11187
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-rmo 3377  df-reu 3378  df-rab 3434  df-v 3477  df-sbc 3779  df-csb 3895  df-dif 3952  df-un 3954  df-in 3956  df-ss 3966  df-pss 3968  df-nul 4324  df-if 4530  df-pw 4605  df-sn 4630  df-pr 4632  df-tp 4634  df-op 4636  df-uni 4910  df-int 4952  df-iun 5000  df-br 5150  df-opab 5212  df-mpt 5233  df-tr 5267  df-id 5575  df-eprel 5581  df-po 5589  df-so 5590  df-fr 5632  df-we 5634  df-xp 5683  df-rel 5684  df-cnv 5685  df-co 5686  df-dm 5687  df-rn 5688  df-res 5689  df-ima 5690  df-pred 6301  df-ord 6368  df-on 6369  df-lim 6370  df-suc 6371  df-iota 6496  df-fun 6546  df-fn 6547  df-f 6548  df-f1 6549  df-fo 6550  df-f1o 6551  df-fv 6552  df-riota 7365  df-ov 7412  df-oprab 7413  df-mpo 7414  df-om 7856  df-1st 7975  df-2nd 7976  df-frecs 8266  df-wrecs 8297  df-recs 8371  df-rdg 8410  df-1o 8466  df-er 8703  df-map 8822  df-ixp 8892  df-en 8940  df-dom 8941  df-sdom 8942  df-fin 8943  df-card 9934  df-pnf 11250  df-mnf 11251  df-xr 11252  df-ltxr 11253  df-le 11254  df-sub 11446  df-neg 11447  df-nn 12213  df-2 12275  df-3 12276  df-4 12277  df-5 12278  df-6 12279  df-7 12280  df-8 12281  df-9 12282  df-n0 12473  df-z 12559  df-dec 12678  df-uz 12823  df-fz 13485  df-fzo 13628  df-hash 14291  df-word 14465  df-concat 14521  df-s1 14546  df-s2 14799  df-s3 14800  df-struct 17080  df-slot 17115  df-ndx 17127  df-base 17145  df-hom 17221  df-cco 17222  df-cat 17612  df-cid 17613  df-func 17808  df-cofu 17810  df-nat 17894  df-fuc 17895  df-xpc 18124  df-1stf 18125  df-2ndf 18126  df-prf 18127  df-evlf 18166  df-uncf 18168
This theorem is referenced by:  curfuncf  18191  uncfcurf  18192
  Copyright terms: Public domain W3C validator