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

Theorem curry2val 6445
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 6443 . . 3  |-  ( ( F  Fn  ( A  X.  B )  /\  C  e.  B )  ->  G  =  ( x  e.  A  |->  ( x F C ) ) )
32fveq1d 5732 . 2  |-  ( ( F  Fn  ( A  X.  B )  /\  C  e.  B )  ->  ( G `  D
)  =  ( ( x  e.  A  |->  ( x F C ) ) `  D ) )
4 eqid 2438 . . . . . . . . . . 11  |-  ( x  e.  A  |->  ( x F C ) )  =  ( x  e.  A  |->  ( x F C ) )
54dmmptss 5368 . . . . . . . . . 10  |-  dom  (
x  e.  A  |->  ( x F C ) )  C_  A
65sseli 3346 . . . . . . . . 9  |-  ( D  e.  dom  ( x  e.  A  |->  ( x F C ) )  ->  D  e.  A
)
76con3i 130 . . . . . . . 8  |-  ( -.  D  e.  A  ->  -.  D  e.  dom  ( x  e.  A  |->  ( x F C ) ) )
8 ndmfv 5757 . . . . . . . 8  |-  ( -.  D  e.  dom  (
x  e.  A  |->  ( x F C ) )  ->  ( (
x  e.  A  |->  ( x F C ) ) `  D )  =  (/) )
97, 8syl 16 . . . . . . 7  |-  ( -.  D  e.  A  -> 
( ( x  e.  A  |->  ( x F C ) ) `  D )  =  (/) )
109adantl 454 . . . . . 6  |-  ( ( F  Fn  ( A  X.  B )  /\  -.  D  e.  A
)  ->  ( (
x  e.  A  |->  ( x F C ) ) `  D )  =  (/) )
11 fndm 5546 . . . . . . 7  |-  ( F  Fn  ( A  X.  B )  ->  dom  F  =  ( A  X.  B ) )
12 simpl 445 . . . . . . . 8  |-  ( ( D  e.  A  /\  C  e.  B )  ->  D  e.  A )
1312con3i 130 . . . . . . 7  |-  ( -.  D  e.  A  ->  -.  ( D  e.  A  /\  C  e.  B
) )
14 ndmovg 6232 . . . . . . 7  |-  ( ( dom  F  =  ( A  X.  B )  /\  -.  ( D  e.  A  /\  C  e.  B ) )  -> 
( D F C )  =  (/) )
1511, 13, 14syl2an 465 . . . . . 6  |-  ( ( F  Fn  ( A  X.  B )  /\  -.  D  e.  A
)  ->  ( D F C )  =  (/) )
1610, 15eqtr4d 2473 . . . . 5  |-  ( ( F  Fn  ( A  X.  B )  /\  -.  D  e.  A
)  ->  ( (
x  e.  A  |->  ( x F C ) ) `  D )  =  ( D F C ) )
1716ex 425 . . . 4  |-  ( F  Fn  ( A  X.  B )  ->  ( -.  D  e.  A  ->  ( ( x  e.  A  |->  ( x F C ) ) `  D )  =  ( D F C ) ) )
1817adantr 453 . . 3  |-  ( ( F  Fn  ( A  X.  B )  /\  C  e.  B )  ->  ( -.  D  e.  A  ->  ( (
x  e.  A  |->  ( x F C ) ) `  D )  =  ( D F C ) ) )
19 oveq1 6090 . . . 4  |-  ( x  =  D  ->  (
x F C )  =  ( D F C ) )
20 ovex 6108 . . . 4  |-  ( D F C )  e. 
_V
2119, 4, 20fvmpt 5808 . . 3  |-  ( D  e.  A  ->  (
( x  e.  A  |->  ( x F C ) ) `  D
)  =  ( D F C ) )
2218, 21pm2.61d2 155 . 2  |-  ( ( F  Fn  ( A  X.  B )  /\  C  e.  B )  ->  ( ( x  e.  A  |->  ( x F C ) ) `  D )  =  ( D F C ) )
233, 22eqtrd 2470 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 360    = wceq 1653    e. wcel 1726   _Vcvv 2958   (/)c0 3630   {csn 3816    e. cmpt 4268    X. cxp 4878   `'ccnv 4879   dom cdm 4880    |` cres 4882    o. ccom 4884    Fn wfn 5451   ` cfv 5456  (class class class)co 6083   1stc1st 6349
This theorem is referenced by:  curry2ima  24099
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1556  ax-5 1567  ax-17 1627  ax-9 1667  ax-8 1688  ax-13 1728  ax-14 1730  ax-6 1745  ax-7 1750  ax-11 1762  ax-12 1951  ax-ext 2419  ax-sep 4332  ax-nul 4340  ax-pow 4379  ax-pr 4405  ax-un 4703
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3an 939  df-tru 1329  df-ex 1552  df-nf 1555  df-sb 1660  df-eu 2287  df-mo 2288  df-clab 2425  df-cleq 2431  df-clel 2434  df-nfc 2563  df-ne 2603  df-ral 2712  df-rex 2713  df-rab 2716  df-v 2960  df-sbc 3164  df-csb 3254  df-dif 3325  df-un 3327  df-in 3329  df-ss 3336  df-nul 3631  df-if 3742  df-sn 3822  df-pr 3823  df-op 3825  df-uni 4018  df-iun 4097  df-br 4215  df-opab 4269  df-mpt 4270  df-id 4500  df-xp 4886  df-rel 4887  df-cnv 4888  df-co 4889  df-dm 4890  df-rn 4891  df-res 4892  df-ima 4893  df-iota 5420  df-fun 5458  df-fn 5459  df-f 5460  df-f1 5461  df-fo 5462  df-f1o 5463  df-fv 5464  df-ov 6086  df-1st 6351  df-2nd 6352
  Copyright terms: Public domain W3C validator