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

Theorem curfval 17472
Description: Value of the curry functor. (Contributed by Mario Carneiro, 12-Jan-2017.)
Hypotheses
Ref Expression
curfval.g 𝐺 = (⟨𝐶, 𝐷⟩ curryF 𝐹)
curfval.a 𝐴 = (Base‘𝐶)
curfval.c (𝜑𝐶 ∈ Cat)
curfval.d (𝜑𝐷 ∈ Cat)
curfval.f (𝜑𝐹 ∈ ((𝐶 ×c 𝐷) Func 𝐸))
curfval.b 𝐵 = (Base‘𝐷)
curfval.j 𝐽 = (Hom ‘𝐷)
curfval.1 1 = (Id‘𝐶)
curfval.h 𝐻 = (Hom ‘𝐶)
curfval.i 𝐼 = (Id‘𝐷)
Assertion
Ref Expression
curfval (𝜑𝐺 = ⟨(𝑥𝐴 ↦ ⟨(𝑦𝐵 ↦ (𝑥(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥𝐴, 𝑦𝐴 ↦ (𝑔 ∈ (𝑥𝐻𝑦) ↦ (𝑧𝐵 ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧)))))⟩)
Distinct variable groups:   𝑥,𝑔,𝑦,𝑧, 1   𝑥,𝐴,𝑦   𝐵,𝑔,𝑥,𝑦,𝑧   𝐶,𝑔,𝑥,𝑦,𝑧   𝐷,𝑔,𝑥,𝑦,𝑧   𝑔,𝐻,𝑦,𝑧   𝜑,𝑔,𝑥,𝑦,𝑧   𝑔,𝐸,𝑦,𝑧   𝑔,𝐽,𝑥   𝑔,𝐹,𝑥,𝑦,𝑧
Allowed substitution hints:   𝐴(𝑧,𝑔)   𝐸(𝑥)   𝐺(𝑥,𝑦,𝑧,𝑔)   𝐻(𝑥)   𝐼(𝑥,𝑦,𝑧,𝑔)   𝐽(𝑦,𝑧)

Proof of Theorem curfval
Dummy variables 𝑐 𝑑 𝑒 𝑓 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 curfval.g . 2 𝐺 = (⟨𝐶, 𝐷⟩ curryF 𝐹)
2 df-curf 17463 . . . 4 curryF = (𝑒 ∈ V, 𝑓 ∈ V ↦ (1st𝑒) / 𝑐(2nd𝑒) / 𝑑⟨(𝑥 ∈ (Base‘𝑐) ↦ ⟨(𝑦 ∈ (Base‘𝑑) ↦ (𝑥(1st𝑓)𝑦)), (𝑦 ∈ (Base‘𝑑), 𝑧 ∈ (Base‘𝑑) ↦ (𝑔 ∈ (𝑦(Hom ‘𝑑)𝑧) ↦ (((Id‘𝑐)‘𝑥)(⟨𝑥, 𝑦⟩(2nd𝑓)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥 ∈ (Base‘𝑐), 𝑦 ∈ (Base‘𝑐) ↦ (𝑔 ∈ (𝑥(Hom ‘𝑐)𝑦) ↦ (𝑧 ∈ (Base‘𝑑) ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝑓)⟨𝑦, 𝑧⟩)((Id‘𝑑)‘𝑧)))))⟩)
32a1i 11 . . 3 (𝜑 → curryF = (𝑒 ∈ V, 𝑓 ∈ V ↦ (1st𝑒) / 𝑐(2nd𝑒) / 𝑑⟨(𝑥 ∈ (Base‘𝑐) ↦ ⟨(𝑦 ∈ (Base‘𝑑) ↦ (𝑥(1st𝑓)𝑦)), (𝑦 ∈ (Base‘𝑑), 𝑧 ∈ (Base‘𝑑) ↦ (𝑔 ∈ (𝑦(Hom ‘𝑑)𝑧) ↦ (((Id‘𝑐)‘𝑥)(⟨𝑥, 𝑦⟩(2nd𝑓)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥 ∈ (Base‘𝑐), 𝑦 ∈ (Base‘𝑐) ↦ (𝑔 ∈ (𝑥(Hom ‘𝑐)𝑦) ↦ (𝑧 ∈ (Base‘𝑑) ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝑓)⟨𝑦, 𝑧⟩)((Id‘𝑑)‘𝑧)))))⟩))
4 fvexd 6684 . . . 4 ((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) → (1st𝑒) ∈ V)
5 simprl 769 . . . . . 6 ((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) → 𝑒 = ⟨𝐶, 𝐷⟩)
65fveq2d 6673 . . . . 5 ((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) → (1st𝑒) = (1st ‘⟨𝐶, 𝐷⟩))
7 curfval.c . . . . . . 7 (𝜑𝐶 ∈ Cat)
8 curfval.d . . . . . . 7 (𝜑𝐷 ∈ Cat)
9 op1stg 7700 . . . . . . 7 ((𝐶 ∈ Cat ∧ 𝐷 ∈ Cat) → (1st ‘⟨𝐶, 𝐷⟩) = 𝐶)
107, 8, 9syl2anc 586 . . . . . 6 (𝜑 → (1st ‘⟨𝐶, 𝐷⟩) = 𝐶)
1110adantr 483 . . . . 5 ((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) → (1st ‘⟨𝐶, 𝐷⟩) = 𝐶)
126, 11eqtrd 2856 . . . 4 ((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) → (1st𝑒) = 𝐶)
13 fvexd 6684 . . . . 5 (((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) → (2nd𝑒) ∈ V)
145adantr 483 . . . . . . 7 (((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) → 𝑒 = ⟨𝐶, 𝐷⟩)
1514fveq2d 6673 . . . . . 6 (((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) → (2nd𝑒) = (2nd ‘⟨𝐶, 𝐷⟩))
16 op2ndg 7701 . . . . . . . 8 ((𝐶 ∈ Cat ∧ 𝐷 ∈ Cat) → (2nd ‘⟨𝐶, 𝐷⟩) = 𝐷)
177, 8, 16syl2anc 586 . . . . . . 7 (𝜑 → (2nd ‘⟨𝐶, 𝐷⟩) = 𝐷)
1817ad2antrr 724 . . . . . 6 (((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) → (2nd ‘⟨𝐶, 𝐷⟩) = 𝐷)
1915, 18eqtrd 2856 . . . . 5 (((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) → (2nd𝑒) = 𝐷)
20 simplr 767 . . . . . . . . 9 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → 𝑐 = 𝐶)
2120fveq2d 6673 . . . . . . . 8 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Base‘𝑐) = (Base‘𝐶))
22 curfval.a . . . . . . . 8 𝐴 = (Base‘𝐶)
2321, 22syl6eqr 2874 . . . . . . 7 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Base‘𝑐) = 𝐴)
24 simpr 487 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → 𝑑 = 𝐷)
2524fveq2d 6673 . . . . . . . . . 10 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Base‘𝑑) = (Base‘𝐷))
26 curfval.b . . . . . . . . . 10 𝐵 = (Base‘𝐷)
2725, 26syl6eqr 2874 . . . . . . . . 9 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Base‘𝑑) = 𝐵)
28 simprr 771 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) → 𝑓 = 𝐹)
2928ad2antrr 724 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → 𝑓 = 𝐹)
3029fveq2d 6673 . . . . . . . . . 10 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (1st𝑓) = (1st𝐹))
3130oveqd 7172 . . . . . . . . 9 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑥(1st𝑓)𝑦) = (𝑥(1st𝐹)𝑦))
3227, 31mpteq12dv 5150 . . . . . . . 8 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑦 ∈ (Base‘𝑑) ↦ (𝑥(1st𝑓)𝑦)) = (𝑦𝐵 ↦ (𝑥(1st𝐹)𝑦)))
3324fveq2d 6673 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Hom ‘𝑑) = (Hom ‘𝐷))
34 curfval.j . . . . . . . . . . . 12 𝐽 = (Hom ‘𝐷)
3533, 34syl6eqr 2874 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Hom ‘𝑑) = 𝐽)
3635oveqd 7172 . . . . . . . . . 10 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑦(Hom ‘𝑑)𝑧) = (𝑦𝐽𝑧))
3729fveq2d 6673 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (2nd𝑓) = (2nd𝐹))
3837oveqd 7172 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (⟨𝑥, 𝑦⟩(2nd𝑓)⟨𝑥, 𝑧⟩) = (⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩))
3920fveq2d 6673 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Id‘𝑐) = (Id‘𝐶))
40 curfval.1 . . . . . . . . . . . . 13 1 = (Id‘𝐶)
4139, 40syl6eqr 2874 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Id‘𝑐) = 1 )
4241fveq1d 6671 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → ((Id‘𝑐)‘𝑥) = ( 1𝑥))
43 eqidd 2822 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → 𝑔 = 𝑔)
4438, 42, 43oveq123d 7176 . . . . . . . . . 10 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (((Id‘𝑐)‘𝑥)(⟨𝑥, 𝑦⟩(2nd𝑓)⟨𝑥, 𝑧⟩)𝑔) = (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔))
4536, 44mpteq12dv 5150 . . . . . . . . 9 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑔 ∈ (𝑦(Hom ‘𝑑)𝑧) ↦ (((Id‘𝑐)‘𝑥)(⟨𝑥, 𝑦⟩(2nd𝑓)⟨𝑥, 𝑧⟩)𝑔)) = (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔)))
4627, 27, 45mpoeq123dv 7228 . . . . . . . 8 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑦 ∈ (Base‘𝑑), 𝑧 ∈ (Base‘𝑑) ↦ (𝑔 ∈ (𝑦(Hom ‘𝑑)𝑧) ↦ (((Id‘𝑐)‘𝑥)(⟨𝑥, 𝑦⟩(2nd𝑓)⟨𝑥, 𝑧⟩)𝑔))) = (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔))))
4732, 46opeq12d 4810 . . . . . . 7 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → ⟨(𝑦 ∈ (Base‘𝑑) ↦ (𝑥(1st𝑓)𝑦)), (𝑦 ∈ (Base‘𝑑), 𝑧 ∈ (Base‘𝑑) ↦ (𝑔 ∈ (𝑦(Hom ‘𝑑)𝑧) ↦ (((Id‘𝑐)‘𝑥)(⟨𝑥, 𝑦⟩(2nd𝑓)⟨𝑥, 𝑧⟩)𝑔)))⟩ = ⟨(𝑦𝐵 ↦ (𝑥(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔)))⟩)
4823, 47mpteq12dv 5150 . . . . . 6 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑥 ∈ (Base‘𝑐) ↦ ⟨(𝑦 ∈ (Base‘𝑑) ↦ (𝑥(1st𝑓)𝑦)), (𝑦 ∈ (Base‘𝑑), 𝑧 ∈ (Base‘𝑑) ↦ (𝑔 ∈ (𝑦(Hom ‘𝑑)𝑧) ↦ (((Id‘𝑐)‘𝑥)(⟨𝑥, 𝑦⟩(2nd𝑓)⟨𝑥, 𝑧⟩)𝑔)))⟩) = (𝑥𝐴 ↦ ⟨(𝑦𝐵 ↦ (𝑥(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔)))⟩))
4920fveq2d 6673 . . . . . . . . . 10 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Hom ‘𝑐) = (Hom ‘𝐶))
50 curfval.h . . . . . . . . . 10 𝐻 = (Hom ‘𝐶)
5149, 50syl6eqr 2874 . . . . . . . . 9 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Hom ‘𝑐) = 𝐻)
5251oveqd 7172 . . . . . . . 8 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑥(Hom ‘𝑐)𝑦) = (𝑥𝐻𝑦))
5337oveqd 7172 . . . . . . . . . 10 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (⟨𝑥, 𝑧⟩(2nd𝑓)⟨𝑦, 𝑧⟩) = (⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩))
5424fveq2d 6673 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Id‘𝑑) = (Id‘𝐷))
55 curfval.i . . . . . . . . . . . 12 𝐼 = (Id‘𝐷)
5654, 55syl6eqr 2874 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Id‘𝑑) = 𝐼)
5756fveq1d 6671 . . . . . . . . . 10 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → ((Id‘𝑑)‘𝑧) = (𝐼𝑧))
5853, 43, 57oveq123d 7176 . . . . . . . . 9 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑔(⟨𝑥, 𝑧⟩(2nd𝑓)⟨𝑦, 𝑧⟩)((Id‘𝑑)‘𝑧)) = (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧)))
5927, 58mpteq12dv 5150 . . . . . . . 8 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑧 ∈ (Base‘𝑑) ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝑓)⟨𝑦, 𝑧⟩)((Id‘𝑑)‘𝑧))) = (𝑧𝐵 ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧))))
6052, 59mpteq12dv 5150 . . . . . . 7 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑔 ∈ (𝑥(Hom ‘𝑐)𝑦) ↦ (𝑧 ∈ (Base‘𝑑) ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝑓)⟨𝑦, 𝑧⟩)((Id‘𝑑)‘𝑧)))) = (𝑔 ∈ (𝑥𝐻𝑦) ↦ (𝑧𝐵 ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧)))))
6123, 23, 60mpoeq123dv 7228 . . . . . 6 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑥 ∈ (Base‘𝑐), 𝑦 ∈ (Base‘𝑐) ↦ (𝑔 ∈ (𝑥(Hom ‘𝑐)𝑦) ↦ (𝑧 ∈ (Base‘𝑑) ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝑓)⟨𝑦, 𝑧⟩)((Id‘𝑑)‘𝑧))))) = (𝑥𝐴, 𝑦𝐴 ↦ (𝑔 ∈ (𝑥𝐻𝑦) ↦ (𝑧𝐵 ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧))))))
6248, 61opeq12d 4810 . . . . 5 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → ⟨(𝑥 ∈ (Base‘𝑐) ↦ ⟨(𝑦 ∈ (Base‘𝑑) ↦ (𝑥(1st𝑓)𝑦)), (𝑦 ∈ (Base‘𝑑), 𝑧 ∈ (Base‘𝑑) ↦ (𝑔 ∈ (𝑦(Hom ‘𝑑)𝑧) ↦ (((Id‘𝑐)‘𝑥)(⟨𝑥, 𝑦⟩(2nd𝑓)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥 ∈ (Base‘𝑐), 𝑦 ∈ (Base‘𝑐) ↦ (𝑔 ∈ (𝑥(Hom ‘𝑐)𝑦) ↦ (𝑧 ∈ (Base‘𝑑) ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝑓)⟨𝑦, 𝑧⟩)((Id‘𝑑)‘𝑧)))))⟩ = ⟨(𝑥𝐴 ↦ ⟨(𝑦𝐵 ↦ (𝑥(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥𝐴, 𝑦𝐴 ↦ (𝑔 ∈ (𝑥𝐻𝑦) ↦ (𝑧𝐵 ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧)))))⟩)
6313, 19, 62csbied2 3919 . . . 4 (((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) → (2nd𝑒) / 𝑑⟨(𝑥 ∈ (Base‘𝑐) ↦ ⟨(𝑦 ∈ (Base‘𝑑) ↦ (𝑥(1st𝑓)𝑦)), (𝑦 ∈ (Base‘𝑑), 𝑧 ∈ (Base‘𝑑) ↦ (𝑔 ∈ (𝑦(Hom ‘𝑑)𝑧) ↦ (((Id‘𝑐)‘𝑥)(⟨𝑥, 𝑦⟩(2nd𝑓)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥 ∈ (Base‘𝑐), 𝑦 ∈ (Base‘𝑐) ↦ (𝑔 ∈ (𝑥(Hom ‘𝑐)𝑦) ↦ (𝑧 ∈ (Base‘𝑑) ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝑓)⟨𝑦, 𝑧⟩)((Id‘𝑑)‘𝑧)))))⟩ = ⟨(𝑥𝐴 ↦ ⟨(𝑦𝐵 ↦ (𝑥(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥𝐴, 𝑦𝐴 ↦ (𝑔 ∈ (𝑥𝐻𝑦) ↦ (𝑧𝐵 ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧)))))⟩)
644, 12, 63csbied2 3919 . . 3 ((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) → (1st𝑒) / 𝑐(2nd𝑒) / 𝑑⟨(𝑥 ∈ (Base‘𝑐) ↦ ⟨(𝑦 ∈ (Base‘𝑑) ↦ (𝑥(1st𝑓)𝑦)), (𝑦 ∈ (Base‘𝑑), 𝑧 ∈ (Base‘𝑑) ↦ (𝑔 ∈ (𝑦(Hom ‘𝑑)𝑧) ↦ (((Id‘𝑐)‘𝑥)(⟨𝑥, 𝑦⟩(2nd𝑓)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥 ∈ (Base‘𝑐), 𝑦 ∈ (Base‘𝑐) ↦ (𝑔 ∈ (𝑥(Hom ‘𝑐)𝑦) ↦ (𝑧 ∈ (Base‘𝑑) ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝑓)⟨𝑦, 𝑧⟩)((Id‘𝑑)‘𝑧)))))⟩ = ⟨(𝑥𝐴 ↦ ⟨(𝑦𝐵 ↦ (𝑥(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥𝐴, 𝑦𝐴 ↦ (𝑔 ∈ (𝑥𝐻𝑦) ↦ (𝑧𝐵 ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧)))))⟩)
65 opex 5355 . . . 4 𝐶, 𝐷⟩ ∈ V
6665a1i 11 . . 3 (𝜑 → ⟨𝐶, 𝐷⟩ ∈ V)
67 curfval.f . . . 4 (𝜑𝐹 ∈ ((𝐶 ×c 𝐷) Func 𝐸))
6867elexd 3514 . . 3 (𝜑𝐹 ∈ V)
69 opex 5355 . . . 4 ⟨(𝑥𝐴 ↦ ⟨(𝑦𝐵 ↦ (𝑥(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥𝐴, 𝑦𝐴 ↦ (𝑔 ∈ (𝑥𝐻𝑦) ↦ (𝑧𝐵 ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧)))))⟩ ∈ V
7069a1i 11 . . 3 (𝜑 → ⟨(𝑥𝐴 ↦ ⟨(𝑦𝐵 ↦ (𝑥(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥𝐴, 𝑦𝐴 ↦ (𝑔 ∈ (𝑥𝐻𝑦) ↦ (𝑧𝐵 ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧)))))⟩ ∈ V)
713, 64, 66, 68, 70ovmpod 7301 . 2 (𝜑 → (⟨𝐶, 𝐷⟩ curryF 𝐹) = ⟨(𝑥𝐴 ↦ ⟨(𝑦𝐵 ↦ (𝑥(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥𝐴, 𝑦𝐴 ↦ (𝑔 ∈ (𝑥𝐻𝑦) ↦ (𝑧𝐵 ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧)))))⟩)
721, 71syl5eq 2868 1 (𝜑𝐺 = ⟨(𝑥𝐴 ↦ ⟨(𝑦𝐵 ↦ (𝑥(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥𝐴, 𝑦𝐴 ↦ (𝑔 ∈ (𝑥𝐻𝑦) ↦ (𝑧𝐵 ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧)))))⟩)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398   = wceq 1533  wcel 2110  Vcvv 3494  csb 3882  cop 4572  cmpt 5145  cfv 6354  (class class class)co 7155  cmpo 7157  1st c1st 7686  2nd c2nd 7687  Basecbs 16482  Hom chom 16575  Catccat 16934  Idccid 16935   Func cfunc 17123   ×c cxpc 17417   curryF ccurf 17459
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793  ax-sep 5202  ax-nul 5209  ax-pow 5265  ax-pr 5329  ax-un 7460
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3496  df-sbc 3772  df-csb 3883  df-dif 3938  df-un 3940  df-in 3942  df-ss 3951  df-nul 4291  df-if 4467  df-sn 4567  df-pr 4569  df-op 4573  df-uni 4838  df-br 5066  df-opab 5128  df-mpt 5146  df-id 5459  df-xp 5560  df-rel 5561  df-cnv 5562  df-co 5563  df-dm 5564  df-rn 5565  df-iota 6313  df-fun 6356  df-fv 6362  df-ov 7158  df-oprab 7159  df-mpo 7160  df-1st 7688  df-2nd 7689  df-curf 17463
This theorem is referenced by:  curf1fval  17473  curf2  17478  curfcl  17481  curfpropd  17482  curfuncf  17487
  Copyright terms: Public domain W3C validator