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

Theorem fvmptex 5896
Description: Express a function  F whose value  B may not always be a set in terms of another function  G for which sethood is guaranteed. (Note that  (  _I  `  B ) is just shorthand for  if ( B  e.  _V ,  B ,  (/) ), and it is always a set by fvex 5812.) Note also that these functions are not the same; wherever  B
( C ) is not a set,  C is not in the domain of  F (so it evaluates to the empty set), but  C is in the domain of  G, and  G ( C ) is defined to be the empty set. (Contributed by Mario Carneiro, 14-Jul-2013.) (Revised by Mario Carneiro, 23-Apr-2014.)
Hypotheses
Ref Expression
fvmptex.1  |-  F  =  ( x  e.  A  |->  B )
fvmptex.2  |-  G  =  ( x  e.  A  |->  (  _I  `  B
) )
Assertion
Ref Expression
fvmptex  |-  ( F `
 C )  =  ( G `  C
)
Distinct variable group:    x, A
Allowed substitution hints:    B( x)    C( x)    F( x)    G( x)

Proof of Theorem fvmptex
Dummy variable  y is distinct from all other variables.
StepHypRef Expression
1 csbeq1 3401 . . . 4  |-  ( y  =  C  ->  [_ y  /  x ]_ B  = 
[_ C  /  x ]_ B )
2 fvmptex.1 . . . . 5  |-  F  =  ( x  e.  A  |->  B )
3 nfcv 2616 . . . . . 6  |-  F/_ y B
4 nfcsb1v 3414 . . . . . 6  |-  F/_ x [_ y  /  x ]_ B
5 csbeq1a 3407 . . . . . 6  |-  ( x  =  y  ->  B  =  [_ y  /  x ]_ B )
63, 4, 5cbvmpt 4493 . . . . 5  |-  ( x  e.  A  |->  B )  =  ( y  e.  A  |->  [_ y  /  x ]_ B )
72, 6eqtri 2483 . . . 4  |-  F  =  ( y  e.  A  |-> 
[_ y  /  x ]_ B )
81, 7fvmpti 5885 . . 3  |-  ( C  e.  A  ->  ( F `  C )  =  (  _I  `  [_ C  /  x ]_ B ) )
91fveq2d 5806 . . . 4  |-  ( y  =  C  ->  (  _I  `  [_ y  /  x ]_ B )  =  (  _I  `  [_ C  /  x ]_ B ) )
10 fvmptex.2 . . . . 5  |-  G  =  ( x  e.  A  |->  (  _I  `  B
) )
11 nfcv 2616 . . . . . 6  |-  F/_ y
(  _I  `  B
)
12 nfcv 2616 . . . . . . 7  |-  F/_ x  _I
1312, 4nffv 5809 . . . . . 6  |-  F/_ x
(  _I  `  [_ y  /  x ]_ B )
145fveq2d 5806 . . . . . 6  |-  ( x  =  y  ->  (  _I  `  B )  =  (  _I  `  [_ y  /  x ]_ B ) )
1511, 13, 14cbvmpt 4493 . . . . 5  |-  ( x  e.  A  |->  (  _I 
`  B ) )  =  ( y  e.  A  |->  (  _I  `  [_ y  /  x ]_ B ) )
1610, 15eqtri 2483 . . . 4  |-  G  =  ( y  e.  A  |->  (  _I  `  [_ y  /  x ]_ B ) )
17 fvex 5812 . . . 4  |-  (  _I 
`  [_ C  /  x ]_ B )  e.  _V
189, 16, 17fvmpt 5886 . . 3  |-  ( C  e.  A  ->  ( G `  C )  =  (  _I  `  [_ C  /  x ]_ B ) )
198, 18eqtr4d 2498 . 2  |-  ( C  e.  A  ->  ( F `  C )  =  ( G `  C ) )
202dmmptss 5445 . . . . . 6  |-  dom  F  C_  A
2120sseli 3463 . . . . 5  |-  ( C  e.  dom  F  ->  C  e.  A )
2221con3i 135 . . . 4  |-  ( -.  C  e.  A  ->  -.  C  e.  dom  F )
23 ndmfv 5826 . . . 4  |-  ( -.  C  e.  dom  F  ->  ( F `  C
)  =  (/) )
2422, 23syl 16 . . 3  |-  ( -.  C  e.  A  -> 
( F `  C
)  =  (/) )
25 fvex 5812 . . . . . 6  |-  (  _I 
`  B )  e. 
_V
2625, 10dmmpti 5651 . . . . 5  |-  dom  G  =  A
2726eleq2i 2532 . . . 4  |-  ( C  e.  dom  G  <->  C  e.  A )
28 ndmfv 5826 . . . 4  |-  ( -.  C  e.  dom  G  ->  ( G `  C
)  =  (/) )
2927, 28sylnbir 307 . . 3  |-  ( -.  C  e.  A  -> 
( G `  C
)  =  (/) )
3024, 29eqtr4d 2498 . 2  |-  ( -.  C  e.  A  -> 
( F `  C
)  =  ( G `
 C ) )
3119, 30pm2.61i 164 1  |-  ( F `
 C )  =  ( G `  C
)
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    = wceq 1370    e. wcel 1758   [_csb 3398   (/)c0 3748    |-> cmpt 4461    _I cid 4742   dom cdm 4951   ` cfv 5529
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1592  ax-4 1603  ax-5 1671  ax-6 1710  ax-7 1730  ax-8 1760  ax-9 1762  ax-10 1777  ax-11 1782  ax-12 1794  ax-13 1955  ax-ext 2432  ax-sep 4524  ax-nul 4532  ax-pow 4581  ax-pr 4642
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3an 967  df-tru 1373  df-ex 1588  df-nf 1591  df-sb 1703  df-eu 2266  df-mo 2267  df-clab 2440  df-cleq 2446  df-clel 2449  df-nfc 2604  df-ne 2650  df-ral 2804  df-rex 2805  df-rab 2808  df-v 3080  df-sbc 3295  df-csb 3399  df-dif 3442  df-un 3444  df-in 3446  df-ss 3453  df-nul 3749  df-if 3903  df-sn 3989  df-pr 3991  df-op 3995  df-uni 4203  df-br 4404  df-opab 4462  df-mpt 4463  df-id 4747  df-xp 4957  df-rel 4958  df-cnv 4959  df-co 4960  df-dm 4961  df-rn 4962  df-res 4963  df-ima 4964  df-iota 5492  df-fun 5531  df-fn 5532  df-fv 5537
This theorem is referenced by:  fvmptnf  5903  sumeq2ii  13292  prodeq2ii  27593
  Copyright terms: Public domain W3C validator