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

Theorem fconstfv 5734
Description: A constant function expressed in terms of its functionality, domain, and value. See also fconst2 5730. (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 5389 . . 3  |-  ( F : A --> { B }  ->  F  Fn  A
)
2 fvconst 5708 . . . 4  |-  ( ( F : A --> { B }  /\  x  e.  A
)  ->  ( F `  x )  =  B )
32ralrimiva 2626 . . 3  |-  ( F : A --> { B }  ->  A. x  e.  A  ( F `  x )  =  B )
41, 3jca 518 . 2  |-  ( F : A --> { B }  ->  ( F  Fn  A  /\  A. x  e.  A  ( F `  x )  =  B ) )
5 fneq2 5334 . . . . . . 7  |-  ( A  =  (/)  ->  ( F  Fn  A  <->  F  Fn  (/) ) )
6 fn0 5363 . . . . . . 7  |-  ( F  Fn  (/)  <->  F  =  (/) )
75, 6syl6bb 252 . . . . . 6  |-  ( A  =  (/)  ->  ( F  Fn  A  <->  F  =  (/) ) )
8 f0 5425 . . . . . . 7  |-  (/) : (/) --> { B }
9 feq1 5375 . . . . . . 7  |-  ( F  =  (/)  ->  ( F : (/) --> { B }  <->  (/) :
(/) --> { B }
) )
108, 9mpbiri 224 . . . . . 6  |-  ( F  =  (/)  ->  F : (/) --> { B } )
117, 10syl6bi 219 . . . . 5  |-  ( A  =  (/)  ->  ( F  Fn  A  ->  F : (/) --> { B }
) )
12 feq2 5376 . . . . 5  |-  ( A  =  (/)  ->  ( F : A --> { B } 
<->  F : (/) --> { B } ) )
1311, 12sylibrd 225 . . . 4  |-  ( A  =  (/)  ->  ( F  Fn  A  ->  F : A --> { B }
) )
1413adantrd 454 . . 3  |-  ( A  =  (/)  ->  ( ( F  Fn  A  /\  A. x  e.  A  ( F `  x )  =  B )  ->  F : A --> { B } ) )
15 fvelrnb 5570 . . . . . . . . . 10  |-  ( F  Fn  A  ->  (
y  e.  ran  F  <->  E. z  e.  A  ( F `  z )  =  y ) )
16 fveq2 5525 . . . . . . . . . . . . . . 15  |-  ( x  =  z  ->  ( F `  x )  =  ( F `  z ) )
1716eqeq1d 2291 . . . . . . . . . . . . . 14  |-  ( x  =  z  ->  (
( F `  x
)  =  B  <->  ( F `  z )  =  B ) )
1817rspccva 2883 . . . . . . . . . . . . 13  |-  ( ( A. x  e.  A  ( F `  x )  =  B  /\  z  e.  A )  ->  ( F `  z )  =  B )
1918eqeq1d 2291 . . . . . . . . . . . 12  |-  ( ( A. x  e.  A  ( F `  x )  =  B  /\  z  e.  A )  ->  (
( F `  z
)  =  y  <->  B  =  y ) )
2019rexbidva 2560 . . . . . . . . . . 11  |-  ( A. x  e.  A  ( F `  x )  =  B  ->  ( E. z  e.  A  ( F `  z )  =  y  <->  E. z  e.  A  B  =  y ) )
21 r19.9rzv 3548 . . . . . . . . . . . 12  |-  ( A  =/=  (/)  ->  ( B  =  y  <->  E. z  e.  A  B  =  y )
)
2221bicomd 192 . . . . . . . . . . 11  |-  ( A  =/=  (/)  ->  ( E. z  e.  A  B  =  y  <->  B  =  y
) )
2320, 22sylan9bbr 681 . . . . . . . . . 10  |-  ( ( A  =/=  (/)  /\  A. x  e.  A  ( F `  x )  =  B )  ->  ( E. z  e.  A  ( F `  z )  =  y  <->  B  =  y ) )
2415, 23sylan9bbr 681 . . . . . . . . 9  |-  ( ( ( A  =/=  (/)  /\  A. x  e.  A  ( F `  x )  =  B )  /\  F  Fn  A )  ->  (
y  e.  ran  F  <->  B  =  y ) )
25 elsn 3655 . . . . . . . . . 10  |-  ( y  e.  { B }  <->  y  =  B )
26 eqcom 2285 . . . . . . . . . 10  |-  ( y  =  B  <->  B  =  y )
2725, 26bitr2i 241 . . . . . . . . 9  |-  ( B  =  y  <->  y  e.  { B } )
2824, 27syl6bb 252 . . . . . . . 8  |-  ( ( ( A  =/=  (/)  /\  A. x  e.  A  ( F `  x )  =  B )  /\  F  Fn  A )  ->  (
y  e.  ran  F  <->  y  e.  { B }
) )
2928eqrdv 2281 . . . . . . 7  |-  ( ( ( A  =/=  (/)  /\  A. x  e.  A  ( F `  x )  =  B )  /\  F  Fn  A )  ->  ran  F  =  { B }
)
3029an32s 779 . . . . . 6  |-  ( ( ( A  =/=  (/)  /\  F  Fn  A )  /\  A. x  e.  A  ( F `  x )  =  B )  ->  ran  F  =  { B }
)
3130exp31 587 . . . . 5  |-  ( A  =/=  (/)  ->  ( F  Fn  A  ->  ( A. x  e.  A  ( F `  x )  =  B  ->  ran  F  =  { B } ) ) )
3231imdistand 673 . . . 4  |-  ( A  =/=  (/)  ->  ( ( F  Fn  A  /\  A. x  e.  A  ( F `  x )  =  B )  -> 
( F  Fn  A  /\  ran  F  =  { B } ) ) )
33 df-fo 5261 . . . . 5  |-  ( F : A -onto-> { B } 
<->  ( F  Fn  A  /\  ran  F  =  { B } ) )
34 fof 5451 . . . . 5  |-  ( F : A -onto-> { B }  ->  F : A --> { B } )
3533, 34sylbir 204 . . . 4  |-  ( ( F  Fn  A  /\  ran  F  =  { B } )  ->  F : A --> { B }
)
3632, 35syl6 29 . . 3  |-  ( A  =/=  (/)  ->  ( ( F  Fn  A  /\  A. x  e.  A  ( F `  x )  =  B )  ->  F : A --> { B } ) )
3714, 36pm2.61ine 2522 . 2  |-  ( ( F  Fn  A  /\  A. x  e.  A  ( F `  x )  =  B )  ->  F : A --> { B } )
384, 37impbii 180 1  |-  ( F : A --> { B } 
<->  ( F  Fn  A  /\  A. x  e.  A  ( F `  x )  =  B ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 176    /\ wa 358    = wceq 1623    e. wcel 1684    =/= wne 2446   A.wral 2543   E.wrex 2544   (/)c0 3455   {csn 3640   ran crn 4690    Fn wfn 5250   -->wf 5251   -onto->wfo 5253   ` cfv 5255
This theorem is referenced by:  fconst3  5735  lnon0  21376  df0op2  22332  lfl1  29260
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1533  ax-5 1544  ax-17 1603  ax-9 1635  ax-8 1643  ax-14 1688  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264  ax-sep 4141  ax-nul 4149  ax-pr 4214
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3an 936  df-tru 1310  df-ex 1529  df-nf 1532  df-sb 1630  df-eu 2147  df-mo 2148  df-clab 2270  df-cleq 2276  df-clel 2279  df-nfc 2408  df-ne 2448  df-ral 2548  df-rex 2549  df-rab 2552  df-v 2790  df-sbc 2992  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-nul 3456  df-if 3566  df-sn 3646  df-pr 3647  df-op 3649  df-uni 3828  df-br 4024  df-opab 4078  df-mpt 4079  df-id 4309  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-rn 4700  df-iota 5219  df-fun 5257  df-fn 5258  df-f 5259  df-fo 5261  df-fv 5263
  Copyright terms: Public domain W3C validator