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

Theorem curfval 17064
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 17055 . . . 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 6364 . . . 4 ((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) → (1st𝑒) ∈ V)
5 simprl 811 . . . . . 6 ((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) → 𝑒 = ⟨𝐶, 𝐷⟩)
65fveq2d 6356 . . . . 5 ((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) → (1st𝑒) = (1st ‘⟨𝐶, 𝐷⟩))
7 curfval.c . . . . . . 7 (𝜑𝐶 ∈ Cat)
8 curfval.d . . . . . . 7 (𝜑𝐷 ∈ Cat)
9 op1stg 7345 . . . . . . 7 ((𝐶 ∈ Cat ∧ 𝐷 ∈ Cat) → (1st ‘⟨𝐶, 𝐷⟩) = 𝐶)
107, 8, 9syl2anc 696 . . . . . 6 (𝜑 → (1st ‘⟨𝐶, 𝐷⟩) = 𝐶)
1110adantr 472 . . . . 5 ((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) → (1st ‘⟨𝐶, 𝐷⟩) = 𝐶)
126, 11eqtrd 2794 . . . 4 ((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) → (1st𝑒) = 𝐶)
13 fvexd 6364 . . . . 5 (((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) → (2nd𝑒) ∈ V)
145adantr 472 . . . . . . 7 (((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) → 𝑒 = ⟨𝐶, 𝐷⟩)
1514fveq2d 6356 . . . . . 6 (((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) → (2nd𝑒) = (2nd ‘⟨𝐶, 𝐷⟩))
16 op2ndg 7346 . . . . . . . 8 ((𝐶 ∈ Cat ∧ 𝐷 ∈ Cat) → (2nd ‘⟨𝐶, 𝐷⟩) = 𝐷)
177, 8, 16syl2anc 696 . . . . . . 7 (𝜑 → (2nd ‘⟨𝐶, 𝐷⟩) = 𝐷)
1817ad2antrr 764 . . . . . 6 (((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) → (2nd ‘⟨𝐶, 𝐷⟩) = 𝐷)
1915, 18eqtrd 2794 . . . . 5 (((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) → (2nd𝑒) = 𝐷)
20 simplr 809 . . . . . . . . 9 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → 𝑐 = 𝐶)
2120fveq2d 6356 . . . . . . . 8 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Base‘𝑐) = (Base‘𝐶))
22 curfval.a . . . . . . . 8 𝐴 = (Base‘𝐶)
2321, 22syl6eqr 2812 . . . . . . 7 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Base‘𝑐) = 𝐴)
24 simpr 479 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → 𝑑 = 𝐷)
2524fveq2d 6356 . . . . . . . . . 10 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Base‘𝑑) = (Base‘𝐷))
26 curfval.b . . . . . . . . . 10 𝐵 = (Base‘𝐷)
2725, 26syl6eqr 2812 . . . . . . . . 9 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Base‘𝑑) = 𝐵)
28 simprr 813 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) → 𝑓 = 𝐹)
2928ad2antrr 764 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → 𝑓 = 𝐹)
3029fveq2d 6356 . . . . . . . . . 10 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (1st𝑓) = (1st𝐹))
3130oveqd 6830 . . . . . . . . 9 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑥(1st𝑓)𝑦) = (𝑥(1st𝐹)𝑦))
3227, 31mpteq12dv 4885 . . . . . . . 8 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑦 ∈ (Base‘𝑑) ↦ (𝑥(1st𝑓)𝑦)) = (𝑦𝐵 ↦ (𝑥(1st𝐹)𝑦)))
3324fveq2d 6356 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Hom ‘𝑑) = (Hom ‘𝐷))
34 curfval.j . . . . . . . . . . . 12 𝐽 = (Hom ‘𝐷)
3533, 34syl6eqr 2812 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Hom ‘𝑑) = 𝐽)
3635oveqd 6830 . . . . . . . . . 10 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑦(Hom ‘𝑑)𝑧) = (𝑦𝐽𝑧))
3729fveq2d 6356 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (2nd𝑓) = (2nd𝐹))
3837oveqd 6830 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (⟨𝑥, 𝑦⟩(2nd𝑓)⟨𝑥, 𝑧⟩) = (⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩))
3920fveq2d 6356 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Id‘𝑐) = (Id‘𝐶))
40 curfval.1 . . . . . . . . . . . . 13 1 = (Id‘𝐶)
4139, 40syl6eqr 2812 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Id‘𝑐) = 1 )
4241fveq1d 6354 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → ((Id‘𝑐)‘𝑥) = ( 1𝑥))
43 eqidd 2761 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → 𝑔 = 𝑔)
4438, 42, 43oveq123d 6834 . . . . . . . . . 10 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (((Id‘𝑐)‘𝑥)(⟨𝑥, 𝑦⟩(2nd𝑓)⟨𝑥, 𝑧⟩)𝑔) = (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔))
4536, 44mpteq12dv 4885 . . . . . . . . 9 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑔 ∈ (𝑦(Hom ‘𝑑)𝑧) ↦ (((Id‘𝑐)‘𝑥)(⟨𝑥, 𝑦⟩(2nd𝑓)⟨𝑥, 𝑧⟩)𝑔)) = (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔)))
4627, 27, 45mpt2eq123dv 6882 . . . . . . . 8 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑦 ∈ (Base‘𝑑), 𝑧 ∈ (Base‘𝑑) ↦ (𝑔 ∈ (𝑦(Hom ‘𝑑)𝑧) ↦ (((Id‘𝑐)‘𝑥)(⟨𝑥, 𝑦⟩(2nd𝑓)⟨𝑥, 𝑧⟩)𝑔))) = (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔))))
4732, 46opeq12d 4561 . . . . . . 7 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → ⟨(𝑦 ∈ (Base‘𝑑) ↦ (𝑥(1st𝑓)𝑦)), (𝑦 ∈ (Base‘𝑑), 𝑧 ∈ (Base‘𝑑) ↦ (𝑔 ∈ (𝑦(Hom ‘𝑑)𝑧) ↦ (((Id‘𝑐)‘𝑥)(⟨𝑥, 𝑦⟩(2nd𝑓)⟨𝑥, 𝑧⟩)𝑔)))⟩ = ⟨(𝑦𝐵 ↦ (𝑥(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔)))⟩)
4823, 47mpteq12dv 4885 . . . . . 6 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑥 ∈ (Base‘𝑐) ↦ ⟨(𝑦 ∈ (Base‘𝑑) ↦ (𝑥(1st𝑓)𝑦)), (𝑦 ∈ (Base‘𝑑), 𝑧 ∈ (Base‘𝑑) ↦ (𝑔 ∈ (𝑦(Hom ‘𝑑)𝑧) ↦ (((Id‘𝑐)‘𝑥)(⟨𝑥, 𝑦⟩(2nd𝑓)⟨𝑥, 𝑧⟩)𝑔)))⟩) = (𝑥𝐴 ↦ ⟨(𝑦𝐵 ↦ (𝑥(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔)))⟩))
4920fveq2d 6356 . . . . . . . . . 10 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Hom ‘𝑐) = (Hom ‘𝐶))
50 curfval.h . . . . . . . . . 10 𝐻 = (Hom ‘𝐶)
5149, 50syl6eqr 2812 . . . . . . . . 9 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Hom ‘𝑐) = 𝐻)
5251oveqd 6830 . . . . . . . 8 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑥(Hom ‘𝑐)𝑦) = (𝑥𝐻𝑦))
5337oveqd 6830 . . . . . . . . . 10 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (⟨𝑥, 𝑧⟩(2nd𝑓)⟨𝑦, 𝑧⟩) = (⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩))
5424fveq2d 6356 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Id‘𝑑) = (Id‘𝐷))
55 curfval.i . . . . . . . . . . . 12 𝐼 = (Id‘𝐷)
5654, 55syl6eqr 2812 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (Id‘𝑑) = 𝐼)
5756fveq1d 6354 . . . . . . . . . 10 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → ((Id‘𝑑)‘𝑧) = (𝐼𝑧))
5853, 43, 57oveq123d 6834 . . . . . . . . 9 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑔(⟨𝑥, 𝑧⟩(2nd𝑓)⟨𝑦, 𝑧⟩)((Id‘𝑑)‘𝑧)) = (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧)))
5927, 58mpteq12dv 4885 . . . . . . . 8 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑧 ∈ (Base‘𝑑) ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝑓)⟨𝑦, 𝑧⟩)((Id‘𝑑)‘𝑧))) = (𝑧𝐵 ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧))))
6052, 59mpteq12dv 4885 . . . . . . 7 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑔 ∈ (𝑥(Hom ‘𝑐)𝑦) ↦ (𝑧 ∈ (Base‘𝑑) ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝑓)⟨𝑦, 𝑧⟩)((Id‘𝑑)‘𝑧)))) = (𝑔 ∈ (𝑥𝐻𝑦) ↦ (𝑧𝐵 ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧)))))
6123, 23, 60mpt2eq123dv 6882 . . . . . 6 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → (𝑥 ∈ (Base‘𝑐), 𝑦 ∈ (Base‘𝑐) ↦ (𝑔 ∈ (𝑥(Hom ‘𝑐)𝑦) ↦ (𝑧 ∈ (Base‘𝑑) ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝑓)⟨𝑦, 𝑧⟩)((Id‘𝑑)‘𝑧))))) = (𝑥𝐴, 𝑦𝐴 ↦ (𝑔 ∈ (𝑥𝐻𝑦) ↦ (𝑧𝐵 ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧))))))
6248, 61opeq12d 4561 . . . . 5 ((((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) ∧ 𝑑 = 𝐷) → ⟨(𝑥 ∈ (Base‘𝑐) ↦ ⟨(𝑦 ∈ (Base‘𝑑) ↦ (𝑥(1st𝑓)𝑦)), (𝑦 ∈ (Base‘𝑑), 𝑧 ∈ (Base‘𝑑) ↦ (𝑔 ∈ (𝑦(Hom ‘𝑑)𝑧) ↦ (((Id‘𝑐)‘𝑥)(⟨𝑥, 𝑦⟩(2nd𝑓)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥 ∈ (Base‘𝑐), 𝑦 ∈ (Base‘𝑐) ↦ (𝑔 ∈ (𝑥(Hom ‘𝑐)𝑦) ↦ (𝑧 ∈ (Base‘𝑑) ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝑓)⟨𝑦, 𝑧⟩)((Id‘𝑑)‘𝑧)))))⟩ = ⟨(𝑥𝐴 ↦ ⟨(𝑦𝐵 ↦ (𝑥(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥𝐴, 𝑦𝐴 ↦ (𝑔 ∈ (𝑥𝐻𝑦) ↦ (𝑧𝐵 ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧)))))⟩)
6313, 19, 62csbied2 3702 . . . 4 (((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) ∧ 𝑐 = 𝐶) → (2nd𝑒) / 𝑑⟨(𝑥 ∈ (Base‘𝑐) ↦ ⟨(𝑦 ∈ (Base‘𝑑) ↦ (𝑥(1st𝑓)𝑦)), (𝑦 ∈ (Base‘𝑑), 𝑧 ∈ (Base‘𝑑) ↦ (𝑔 ∈ (𝑦(Hom ‘𝑑)𝑧) ↦ (((Id‘𝑐)‘𝑥)(⟨𝑥, 𝑦⟩(2nd𝑓)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥 ∈ (Base‘𝑐), 𝑦 ∈ (Base‘𝑐) ↦ (𝑔 ∈ (𝑥(Hom ‘𝑐)𝑦) ↦ (𝑧 ∈ (Base‘𝑑) ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝑓)⟨𝑦, 𝑧⟩)((Id‘𝑑)‘𝑧)))))⟩ = ⟨(𝑥𝐴 ↦ ⟨(𝑦𝐵 ↦ (𝑥(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥𝐴, 𝑦𝐴 ↦ (𝑔 ∈ (𝑥𝐻𝑦) ↦ (𝑧𝐵 ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧)))))⟩)
644, 12, 63csbied2 3702 . . 3 ((𝜑 ∧ (𝑒 = ⟨𝐶, 𝐷⟩ ∧ 𝑓 = 𝐹)) → (1st𝑒) / 𝑐(2nd𝑒) / 𝑑⟨(𝑥 ∈ (Base‘𝑐) ↦ ⟨(𝑦 ∈ (Base‘𝑑) ↦ (𝑥(1st𝑓)𝑦)), (𝑦 ∈ (Base‘𝑑), 𝑧 ∈ (Base‘𝑑) ↦ (𝑔 ∈ (𝑦(Hom ‘𝑑)𝑧) ↦ (((Id‘𝑐)‘𝑥)(⟨𝑥, 𝑦⟩(2nd𝑓)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥 ∈ (Base‘𝑐), 𝑦 ∈ (Base‘𝑐) ↦ (𝑔 ∈ (𝑥(Hom ‘𝑐)𝑦) ↦ (𝑧 ∈ (Base‘𝑑) ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝑓)⟨𝑦, 𝑧⟩)((Id‘𝑑)‘𝑧)))))⟩ = ⟨(𝑥𝐴 ↦ ⟨(𝑦𝐵 ↦ (𝑥(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥𝐴, 𝑦𝐴 ↦ (𝑔 ∈ (𝑥𝐻𝑦) ↦ (𝑧𝐵 ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧)))))⟩)
65 opex 5081 . . . 4 𝐶, 𝐷⟩ ∈ V
6665a1i 11 . . 3 (𝜑 → ⟨𝐶, 𝐷⟩ ∈ V)
67 curfval.f . . . 4 (𝜑𝐹 ∈ ((𝐶 ×c 𝐷) Func 𝐸))
68 elex 3352 . . . 4 (𝐹 ∈ ((𝐶 ×c 𝐷) Func 𝐸) → 𝐹 ∈ V)
6967, 68syl 17 . . 3 (𝜑𝐹 ∈ V)
70 opex 5081 . . . 4 ⟨(𝑥𝐴 ↦ ⟨(𝑦𝐵 ↦ (𝑥(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥𝐴, 𝑦𝐴 ↦ (𝑔 ∈ (𝑥𝐻𝑦) ↦ (𝑧𝐵 ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧)))))⟩ ∈ V
7170a1i 11 . . 3 (𝜑 → ⟨(𝑥𝐴 ↦ ⟨(𝑦𝐵 ↦ (𝑥(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥𝐴, 𝑦𝐴 ↦ (𝑔 ∈ (𝑥𝐻𝑦) ↦ (𝑧𝐵 ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧)))))⟩ ∈ V)
723, 64, 66, 69, 71ovmpt2d 6953 . 2 (𝜑 → (⟨𝐶, 𝐷⟩ curryF 𝐹) = ⟨(𝑥𝐴 ↦ ⟨(𝑦𝐵 ↦ (𝑥(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥𝐴, 𝑦𝐴 ↦ (𝑔 ∈ (𝑥𝐻𝑦) ↦ (𝑧𝐵 ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧)))))⟩)
731, 72syl5eq 2806 1 (𝜑𝐺 = ⟨(𝑥𝐴 ↦ ⟨(𝑦𝐵 ↦ (𝑥(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦𝐽𝑧) ↦ (( 1𝑥)(⟨𝑥, 𝑦⟩(2nd𝐹)⟨𝑥, 𝑧⟩)𝑔)))⟩), (𝑥𝐴, 𝑦𝐴 ↦ (𝑔 ∈ (𝑥𝐻𝑦) ↦ (𝑧𝐵 ↦ (𝑔(⟨𝑥, 𝑧⟩(2nd𝐹)⟨𝑦, 𝑧⟩)(𝐼𝑧)))))⟩)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 383   = wceq 1632  wcel 2139  Vcvv 3340  csb 3674  cop 4327  cmpt 4881  cfv 6049  (class class class)co 6813  cmpt2 6815  1st c1st 7331  2nd c2nd 7332  Basecbs 16059  Hom chom 16154  Catccat 16526  Idccid 16527   Func cfunc 16715   ×c cxpc 17009   curryF ccurf 17051
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1871  ax-4 1886  ax-5 1988  ax-6 2054  ax-7 2090  ax-8 2141  ax-9 2148  ax-10 2168  ax-11 2183  ax-12 2196  ax-13 2391  ax-ext 2740  ax-sep 4933  ax-nul 4941  ax-pow 4992  ax-pr 5055  ax-un 7114
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3an 1074  df-tru 1635  df-ex 1854  df-nf 1859  df-sb 2047  df-eu 2611  df-mo 2612  df-clab 2747  df-cleq 2753  df-clel 2756  df-nfc 2891  df-ral 3055  df-rex 3056  df-rab 3059  df-v 3342  df-sbc 3577  df-csb 3675  df-dif 3718  df-un 3720  df-in 3722  df-ss 3729  df-nul 4059  df-if 4231  df-sn 4322  df-pr 4324  df-op 4328  df-uni 4589  df-br 4805  df-opab 4865  df-mpt 4882  df-id 5174  df-xp 5272  df-rel 5273  df-cnv 5274  df-co 5275  df-dm 5276  df-rn 5277  df-iota 6012  df-fun 6051  df-fv 6057  df-ov 6816  df-oprab 6817  df-mpt2 6818  df-1st 7333  df-2nd 7334  df-curf 17055
This theorem is referenced by:  curf1fval  17065  curf2  17070  curfcl  17073  curfpropd  17074  curfuncf  17079
  Copyright terms: Public domain W3C validator