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

Theorem brrestrict 24487
Description: The binary relationship form of the Restrict function. (Contributed by Scott Fenton, 17-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
Hypotheses
Ref Expression
brrestrict.1  |-  A  e. 
_V
brrestrict.2  |-  B  e. 
_V
brrestrict.3  |-  C  e. 
_V
Assertion
Ref Expression
brrestrict  |-  ( <. A ,  B >.Restrict C  <->  C  =  ( A  |`  B ) )

Proof of Theorem brrestrict
Dummy variables  a 
b  x are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 opex 4237 . . . . 5  |-  <. A ,  B >.  e.  _V
2 brrestrict.3 . . . . 5  |-  C  e. 
_V
31, 2brco 4852 . . . 4  |-  ( <. A ,  B >. (Cap 
o.  ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) ) C  <->  E. x ( <. A ,  B >. ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) x  /\  xCap C ) )
41brtxp2 24421 . . . . . . 7  |-  ( <. A ,  B >. ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) x  <->  E. a E. b
( x  =  <. a ,  b >.  /\  <. A ,  B >. 1st a  /\  <. A ,  B >. (Cart  o.  ( 2nd  (x)  (Range  o.  1st )
) ) b ) )
5 3anrot 939 . . . . . . . . 9  |-  ( ( x  =  <. a ,  b >.  /\  <. A ,  B >. 1st a  /\  <. A ,  B >. (Cart  o.  ( 2nd  (x)  (Range  o.  1st )
) ) b )  <-> 
( <. A ,  B >. 1st a  /\  <. A ,  B >. (Cart  o.  ( 2nd  (x)  (Range  o. 
1st ) ) ) b  /\  x  = 
<. a ,  b >.
) )
6 brrestrict.1 . . . . . . . . . . 11  |-  A  e. 
_V
7 brrestrict.2 . . . . . . . . . . 11  |-  B  e. 
_V
8 vex 2791 . . . . . . . . . . 11  |-  a  e. 
_V
96, 7, 8br1steq 24130 . . . . . . . . . 10  |-  ( <. A ,  B >. 1st a  <->  a  =  A )
10 vex 2791 . . . . . . . . . . . 12  |-  b  e. 
_V
111, 10brco 4852 . . . . . . . . . . 11  |-  ( <. A ,  B >. (Cart 
o.  ( 2nd  (x)  (Range  o.  1st ) ) ) b  <->  E. x
( <. A ,  B >. ( 2nd  (x)  (Range  o. 
1st ) ) x  /\  xCart b ) )
121brtxp2 24421 . . . . . . . . . . . . . . 15  |-  ( <. A ,  B >. ( 2nd  (x)  (Range  o.  1st ) ) x  <->  E. a E. b ( x  = 
<. a ,  b >.  /\  <. A ,  B >. 2nd a  /\  <. A ,  B >. (Range  o. 
1st ) b ) )
13 3anrot 939 . . . . . . . . . . . . . . . . 17  |-  ( ( x  =  <. a ,  b >.  /\  <. A ,  B >. 2nd a  /\  <. A ,  B >. (Range  o.  1st )
b )  <->  ( <. A ,  B >. 2nd a  /\  <. A ,  B >. (Range  o.  1st )
b  /\  x  =  <. a ,  b >.
) )
146, 7, 8br2ndeq 24131 . . . . . . . . . . . . . . . . . 18  |-  ( <. A ,  B >. 2nd a  <->  a  =  B )
151, 10brco 4852 . . . . . . . . . . . . . . . . . . 19  |-  ( <. A ,  B >. (Range 
o.  1st ) b  <->  E. x
( <. A ,  B >. 1st x  /\  xRange b ) )
16 vex 2791 . . . . . . . . . . . . . . . . . . . . . . 23  |-  x  e. 
_V
176, 7, 16br1steq 24130 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( <. A ,  B >. 1st x  <->  x  =  A
)
1817anbi1i 676 . . . . . . . . . . . . . . . . . . . . 21  |-  ( (
<. A ,  B >. 1st x  /\  xRange b
)  <->  ( x  =  A  /\  xRange b
) )
1918exbii 1569 . . . . . . . . . . . . . . . . . . . 20  |-  ( E. x ( <. A ,  B >. 1st x  /\  xRange b )  <->  E. x
( x  =  A  /\  xRange b ) )
20 breq1 4026 . . . . . . . . . . . . . . . . . . . . 21  |-  ( x  =  A  ->  (
xRange b  <->  ARange b
) )
216, 20ceqsexv 2823 . . . . . . . . . . . . . . . . . . . 20  |-  ( E. x ( x  =  A  /\  xRange b
)  <->  ARange b )
2219, 21bitri 240 . . . . . . . . . . . . . . . . . . 19  |-  ( E. x ( <. A ,  B >. 1st x  /\  xRange b )  <->  ARange b
)
236, 10brrange 24473 . . . . . . . . . . . . . . . . . . 19  |-  ( ARange b  <->  b  =  ran  A )
2415, 22, 233bitri 262 . . . . . . . . . . . . . . . . . 18  |-  ( <. A ,  B >. (Range 
o.  1st ) b  <->  b  =  ran  A )
25 biid 227 . . . . . . . . . . . . . . . . . 18  |-  ( x  =  <. a ,  b
>. 
<->  x  =  <. a ,  b >. )
2614, 24, 253anbi123i 1140 . . . . . . . . . . . . . . . . 17  |-  ( (
<. A ,  B >. 2nd a  /\  <. A ,  B >. (Range  o.  1st ) b  /\  x  =  <. a ,  b
>. )  <->  ( a  =  B  /\  b  =  ran  A  /\  x  =  <. a ,  b
>. ) )
2713, 26bitri 240 . . . . . . . . . . . . . . . 16  |-  ( ( x  =  <. a ,  b >.  /\  <. A ,  B >. 2nd a  /\  <. A ,  B >. (Range  o.  1st )
b )  <->  ( a  =  B  /\  b  =  ran  A  /\  x  =  <. a ,  b
>. ) )
28272exbii 1570 . . . . . . . . . . . . . . 15  |-  ( E. a E. b ( x  =  <. a ,  b >.  /\  <. A ,  B >. 2nd a  /\  <. A ,  B >. (Range  o.  1st )
b )  <->  E. a E. b ( a  =  B  /\  b  =  ran  A  /\  x  =  <. a ,  b
>. ) )
296rnex 4942 . . . . . . . . . . . . . . . 16  |-  ran  A  e.  _V
30 opeq1 3796 . . . . . . . . . . . . . . . . 17  |-  ( a  =  B  ->  <. a ,  b >.  =  <. B ,  b >. )
3130eqeq2d 2294 . . . . . . . . . . . . . . . 16  |-  ( a  =  B  ->  (
x  =  <. a ,  b >.  <->  x  =  <. B ,  b >.
) )
32 opeq2 3797 . . . . . . . . . . . . . . . . 17  |-  ( b  =  ran  A  ->  <. B ,  b >.  =  <. B ,  ran  A
>. )
3332eqeq2d 2294 . . . . . . . . . . . . . . . 16  |-  ( b  =  ran  A  -> 
( x  =  <. B ,  b >.  <->  x  =  <. B ,  ran  A >. ) )
347, 29, 31, 33ceqsex2v 2825 . . . . . . . . . . . . . . 15  |-  ( E. a E. b ( a  =  B  /\  b  =  ran  A  /\  x  =  <. a ,  b >. )  <->  x  =  <. B ,  ran  A >. )
3512, 28, 343bitri 262 . . . . . . . . . . . . . 14  |-  ( <. A ,  B >. ( 2nd  (x)  (Range  o.  1st ) ) x  <->  x  =  <. B ,  ran  A >. )
3635anbi1i 676 . . . . . . . . . . . . 13  |-  ( (
<. A ,  B >. ( 2nd  (x)  (Range  o.  1st ) ) x  /\  xCart b )  <->  ( x  =  <. B ,  ran  A
>.  /\  xCart b ) )
3736exbii 1569 . . . . . . . . . . . 12  |-  ( E. x ( <. A ,  B >. ( 2nd  (x)  (Range  o.  1st ) ) x  /\  xCart b
)  <->  E. x ( x  =  <. B ,  ran  A
>.  /\  xCart b ) )
38 opex 4237 . . . . . . . . . . . . 13  |-  <. B ,  ran  A >.  e.  _V
39 breq1 4026 . . . . . . . . . . . . 13  |-  ( x  =  <. B ,  ran  A
>.  ->  ( xCart b  <->  <. B ,  ran  A >.Cart b ) )
4038, 39ceqsexv 2823 . . . . . . . . . . . 12  |-  ( E. x ( x  = 
<. B ,  ran  A >.  /\  xCart b )  <->  <. B ,  ran  A >.Cart b )
4137, 40bitri 240 . . . . . . . . . . 11  |-  ( E. x ( <. A ,  B >. ( 2nd  (x)  (Range  o.  1st ) ) x  /\  xCart b
)  <->  <. B ,  ran  A
>.Cart b )
427, 29, 10brcart 24471 . . . . . . . . . . 11  |-  ( <. B ,  ran  A >.Cart b  <-> 
b  =  ( B  X.  ran  A ) )
4311, 41, 423bitri 262 . . . . . . . . . 10  |-  ( <. A ,  B >. (Cart 
o.  ( 2nd  (x)  (Range  o.  1st ) ) ) b  <->  b  =  ( B  X.  ran  A
) )
449, 43, 253anbi123i 1140 . . . . . . . . 9  |-  ( (
<. A ,  B >. 1st a  /\  <. A ,  B >. (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) b  /\  x  =  <. a ,  b >. )  <->  ( a  =  A  /\  b  =  ( B  X.  ran  A )  /\  x  =  <. a ,  b >. ) )
455, 44bitri 240 . . . . . . . 8  |-  ( ( x  =  <. a ,  b >.  /\  <. A ,  B >. 1st a  /\  <. A ,  B >. (Cart  o.  ( 2nd  (x)  (Range  o.  1st )
) ) b )  <-> 
( a  =  A  /\  b  =  ( B  X.  ran  A
)  /\  x  =  <. a ,  b >.
) )
46452exbii 1570 . . . . . . 7  |-  ( E. a E. b ( x  =  <. a ,  b >.  /\  <. A ,  B >. 1st a  /\  <. A ,  B >. (Cart  o.  ( 2nd  (x)  (Range  o.  1st )
) ) b )  <->  E. a E. b ( a  =  A  /\  b  =  ( B  X.  ran  A )  /\  x  =  <. a ,  b >. ) )
477, 29xpex 4801 . . . . . . . 8  |-  ( B  X.  ran  A )  e.  _V
48 opeq1 3796 . . . . . . . . 9  |-  ( a  =  A  ->  <. a ,  b >.  =  <. A ,  b >. )
4948eqeq2d 2294 . . . . . . . 8  |-  ( a  =  A  ->  (
x  =  <. a ,  b >.  <->  x  =  <. A ,  b >.
) )
50 opeq2 3797 . . . . . . . . 9  |-  ( b  =  ( B  X.  ran  A )  ->  <. A , 
b >.  =  <. A , 
( B  X.  ran  A ) >. )
5150eqeq2d 2294 . . . . . . . 8  |-  ( b  =  ( B  X.  ran  A )  ->  (
x  =  <. A , 
b >. 
<->  x  =  <. A , 
( B  X.  ran  A ) >. ) )
526, 47, 49, 51ceqsex2v 2825 . . . . . . 7  |-  ( E. a E. b ( a  =  A  /\  b  =  ( B  X.  ran  A )  /\  x  =  <. a ,  b >. )  <->  x  =  <. A ,  ( B  X.  ran  A )
>. )
534, 46, 523bitri 262 . . . . . 6  |-  ( <. A ,  B >. ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) x  <->  x  =  <. A ,  ( B  X.  ran  A ) >. )
5453anbi1i 676 . . . . 5  |-  ( (
<. A ,  B >. ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) x  /\  xCap C
)  <->  ( x  = 
<. A ,  ( B  X.  ran  A )
>.  /\  xCap C ) )
5554exbii 1569 . . . 4  |-  ( E. x ( <. A ,  B >. ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) x  /\  xCap C )  <->  E. x
( x  =  <. A ,  ( B  X.  ran  A ) >.  /\  xCap C ) )
563, 55bitri 240 . . 3  |-  ( <. A ,  B >. (Cap 
o.  ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) ) C  <->  E. x ( x  = 
<. A ,  ( B  X.  ran  A )
>.  /\  xCap C ) )
57 opex 4237 . . . 4  |-  <. A , 
( B  X.  ran  A ) >.  e.  _V
58 breq1 4026 . . . 4  |-  ( x  =  <. A ,  ( B  X.  ran  A
) >.  ->  ( xCap C 
<-> 
<. A ,  ( B  X.  ran  A )
>.Cap C ) )
5957, 58ceqsexv 2823 . . 3  |-  ( E. x ( x  = 
<. A ,  ( B  X.  ran  A )
>.  /\  xCap C )  <->  <. A ,  ( B  X.  ran  A )
>.Cap C )
606, 47, 2brcap 24479 . . 3  |-  ( <. A ,  ( B  X.  ran  A ) >.Cap C 
<->  C  =  ( A  i^i  ( B  X.  ran  A ) ) )
6156, 59, 603bitri 262 . 2  |-  ( <. A ,  B >. (Cap 
o.  ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) ) C  <-> 
C  =  ( A  i^i  ( B  X.  ran  A ) ) )
62 df-restrict 24412 . . 3  |- Restrict  =  (Cap 
o.  ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) )
6362breqi 4029 . 2  |-  ( <. A ,  B >.Restrict C  <->  <. A ,  B >. (Cap 
o.  ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) ) C )
64 dfres3 24116 . . 3  |-  ( A  |`  B )  =  ( A  i^i  ( B  X.  ran  A ) )
6564eqeq2i 2293 . 2  |-  ( C  =  ( A  |`  B )  <->  C  =  ( A  i^i  ( B  X.  ran  A ) ) )
6661, 63, 653bitr4i 268 1  |-  ( <. A ,  B >.Restrict C  <->  C  =  ( A  |`  B ) )
Colors of variables: wff set class
Syntax hints:    <-> wb 176    /\ wa 358    /\ w3a 934   E.wex 1528    = wceq 1623    e. wcel 1684   _Vcvv 2788    i^i cin 3151   <.cop 3643   class class class wbr 4023    X. cxp 4687   ran crn 4690    |` cres 4691    o. ccom 4693   1stc1st 6120   2ndc2nd 6121    (x) ctxp 24373  Cartccart 24384  Rangecrange 24387  Capccap 24390  Restrictcrestrict 24394
This theorem is referenced by:  tfrqfree  24489
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-13 1686  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-pow 4188  ax-pr 4214  ax-un 4512
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-pw 3627  df-sn 3646  df-pr 3647  df-op 3649  df-uni 3828  df-br 4024  df-opab 4078  df-mpt 4079  df-eprel 4305  df-id 4309  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-rn 4700  df-res 4701  df-ima 4702  df-iota 5219  df-fun 5257  df-fn 5258  df-f 5259  df-fo 5261  df-fv 5263  df-1st 6122  df-2nd 6123  df-symdif 24362  df-txp 24395  df-pprod 24396  df-image 24405  df-cart 24406  df-range 24409  df-cap 24411  df-restrict 24412
  Copyright terms: Public domain W3C validator