Users' Mathboxes Mathbox for Scott Fenton < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  fprb Structured version   Unicode version

Theorem fprb 29446
Description: A condition for functionhood over a pair. (Contributed by Scott Fenton, 16-Sep-2013.)
Hypotheses
Ref Expression
fprb.1  |-  A  e. 
_V
fprb.2  |-  B  e. 
_V
Assertion
Ref Expression
fprb  |-  ( A  =/=  B  ->  ( F : { A ,  B } --> R  <->  E. x  e.  R  E. y  e.  R  F  =  { <. A ,  x >. ,  <. B ,  y
>. } ) )
Distinct variable groups:    x, A, y    x, B, y    x, F, y    x, R, y

Proof of Theorem fprb
StepHypRef Expression
1 fprb.1 . . . . . . 7  |-  A  e. 
_V
21prid1 4124 . . . . . 6  |-  A  e. 
{ A ,  B }
3 ffvelrn 6005 . . . . . 6  |-  ( ( F : { A ,  B } --> R  /\  A  e.  { A ,  B } )  -> 
( F `  A
)  e.  R )
42, 3mpan2 669 . . . . 5  |-  ( F : { A ,  B } --> R  ->  ( F `  A )  e.  R )
54adantr 463 . . . 4  |-  ( ( F : { A ,  B } --> R  /\  A  =/=  B )  -> 
( F `  A
)  e.  R )
6 fprb.2 . . . . . . 7  |-  B  e. 
_V
76prid2 4125 . . . . . 6  |-  B  e. 
{ A ,  B }
8 ffvelrn 6005 . . . . . 6  |-  ( ( F : { A ,  B } --> R  /\  B  e.  { A ,  B } )  -> 
( F `  B
)  e.  R )
97, 8mpan2 669 . . . . 5  |-  ( F : { A ,  B } --> R  ->  ( F `  B )  e.  R )
109adantr 463 . . . 4  |-  ( ( F : { A ,  B } --> R  /\  A  =/=  B )  -> 
( F `  B
)  e.  R )
11 fvex 5858 . . . . . . . 8  |-  ( F `
 A )  e. 
_V
121, 11fvpr1 6090 . . . . . . 7  |-  ( A  =/=  B  ->  ( { <. A ,  ( F `  A )
>. ,  <. B , 
( F `  B
) >. } `  A
)  =  ( F `
 A ) )
13 fvex 5858 . . . . . . . 8  |-  ( F `
 B )  e. 
_V
146, 13fvpr2 6091 . . . . . . 7  |-  ( A  =/=  B  ->  ( { <. A ,  ( F `  A )
>. ,  <. B , 
( F `  B
) >. } `  B
)  =  ( F `
 B ) )
15 fveq2 5848 . . . . . . . . . 10  |-  ( x  =  A  ->  ( F `  x )  =  ( F `  A ) )
16 fveq2 5848 . . . . . . . . . 10  |-  ( x  =  A  ->  ( { <. A ,  ( F `  A )
>. ,  <. B , 
( F `  B
) >. } `  x
)  =  ( {
<. A ,  ( F `
 A ) >. ,  <. B ,  ( F `  B )
>. } `  A ) )
1715, 16eqeq12d 2476 . . . . . . . . 9  |-  ( x  =  A  ->  (
( F `  x
)  =  ( {
<. A ,  ( F `
 A ) >. ,  <. B ,  ( F `  B )
>. } `  x )  <-> 
( F `  A
)  =  ( {
<. A ,  ( F `
 A ) >. ,  <. B ,  ( F `  B )
>. } `  A ) ) )
18 eqcom 2463 . . . . . . . . 9  |-  ( ( F `  A )  =  ( { <. A ,  ( F `  A ) >. ,  <. B ,  ( F `  B ) >. } `  A )  <->  ( { <. A ,  ( F `
 A ) >. ,  <. B ,  ( F `  B )
>. } `  A )  =  ( F `  A ) )
1917, 18syl6bb 261 . . . . . . . 8  |-  ( x  =  A  ->  (
( F `  x
)  =  ( {
<. A ,  ( F `
 A ) >. ,  <. B ,  ( F `  B )
>. } `  x )  <-> 
( { <. A , 
( F `  A
) >. ,  <. B , 
( F `  B
) >. } `  A
)  =  ( F `
 A ) ) )
20 fveq2 5848 . . . . . . . . . 10  |-  ( x  =  B  ->  ( F `  x )  =  ( F `  B ) )
21 fveq2 5848 . . . . . . . . . 10  |-  ( x  =  B  ->  ( { <. A ,  ( F `  A )
>. ,  <. B , 
( F `  B
) >. } `  x
)  =  ( {
<. A ,  ( F `
 A ) >. ,  <. B ,  ( F `  B )
>. } `  B ) )
2220, 21eqeq12d 2476 . . . . . . . . 9  |-  ( x  =  B  ->  (
( F `  x
)  =  ( {
<. A ,  ( F `
 A ) >. ,  <. B ,  ( F `  B )
>. } `  x )  <-> 
( F `  B
)  =  ( {
<. A ,  ( F `
 A ) >. ,  <. B ,  ( F `  B )
>. } `  B ) ) )
23 eqcom 2463 . . . . . . . . 9  |-  ( ( F `  B )  =  ( { <. A ,  ( F `  A ) >. ,  <. B ,  ( F `  B ) >. } `  B )  <->  ( { <. A ,  ( F `
 A ) >. ,  <. B ,  ( F `  B )
>. } `  B )  =  ( F `  B ) )
2422, 23syl6bb 261 . . . . . . . 8  |-  ( x  =  B  ->  (
( F `  x
)  =  ( {
<. A ,  ( F `
 A ) >. ,  <. B ,  ( F `  B )
>. } `  x )  <-> 
( { <. A , 
( F `  A
) >. ,  <. B , 
( F `  B
) >. } `  B
)  =  ( F `
 B ) ) )
251, 6, 19, 24ralpr 4069 . . . . . . 7  |-  ( A. x  e.  { A ,  B }  ( F `
 x )  =  ( { <. A , 
( F `  A
) >. ,  <. B , 
( F `  B
) >. } `  x
)  <->  ( ( {
<. A ,  ( F `
 A ) >. ,  <. B ,  ( F `  B )
>. } `  A )  =  ( F `  A )  /\  ( { <. A ,  ( F `  A )
>. ,  <. B , 
( F `  B
) >. } `  B
)  =  ( F `
 B ) ) )
2612, 14, 25sylanbrc 662 . . . . . 6  |-  ( A  =/=  B  ->  A. x  e.  { A ,  B }  ( F `  x )  =  ( { <. A ,  ( F `  A )
>. ,  <. B , 
( F `  B
) >. } `  x
) )
2726adantl 464 . . . . 5  |-  ( ( F : { A ,  B } --> R  /\  A  =/=  B )  ->  A. x  e.  { A ,  B }  ( F `
 x )  =  ( { <. A , 
( F `  A
) >. ,  <. B , 
( F `  B
) >. } `  x
) )
28 ffn 5713 . . . . . 6  |-  ( F : { A ,  B } --> R  ->  F  Fn  { A ,  B } )
291, 6, 11, 13fpr 6055 . . . . . . 7  |-  ( A  =/=  B  ->  { <. A ,  ( F `  A ) >. ,  <. B ,  ( F `  B ) >. } : { A ,  B } --> { ( F `  A ) ,  ( F `  B ) } )
30 ffn 5713 . . . . . . 7  |-  ( {
<. A ,  ( F `
 A ) >. ,  <. B ,  ( F `  B )
>. } : { A ,  B } --> { ( F `  A ) ,  ( F `  B ) }  ->  {
<. A ,  ( F `
 A ) >. ,  <. B ,  ( F `  B )
>. }  Fn  { A ,  B } )
3129, 30syl 16 . . . . . 6  |-  ( A  =/=  B  ->  { <. A ,  ( F `  A ) >. ,  <. B ,  ( F `  B ) >. }  Fn  { A ,  B }
)
32 eqfnfv 5957 . . . . . 6  |-  ( ( F  Fn  { A ,  B }  /\  { <. A ,  ( F `
 A ) >. ,  <. B ,  ( F `  B )
>. }  Fn  { A ,  B } )  -> 
( F  =  { <. A ,  ( F `
 A ) >. ,  <. B ,  ( F `  B )
>. }  <->  A. x  e.  { A ,  B } 
( F `  x
)  =  ( {
<. A ,  ( F `
 A ) >. ,  <. B ,  ( F `  B )
>. } `  x ) ) )
3328, 31, 32syl2an 475 . . . . 5  |-  ( ( F : { A ,  B } --> R  /\  A  =/=  B )  -> 
( F  =  { <. A ,  ( F `
 A ) >. ,  <. B ,  ( F `  B )
>. }  <->  A. x  e.  { A ,  B } 
( F `  x
)  =  ( {
<. A ,  ( F `
 A ) >. ,  <. B ,  ( F `  B )
>. } `  x ) ) )
3427, 33mpbird 232 . . . 4  |-  ( ( F : { A ,  B } --> R  /\  A  =/=  B )  ->  F  =  { <. A , 
( F `  A
) >. ,  <. B , 
( F `  B
) >. } )
35 opeq2 4204 . . . . . . 7  |-  ( x  =  ( F `  A )  ->  <. A ,  x >.  =  <. A , 
( F `  A
) >. )
3635preq1d 4101 . . . . . 6  |-  ( x  =  ( F `  A )  ->  { <. A ,  x >. ,  <. B ,  y >. }  =  { <. A ,  ( F `  A )
>. ,  <. B , 
y >. } )
3736eqeq2d 2468 . . . . 5  |-  ( x  =  ( F `  A )  ->  ( F  =  { <. A ,  x >. ,  <. B , 
y >. }  <->  F  =  { <. A ,  ( F `  A )
>. ,  <. B , 
y >. } ) )
38 opeq2 4204 . . . . . . 7  |-  ( y  =  ( F `  B )  ->  <. B , 
y >.  =  <. B , 
( F `  B
) >. )
3938preq2d 4102 . . . . . 6  |-  ( y  =  ( F `  B )  ->  { <. A ,  ( F `  A ) >. ,  <. B ,  y >. }  =  { <. A ,  ( F `  A )
>. ,  <. B , 
( F `  B
) >. } )
4039eqeq2d 2468 . . . . 5  |-  ( y  =  ( F `  B )  ->  ( F  =  { <. A , 
( F `  A
) >. ,  <. B , 
y >. }  <->  F  =  { <. A ,  ( F `  A )
>. ,  <. B , 
( F `  B
) >. } ) )
4137, 40rspc2ev 3218 . . . 4  |-  ( ( ( F `  A
)  e.  R  /\  ( F `  B )  e.  R  /\  F  =  { <. A ,  ( F `  A )
>. ,  <. B , 
( F `  B
) >. } )  ->  E. x  e.  R  E. y  e.  R  F  =  { <. A ,  x >. ,  <. B , 
y >. } )
425, 10, 34, 41syl3anc 1226 . . 3  |-  ( ( F : { A ,  B } --> R  /\  A  =/=  B )  ->  E. x  e.  R  E. y  e.  R  F  =  { <. A ,  x >. ,  <. B , 
y >. } )
4342expcom 433 . 2  |-  ( A  =/=  B  ->  ( F : { A ,  B } --> R  ->  E. x  e.  R  E. y  e.  R  F  =  { <. A ,  x >. ,  <. B ,  y
>. } ) )
44 vex 3109 . . . . . . 7  |-  x  e. 
_V
45 vex 3109 . . . . . . 7  |-  y  e. 
_V
461, 6, 44, 45fpr 6055 . . . . . 6  |-  ( A  =/=  B  ->  { <. A ,  x >. ,  <. B ,  y >. } : { A ,  B } --> { x ,  y } )
47 prssi 4172 . . . . . 6  |-  ( ( x  e.  R  /\  y  e.  R )  ->  { x ,  y }  C_  R )
48 fss 5721 . . . . . 6  |-  ( ( { <. A ,  x >. ,  <. B ,  y
>. } : { A ,  B } --> { x ,  y }  /\  { x ,  y } 
C_  R )  ->  { <. A ,  x >. ,  <. B ,  y
>. } : { A ,  B } --> R )
4946, 47, 48syl2an 475 . . . . 5  |-  ( ( A  =/=  B  /\  ( x  e.  R  /\  y  e.  R
) )  ->  { <. A ,  x >. ,  <. B ,  y >. } : { A ,  B } --> R )
5049ex 432 . . . 4  |-  ( A  =/=  B  ->  (
( x  e.  R  /\  y  e.  R
)  ->  { <. A ,  x >. ,  <. B , 
y >. } : { A ,  B } --> R ) )
51 feq1 5695 . . . . 5  |-  ( F  =  { <. A ,  x >. ,  <. B , 
y >. }  ->  ( F : { A ,  B } --> R  <->  { <. A ,  x >. ,  <. B , 
y >. } : { A ,  B } --> R ) )
5251biimprcd 225 . . . 4  |-  ( {
<. A ,  x >. , 
<. B ,  y >. } : { A ,  B } --> R  ->  ( F  =  { <. A ,  x >. ,  <. B , 
y >. }  ->  F : { A ,  B }
--> R ) )
5350, 52syl6 33 . . 3  |-  ( A  =/=  B  ->  (
( x  e.  R  /\  y  e.  R
)  ->  ( F  =  { <. A ,  x >. ,  <. B ,  y
>. }  ->  F : { A ,  B } --> R ) ) )
5453rexlimdvv 2952 . 2  |-  ( A  =/=  B  ->  ( E. x  e.  R  E. y  e.  R  F  =  { <. A ,  x >. ,  <. B , 
y >. }  ->  F : { A ,  B }
--> R ) )
5543, 54impbid 191 1  |-  ( A  =/=  B  ->  ( F : { A ,  B } --> R  <->  E. x  e.  R  E. y  e.  R  F  =  { <. A ,  x >. ,  <. B ,  y
>. } ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    <-> wb 184    /\ wa 367    = wceq 1398    e. wcel 1823    =/= wne 2649   A.wral 2804   E.wrex 2805   _Vcvv 3106    C_ wss 3461   {cpr 4018   <.cop 4022    Fn wfn 5565   -->wf 5566   ` cfv 5570
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1623  ax-4 1636  ax-5 1709  ax-6 1752  ax-7 1795  ax-8 1825  ax-9 1827  ax-10 1842  ax-11 1847  ax-12 1859  ax-13 2004  ax-ext 2432  ax-sep 4560  ax-nul 4568  ax-pow 4615  ax-pr 4676
This theorem depends on definitions:  df-bi 185  df-or 368  df-an 369  df-3an 973  df-tru 1401  df-ex 1618  df-nf 1622  df-sb 1745  df-eu 2288  df-mo 2289  df-clab 2440  df-cleq 2446  df-clel 2449  df-nfc 2604  df-ne 2651  df-ral 2809  df-rex 2810  df-rab 2813  df-v 3108  df-sbc 3325  df-csb 3421  df-dif 3464  df-un 3466  df-in 3468  df-ss 3475  df-nul 3784  df-if 3930  df-sn 4017  df-pr 4019  df-op 4023  df-uni 4236  df-br 4440  df-opab 4498  df-mpt 4499  df-id 4784  df-xp 4994  df-rel 4995  df-cnv 4996  df-co 4997  df-dm 4998  df-rn 4999  df-res 5000  df-ima 5001  df-iota 5534  df-fun 5572  df-fn 5573  df-f 5574  df-fv 5578
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator