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

Theorem curf1cl 18181
Description: The partially evaluated curry functor is a functor. (Contributed by Mario Carneiro, 13-Jan-2017.)
Hypotheses
Ref Expression
curfval.g 𝐺 = (⟨𝐶, 𝐷⟩ curryF 𝐹)
curfval.a 𝐴 = (Base‘𝐶)
curfval.c (𝜑𝐶 ∈ Cat)
curfval.d (𝜑𝐷 ∈ Cat)
curfval.f (𝜑𝐹 ∈ ((𝐶 ×c 𝐷) Func 𝐸))
curfval.b 𝐵 = (Base‘𝐷)
curf1.x (𝜑𝑋𝐴)
curf1.k 𝐾 = ((1st𝐺)‘𝑋)
Assertion
Ref Expression
curf1cl (𝜑𝐾 ∈ (𝐷 Func 𝐸))

Proof of Theorem curf1cl
Dummy variables 𝑔 𝑦 𝑧 𝑤 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 curfval.g . . . 4 𝐺 = (⟨𝐶, 𝐷⟩ curryF 𝐹)
2 curfval.a . . . 4 𝐴 = (Base‘𝐶)
3 curfval.c . . . 4 (𝜑𝐶 ∈ Cat)
4 curfval.d . . . 4 (𝜑𝐷 ∈ Cat)
5 curfval.f . . . 4 (𝜑𝐹 ∈ ((𝐶 ×c 𝐷) Func 𝐸))
6 curfval.b . . . 4 𝐵 = (Base‘𝐷)
7 curf1.x . . . 4 (𝜑𝑋𝐴)
8 curf1.k . . . 4 𝐾 = ((1st𝐺)‘𝑋)
9 eqid 2733 . . . 4 (Hom ‘𝐷) = (Hom ‘𝐷)
10 eqid 2733 . . . 4 (Id‘𝐶) = (Id‘𝐶)
111, 2, 3, 4, 5, 6, 7, 8, 9, 10curf1 18178 . . 3 (𝜑𝐾 = ⟨(𝑦𝐵 ↦ (𝑋(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ↦ (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔)))⟩)
126fvexi 6906 . . . . . . 7 𝐵 ∈ V
1312mptex 7225 . . . . . 6 (𝑦𝐵 ↦ (𝑋(1st𝐹)𝑦)) ∈ V
1412, 12mpoex 8066 . . . . . 6 (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ↦ (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔))) ∈ V
1513, 14op1std 7985 . . . . 5 (𝐾 = ⟨(𝑦𝐵 ↦ (𝑋(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ↦ (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔)))⟩ → (1st𝐾) = (𝑦𝐵 ↦ (𝑋(1st𝐹)𝑦)))
1611, 15syl 17 . . . 4 (𝜑 → (1st𝐾) = (𝑦𝐵 ↦ (𝑋(1st𝐹)𝑦)))
1713, 14op2ndd 7986 . . . . 5 (𝐾 = ⟨(𝑦𝐵 ↦ (𝑋(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ↦ (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔)))⟩ → (2nd𝐾) = (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ↦ (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔))))
1811, 17syl 17 . . . 4 (𝜑 → (2nd𝐾) = (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ↦ (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔))))
1916, 18opeq12d 4882 . . 3 (𝜑 → ⟨(1st𝐾), (2nd𝐾)⟩ = ⟨(𝑦𝐵 ↦ (𝑋(1st𝐹)𝑦)), (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ↦ (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔)))⟩)
2011, 19eqtr4d 2776 . 2 (𝜑𝐾 = ⟨(1st𝐾), (2nd𝐾)⟩)
21 eqid 2733 . . . 4 (Base‘𝐸) = (Base‘𝐸)
22 eqid 2733 . . . 4 (Hom ‘𝐸) = (Hom ‘𝐸)
23 eqid 2733 . . . 4 (Id‘𝐷) = (Id‘𝐷)
24 eqid 2733 . . . 4 (Id‘𝐸) = (Id‘𝐸)
25 eqid 2733 . . . 4 (comp‘𝐷) = (comp‘𝐷)
26 eqid 2733 . . . 4 (comp‘𝐸) = (comp‘𝐸)
27 funcrcl 17813 . . . . . 6 (𝐹 ∈ ((𝐶 ×c 𝐷) Func 𝐸) → ((𝐶 ×c 𝐷) ∈ Cat ∧ 𝐸 ∈ Cat))
285, 27syl 17 . . . . 5 (𝜑 → ((𝐶 ×c 𝐷) ∈ Cat ∧ 𝐸 ∈ Cat))
2928simprd 497 . . . 4 (𝜑𝐸 ∈ Cat)
30 eqid 2733 . . . . . . . . 9 (𝐶 ×c 𝐷) = (𝐶 ×c 𝐷)
3130, 2, 6xpcbas 18130 . . . . . . . 8 (𝐴 × 𝐵) = (Base‘(𝐶 ×c 𝐷))
32 relfunc 17812 . . . . . . . . 9 Rel ((𝐶 ×c 𝐷) Func 𝐸)
33 1st2ndbr 8028 . . . . . . . . 9 ((Rel ((𝐶 ×c 𝐷) Func 𝐸) ∧ 𝐹 ∈ ((𝐶 ×c 𝐷) Func 𝐸)) → (1st𝐹)((𝐶 ×c 𝐷) Func 𝐸)(2nd𝐹))
3432, 5, 33sylancr 588 . . . . . . . 8 (𝜑 → (1st𝐹)((𝐶 ×c 𝐷) Func 𝐸)(2nd𝐹))
3531, 21, 34funcf1 17816 . . . . . . 7 (𝜑 → (1st𝐹):(𝐴 × 𝐵)⟶(Base‘𝐸))
3635adantr 482 . . . . . 6 ((𝜑𝑦𝐵) → (1st𝐹):(𝐴 × 𝐵)⟶(Base‘𝐸))
377adantr 482 . . . . . 6 ((𝜑𝑦𝐵) → 𝑋𝐴)
38 simpr 486 . . . . . 6 ((𝜑𝑦𝐵) → 𝑦𝐵)
3936, 37, 38fovcdmd 7579 . . . . 5 ((𝜑𝑦𝐵) → (𝑋(1st𝐹)𝑦) ∈ (Base‘𝐸))
4016, 39fmpt3d 7116 . . . 4 (𝜑 → (1st𝐾):𝐵⟶(Base‘𝐸))
41 eqid 2733 . . . . . 6 (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ↦ (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔))) = (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ↦ (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔)))
42 ovex 7442 . . . . . . 7 (𝑦(Hom ‘𝐷)𝑧) ∈ V
4342mptex 7225 . . . . . 6 (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ↦ (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔)) ∈ V
4441, 43fnmpoi 8056 . . . . 5 (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ↦ (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔))) Fn (𝐵 × 𝐵)
4518fneq1d 6643 . . . . 5 (𝜑 → ((2nd𝐾) Fn (𝐵 × 𝐵) ↔ (𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ↦ (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔))) Fn (𝐵 × 𝐵)))
4644, 45mpbiri 258 . . . 4 (𝜑 → (2nd𝐾) Fn (𝐵 × 𝐵))
4718oveqd 7426 . . . . . 6 (𝜑 → (𝑦(2nd𝐾)𝑧) = (𝑦(𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ↦ (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔)))𝑧))
4841ovmpt4g 7555 . . . . . . 7 ((𝑦𝐵𝑧𝐵 ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ↦ (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔)) ∈ V) → (𝑦(𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ↦ (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔)))𝑧) = (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ↦ (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔)))
4943, 48mp3an3 1451 . . . . . 6 ((𝑦𝐵𝑧𝐵) → (𝑦(𝑦𝐵, 𝑧𝐵 ↦ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ↦ (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔)))𝑧) = (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ↦ (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔)))
5047, 49sylan9eq 2793 . . . . 5 ((𝜑 ∧ (𝑦𝐵𝑧𝐵)) → (𝑦(2nd𝐾)𝑧) = (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ↦ (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔)))
51 eqid 2733 . . . . . . . 8 (Hom ‘(𝐶 ×c 𝐷)) = (Hom ‘(𝐶 ×c 𝐷))
5234ad2antrr 725 . . . . . . . 8 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → (1st𝐹)((𝐶 ×c 𝐷) Func 𝐸)(2nd𝐹))
537ad2antrr 725 . . . . . . . . 9 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → 𝑋𝐴)
54 simplrl 776 . . . . . . . . 9 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → 𝑦𝐵)
5553, 54opelxpd 5716 . . . . . . . 8 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → ⟨𝑋, 𝑦⟩ ∈ (𝐴 × 𝐵))
56 simplrr 777 . . . . . . . . 9 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → 𝑧𝐵)
5753, 56opelxpd 5716 . . . . . . . 8 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → ⟨𝑋, 𝑧⟩ ∈ (𝐴 × 𝐵))
5831, 51, 22, 52, 55, 57funcf2 17818 . . . . . . 7 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → (⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩):(⟨𝑋, 𝑦⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑋, 𝑧⟩)⟶(((1st𝐹)‘⟨𝑋, 𝑦⟩)(Hom ‘𝐸)((1st𝐹)‘⟨𝑋, 𝑧⟩)))
59 eqid 2733 . . . . . . . . 9 (Hom ‘𝐶) = (Hom ‘𝐶)
6030, 31, 59, 9, 51, 55, 57xpchom 18132 . . . . . . . 8 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → (⟨𝑋, 𝑦⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑋, 𝑧⟩) = (((1st ‘⟨𝑋, 𝑦⟩)(Hom ‘𝐶)(1st ‘⟨𝑋, 𝑧⟩)) × ((2nd ‘⟨𝑋, 𝑦⟩)(Hom ‘𝐷)(2nd ‘⟨𝑋, 𝑧⟩))))
613ad2antrr 725 . . . . . . . . . . 11 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → 𝐶 ∈ Cat)
624ad2antrr 725 . . . . . . . . . . 11 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → 𝐷 ∈ Cat)
635ad2antrr 725 . . . . . . . . . . 11 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → 𝐹 ∈ ((𝐶 ×c 𝐷) Func 𝐸))
641, 2, 61, 62, 63, 6, 53, 8, 54curf11 18179 . . . . . . . . . 10 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → ((1st𝐾)‘𝑦) = (𝑋(1st𝐹)𝑦))
65 df-ov 7412 . . . . . . . . . 10 (𝑋(1st𝐹)𝑦) = ((1st𝐹)‘⟨𝑋, 𝑦⟩)
6664, 65eqtr2di 2790 . . . . . . . . 9 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → ((1st𝐹)‘⟨𝑋, 𝑦⟩) = ((1st𝐾)‘𝑦))
671, 2, 61, 62, 63, 6, 53, 8, 56curf11 18179 . . . . . . . . . 10 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → ((1st𝐾)‘𝑧) = (𝑋(1st𝐹)𝑧))
68 df-ov 7412 . . . . . . . . . 10 (𝑋(1st𝐹)𝑧) = ((1st𝐹)‘⟨𝑋, 𝑧⟩)
6967, 68eqtr2di 2790 . . . . . . . . 9 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → ((1st𝐹)‘⟨𝑋, 𝑧⟩) = ((1st𝐾)‘𝑧))
7066, 69oveq12d 7427 . . . . . . . 8 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → (((1st𝐹)‘⟨𝑋, 𝑦⟩)(Hom ‘𝐸)((1st𝐹)‘⟨𝑋, 𝑧⟩)) = (((1st𝐾)‘𝑦)(Hom ‘𝐸)((1st𝐾)‘𝑧)))
7160, 70feq23d 6713 . . . . . . 7 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → ((⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩):(⟨𝑋, 𝑦⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑋, 𝑧⟩)⟶(((1st𝐹)‘⟨𝑋, 𝑦⟩)(Hom ‘𝐸)((1st𝐹)‘⟨𝑋, 𝑧⟩)) ↔ (⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩):(((1st ‘⟨𝑋, 𝑦⟩)(Hom ‘𝐶)(1st ‘⟨𝑋, 𝑧⟩)) × ((2nd ‘⟨𝑋, 𝑦⟩)(Hom ‘𝐷)(2nd ‘⟨𝑋, 𝑧⟩)))⟶(((1st𝐾)‘𝑦)(Hom ‘𝐸)((1st𝐾)‘𝑧))))
7258, 71mpbid 231 . . . . . 6 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → (⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩):(((1st ‘⟨𝑋, 𝑦⟩)(Hom ‘𝐶)(1st ‘⟨𝑋, 𝑧⟩)) × ((2nd ‘⟨𝑋, 𝑦⟩)(Hom ‘𝐷)(2nd ‘⟨𝑋, 𝑧⟩)))⟶(((1st𝐾)‘𝑦)(Hom ‘𝐸)((1st𝐾)‘𝑧)))
732, 59, 10, 61, 53catidcl 17626 . . . . . . 7 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → ((Id‘𝐶)‘𝑋) ∈ (𝑋(Hom ‘𝐶)𝑋))
74 op1stg 7987 . . . . . . . . 9 ((𝑋𝐴𝑦𝐵) → (1st ‘⟨𝑋, 𝑦⟩) = 𝑋)
7553, 54, 74syl2anc 585 . . . . . . . 8 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → (1st ‘⟨𝑋, 𝑦⟩) = 𝑋)
76 op1stg 7987 . . . . . . . . 9 ((𝑋𝐴𝑧𝐵) → (1st ‘⟨𝑋, 𝑧⟩) = 𝑋)
7753, 56, 76syl2anc 585 . . . . . . . 8 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → (1st ‘⟨𝑋, 𝑧⟩) = 𝑋)
7875, 77oveq12d 7427 . . . . . . 7 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → ((1st ‘⟨𝑋, 𝑦⟩)(Hom ‘𝐶)(1st ‘⟨𝑋, 𝑧⟩)) = (𝑋(Hom ‘𝐶)𝑋))
7973, 78eleqtrrd 2837 . . . . . 6 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → ((Id‘𝐶)‘𝑋) ∈ ((1st ‘⟨𝑋, 𝑦⟩)(Hom ‘𝐶)(1st ‘⟨𝑋, 𝑧⟩)))
80 simpr 486 . . . . . . 7 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))
81 op2ndg 7988 . . . . . . . . 9 ((𝑋𝐴𝑦𝐵) → (2nd ‘⟨𝑋, 𝑦⟩) = 𝑦)
8253, 54, 81syl2anc 585 . . . . . . . 8 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → (2nd ‘⟨𝑋, 𝑦⟩) = 𝑦)
83 op2ndg 7988 . . . . . . . . 9 ((𝑋𝐴𝑧𝐵) → (2nd ‘⟨𝑋, 𝑧⟩) = 𝑧)
8453, 56, 83syl2anc 585 . . . . . . . 8 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → (2nd ‘⟨𝑋, 𝑧⟩) = 𝑧)
8582, 84oveq12d 7427 . . . . . . 7 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → ((2nd ‘⟨𝑋, 𝑦⟩)(Hom ‘𝐷)(2nd ‘⟨𝑋, 𝑧⟩)) = (𝑦(Hom ‘𝐷)𝑧))
8680, 85eleqtrrd 2837 . . . . . 6 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → 𝑔 ∈ ((2nd ‘⟨𝑋, 𝑦⟩)(Hom ‘𝐷)(2nd ‘⟨𝑋, 𝑧⟩)))
8772, 79, 86fovcdmd 7579 . . . . 5 (((𝜑 ∧ (𝑦𝐵𝑧𝐵)) ∧ 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧)) → (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔) ∈ (((1st𝐾)‘𝑦)(Hom ‘𝐸)((1st𝐾)‘𝑧)))
8850, 87fmpt3d 7116 . . . 4 ((𝜑 ∧ (𝑦𝐵𝑧𝐵)) → (𝑦(2nd𝐾)𝑧):(𝑦(Hom ‘𝐷)𝑧)⟶(((1st𝐾)‘𝑦)(Hom ‘𝐸)((1st𝐾)‘𝑧)))
893adantr 482 . . . . . . . . 9 ((𝜑𝑦𝐵) → 𝐶 ∈ Cat)
904adantr 482 . . . . . . . . 9 ((𝜑𝑦𝐵) → 𝐷 ∈ Cat)
91 eqid 2733 . . . . . . . . 9 (Id‘(𝐶 ×c 𝐷)) = (Id‘(𝐶 ×c 𝐷))
9230, 89, 90, 2, 6, 10, 23, 91, 37, 38xpcid 18141 . . . . . . . 8 ((𝜑𝑦𝐵) → ((Id‘(𝐶 ×c 𝐷))‘⟨𝑋, 𝑦⟩) = ⟨((Id‘𝐶)‘𝑋), ((Id‘𝐷)‘𝑦)⟩)
9392fveq2d 6896 . . . . . . 7 ((𝜑𝑦𝐵) → ((⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑦⟩)‘((Id‘(𝐶 ×c 𝐷))‘⟨𝑋, 𝑦⟩)) = ((⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑦⟩)‘⟨((Id‘𝐶)‘𝑋), ((Id‘𝐷)‘𝑦)⟩))
94 df-ov 7412 . . . . . . 7 (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑦⟩)((Id‘𝐷)‘𝑦)) = ((⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑦⟩)‘⟨((Id‘𝐶)‘𝑋), ((Id‘𝐷)‘𝑦)⟩)
9593, 94eqtr4di 2791 . . . . . 6 ((𝜑𝑦𝐵) → ((⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑦⟩)‘((Id‘(𝐶 ×c 𝐷))‘⟨𝑋, 𝑦⟩)) = (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑦⟩)((Id‘𝐷)‘𝑦)))
9634adantr 482 . . . . . . 7 ((𝜑𝑦𝐵) → (1st𝐹)((𝐶 ×c 𝐷) Func 𝐸)(2nd𝐹))
97 opelxpi 5714 . . . . . . . 8 ((𝑋𝐴𝑦𝐵) → ⟨𝑋, 𝑦⟩ ∈ (𝐴 × 𝐵))
987, 97sylan 581 . . . . . . 7 ((𝜑𝑦𝐵) → ⟨𝑋, 𝑦⟩ ∈ (𝐴 × 𝐵))
9931, 91, 24, 96, 98funcid 17820 . . . . . 6 ((𝜑𝑦𝐵) → ((⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑦⟩)‘((Id‘(𝐶 ×c 𝐷))‘⟨𝑋, 𝑦⟩)) = ((Id‘𝐸)‘((1st𝐹)‘⟨𝑋, 𝑦⟩)))
10095, 99eqtr3d 2775 . . . . 5 ((𝜑𝑦𝐵) → (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑦⟩)((Id‘𝐷)‘𝑦)) = ((Id‘𝐸)‘((1st𝐹)‘⟨𝑋, 𝑦⟩)))
1015adantr 482 . . . . . 6 ((𝜑𝑦𝐵) → 𝐹 ∈ ((𝐶 ×c 𝐷) Func 𝐸))
1026, 9, 23, 90, 38catidcl 17626 . . . . . 6 ((𝜑𝑦𝐵) → ((Id‘𝐷)‘𝑦) ∈ (𝑦(Hom ‘𝐷)𝑦))
1031, 2, 89, 90, 101, 6, 37, 8, 38, 9, 10, 38, 102curf12 18180 . . . . 5 ((𝜑𝑦𝐵) → ((𝑦(2nd𝐾)𝑦)‘((Id‘𝐷)‘𝑦)) = (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑦⟩)((Id‘𝐷)‘𝑦)))
1041, 2, 89, 90, 101, 6, 37, 8, 38curf11 18179 . . . . . . 7 ((𝜑𝑦𝐵) → ((1st𝐾)‘𝑦) = (𝑋(1st𝐹)𝑦))
105104, 65eqtrdi 2789 . . . . . 6 ((𝜑𝑦𝐵) → ((1st𝐾)‘𝑦) = ((1st𝐹)‘⟨𝑋, 𝑦⟩))
106105fveq2d 6896 . . . . 5 ((𝜑𝑦𝐵) → ((Id‘𝐸)‘((1st𝐾)‘𝑦)) = ((Id‘𝐸)‘((1st𝐹)‘⟨𝑋, 𝑦⟩)))
107100, 103, 1063eqtr4d 2783 . . . 4 ((𝜑𝑦𝐵) → ((𝑦(2nd𝐾)𝑦)‘((Id‘𝐷)‘𝑦)) = ((Id‘𝐸)‘((1st𝐾)‘𝑦)))
10873ad2ant1 1134 . . . . . . . . . 10 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → 𝑋𝐴)
109 simp21 1207 . . . . . . . . . 10 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → 𝑦𝐵)
110 simp22 1208 . . . . . . . . . 10 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → 𝑧𝐵)
111 eqid 2733 . . . . . . . . . 10 (comp‘𝐶) = (comp‘𝐶)
112 eqid 2733 . . . . . . . . . 10 (comp‘(𝐶 ×c 𝐷)) = (comp‘(𝐶 ×c 𝐷))
113 simp23 1209 . . . . . . . . . 10 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → 𝑤𝐵)
11433ad2ant1 1134 . . . . . . . . . . 11 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → 𝐶 ∈ Cat)
1152, 59, 10, 114, 108catidcl 17626 . . . . . . . . . 10 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ((Id‘𝐶)‘𝑋) ∈ (𝑋(Hom ‘𝐶)𝑋))
116 simp3l 1202 . . . . . . . . . 10 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → 𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧))
117 simp3r 1203 . . . . . . . . . 10 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ∈ (𝑧(Hom ‘𝐷)𝑤))
11830, 2, 6, 59, 9, 108, 109, 108, 110, 111, 25, 112, 108, 113, 115, 116, 115, 117xpcco2 18139 . . . . . . . . 9 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → (⟨((Id‘𝐶)‘𝑋), ⟩(⟨⟨𝑋, 𝑦⟩, ⟨𝑋, 𝑧⟩⟩(comp‘(𝐶 ×c 𝐷))⟨𝑋, 𝑤⟩)⟨((Id‘𝐶)‘𝑋), 𝑔⟩) = ⟨(((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑋⟩(comp‘𝐶)𝑋)((Id‘𝐶)‘𝑋)), ((⟨𝑦, 𝑧⟩(comp‘𝐷)𝑤)𝑔)⟩)
1192, 59, 10, 114, 108, 111, 108, 115catlid 17627 . . . . . . . . . 10 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑋⟩(comp‘𝐶)𝑋)((Id‘𝐶)‘𝑋)) = ((Id‘𝐶)‘𝑋))
120119opeq1d 4880 . . . . . . . . 9 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ⟨(((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑋⟩(comp‘𝐶)𝑋)((Id‘𝐶)‘𝑋)), ((⟨𝑦, 𝑧⟩(comp‘𝐷)𝑤)𝑔)⟩ = ⟨((Id‘𝐶)‘𝑋), ((⟨𝑦, 𝑧⟩(comp‘𝐷)𝑤)𝑔)⟩)
121118, 120eqtrd 2773 . . . . . . . 8 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → (⟨((Id‘𝐶)‘𝑋), ⟩(⟨⟨𝑋, 𝑦⟩, ⟨𝑋, 𝑧⟩⟩(comp‘(𝐶 ×c 𝐷))⟨𝑋, 𝑤⟩)⟨((Id‘𝐶)‘𝑋), 𝑔⟩) = ⟨((Id‘𝐶)‘𝑋), ((⟨𝑦, 𝑧⟩(comp‘𝐷)𝑤)𝑔)⟩)
122121fveq2d 6896 . . . . . . 7 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ((⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑤⟩)‘(⟨((Id‘𝐶)‘𝑋), ⟩(⟨⟨𝑋, 𝑦⟩, ⟨𝑋, 𝑧⟩⟩(comp‘(𝐶 ×c 𝐷))⟨𝑋, 𝑤⟩)⟨((Id‘𝐶)‘𝑋), 𝑔⟩)) = ((⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑤⟩)‘⟨((Id‘𝐶)‘𝑋), ((⟨𝑦, 𝑧⟩(comp‘𝐷)𝑤)𝑔)⟩))
123 df-ov 7412 . . . . . . 7 (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑤⟩)((⟨𝑦, 𝑧⟩(comp‘𝐷)𝑤)𝑔)) = ((⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑤⟩)‘⟨((Id‘𝐶)‘𝑋), ((⟨𝑦, 𝑧⟩(comp‘𝐷)𝑤)𝑔)⟩)
124122, 123eqtr4di 2791 . . . . . 6 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ((⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑤⟩)‘(⟨((Id‘𝐶)‘𝑋), ⟩(⟨⟨𝑋, 𝑦⟩, ⟨𝑋, 𝑧⟩⟩(comp‘(𝐶 ×c 𝐷))⟨𝑋, 𝑤⟩)⟨((Id‘𝐶)‘𝑋), 𝑔⟩)) = (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑤⟩)((⟨𝑦, 𝑧⟩(comp‘𝐷)𝑤)𝑔)))
125343ad2ant1 1134 . . . . . . 7 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → (1st𝐹)((𝐶 ×c 𝐷) Func 𝐸)(2nd𝐹))
126108, 109opelxpd 5716 . . . . . . 7 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ⟨𝑋, 𝑦⟩ ∈ (𝐴 × 𝐵))
127108, 110opelxpd 5716 . . . . . . 7 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ⟨𝑋, 𝑧⟩ ∈ (𝐴 × 𝐵))
128108, 113opelxpd 5716 . . . . . . 7 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ⟨𝑋, 𝑤⟩ ∈ (𝐴 × 𝐵))
129115, 116opelxpd 5716 . . . . . . . 8 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ⟨((Id‘𝐶)‘𝑋), 𝑔⟩ ∈ ((𝑋(Hom ‘𝐶)𝑋) × (𝑦(Hom ‘𝐷)𝑧)))
13030, 2, 6, 59, 9, 108, 109, 108, 110, 51xpchom2 18138 . . . . . . . 8 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → (⟨𝑋, 𝑦⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑋, 𝑧⟩) = ((𝑋(Hom ‘𝐶)𝑋) × (𝑦(Hom ‘𝐷)𝑧)))
131129, 130eleqtrrd 2837 . . . . . . 7 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ⟨((Id‘𝐶)‘𝑋), 𝑔⟩ ∈ (⟨𝑋, 𝑦⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑋, 𝑧⟩))
132115, 117opelxpd 5716 . . . . . . . 8 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ⟨((Id‘𝐶)‘𝑋), ⟩ ∈ ((𝑋(Hom ‘𝐶)𝑋) × (𝑧(Hom ‘𝐷)𝑤)))
13330, 2, 6, 59, 9, 108, 110, 108, 113, 51xpchom2 18138 . . . . . . . 8 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → (⟨𝑋, 𝑧⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑋, 𝑤⟩) = ((𝑋(Hom ‘𝐶)𝑋) × (𝑧(Hom ‘𝐷)𝑤)))
134132, 133eleqtrrd 2837 . . . . . . 7 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ⟨((Id‘𝐶)‘𝑋), ⟩ ∈ (⟨𝑋, 𝑧⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑋, 𝑤⟩))
13531, 51, 112, 26, 125, 126, 127, 128, 131, 134funcco 17821 . . . . . 6 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ((⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑤⟩)‘(⟨((Id‘𝐶)‘𝑋), ⟩(⟨⟨𝑋, 𝑦⟩, ⟨𝑋, 𝑧⟩⟩(comp‘(𝐶 ×c 𝐷))⟨𝑋, 𝑤⟩)⟨((Id‘𝐶)‘𝑋), 𝑔⟩)) = (((⟨𝑋, 𝑧⟩(2nd𝐹)⟨𝑋, 𝑤⟩)‘⟨((Id‘𝐶)‘𝑋), ⟩)(⟨((1st𝐹)‘⟨𝑋, 𝑦⟩), ((1st𝐹)‘⟨𝑋, 𝑧⟩)⟩(comp‘𝐸)((1st𝐹)‘⟨𝑋, 𝑤⟩))((⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)‘⟨((Id‘𝐶)‘𝑋), 𝑔⟩)))
136124, 135eqtr3d 2775 . . . . 5 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑤⟩)((⟨𝑦, 𝑧⟩(comp‘𝐷)𝑤)𝑔)) = (((⟨𝑋, 𝑧⟩(2nd𝐹)⟨𝑋, 𝑤⟩)‘⟨((Id‘𝐶)‘𝑋), ⟩)(⟨((1st𝐹)‘⟨𝑋, 𝑦⟩), ((1st𝐹)‘⟨𝑋, 𝑧⟩)⟩(comp‘𝐸)((1st𝐹)‘⟨𝑋, 𝑤⟩))((⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)‘⟨((Id‘𝐶)‘𝑋), 𝑔⟩)))
13743ad2ant1 1134 . . . . . 6 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → 𝐷 ∈ Cat)
13853ad2ant1 1134 . . . . . 6 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → 𝐹 ∈ ((𝐶 ×c 𝐷) Func 𝐸))
1396, 9, 25, 137, 109, 110, 113, 116, 117catcocl 17629 . . . . . 6 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ((⟨𝑦, 𝑧⟩(comp‘𝐷)𝑤)𝑔) ∈ (𝑦(Hom ‘𝐷)𝑤))
1401, 2, 114, 137, 138, 6, 108, 8, 109, 9, 10, 113, 139curf12 18180 . . . . 5 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ((𝑦(2nd𝐾)𝑤)‘((⟨𝑦, 𝑧⟩(comp‘𝐷)𝑤)𝑔)) = (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑤⟩)((⟨𝑦, 𝑧⟩(comp‘𝐷)𝑤)𝑔)))
1411, 2, 114, 137, 138, 6, 108, 8, 109curf11 18179 . . . . . . . . 9 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ((1st𝐾)‘𝑦) = (𝑋(1st𝐹)𝑦))
142141, 65eqtrdi 2789 . . . . . . . 8 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ((1st𝐾)‘𝑦) = ((1st𝐹)‘⟨𝑋, 𝑦⟩))
1431, 2, 114, 137, 138, 6, 108, 8, 110curf11 18179 . . . . . . . . 9 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ((1st𝐾)‘𝑧) = (𝑋(1st𝐹)𝑧))
144143, 68eqtrdi 2789 . . . . . . . 8 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ((1st𝐾)‘𝑧) = ((1st𝐹)‘⟨𝑋, 𝑧⟩))
145142, 144opeq12d 4882 . . . . . . 7 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ⟨((1st𝐾)‘𝑦), ((1st𝐾)‘𝑧)⟩ = ⟨((1st𝐹)‘⟨𝑋, 𝑦⟩), ((1st𝐹)‘⟨𝑋, 𝑧⟩)⟩)
1461, 2, 114, 137, 138, 6, 108, 8, 113curf11 18179 . . . . . . . 8 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ((1st𝐾)‘𝑤) = (𝑋(1st𝐹)𝑤))
147 df-ov 7412 . . . . . . . 8 (𝑋(1st𝐹)𝑤) = ((1st𝐹)‘⟨𝑋, 𝑤⟩)
148146, 147eqtrdi 2789 . . . . . . 7 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ((1st𝐾)‘𝑤) = ((1st𝐹)‘⟨𝑋, 𝑤⟩))
149145, 148oveq12d 7427 . . . . . 6 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → (⟨((1st𝐾)‘𝑦), ((1st𝐾)‘𝑧)⟩(comp‘𝐸)((1st𝐾)‘𝑤)) = (⟨((1st𝐹)‘⟨𝑋, 𝑦⟩), ((1st𝐹)‘⟨𝑋, 𝑧⟩)⟩(comp‘𝐸)((1st𝐹)‘⟨𝑋, 𝑤⟩)))
1501, 2, 114, 137, 138, 6, 108, 8, 110, 9, 10, 113, 117curf12 18180 . . . . . . 7 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ((𝑧(2nd𝐾)𝑤)‘) = (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑧⟩(2nd𝐹)⟨𝑋, 𝑤⟩)))
151 df-ov 7412 . . . . . . 7 (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑧⟩(2nd𝐹)⟨𝑋, 𝑤⟩)) = ((⟨𝑋, 𝑧⟩(2nd𝐹)⟨𝑋, 𝑤⟩)‘⟨((Id‘𝐶)‘𝑋), ⟩)
152150, 151eqtrdi 2789 . . . . . 6 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ((𝑧(2nd𝐾)𝑤)‘) = ((⟨𝑋, 𝑧⟩(2nd𝐹)⟨𝑋, 𝑤⟩)‘⟨((Id‘𝐶)‘𝑋), ⟩))
1531, 2, 114, 137, 138, 6, 108, 8, 109, 9, 10, 110, 116curf12 18180 . . . . . . 7 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ((𝑦(2nd𝐾)𝑧)‘𝑔) = (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔))
154 df-ov 7412 . . . . . . 7 (((Id‘𝐶)‘𝑋)(⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)𝑔) = ((⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)‘⟨((Id‘𝐶)‘𝑋), 𝑔⟩)
155153, 154eqtrdi 2789 . . . . . 6 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ((𝑦(2nd𝐾)𝑧)‘𝑔) = ((⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)‘⟨((Id‘𝐶)‘𝑋), 𝑔⟩))
156149, 152, 155oveq123d 7430 . . . . 5 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → (((𝑧(2nd𝐾)𝑤)‘)(⟨((1st𝐾)‘𝑦), ((1st𝐾)‘𝑧)⟩(comp‘𝐸)((1st𝐾)‘𝑤))((𝑦(2nd𝐾)𝑧)‘𝑔)) = (((⟨𝑋, 𝑧⟩(2nd𝐹)⟨𝑋, 𝑤⟩)‘⟨((Id‘𝐶)‘𝑋), ⟩)(⟨((1st𝐹)‘⟨𝑋, 𝑦⟩), ((1st𝐹)‘⟨𝑋, 𝑧⟩)⟩(comp‘𝐸)((1st𝐹)‘⟨𝑋, 𝑤⟩))((⟨𝑋, 𝑦⟩(2nd𝐹)⟨𝑋, 𝑧⟩)‘⟨((Id‘𝐶)‘𝑋), 𝑔⟩)))
157136, 140, 1563eqtr4d 2783 . . . 4 ((𝜑 ∧ (𝑦𝐵𝑧𝐵𝑤𝐵) ∧ (𝑔 ∈ (𝑦(Hom ‘𝐷)𝑧) ∧ ∈ (𝑧(Hom ‘𝐷)𝑤))) → ((𝑦(2nd𝐾)𝑤)‘((⟨𝑦, 𝑧⟩(comp‘𝐷)𝑤)𝑔)) = (((𝑧(2nd𝐾)𝑤)‘)(⟨((1st𝐾)‘𝑦), ((1st𝐾)‘𝑧)⟩(comp‘𝐸)((1st𝐾)‘𝑤))((𝑦(2nd𝐾)𝑧)‘𝑔)))
1586, 21, 9, 22, 23, 24, 25, 26, 4, 29, 40, 46, 88, 107, 157isfuncd 17815 . . 3 (𝜑 → (1st𝐾)(𝐷 Func 𝐸)(2nd𝐾))
159 df-br 5150 . . 3 ((1st𝐾)(𝐷 Func 𝐸)(2nd𝐾) ↔ ⟨(1st𝐾), (2nd𝐾)⟩ ∈ (𝐷 Func 𝐸))
160158, 159sylib 217 . 2 (𝜑 → ⟨(1st𝐾), (2nd𝐾)⟩ ∈ (𝐷 Func 𝐸))
16120, 160eqeltrd 2834 1 (𝜑𝐾 ∈ (𝐷 Func 𝐸))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 397  w3a 1088   = wceq 1542  wcel 2107  Vcvv 3475  cop 4635   class class class wbr 5149  cmpt 5232   × cxp 5675  Rel wrel 5682   Fn wfn 6539  wf 6540  cfv 6544  (class class class)co 7409  cmpo 7411  1st c1st 7973  2nd c2nd 7974  Basecbs 17144  Hom chom 17208  compcco 17209  Catccat 17608  Idccid 17609   Func cfunc 17804   ×c cxpc 18120   curryF ccurf 18163
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-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-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-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-xpc 18124  df-curf 18167
This theorem is referenced by:  curf2cl  18184  curfcl  18185
  Copyright terms: Public domain W3C validator