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

Theorem ofres 6579
Description: Restrict the operands of a function operation to the same domain as that of the operation itself. (Contributed by Mario Carneiro, 15-Sep-2014.)
Hypotheses
Ref Expression
ofres.1  |-  ( ph  ->  F  Fn  A )
ofres.2  |-  ( ph  ->  G  Fn  B )
ofres.3  |-  ( ph  ->  A  e.  V )
ofres.4  |-  ( ph  ->  B  e.  W )
ofres.5  |-  ( A  i^i  B )  =  C
Assertion
Ref Expression
ofres  |-  ( ph  ->  ( F  oF R G )  =  ( ( F  |`  C )  oF R ( G  |`  C ) ) )

Proof of Theorem ofres
Dummy variable  x is distinct from all other variables.
StepHypRef Expression
1 ofres.1 . . 3  |-  ( ph  ->  F  Fn  A )
2 ofres.2 . . 3  |-  ( ph  ->  G  Fn  B )
3 ofres.3 . . 3  |-  ( ph  ->  A  e.  V )
4 ofres.4 . . 3  |-  ( ph  ->  B  e.  W )
5 ofres.5 . . 3  |-  ( A  i^i  B )  =  C
6 eqidd 2463 . . 3  |-  ( (
ph  /\  x  e.  A )  ->  ( F `  x )  =  ( F `  x ) )
7 eqidd 2463 . . 3  |-  ( (
ph  /\  x  e.  B )  ->  ( G `  x )  =  ( G `  x ) )
81, 2, 3, 4, 5, 6, 7offval 6570 . 2  |-  ( ph  ->  ( F  oF R G )  =  ( x  e.  C  |->  ( ( F `  x ) R ( G `  x ) ) ) )
9 inss1 3664 . . . . 5  |-  ( A  i^i  B )  C_  A
105, 9eqsstr3i 3475 . . . 4  |-  C  C_  A
11 fnssres 5715 . . . 4  |-  ( ( F  Fn  A  /\  C  C_  A )  -> 
( F  |`  C )  Fn  C )
121, 10, 11sylancl 673 . . 3  |-  ( ph  ->  ( F  |`  C )  Fn  C )
13 inss2 3665 . . . . 5  |-  ( A  i^i  B )  C_  B
145, 13eqsstr3i 3475 . . . 4  |-  C  C_  B
15 fnssres 5715 . . . 4  |-  ( ( G  Fn  B  /\  C  C_  B )  -> 
( G  |`  C )  Fn  C )
162, 14, 15sylancl 673 . . 3  |-  ( ph  ->  ( G  |`  C )  Fn  C )
17 ssexg 4565 . . . 4  |-  ( ( C  C_  A  /\  A  e.  V )  ->  C  e.  _V )
1810, 3, 17sylancr 674 . . 3  |-  ( ph  ->  C  e.  _V )
19 inidm 3653 . . 3  |-  ( C  i^i  C )  =  C
20 fvres 5906 . . . 4  |-  ( x  e.  C  ->  (
( F  |`  C ) `
 x )  =  ( F `  x
) )
2120adantl 472 . . 3  |-  ( (
ph  /\  x  e.  C )  ->  (
( F  |`  C ) `
 x )  =  ( F `  x
) )
22 fvres 5906 . . . 4  |-  ( x  e.  C  ->  (
( G  |`  C ) `
 x )  =  ( G `  x
) )
2322adantl 472 . . 3  |-  ( (
ph  /\  x  e.  C )  ->  (
( G  |`  C ) `
 x )  =  ( G `  x
) )
2412, 16, 18, 18, 19, 21, 23offval 6570 . 2  |-  ( ph  ->  ( ( F  |`  C )  oF R ( G  |`  C ) )  =  ( x  e.  C  |->  ( ( F `  x ) R ( G `  x ) ) ) )
258, 24eqtr4d 2499 1  |-  ( ph  ->  ( F  oF R G )  =  ( ( F  |`  C )  oF R ( G  |`  C ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    /\ wa 375    = wceq 1455    e. wcel 1898   _Vcvv 3057    i^i cin 3415    C_ wss 3416    |-> cmpt 4477    |` cres 4858    Fn wfn 5600   ` cfv 5605  (class class class)co 6320    oFcof 6561
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1680  ax-4 1693  ax-5 1769  ax-6 1816  ax-7 1862  ax-9 1907  ax-10 1926  ax-11 1931  ax-12 1944  ax-13 2102  ax-ext 2442  ax-rep 4531  ax-sep 4541  ax-nul 4550  ax-pr 4656
This theorem depends on definitions:  df-bi 190  df-or 376  df-an 377  df-3an 993  df-tru 1458  df-ex 1675  df-nf 1679  df-sb 1809  df-eu 2314  df-mo 2315  df-clab 2449  df-cleq 2455  df-clel 2458  df-nfc 2592  df-ne 2635  df-ral 2754  df-rex 2755  df-reu 2756  df-rab 2758  df-v 3059  df-sbc 3280  df-csb 3376  df-dif 3419  df-un 3421  df-in 3423  df-ss 3430  df-nul 3744  df-if 3894  df-sn 3981  df-pr 3983  df-op 3987  df-uni 4213  df-iun 4294  df-br 4419  df-opab 4478  df-mpt 4479  df-id 4771  df-xp 4862  df-rel 4863  df-cnv 4864  df-co 4865  df-dm 4866  df-rn 4867  df-res 4868  df-ima 4869  df-iota 5569  df-fun 5607  df-fn 5608  df-f 5609  df-f1 5610  df-fo 5611  df-f1o 5612  df-fv 5613  df-ov 6323  df-oprab 6324  df-mpt2 6325  df-of 6563
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator