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

Theorem cofu2nd 17645
Description: Value of the morphism part of the functor composition. (Contributed by Mario Carneiro, 3-Jan-2017.)
Hypotheses
Ref Expression
cofuval.b 𝐵 = (Base‘𝐶)
cofuval.f (𝜑𝐹 ∈ (𝐶 Func 𝐷))
cofuval.g (𝜑𝐺 ∈ (𝐷 Func 𝐸))
cofu2nd.x (𝜑𝑋𝐵)
cofu2nd.y (𝜑𝑌𝐵)
Assertion
Ref Expression
cofu2nd (𝜑 → (𝑋(2nd ‘(𝐺func 𝐹))𝑌) = ((((1st𝐹)‘𝑋)(2nd𝐺)((1st𝐹)‘𝑌)) ∘ (𝑋(2nd𝐹)𝑌)))

Proof of Theorem cofu2nd
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 cofuval.b . . . . 5 𝐵 = (Base‘𝐶)
2 cofuval.f . . . . 5 (𝜑𝐹 ∈ (𝐶 Func 𝐷))
3 cofuval.g . . . . 5 (𝜑𝐺 ∈ (𝐷 Func 𝐸))
41, 2, 3cofuval 17642 . . . 4 (𝜑 → (𝐺func 𝐹) = ⟨((1st𝐺) ∘ (1st𝐹)), (𝑥𝐵, 𝑦𝐵 ↦ ((((1st𝐹)‘𝑥)(2nd𝐺)((1st𝐹)‘𝑦)) ∘ (𝑥(2nd𝐹)𝑦)))⟩)
54fveq2d 6808 . . 3 (𝜑 → (2nd ‘(𝐺func 𝐹)) = (2nd ‘⟨((1st𝐺) ∘ (1st𝐹)), (𝑥𝐵, 𝑦𝐵 ↦ ((((1st𝐹)‘𝑥)(2nd𝐺)((1st𝐹)‘𝑦)) ∘ (𝑥(2nd𝐹)𝑦)))⟩))
6 fvex 6817 . . . . 5 (1st𝐺) ∈ V
7 fvex 6817 . . . . 5 (1st𝐹) ∈ V
86, 7coex 7809 . . . 4 ((1st𝐺) ∘ (1st𝐹)) ∈ V
91fvexi 6818 . . . . 5 𝐵 ∈ V
109, 9mpoex 7952 . . . 4 (𝑥𝐵, 𝑦𝐵 ↦ ((((1st𝐹)‘𝑥)(2nd𝐺)((1st𝐹)‘𝑦)) ∘ (𝑥(2nd𝐹)𝑦))) ∈ V
118, 10op2nd 7872 . . 3 (2nd ‘⟨((1st𝐺) ∘ (1st𝐹)), (𝑥𝐵, 𝑦𝐵 ↦ ((((1st𝐹)‘𝑥)(2nd𝐺)((1st𝐹)‘𝑦)) ∘ (𝑥(2nd𝐹)𝑦)))⟩) = (𝑥𝐵, 𝑦𝐵 ↦ ((((1st𝐹)‘𝑥)(2nd𝐺)((1st𝐹)‘𝑦)) ∘ (𝑥(2nd𝐹)𝑦)))
125, 11eqtrdi 2792 . 2 (𝜑 → (2nd ‘(𝐺func 𝐹)) = (𝑥𝐵, 𝑦𝐵 ↦ ((((1st𝐹)‘𝑥)(2nd𝐺)((1st𝐹)‘𝑦)) ∘ (𝑥(2nd𝐹)𝑦))))
13 simprl 769 . . . . 5 ((𝜑 ∧ (𝑥 = 𝑋𝑦 = 𝑌)) → 𝑥 = 𝑋)
1413fveq2d 6808 . . . 4 ((𝜑 ∧ (𝑥 = 𝑋𝑦 = 𝑌)) → ((1st𝐹)‘𝑥) = ((1st𝐹)‘𝑋))
15 simprr 771 . . . . 5 ((𝜑 ∧ (𝑥 = 𝑋𝑦 = 𝑌)) → 𝑦 = 𝑌)
1615fveq2d 6808 . . . 4 ((𝜑 ∧ (𝑥 = 𝑋𝑦 = 𝑌)) → ((1st𝐹)‘𝑦) = ((1st𝐹)‘𝑌))
1714, 16oveq12d 7325 . . 3 ((𝜑 ∧ (𝑥 = 𝑋𝑦 = 𝑌)) → (((1st𝐹)‘𝑥)(2nd𝐺)((1st𝐹)‘𝑦)) = (((1st𝐹)‘𝑋)(2nd𝐺)((1st𝐹)‘𝑌)))
1813, 15oveq12d 7325 . . 3 ((𝜑 ∧ (𝑥 = 𝑋𝑦 = 𝑌)) → (𝑥(2nd𝐹)𝑦) = (𝑋(2nd𝐹)𝑌))
1917, 18coeq12d 5786 . 2 ((𝜑 ∧ (𝑥 = 𝑋𝑦 = 𝑌)) → ((((1st𝐹)‘𝑥)(2nd𝐺)((1st𝐹)‘𝑦)) ∘ (𝑥(2nd𝐹)𝑦)) = ((((1st𝐹)‘𝑋)(2nd𝐺)((1st𝐹)‘𝑌)) ∘ (𝑋(2nd𝐹)𝑌)))
20 cofu2nd.x . 2 (𝜑𝑋𝐵)
21 cofu2nd.y . 2 (𝜑𝑌𝐵)
22 ovex 7340 . . . 4 (((1st𝐹)‘𝑋)(2nd𝐺)((1st𝐹)‘𝑌)) ∈ V
23 ovex 7340 . . . 4 (𝑋(2nd𝐹)𝑌) ∈ V
2422, 23coex 7809 . . 3 ((((1st𝐹)‘𝑋)(2nd𝐺)((1st𝐹)‘𝑌)) ∘ (𝑋(2nd𝐹)𝑌)) ∈ V
2524a1i 11 . 2 (𝜑 → ((((1st𝐹)‘𝑋)(2nd𝐺)((1st𝐹)‘𝑌)) ∘ (𝑋(2nd𝐹)𝑌)) ∈ V)
2612, 19, 20, 21, 25ovmpod 7457 1 (𝜑 → (𝑋(2nd ‘(𝐺func 𝐹))𝑌) = ((((1st𝐹)‘𝑋)(2nd𝐺)((1st𝐹)‘𝑌)) ∘ (𝑋(2nd𝐹)𝑌)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 397   = wceq 1539  wcel 2104  Vcvv 3437  cop 4571  ccom 5604  cfv 6458  (class class class)co 7307  cmpo 7309  1st c1st 7861  2nd c2nd 7862  Basecbs 16957   Func cfunc 17614  func ccofu 17616
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1911  ax-6 1969  ax-7 2009  ax-8 2106  ax-9 2114  ax-10 2135  ax-11 2152  ax-12 2169  ax-ext 2707  ax-rep 5218  ax-sep 5232  ax-nul 5239  ax-pow 5297  ax-pr 5361  ax-un 7620
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 846  df-3an 1089  df-tru 1542  df-fal 1552  df-ex 1780  df-nf 1784  df-sb 2066  df-mo 2538  df-eu 2567  df-clab 2714  df-cleq 2728  df-clel 2814  df-nfc 2887  df-ne 2942  df-ral 3063  df-rex 3072  df-reu 3286  df-rab 3287  df-v 3439  df-sbc 3722  df-csb 3838  df-dif 3895  df-un 3897  df-in 3899  df-ss 3909  df-nul 4263  df-if 4466  df-pw 4541  df-sn 4566  df-pr 4568  df-op 4572  df-uni 4845  df-iun 4933  df-br 5082  df-opab 5144  df-mpt 5165  df-id 5500  df-xp 5606  df-rel 5607  df-cnv 5608  df-co 5609  df-dm 5610  df-rn 5611  df-res 5612  df-ima 5613  df-iota 6410  df-fun 6460  df-fn 6461  df-f 6462  df-f1 6463  df-fo 6464  df-f1o 6465  df-fv 6466  df-ov 7310  df-oprab 7311  df-mpo 7312  df-1st 7863  df-2nd 7864  df-map 8648  df-ixp 8717  df-func 17618  df-cofu 17620
This theorem is referenced by:  cofu2  17646  cofucl  17648  cofuass  17649  cofull  17695  cofth  17696  catciso  17871
  Copyright terms: Public domain W3C validator