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

Theorem fconstfv 6050
Description: A constant function expressed in terms of its functionality, domain, and value. See also fconst2 6044. (Contributed by NM, 27-Aug-2004.)
Assertion
Ref Expression
fconstfv  |-  ( F : A --> { B } 
<->  ( F  Fn  A  /\  A. x  e.  A  ( F `  x )  =  B ) )
Distinct variable groups:    x, A    x, B    x, F

Proof of Theorem fconstfv
Dummy variables  y 
z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ffn 5668 . . 3  |-  ( F : A --> { B }  ->  F  Fn  A
)
2 fvconst 6007 . . . 4  |-  ( ( F : A --> { B }  /\  x  e.  A
)  ->  ( F `  x )  =  B )
32ralrimiva 2830 . . 3  |-  ( F : A --> { B }  ->  A. x  e.  A  ( F `  x )  =  B )
41, 3jca 532 . 2  |-  ( F : A --> { B }  ->  ( F  Fn  A  /\  A. x  e.  A  ( F `  x )  =  B ) )
5 fneq2 5609 . . . . . . 7  |-  ( A  =  (/)  ->  ( F  Fn  A  <->  F  Fn  (/) ) )
6 fn0 5639 . . . . . . 7  |-  ( F  Fn  (/)  <->  F  =  (/) )
75, 6syl6bb 261 . . . . . 6  |-  ( A  =  (/)  ->  ( F  Fn  A  <->  F  =  (/) ) )
8 f0 5701 . . . . . . 7  |-  (/) : (/) --> { B }
9 feq1 5651 . . . . . . 7  |-  ( F  =  (/)  ->  ( F : (/) --> { B }  <->  (/) :
(/) --> { B }
) )
108, 9mpbiri 233 . . . . . 6  |-  ( F  =  (/)  ->  F : (/) --> { B } )
117, 10syl6bi 228 . . . . 5  |-  ( A  =  (/)  ->  ( F  Fn  A  ->  F : (/) --> { B }
) )
12 feq2 5652 . . . . 5  |-  ( A  =  (/)  ->  ( F : A --> { B } 
<->  F : (/) --> { B } ) )
1311, 12sylibrd 234 . . . 4  |-  ( A  =  (/)  ->  ( F  Fn  A  ->  F : A --> { B }
) )
1413adantrd 468 . . 3  |-  ( A  =  (/)  ->  ( ( F  Fn  A  /\  A. x  e.  A  ( F `  x )  =  B )  ->  F : A --> { B } ) )
15 fvelrnb 5849 . . . . . . . . . 10  |-  ( F  Fn  A  ->  (
y  e.  ran  F  <->  E. z  e.  A  ( F `  z )  =  y ) )
16 fveq2 5800 . . . . . . . . . . . . . . 15  |-  ( x  =  z  ->  ( F `  x )  =  ( F `  z ) )
1716eqeq1d 2456 . . . . . . . . . . . . . 14  |-  ( x  =  z  ->  (
( F `  x
)  =  B  <->  ( F `  z )  =  B ) )
1817rspccva 3178 . . . . . . . . . . . . 13  |-  ( ( A. x  e.  A  ( F `  x )  =  B  /\  z  e.  A )  ->  ( F `  z )  =  B )
1918eqeq1d 2456 . . . . . . . . . . . 12  |-  ( ( A. x  e.  A  ( F `  x )  =  B  /\  z  e.  A )  ->  (
( F `  z
)  =  y  <->  B  =  y ) )
2019rexbidva 2865 . . . . . . . . . . 11  |-  ( A. x  e.  A  ( F `  x )  =  B  ->  ( E. z  e.  A  ( F `  z )  =  y  <->  E. z  e.  A  B  =  y ) )
21 r19.9rzv 3883 . . . . . . . . . . . 12  |-  ( A  =/=  (/)  ->  ( B  =  y  <->  E. z  e.  A  B  =  y )
)
2221bicomd 201 . . . . . . . . . . 11  |-  ( A  =/=  (/)  ->  ( E. z  e.  A  B  =  y  <->  B  =  y
) )
2320, 22sylan9bbr 700 . . . . . . . . . 10  |-  ( ( A  =/=  (/)  /\  A. x  e.  A  ( F `  x )  =  B )  ->  ( E. z  e.  A  ( F `  z )  =  y  <->  B  =  y ) )
2415, 23sylan9bbr 700 . . . . . . . . 9  |-  ( ( ( A  =/=  (/)  /\  A. x  e.  A  ( F `  x )  =  B )  /\  F  Fn  A )  ->  (
y  e.  ran  F  <->  B  =  y ) )
25 elsn 4000 . . . . . . . . . 10  |-  ( y  e.  { B }  <->  y  =  B )
26 eqcom 2463 . . . . . . . . . 10  |-  ( y  =  B  <->  B  =  y )
2725, 26bitr2i 250 . . . . . . . . 9  |-  ( B  =  y  <->  y  e.  { B } )
2824, 27syl6bb 261 . . . . . . . 8  |-  ( ( ( A  =/=  (/)  /\  A. x  e.  A  ( F `  x )  =  B )  /\  F  Fn  A )  ->  (
y  e.  ran  F  <->  y  e.  { B }
) )
2928eqrdv 2451 . . . . . . 7  |-  ( ( ( A  =/=  (/)  /\  A. x  e.  A  ( F `  x )  =  B )  /\  F  Fn  A )  ->  ran  F  =  { B }
)
3029an32s 802 . . . . . 6  |-  ( ( ( A  =/=  (/)  /\  F  Fn  A )  /\  A. x  e.  A  ( F `  x )  =  B )  ->  ran  F  =  { B }
)
3130exp31 604 . . . . 5  |-  ( A  =/=  (/)  ->  ( F  Fn  A  ->  ( A. x  e.  A  ( F `  x )  =  B  ->  ran  F  =  { B } ) ) )
3231imdistand 692 . . . 4  |-  ( A  =/=  (/)  ->  ( ( F  Fn  A  /\  A. x  e.  A  ( F `  x )  =  B )  -> 
( F  Fn  A  /\  ran  F  =  { B } ) ) )
33 df-fo 5533 . . . . 5  |-  ( F : A -onto-> { B } 
<->  ( F  Fn  A  /\  ran  F  =  { B } ) )
34 fof 5729 . . . . 5  |-  ( F : A -onto-> { B }  ->  F : A --> { B } )
3533, 34sylbir 213 . . . 4  |-  ( ( F  Fn  A  /\  ran  F  =  { B } )  ->  F : A --> { B }
)
3632, 35syl6 33 . . 3  |-  ( A  =/=  (/)  ->  ( ( F  Fn  A  /\  A. x  e.  A  ( F `  x )  =  B )  ->  F : A --> { B } ) )
3714, 36pm2.61ine 2765 . 2  |-  ( ( F  Fn  A  /\  A. x  e.  A  ( F `  x )  =  B )  ->  F : A --> { B } )
384, 37impbii 188 1  |-  ( F : A --> { B } 
<->  ( F  Fn  A  /\  A. x  e.  A  ( F `  x )  =  B ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    <-> wb 184    /\ wa 369    = wceq 1370    e. wcel 1758    =/= wne 2648   A.wral 2799   E.wrex 2800   (/)c0 3746   {csn 3986   ran crn 4950    Fn wfn 5522   -->wf 5523   -onto->wfo 5525   ` cfv 5527
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-9 1762  ax-10 1777  ax-11 1782  ax-12 1794  ax-13 1955  ax-ext 2432  ax-sep 4522  ax-nul 4530  ax-pr 4640
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-dif 3440  df-un 3442  df-in 3444  df-ss 3451  df-nul 3747  df-if 3901  df-sn 3987  df-pr 3989  df-op 3993  df-uni 4201  df-br 4402  df-opab 4460  df-mpt 4461  df-id 4745  df-xp 4955  df-rel 4956  df-cnv 4957  df-co 4958  df-dm 4959  df-rn 4960  df-iota 5490  df-fun 5529  df-fn 5530  df-f 5531  df-fo 5533  df-fv 5535
This theorem is referenced by:  fconst3  6051  repsdf2  12535  rrxcph  21029  lnon0  24351  df0op2  25309  lfl1  33054
  Copyright terms: Public domain W3C validator