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

Theorem curry2val 6257
Description: The value of a curried function with a constant second argument. (Contributed by NM, 16-Dec-2008.)
Hypothesis
Ref Expression
curry2.1  |-  G  =  ( F  o.  `' ( 1st  |`  ( _V  X.  { C } ) ) )
Assertion
Ref Expression
curry2val  |-  ( ( F  Fn  ( A  X.  B )  /\  C  e.  B )  ->  ( G `  D
)  =  ( D F C ) )

Proof of Theorem curry2val
Dummy variable  x is distinct from all other variables.
StepHypRef Expression
1 curry2.1 . . . 4  |-  G  =  ( F  o.  `' ( 1st  |`  ( _V  X.  { C } ) ) )
21curry2 6255 . . 3  |-  ( ( F  Fn  ( A  X.  B )  /\  C  e.  B )  ->  G  =  ( x  e.  A  |->  ( x F C ) ) )
32fveq1d 5565 . 2  |-  ( ( F  Fn  ( A  X.  B )  /\  C  e.  B )  ->  ( G `  D
)  =  ( ( x  e.  A  |->  ( x F C ) ) `  D ) )
4 eqid 2316 . . . . . . . . . . 11  |-  ( x  e.  A  |->  ( x F C ) )  =  ( x  e.  A  |->  ( x F C ) )
54dmmptss 5206 . . . . . . . . . 10  |-  dom  (
x  e.  A  |->  ( x F C ) )  C_  A
65sseli 3210 . . . . . . . . 9  |-  ( D  e.  dom  ( x  e.  A  |->  ( x F C ) )  ->  D  e.  A
)
76con3i 127 . . . . . . . 8  |-  ( -.  D  e.  A  ->  -.  D  e.  dom  ( x  e.  A  |->  ( x F C ) ) )
8 ndmfv 5590 . . . . . . . 8  |-  ( -.  D  e.  dom  (
x  e.  A  |->  ( x F C ) )  ->  ( (
x  e.  A  |->  ( x F C ) ) `  D )  =  (/) )
97, 8syl 15 . . . . . . 7  |-  ( -.  D  e.  A  -> 
( ( x  e.  A  |->  ( x F C ) ) `  D )  =  (/) )
109adantl 452 . . . . . 6  |-  ( ( F  Fn  ( A  X.  B )  /\  -.  D  e.  A
)  ->  ( (
x  e.  A  |->  ( x F C ) ) `  D )  =  (/) )
11 fndm 5380 . . . . . . 7  |-  ( F  Fn  ( A  X.  B )  ->  dom  F  =  ( A  X.  B ) )
12 simpl 443 . . . . . . . 8  |-  ( ( D  e.  A  /\  C  e.  B )  ->  D  e.  A )
1312con3i 127 . . . . . . 7  |-  ( -.  D  e.  A  ->  -.  ( D  e.  A  /\  C  e.  B
) )
14 ndmovg 6045 . . . . . . 7  |-  ( ( dom  F  =  ( A  X.  B )  /\  -.  ( D  e.  A  /\  C  e.  B ) )  -> 
( D F C )  =  (/) )
1511, 13, 14syl2an 463 . . . . . 6  |-  ( ( F  Fn  ( A  X.  B )  /\  -.  D  e.  A
)  ->  ( D F C )  =  (/) )
1610, 15eqtr4d 2351 . . . . 5  |-  ( ( F  Fn  ( A  X.  B )  /\  -.  D  e.  A
)  ->  ( (
x  e.  A  |->  ( x F C ) ) `  D )  =  ( D F C ) )
1716ex 423 . . . 4  |-  ( F  Fn  ( A  X.  B )  ->  ( -.  D  e.  A  ->  ( ( x  e.  A  |->  ( x F C ) ) `  D )  =  ( D F C ) ) )
1817adantr 451 . . 3  |-  ( ( F  Fn  ( A  X.  B )  /\  C  e.  B )  ->  ( -.  D  e.  A  ->  ( (
x  e.  A  |->  ( x F C ) ) `  D )  =  ( D F C ) ) )
19 oveq1 5907 . . . 4  |-  ( x  =  D  ->  (
x F C )  =  ( D F C ) )
20 ovex 5925 . . . 4  |-  ( D F C )  e. 
_V
2119, 4, 20fvmpt 5640 . . 3  |-  ( D  e.  A  ->  (
( x  e.  A  |->  ( x F C ) ) `  D
)  =  ( D F C ) )
2218, 21pm2.61d2 152 . 2  |-  ( ( F  Fn  ( A  X.  B )  /\  C  e.  B )  ->  ( ( x  e.  A  |->  ( x F C ) ) `  D )  =  ( D F C ) )
233, 22eqtrd 2348 1  |-  ( ( F  Fn  ( A  X.  B )  /\  C  e.  B )  ->  ( G `  D
)  =  ( D F C ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 358    = wceq 1633    e. wcel 1701   _Vcvv 2822   (/)c0 3489   {csn 3674    e. cmpt 4114    X. cxp 4724   `'ccnv 4725   dom cdm 4726    |` cres 4728    o. ccom 4730    Fn wfn 5287   ` cfv 5292  (class class class)co 5900   1stc1st 6162
This theorem is referenced by:  curry2ima  23247
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1537  ax-5 1548  ax-17 1607  ax-9 1645  ax-8 1666  ax-13 1703  ax-14 1705  ax-6 1720  ax-7 1725  ax-11 1732  ax-12 1897  ax-ext 2297  ax-sep 4178  ax-nul 4186  ax-pow 4225  ax-pr 4251  ax-un 4549
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3an 936  df-tru 1310  df-ex 1533  df-nf 1536  df-sb 1640  df-eu 2180  df-mo 2181  df-clab 2303  df-cleq 2309  df-clel 2312  df-nfc 2441  df-ne 2481  df-ral 2582  df-rex 2583  df-rab 2586  df-v 2824  df-sbc 3026  df-csb 3116  df-dif 3189  df-un 3191  df-in 3193  df-ss 3200  df-nul 3490  df-if 3600  df-sn 3680  df-pr 3681  df-op 3683  df-uni 3865  df-iun 3944  df-br 4061  df-opab 4115  df-mpt 4116  df-id 4346  df-xp 4732  df-rel 4733  df-cnv 4734  df-co 4735  df-dm 4736  df-rn 4737  df-res 4738  df-ima 4739  df-iota 5256  df-fun 5294  df-fn 5295  df-f 5296  df-f1 5297  df-fo 5298  df-f1o 5299  df-fv 5300  df-ov 5903  df-1st 6164  df-2nd 6165
  Copyright terms: Public domain W3C validator