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

Theorem ofco 6316
Description: The composition of a function operation with another function. (Contributed by Mario Carneiro, 19-Dec-2014.)
Hypotheses
Ref Expression
ofco.1  |-  ( ph  ->  F  Fn  A )
ofco.2  |-  ( ph  ->  G  Fn  B )
ofco.3  |-  ( ph  ->  H : D --> C )
ofco.4  |-  ( ph  ->  A  e.  V )
ofco.5  |-  ( ph  ->  B  e.  W )
ofco.6  |-  ( ph  ->  D  e.  X )
ofco.7  |-  ( A  i^i  B )  =  C
Assertion
Ref Expression
ofco  |-  ( ph  ->  ( ( F  o F R G )  o.  H )  =  ( ( F  o.  H
)  o F R ( G  o.  H
) ) )

Proof of Theorem ofco
Dummy variables  y  x are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ofco.3 . . . 4  |-  ( ph  ->  H : D --> C )
21ffvelrnda 5862 . . 3  |-  ( (
ph  /\  x  e.  D )  ->  ( H `  x )  e.  C )
31feqmptd 5771 . . 3  |-  ( ph  ->  H  =  ( x  e.  D  |->  ( H `
 x ) ) )
4 ofco.1 . . . 4  |-  ( ph  ->  F  Fn  A )
5 ofco.2 . . . 4  |-  ( ph  ->  G  Fn  B )
6 ofco.4 . . . 4  |-  ( ph  ->  A  e.  V )
7 ofco.5 . . . 4  |-  ( ph  ->  B  e.  W )
8 ofco.7 . . . 4  |-  ( A  i^i  B )  =  C
9 eqidd 2436 . . . 4  |-  ( (
ph  /\  y  e.  A )  ->  ( F `  y )  =  ( F `  y ) )
10 eqidd 2436 . . . 4  |-  ( (
ph  /\  y  e.  B )  ->  ( G `  y )  =  ( G `  y ) )
114, 5, 6, 7, 8, 9, 10offval 6304 . . 3  |-  ( ph  ->  ( F  o F R G )  =  ( y  e.  C  |->  ( ( F `  y ) R ( G `  y ) ) ) )
12 fveq2 5720 . . . 4  |-  ( y  =  ( H `  x )  ->  ( F `  y )  =  ( F `  ( H `  x ) ) )
13 fveq2 5720 . . . 4  |-  ( y  =  ( H `  x )  ->  ( G `  y )  =  ( G `  ( H `  x ) ) )
1412, 13oveq12d 6091 . . 3  |-  ( y  =  ( H `  x )  ->  (
( F `  y
) R ( G `
 y ) )  =  ( ( F `
 ( H `  x ) ) R ( G `  ( H `  x )
) ) )
152, 3, 11, 14fmptco 5893 . 2  |-  ( ph  ->  ( ( F  o F R G )  o.  H )  =  ( x  e.  D  |->  ( ( F `  ( H `  x )
) R ( G `
 ( H `  x ) ) ) ) )
16 inss1 3553 . . . . . 6  |-  ( A  i^i  B )  C_  A
178, 16eqsstr3i 3371 . . . . 5  |-  C  C_  A
18 fss 5591 . . . . 5  |-  ( ( H : D --> C  /\  C  C_  A )  ->  H : D --> A )
191, 17, 18sylancl 644 . . . 4  |-  ( ph  ->  H : D --> A )
20 fnfco 5601 . . . 4  |-  ( ( F  Fn  A  /\  H : D --> A )  ->  ( F  o.  H )  Fn  D
)
214, 19, 20syl2anc 643 . . 3  |-  ( ph  ->  ( F  o.  H
)  Fn  D )
22 inss2 3554 . . . . . 6  |-  ( A  i^i  B )  C_  B
238, 22eqsstr3i 3371 . . . . 5  |-  C  C_  B
24 fss 5591 . . . . 5  |-  ( ( H : D --> C  /\  C  C_  B )  ->  H : D --> B )
251, 23, 24sylancl 644 . . . 4  |-  ( ph  ->  H : D --> B )
26 fnfco 5601 . . . 4  |-  ( ( G  Fn  B  /\  H : D --> B )  ->  ( G  o.  H )  Fn  D
)
275, 25, 26syl2anc 643 . . 3  |-  ( ph  ->  ( G  o.  H
)  Fn  D )
28 ofco.6 . . 3  |-  ( ph  ->  D  e.  X )
29 inidm 3542 . . 3  |-  ( D  i^i  D )  =  D
30 ffn 5583 . . . . 5  |-  ( H : D --> C  ->  H  Fn  D )
311, 30syl 16 . . . 4  |-  ( ph  ->  H  Fn  D )
32 fvco2 5790 . . . 4  |-  ( ( H  Fn  D  /\  x  e.  D )  ->  ( ( F  o.  H ) `  x
)  =  ( F `
 ( H `  x ) ) )
3331, 32sylan 458 . . 3  |-  ( (
ph  /\  x  e.  D )  ->  (
( F  o.  H
) `  x )  =  ( F `  ( H `  x ) ) )
34 fvco2 5790 . . . 4  |-  ( ( H  Fn  D  /\  x  e.  D )  ->  ( ( G  o.  H ) `  x
)  =  ( G `
 ( H `  x ) ) )
3531, 34sylan 458 . . 3  |-  ( (
ph  /\  x  e.  D )  ->  (
( G  o.  H
) `  x )  =  ( G `  ( H `  x ) ) )
3621, 27, 28, 28, 29, 33, 35offval 6304 . 2  |-  ( ph  ->  ( ( F  o.  H )  o F R ( G  o.  H ) )  =  ( x  e.  D  |->  ( ( F `  ( H `  x ) ) R ( G `
 ( H `  x ) ) ) ) )
3715, 36eqtr4d 2470 1  |-  ( ph  ->  ( ( F  o F R G )  o.  H )  =  ( ( F  o.  H
)  o F R ( G  o.  H
) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 359    = wceq 1652    e. wcel 1725    i^i cin 3311    C_ wss 3312    e. cmpt 4258    o. ccom 4874    Fn wfn 5441   -->wf 5442   ` cfv 5446  (class class class)co 6073    o Fcof 6295
This theorem is referenced by:  gsumzaddlem  15518  coe1add  16649  pf1ind  19967  mendrng  27458
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1555  ax-5 1566  ax-17 1626  ax-9 1666  ax-8 1687  ax-13 1727  ax-14 1729  ax-6 1744  ax-7 1749  ax-11 1761  ax-12 1950  ax-ext 2416  ax-rep 4312  ax-sep 4322  ax-nul 4330  ax-pow 4369  ax-pr 4395
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3an 938  df-tru 1328  df-ex 1551  df-nf 1554  df-sb 1659  df-eu 2284  df-mo 2285  df-clab 2422  df-cleq 2428  df-clel 2431  df-nfc 2560  df-ne 2600  df-ral 2702  df-rex 2703  df-reu 2704  df-rab 2706  df-v 2950  df-sbc 3154  df-csb 3244  df-dif 3315  df-un 3317  df-in 3319  df-ss 3326  df-nul 3621  df-if 3732  df-sn 3812  df-pr 3813  df-op 3815  df-uni 4008  df-iun 4087  df-br 4205  df-opab 4259  df-mpt 4260  df-id 4490  df-xp 4876  df-rel 4877  df-cnv 4878  df-co 4879  df-dm 4880  df-rn 4881  df-res 4882  df-ima 4883  df-iota 5410  df-fun 5448  df-fn 5449  df-f 5450  df-f1 5451  df-fo 5452  df-f1o 5453  df-fv 5454  df-ov 6076  df-oprab 6077  df-mpt2 6078  df-of 6297
  Copyright terms: Public domain W3C validator