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

Theorem cofuval2 18112
Description: Value of the composition of two functors. (Contributed by Mario Carneiro, 3-Jan-2017.)
Hypotheses
Ref Expression
cofuval2.b 𝐵 = (Base‘𝐶)
cofuval2.f (𝜑 → 𝐹(𝐶 Func 𝐷)𝐺)
cofuval2.x (𝜑 → 𝐻(𝐷 Func 𝐸)𝐾)
Assertion
Ref Expression
cofuval2 (𝜑 → (⟨𝐻, 𝐾⟩ ∘func ⟨𝐹, 𝐺⟩) = ⟨(𝐻 ∘ 𝐹), (𝑥 ∈ 𝐵, 𝑦 ∈ 𝐵 ↦ (((𝐹‘𝑥)𝐾(𝐹‘𝑦)) ∘ (𝑥𝐺𝑦)))⟩)
Distinct variable groups:   𝑥,𝑦,𝐵   𝑥,𝐹,𝑦   𝑥,𝐺,𝑦   𝑥,𝐻,𝑦   𝜑,𝑥,𝑦   𝑥,𝐾,𝑦
Allowed substitution hints:   𝐶(𝑥, 𝑦)   𝐷(𝑥, 𝑦)   𝐸(𝑥, 𝑦)

Proof of Theorem cofuval2
StepHypRef Expression
1 cofuval2.b . . 3 𝐵 = (Base‘𝐶)
2 cofuval2.f . . . 4 (𝜑 → 𝐹(𝐶 Func 𝐷)𝐺)
3 df-br 5109 . . . 4 (𝐹(𝐶 Func 𝐷)𝐺 ↔ ⟨𝐹, 𝐺⟩ ∈ (𝐶 Func 𝐷))
42, 3sylib 221 . . 3 (𝜑 → ⟨𝐹, 𝐺⟩ ∈ (𝐶 Func 𝐷))
5 cofuval2.x . . . 4 (𝜑 → 𝐻(𝐷 Func 𝐸)𝐾)
6 df-br 5109 . . . 4 (𝐻(𝐷 Func 𝐸)𝐾 ↔ ⟨𝐻, 𝐾⟩ ∈ (𝐷 Func 𝐸))
75, 6sylib 221 . . 3 (𝜑 → ⟨𝐻, 𝐾⟩ ∈ (𝐷 Func 𝐸))
81, 4, 7cofuval 18107 . 2 (𝜑 → (⟨𝐻, 𝐾⟩ ∘func ⟨𝐹, 𝐺⟩) = ⟨((1st ‘⟨𝐻, 𝐾⟩) ∘ (1st ‘⟨𝐹, 𝐺⟩)), (𝑥 ∈ 𝐵, 𝑦 ∈ 𝐵 ↦ ((((1st ‘⟨𝐹, 𝐺⟩)‘𝑥)(2nd ‘⟨𝐻, 𝐾⟩)((1st ‘⟨𝐹, 𝐺⟩)‘𝑦)) ∘ (𝑥(2nd ‘⟨𝐹, 𝐺⟩)𝑦)))⟩)
9 relfunc 18087 . . . . . 6 Rel (𝐷 Func 𝐸)
10 brrelex12 5710 . . . . . 6 ((Rel (𝐷 Func 𝐸) ∧ 𝐻(𝐷 Func 𝐸)𝐾) → (𝐻 ∈ V ∧ 𝐾 ∈ V))
119, 5, 10sylancr 599 . . . . 5 (𝜑 → (𝐻 ∈ V ∧ 𝐾 ∈ V))
12 op1stg 8047 . . . . 5 ((𝐻 ∈ V ∧ 𝐾 ∈ V) → (1st ‘⟨𝐻, 𝐾⟩) = 𝐻)
1311, 12syl 18 . . . 4 (𝜑 → (1st ‘⟨𝐻, 𝐾⟩) = 𝐻)
14 relfunc 18087 . . . . . 6 Rel (𝐶 Func 𝐷)
15 brrelex12 5710 . . . . . 6 ((Rel (𝐶 Func 𝐷) ∧ 𝐹(𝐶 Func 𝐷)𝐺) → (𝐹 ∈ V ∧ 𝐺 ∈ V))
1614, 2, 15sylancr 599 . . . . 5 (𝜑 → (𝐹 ∈ V ∧ 𝐺 ∈ V))
17 op1stg 8047 . . . . 5 ((𝐹 ∈ V ∧ 𝐺 ∈ V) → (1st ‘⟨𝐹, 𝐺⟩) = 𝐹)
1816, 17syl 18 . . . 4 (𝜑 → (1st ‘⟨𝐹, 𝐺⟩) = 𝐹)
1913, 18coeq12d 5853 . . 3 (𝜑 → ((1st ‘⟨𝐻, 𝐾⟩) ∘ (1st ‘⟨𝐹, 𝐺⟩)) = (𝐻 ∘ 𝐹))
20 op2ndg 8048 . . . . . . . 8 ((𝐻 ∈ V ∧ 𝐾 ∈ V) → (2nd ‘⟨𝐻, 𝐾⟩) = 𝐾)
2111, 20syl 18 . . . . . . 7 (𝜑 → (2nd ‘⟨𝐻, 𝐾⟩) = 𝐾)
22213ad2ant1 1151 . . . . . 6 ((𝜑 ∧ 𝑥 ∈ 𝐵 ∧ 𝑦 ∈ 𝐵) → (2nd ‘⟨𝐻, 𝐾⟩) = 𝐾)
23183ad2ant1 1151 . . . . . . 7 ((𝜑 ∧ 𝑥 ∈ 𝐵 ∧ 𝑦 ∈ 𝐵) → (1st ‘⟨𝐹, 𝐺⟩) = 𝐹)
2423fveq1d 6918 . . . . . 6 ((𝜑 ∧ 𝑥 ∈ 𝐵 ∧ 𝑦 ∈ 𝐵) → ((1st ‘⟨𝐹, 𝐺⟩)‘𝑥) = (𝐹‘𝑥))
2523fveq1d 6918 . . . . . 6 ((𝜑 ∧ 𝑥 ∈ 𝐵 ∧ 𝑦 ∈ 𝐵) → ((1st ‘⟨𝐹, 𝐺⟩)‘𝑦) = (𝐹‘𝑦))
2622, 24, 25oveq123d 7472 . . . . 5 ((𝜑 ∧ 𝑥 ∈ 𝐵 ∧ 𝑦 ∈ 𝐵) → (((1st ‘⟨𝐹, 𝐺⟩)‘𝑥)(2nd ‘⟨𝐻, 𝐾⟩)((1st ‘⟨𝐹, 𝐺⟩)‘𝑦)) = ((𝐹‘𝑥)𝐾(𝐹‘𝑦)))
27 op2ndg 8048 . . . . . . . 8 ((𝐹 ∈ V ∧ 𝐺 ∈ V) → (2nd ‘⟨𝐹, 𝐺⟩) = 𝐺)
2816, 27syl 18 . . . . . . 7 (𝜑 → (2nd ‘⟨𝐹, 𝐺⟩) = 𝐺)
29283ad2ant1 1151 . . . . . 6 ((𝜑 ∧ 𝑥 ∈ 𝐵 ∧ 𝑦 ∈ 𝐵) → (2nd ‘⟨𝐹, 𝐺⟩) = 𝐺)
3029oveqd 7468 . . . . 5 ((𝜑 ∧ 𝑥 ∈ 𝐵 ∧ 𝑦 ∈ 𝐵) → (𝑥(2nd ‘⟨𝐹, 𝐺⟩)𝑦) = (𝑥𝐺𝑦))
3126, 30coeq12d 5853 . . . 4 ((𝜑 ∧ 𝑥 ∈ 𝐵 ∧ 𝑦 ∈ 𝐵) → ((((1st ‘⟨𝐹, 𝐺⟩)‘𝑥)(2nd ‘⟨𝐻, 𝐾⟩)((1st ‘⟨𝐹, 𝐺⟩)‘𝑦)) ∘ (𝑥(2nd ‘⟨𝐹, 𝐺⟩)𝑦)) = (((𝐹‘𝑥)𝐾(𝐹‘𝑦)) ∘ (𝑥𝐺𝑦)))
3231mpoeq3dva 7528 . . 3 (𝜑 → (𝑥 ∈ 𝐵, 𝑦 ∈ 𝐵 ↦ ((((1st ‘⟨𝐹, 𝐺⟩)‘𝑥)(2nd ‘⟨𝐻, 𝐾⟩)((1st ‘⟨𝐹, 𝐺⟩)‘𝑦)) ∘ (𝑥(2nd ‘⟨𝐹, 𝐺⟩)𝑦))) = (𝑥 ∈ 𝐵, 𝑦 ∈ 𝐵 ↦ (((𝐹‘𝑥)𝐾(𝐹‘𝑦)) ∘ (𝑥𝐺𝑦))))
3319, 32opeq12d 4853 . 2 (𝜑 → ⟨((1st ‘⟨𝐻, 𝐾⟩) ∘ (1st ‘⟨𝐹, 𝐺⟩)), (𝑥 ∈ 𝐵, 𝑦 ∈ 𝐵 ↦ ((((1st ‘⟨𝐹, 𝐺⟩)‘𝑥)(2nd ‘⟨𝐻, 𝐾⟩)((1st ‘⟨𝐹, 𝐺⟩)‘𝑦)) ∘ (𝑥(2nd ‘⟨𝐹, 𝐺⟩)𝑦)))⟩ = ⟨(𝐻 ∘ 𝐹), (𝑥 ∈ 𝐵, 𝑦 ∈ 𝐵 ↦ (((𝐹‘𝑥)𝐾(𝐹‘𝑦)) ∘ (𝑥𝐺𝑦)))⟩)
348, 33eqtrd 2798 1 (𝜑 → (⟨𝐻, 𝐾⟩ ∘func ⟨𝐹, 𝐺⟩) = ⟨(𝐻 ∘ 𝐹), (𝑥 ∈ 𝐵, 𝑦 ∈ 𝐵 ↦ (((𝐹‘𝑥)𝐾(𝐹‘𝑦)) ∘ (𝑥𝐺𝑦)))⟩)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   ∧ w3a 1103   = wceq 1570   ∈ wcel 2147  Vcvv 3454  ⟨cop 4840   class class class wbr 5108   ∘ ccom 5662  Rel wrel 5663  ‘cfv 6566  (class class class)co 7451   ∈ cmpo 7453  1st c1st 8033  2nd c2nd 8034  Basecbs 17431   Func cfunc 18079   ∘func ccofu 18081
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5238  ax-sep 5255  ax-nul 5266  ax-pow 5334  ax-pr 5398  ax-un 7783
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4841  df-uni 4873  df-iun 4958  df-br 5109  df-opab 5174  df-mpt 5193  df-id 5553  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-fv 6574  df-ov 7454  df-oprab 7455  df-mpo 7456  df-1st 8035  df-2nd 8036  df-map 8887  df-ixp 8964  df-func 18083  df-cofu 18085
This theorem is used by:  catcisolem  18335  funcrngcsetcALT  20944  cofidval  50566  cofuoppf  50597  fuco11a  50781
  Copyright terms: Public domain W3C validator