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

Theorem ofco 7431
Description: The composition of a function operation with another function. (Contributed by Mario Carneiro, 19-Dec-2014.)
Hypotheses
Ref Expression
ofco.1 (𝜑𝐹 Fn 𝐴)
ofco.2 (𝜑𝐺 Fn 𝐵)
ofco.3 (𝜑𝐻:𝐷𝐶)
ofco.4 (𝜑𝐴𝑉)
ofco.5 (𝜑𝐵𝑊)
ofco.6 (𝜑𝐷𝑋)
ofco.7 (𝐴𝐵) = 𝐶
Assertion
Ref Expression
ofco (𝜑 → ((𝐹f 𝑅𝐺) ∘ 𝐻) = ((𝐹𝐻) ∘f 𝑅(𝐺𝐻)))

Proof of Theorem ofco
Dummy variables 𝑦 𝑥 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ofco.3 . . . 4 (𝜑𝐻:𝐷𝐶)
21ffvelrnda 6853 . . 3 ((𝜑𝑥𝐷) → (𝐻𝑥) ∈ 𝐶)
31feqmptd 6735 . . 3 (𝜑𝐻 = (𝑥𝐷 ↦ (𝐻𝑥)))
4 ofco.1 . . . 4 (𝜑𝐹 Fn 𝐴)
5 ofco.2 . . . 4 (𝜑𝐺 Fn 𝐵)
6 ofco.4 . . . 4 (𝜑𝐴𝑉)
7 ofco.5 . . . 4 (𝜑𝐵𝑊)
8 ofco.7 . . . 4 (𝐴𝐵) = 𝐶
9 eqidd 2824 . . . 4 ((𝜑𝑦𝐴) → (𝐹𝑦) = (𝐹𝑦))
10 eqidd 2824 . . . 4 ((𝜑𝑦𝐵) → (𝐺𝑦) = (𝐺𝑦))
114, 5, 6, 7, 8, 9, 10offval 7418 . . 3 (𝜑 → (𝐹f 𝑅𝐺) = (𝑦𝐶 ↦ ((𝐹𝑦)𝑅(𝐺𝑦))))
12 fveq2 6672 . . . 4 (𝑦 = (𝐻𝑥) → (𝐹𝑦) = (𝐹‘(𝐻𝑥)))
13 fveq2 6672 . . . 4 (𝑦 = (𝐻𝑥) → (𝐺𝑦) = (𝐺‘(𝐻𝑥)))
1412, 13oveq12d 7176 . . 3 (𝑦 = (𝐻𝑥) → ((𝐹𝑦)𝑅(𝐺𝑦)) = ((𝐹‘(𝐻𝑥))𝑅(𝐺‘(𝐻𝑥))))
152, 3, 11, 14fmptco 6893 . 2 (𝜑 → ((𝐹f 𝑅𝐺) ∘ 𝐻) = (𝑥𝐷 ↦ ((𝐹‘(𝐻𝑥))𝑅(𝐺‘(𝐻𝑥)))))
16 inss1 4207 . . . . . 6 (𝐴𝐵) ⊆ 𝐴
178, 16eqsstrri 4004 . . . . 5 𝐶𝐴
18 fss 6529 . . . . 5 ((𝐻:𝐷𝐶𝐶𝐴) → 𝐻:𝐷𝐴)
191, 17, 18sylancl 588 . . . 4 (𝜑𝐻:𝐷𝐴)
20 fnfco 6545 . . . 4 ((𝐹 Fn 𝐴𝐻:𝐷𝐴) → (𝐹𝐻) Fn 𝐷)
214, 19, 20syl2anc 586 . . 3 (𝜑 → (𝐹𝐻) Fn 𝐷)
22 inss2 4208 . . . . . 6 (𝐴𝐵) ⊆ 𝐵
238, 22eqsstrri 4004 . . . . 5 𝐶𝐵
24 fss 6529 . . . . 5 ((𝐻:𝐷𝐶𝐶𝐵) → 𝐻:𝐷𝐵)
251, 23, 24sylancl 588 . . . 4 (𝜑𝐻:𝐷𝐵)
26 fnfco 6545 . . . 4 ((𝐺 Fn 𝐵𝐻:𝐷𝐵) → (𝐺𝐻) Fn 𝐷)
275, 25, 26syl2anc 586 . . 3 (𝜑 → (𝐺𝐻) Fn 𝐷)
28 ofco.6 . . 3 (𝜑𝐷𝑋)
29 inidm 4197 . . 3 (𝐷𝐷) = 𝐷
301ffnd 6517 . . . 4 (𝜑𝐻 Fn 𝐷)
31 fvco2 6760 . . . 4 ((𝐻 Fn 𝐷𝑥𝐷) → ((𝐹𝐻)‘𝑥) = (𝐹‘(𝐻𝑥)))
3230, 31sylan 582 . . 3 ((𝜑𝑥𝐷) → ((𝐹𝐻)‘𝑥) = (𝐹‘(𝐻𝑥)))
33 fvco2 6760 . . . 4 ((𝐻 Fn 𝐷𝑥𝐷) → ((𝐺𝐻)‘𝑥) = (𝐺‘(𝐻𝑥)))
3430, 33sylan 582 . . 3 ((𝜑𝑥𝐷) → ((𝐺𝐻)‘𝑥) = (𝐺‘(𝐻𝑥)))
3521, 27, 28, 28, 29, 32, 34offval 7418 . 2 (𝜑 → ((𝐹𝐻) ∘f 𝑅(𝐺𝐻)) = (𝑥𝐷 ↦ ((𝐹‘(𝐻𝑥))𝑅(𝐺‘(𝐻𝑥)))))
3615, 35eqtr4d 2861 1 (𝜑 → ((𝐹f 𝑅𝐺) ∘ 𝐻) = ((𝐹𝐻) ∘f 𝑅(𝐺𝐻)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398   = wceq 1537  wcel 2114  cin 3937  wss 3938  cmpt 5148  ccom 5561   Fn wfn 6352  wf 6353  cfv 6357  (class class class)co 7158  f cof 7409
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2795  ax-rep 5192  ax-sep 5205  ax-nul 5212  ax-pow 5268  ax-pr 5332
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2802  df-cleq 2816  df-clel 2895  df-nfc 2965  df-ne 3019  df-ral 3145  df-rex 3146  df-reu 3147  df-rab 3149  df-v 3498  df-sbc 3775  df-csb 3886  df-dif 3941  df-un 3943  df-in 3945  df-ss 3954  df-nul 4294  df-if 4470  df-sn 4570  df-pr 4572  df-op 4576  df-uni 4841  df-iun 4923  df-br 5069  df-opab 5131  df-mpt 5149  df-id 5462  df-xp 5563  df-rel 5564  df-cnv 5565  df-co 5566  df-dm 5567  df-rn 5568  df-res 5569  df-ima 5570  df-iota 6316  df-fun 6359  df-fn 6360  df-f 6361  df-f1 6362  df-fo 6363  df-f1o 6364  df-fv 6365  df-ov 7161  df-oprab 7162  df-mpo 7163  df-of 7411
This theorem is referenced by:  gsumzaddlem  19043  coe1add  20434  pf1ind  20520  mendring  39799
  Copyright terms: Public domain W3C validator