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

Theorem cofuval2 18071
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 5103 . . . 4 (𝐹(𝐶 Func 𝐷)𝐺 ↔ ⟨𝐹, 𝐺⟩ ∈ (𝐶 Func 𝐷))
42, 3sylib 221 . . 3 (𝜑 → ⟨𝐹, 𝐺⟩ ∈ (𝐶 Func 𝐷))
5 cofuval2.x . . . 4 (𝜑 → 𝐻(𝐷 Func 𝐸)𝐾)
6 df-br 5103 . . . 4 (𝐻(𝐷 Func 𝐸)𝐾 ↔ ⟨𝐻, 𝐾⟩ ∈ (𝐷 Func 𝐸))
75, 6sylib 221 . . 3 (𝜑 → ⟨𝐻, 𝐾⟩ ∈ (𝐷 Func 𝐸))
81, 4, 7cofuval 18066 . 2 (𝜑 → (⟨𝐻, 𝐾⟩ ∘func ⟨𝐹, 𝐺⟩) = ⟨((1st ‘⟨𝐻, 𝐾⟩) ∘ (1st ‘⟨𝐹, 𝐺⟩)), (𝑥 ∈ 𝐵, 𝑦 ∈ 𝐵 ↦ ((((1st ‘⟨𝐹, 𝐺⟩)‘𝑥)(2nd ‘⟨𝐻, 𝐾⟩)((1st ‘⟨𝐹, 𝐺⟩)‘𝑦)) ∘ (𝑥(2nd ‘⟨𝐹, 𝐺⟩)𝑦)))⟩)
9 relfunc 18046 . . . . . 6 Rel (𝐷 Func 𝐸)
10 brrelex12 5703 . . . . . 6 ((Rel (𝐷 Func 𝐸) ∧ 𝐻(𝐷 Func 𝐸)𝐾) → (𝐻 ∈ V ∧ 𝐾 ∈ V))
119, 5, 10sylancr 599 . . . . 5 (𝜑 → (𝐻 ∈ V ∧ 𝐾 ∈ V))
12 op1stg 8017 . . . . 5 ((𝐻 ∈ V ∧ 𝐾 ∈ V) → (1st ‘⟨𝐻, 𝐾⟩) = 𝐻)
1311, 12syl 18 . . . 4 (𝜑 → (1st ‘⟨𝐻, 𝐾⟩) = 𝐻)
14 relfunc 18046 . . . . . 6 Rel (𝐶 Func 𝐷)
15 brrelex12 5703 . . . . . 6 ((Rel (𝐶 Func 𝐷) ∧ 𝐹(𝐶 Func 𝐷)𝐺) → (𝐹 ∈ V ∧ 𝐺 ∈ V))
1614, 2, 15sylancr 599 . . . . 5 (𝜑 → (𝐹 ∈ V ∧ 𝐺 ∈ V))
17 op1stg 8017 . . . . 5 ((𝐹 ∈ V ∧ 𝐺 ∈ V) → (1st ‘⟨𝐹, 𝐺⟩) = 𝐹)
1816, 17syl 18 . . . 4 (𝜑 → (1st ‘⟨𝐹, 𝐺⟩) = 𝐹)
1913, 18coeq12d 5843 . . 3 (𝜑 → ((1st ‘⟨𝐻, 𝐾⟩) ∘ (1st ‘⟨𝐹, 𝐺⟩)) = (𝐻 ∘ 𝐹))
20 op2ndg 8018 . . . . . . . 8 ((𝐻 ∈ V ∧ 𝐾 ∈ V) → (2nd ‘⟨𝐻, 𝐾⟩) = 𝐾)
2111, 20syl 18 . . . . . . 7 (𝜑 → (2nd ‘⟨𝐻, 𝐾⟩) = 𝐾)
22213ad2ant1 1151 . . . . . 6 ((𝜑 ∧ 𝑥 ∈ 𝐵 ∧ 𝑦 ∈ 𝐵) → (2nd ‘⟨𝐻, 𝐾⟩) = 𝐾)
23183ad2ant1 1151 . . . . . . 7 ((𝜑 ∧ 𝑥 ∈ 𝐵 ∧ 𝑦 ∈ 𝐵) → (1st ‘⟨𝐹, 𝐺⟩) = 𝐹)
2423fveq1d 6892 . . . . . 6 ((𝜑 ∧ 𝑥 ∈ 𝐵 ∧ 𝑦 ∈ 𝐵) → ((1st ‘⟨𝐹, 𝐺⟩)‘𝑥) = (𝐹‘𝑥))
2523fveq1d 6892 . . . . . 6 ((𝜑 ∧ 𝑥 ∈ 𝐵 ∧ 𝑦 ∈ 𝐵) → ((1st ‘⟨𝐹, 𝐺⟩)‘𝑦) = (𝐹‘𝑦))
2622, 24, 25oveq123d 7445 . . . . 5 ((𝜑 ∧ 𝑥 ∈ 𝐵 ∧ 𝑦 ∈ 𝐵) → (((1st ‘⟨𝐹, 𝐺⟩)‘𝑥)(2nd ‘⟨𝐻, 𝐾⟩)((1st ‘⟨𝐹, 𝐺⟩)‘𝑦)) = ((𝐹‘𝑥)𝐾(𝐹‘𝑦)))
27 op2ndg 8018 . . . . . . . 8 ((𝐹 ∈ V ∧ 𝐺 ∈ V) → (2nd ‘⟨𝐹, 𝐺⟩) = 𝐺)
2816, 27syl 18 . . . . . . 7 (𝜑 → (2nd ‘⟨𝐹, 𝐺⟩) = 𝐺)
29283ad2ant1 1151 . . . . . 6 ((𝜑 ∧ 𝑥 ∈ 𝐵 ∧ 𝑦 ∈ 𝐵) → (2nd ‘⟨𝐹, 𝐺⟩) = 𝐺)
3029oveqd 7441 . . . . 5 ((𝜑 ∧ 𝑥 ∈ 𝐵 ∧ 𝑦 ∈ 𝐵) → (𝑥(2nd ‘⟨𝐹, 𝐺⟩)𝑦) = (𝑥𝐺𝑦))
3126, 30coeq12d 5843 . . . 4 ((𝜑 ∧ 𝑥 ∈ 𝐵 ∧ 𝑦 ∈ 𝐵) → ((((1st ‘⟨𝐹, 𝐺⟩)‘𝑥)(2nd ‘⟨𝐻, 𝐾⟩)((1st ‘⟨𝐹, 𝐺⟩)‘𝑦)) ∘ (𝑥(2nd ‘⟨𝐹, 𝐺⟩)𝑦)) = (((𝐹‘𝑥)𝐾(𝐹‘𝑦)) ∘ (𝑥𝐺𝑦)))
3231mpoeq3dva 7501 . . 3 (𝜑 → (𝑥 ∈ 𝐵, 𝑦 ∈ 𝐵 ↦ ((((1st ‘⟨𝐹, 𝐺⟩)‘𝑥)(2nd ‘⟨𝐻, 𝐾⟩)((1st ‘⟨𝐹, 𝐺⟩)‘𝑦)) ∘ (𝑥(2nd ‘⟨𝐹, 𝐺⟩)𝑦))) = (𝑥 ∈ 𝐵, 𝑦 ∈ 𝐵 ↦ (((𝐹‘𝑥)𝐾(𝐹‘𝑦)) ∘ (𝑥𝐺𝑦))))
3319, 32opeq12d 4847 . 2 (𝜑 → ⟨((1st ‘⟨𝐻, 𝐾⟩) ∘ (1st ‘⟨𝐹, 𝐺⟩)), (𝑥 ∈ 𝐵, 𝑦 ∈ 𝐵 ↦ ((((1st ‘⟨𝐹, 𝐺⟩)‘𝑥)(2nd ‘⟨𝐻, 𝐾⟩)((1st ‘⟨𝐹, 𝐺⟩)‘𝑦)) ∘ (𝑥(2nd ‘⟨𝐹, 𝐺⟩)𝑦)))⟩ = ⟨(𝐻 ∘ 𝐹), (𝑥 ∈ 𝐵, 𝑦 ∈ 𝐵 ↦ (((𝐹‘𝑥)𝐾(𝐹‘𝑦)) ∘ (𝑥𝐺𝑦)))⟩)
348, 33eqtrd 2795 1 (𝜑 → (⟨𝐻, 𝐾⟩ ∘func ⟨𝐹, 𝐺⟩) = ⟨(𝐻 ∘ 𝐹), (𝑥 ∈ 𝐵, 𝑦 ∈ 𝐵 ↦ (((𝐹‘𝑥)𝐾(𝐹‘𝑦)) ∘ (𝑥𝐺𝑦)))⟩)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   ∧ w3a 1103   = wceq 1569   ∈ wcel 2144  Vcvv 3450  ⟨cop 4834   class class class wbr 5102   ∘ ccom 5655  Rel wrel 5656  ‘cfv 6543  (class class class)co 7424   ∈ cmpo 7426  1st c1st 8003  2nd c2nd 8004  Basecbs 17396   Func cfunc 18038   ∘func ccofu 18040
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-rep 5231  ax-sep 5248  ax-nul 5259  ax-pow 5327  ax-pr 5391  ax-un 7755
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3848  df-ss 3897  df-dif 4046  df-in 4090  df-un 4150  df-nul 4278  df-if 4482  df-pw 4558  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-iota 6497  df-fun 6545  df-fn 6546  df-f 6547  df-fv 6551  df-ov 7427  df-oprab 7428  df-mpo 7429  df-1st 8005  df-2nd 8006  df-map 8857  df-ixp 8934  df-func 18042  df-cofu 18044
This theorem is used by:  catcisolem  18294  funcrngcsetcALT  20902  cofidval  50371  cofuoppf  50402  fuco11a  50586
  Copyright terms: Public domain W3C validator