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

Theorem brrestrict 25796
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 4429 . . . . 5  |-  <. A ,  B >.  e.  _V
2 brrestrict.3 . . . . 5  |-  C  e. 
_V
31, 2brco 5045 . . . 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 25728 . . . . . . 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 942 . . . . . . . . 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 2961 . . . . . . . . . . 11  |-  a  e. 
_V
96, 7, 8br1steq 25400 . . . . . . . . . 10  |-  ( <. A ,  B >. 1st a  <->  a  =  A )
10 vex 2961 . . . . . . . . . . . 12  |-  b  e. 
_V
111, 10brco 5045 . . . . . . . . . . 11  |-  ( <. A ,  B >. (Cart 
o.  ( 2nd  (x)  (Range  o.  1st ) ) ) b  <->  E. x
( <. A ,  B >. ( 2nd  (x)  (Range  o. 
1st ) ) x  /\  xCart b ) )
121brtxp2 25728 . . . . . . . . . . . . . . 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 942 . . . . . . . . . . . . . . . . 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 25401 . . . . . . . . . . . . . . . . . 18  |-  ( <. A ,  B >. 2nd a  <->  a  =  B )
151, 10brco 5045 . . . . . . . . . . . . . . . . . . 19  |-  ( <. A ,  B >. (Range 
o.  1st ) b  <->  E. x
( <. A ,  B >. 1st x  /\  xRange b ) )
16 vex 2961 . . . . . . . . . . . . . . . . . . . . . . 23  |-  x  e. 
_V
176, 7, 16br1steq 25400 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( <. A ,  B >. 1st x  <->  x  =  A
)
1817anbi1i 678 . . . . . . . . . . . . . . . . . . . . 21  |-  ( (
<. A ,  B >. 1st x  /\  xRange b
)  <->  ( x  =  A  /\  xRange b
) )
1918exbii 1593 . . . . . . . . . . . . . . . . . . . 20  |-  ( E. x ( <. A ,  B >. 1st x  /\  xRange b )  <->  E. x
( x  =  A  /\  xRange b ) )
20 breq1 4217 . . . . . . . . . . . . . . . . . . . . 21  |-  ( x  =  A  ->  (
xRange b  <->  ARange b
) )
216, 20ceqsexv 2993 . . . . . . . . . . . . . . . . . . . 20  |-  ( E. x ( x  =  A  /\  xRange b
)  <->  ARange b )
2219, 21bitri 242 . . . . . . . . . . . . . . . . . . 19  |-  ( E. x ( <. A ,  B >. 1st x  /\  xRange b )  <->  ARange b
)
236, 10brrange 25781 . . . . . . . . . . . . . . . . . . 19  |-  ( ARange b  <->  b  =  ran  A )
2415, 22, 233bitri 264 . . . . . . . . . . . . . . . . . 18  |-  ( <. A ,  B >. (Range 
o.  1st ) b  <->  b  =  ran  A )
25 biid 229 . . . . . . . . . . . . . . . . . 18  |-  ( x  =  <. a ,  b
>. 
<->  x  =  <. a ,  b >. )
2614, 24, 253anbi123i 1143 . . . . . . . . . . . . . . . . 17  |-  ( (
<. A ,  B >. 2nd a  /\  <. A ,  B >. (Range  o.  1st ) b  /\  x  =  <. a ,  b
>. )  <->  ( a  =  B  /\  b  =  ran  A  /\  x  =  <. a ,  b
>. ) )
2713, 26bitri 242 . . . . . . . . . . . . . . . 16  |-  ( ( x  =  <. a ,  b >.  /\  <. A ,  B >. 2nd a  /\  <. A ,  B >. (Range  o.  1st )
b )  <->  ( a  =  B  /\  b  =  ran  A  /\  x  =  <. a ,  b
>. ) )
28272exbii 1594 . . . . . . . . . . . . . . 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 5135 . . . . . . . . . . . . . . . 16  |-  ran  A  e.  _V
30 opeq1 3986 . . . . . . . . . . . . . . . . 17  |-  ( a  =  B  ->  <. a ,  b >.  =  <. B ,  b >. )
3130eqeq2d 2449 . . . . . . . . . . . . . . . 16  |-  ( a  =  B  ->  (
x  =  <. a ,  b >.  <->  x  =  <. B ,  b >.
) )
32 opeq2 3987 . . . . . . . . . . . . . . . . 17  |-  ( b  =  ran  A  ->  <. B ,  b >.  =  <. B ,  ran  A
>. )
3332eqeq2d 2449 . . . . . . . . . . . . . . . 16  |-  ( b  =  ran  A  -> 
( x  =  <. B ,  b >.  <->  x  =  <. B ,  ran  A >. ) )
347, 29, 31, 33ceqsex2v 2995 . . . . . . . . . . . . . . 15  |-  ( E. a E. b ( a  =  B  /\  b  =  ran  A  /\  x  =  <. a ,  b >. )  <->  x  =  <. B ,  ran  A >. )
3512, 28, 343bitri 264 . . . . . . . . . . . . . 14  |-  ( <. A ,  B >. ( 2nd  (x)  (Range  o.  1st ) ) x  <->  x  =  <. B ,  ran  A >. )
3635anbi1i 678 . . . . . . . . . . . . 13  |-  ( (
<. A ,  B >. ( 2nd  (x)  (Range  o.  1st ) ) x  /\  xCart b )  <->  ( x  =  <. B ,  ran  A
>.  /\  xCart b ) )
3736exbii 1593 . . . . . . . . . . . 12  |-  ( E. x ( <. A ,  B >. ( 2nd  (x)  (Range  o.  1st ) ) x  /\  xCart b
)  <->  E. x ( x  =  <. B ,  ran  A
>.  /\  xCart b ) )
38 opex 4429 . . . . . . . . . . . . 13  |-  <. B ,  ran  A >.  e.  _V
39 breq1 4217 . . . . . . . . . . . . 13  |-  ( x  =  <. B ,  ran  A
>.  ->  ( xCart b  <->  <. B ,  ran  A >.Cart b ) )
4038, 39ceqsexv 2993 . . . . . . . . . . . 12  |-  ( E. x ( x  = 
<. B ,  ran  A >.  /\  xCart b )  <->  <. B ,  ran  A >.Cart b )
4137, 40bitri 242 . . . . . . . . . . 11  |-  ( E. x ( <. A ,  B >. ( 2nd  (x)  (Range  o.  1st ) ) x  /\  xCart b
)  <->  <. B ,  ran  A
>.Cart b )
427, 29, 10brcart 25779 . . . . . . . . . . 11  |-  ( <. B ,  ran  A >.Cart b  <-> 
b  =  ( B  X.  ran  A ) )
4311, 41, 423bitri 264 . . . . . . . . . 10  |-  ( <. A ,  B >. (Cart 
o.  ( 2nd  (x)  (Range  o.  1st ) ) ) b  <->  b  =  ( B  X.  ran  A
) )
449, 43, 253anbi123i 1143 . . . . . . . . 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 242 . . . . . . . 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 1594 . . . . . . 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 4992 . . . . . . . 8  |-  ( B  X.  ran  A )  e.  _V
48 opeq1 3986 . . . . . . . . 9  |-  ( a  =  A  ->  <. a ,  b >.  =  <. A ,  b >. )
4948eqeq2d 2449 . . . . . . . 8  |-  ( a  =  A  ->  (
x  =  <. a ,  b >.  <->  x  =  <. A ,  b >.
) )
50 opeq2 3987 . . . . . . . . 9  |-  ( b  =  ( B  X.  ran  A )  ->  <. A , 
b >.  =  <. A , 
( B  X.  ran  A ) >. )
5150eqeq2d 2449 . . . . . . . 8  |-  ( b  =  ( B  X.  ran  A )  ->  (
x  =  <. A , 
b >. 
<->  x  =  <. A , 
( B  X.  ran  A ) >. ) )
526, 47, 49, 51ceqsex2v 2995 . . . . . . 7  |-  ( E. a E. b ( a  =  A  /\  b  =  ( B  X.  ran  A )  /\  x  =  <. a ,  b >. )  <->  x  =  <. A ,  ( B  X.  ran  A )
>. )
534, 46, 523bitri 264 . . . . . 6  |-  ( <. A ,  B >. ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) x  <->  x  =  <. A ,  ( B  X.  ran  A ) >. )
5453anbi1i 678 . . . . 5  |-  ( (
<. A ,  B >. ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) x  /\  xCap C
)  <->  ( x  = 
<. A ,  ( B  X.  ran  A )
>.  /\  xCap C ) )
5554exbii 1593 . . . 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 242 . . 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 4429 . . . 4  |-  <. A , 
( B  X.  ran  A ) >.  e.  _V
58 breq1 4217 . . . 4  |-  ( x  =  <. A ,  ( B  X.  ran  A
) >.  ->  ( xCap C 
<-> 
<. A ,  ( B  X.  ran  A )
>.Cap C ) )
5957, 58ceqsexv 2993 . . 3  |-  ( E. x ( x  = 
<. A ,  ( B  X.  ran  A )
>.  /\  xCap C )  <->  <. A ,  ( B  X.  ran  A )
>.Cap C )
606, 47, 2brcap 25787 . . 3  |-  ( <. A ,  ( B  X.  ran  A ) >.Cap C 
<->  C  =  ( A  i^i  ( B  X.  ran  A ) ) )
6156, 59, 603bitri 264 . 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 25717 . . 3  |- Restrict  =  (Cap 
o.  ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) )
6362breqi 4220 . 2  |-  ( <. A ,  B >.Restrict C  <->  <. A ,  B >. (Cap 
o.  ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) ) C )
64 dfres3 25384 . . 3  |-  ( A  |`  B )  =  ( A  i^i  ( B  X.  ran  A ) )
6564eqeq2i 2448 . 2  |-  ( C  =  ( A  |`  B )  <->  C  =  ( A  i^i  ( B  X.  ran  A ) ) )
6661, 63, 653bitr4i 270 1  |-  ( <. A ,  B >.Restrict C  <->  C  =  ( A  |`  B ) )
Colors of variables: wff set class
Syntax hints:    <-> wb 178    /\ wa 360    /\ w3a 937   E.wex 1551    = wceq 1653    e. wcel 1726   _Vcvv 2958    i^i cin 3321   <.cop 3819   class class class wbr 4214    X. cxp 4878   ran crn 4881    |` cres 4882    o. ccom 4884   1stc1st 6349   2ndc2nd 6350    (x) ctxp 25676  Cartccart 25687  Rangecrange 25690  Capccap 25693  Restrictcrestrict 25697
This theorem is referenced by:  tfrqfree  25798
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-dif 3325  df-un 3327  df-in 3329  df-ss 3336  df-nul 3631  df-if 3742  df-pw 3803  df-sn 3822  df-pr 3823  df-op 3825  df-uni 4018  df-br 4215  df-opab 4269  df-mpt 4270  df-eprel 4496  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-fo 5462  df-fv 5464  df-1st 6351  df-2nd 6352  df-symdif 25665  df-txp 25700  df-pprod 25701  df-image 25710  df-cart 25711  df-range 25714  df-cap 25716  df-restrict 25717
  Copyright terms: Public domain W3C validator